Advertisement
Guest User

Untitled

a guest
Jul 26th, 2017
88
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.75 KB | None | 0 0
  1. # Authentication route
  2. route[AUTH] {
  3. #!ifdef WITH_IPAUTH
  4. if(allow_source_address())
  5. {
  6. # source IP allowed
  7. return;
  8. }
  9. #!endif
  10.  
  11. #!ifdef WITH_AUTH
  12. if (is_method("REGISTER"))
  13. {
  14. # authenticate the REGISTER requests (uncomment to enable auth)
  15. if (!www_authorize("$td", "subscriber"))
  16. {
  17. www_challenge("$td", "0");
  18. exit;
  19. }
  20.  
  21. if ($au!=$tU)
  22. {
  23. sl_send_reply("403","Forbidden auth ID");
  24. exit;
  25. }
  26. } else {
  27.  
  28. #!ifdef WITH_IPAUTH
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement