Advertisement
Guest User

Configuration Lighttpd pour motion

a guest
Jun 29th, 2013
493
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.66 KB | None | 0 0
  1. ## debugging
  2. # 0 for off, 1 for 'auth-ok' messages, 2 for verbose debugging
  3. auth.debug = 0
  4.  
  5. ## type of backend
  6. # plain, htpasswd, ldap or htdigest
  7. auth.backend = "plain"
  8.  
  9. # filename of the password storage for plain
  10. auth.backend.plain.userfile = "/etc/lighttpd/auth/plain"
  11.  
  12. ## for htpasswd
  13. #auth.backend.htpasswd.userfile = "/full/path/to/lighttpd-htpasswd.user"
  14.  
  15. ## for htdigest
  16. #auth.backend.htdigest.userfile = "lighttpd-htdigest.user"
  17.  
  18. ## for ldap
  19. # the $ in auth.backend.ldap.filter is replaced by the
  20. # 'username' from the login dialog
  21. #auth.backend.ldap.hostname = "localhost"
  22. #auth.backend.ldap.base-dn = "dc=my-domain,dc=com"
  23. #auth.backend.ldap.filter = "(uid=$)"
  24. # if enabled, startTLS needs a valid (base64-encoded) CA
  25. # certificate unless the certificate has been stored
  26. # in a c_hashed directory and referenced in ldap.conf
  27. #auth.backend.ldap.starttls = "enable"
  28. #auth.backend.ldap.ca-file = "/etc/CAcertificate.pem"
  29. # If you need to use a custom bind to access the server
  30. #auth.backend.ldap.bind-dn = "uid=admin,dc=my-domain,dc=com"
  31. #auth.backend.ldap.bind-pw = "mysecret"
  32. # If you want to allow empty passwords
  33. # "disable" for requiring passwords, "enable" for allowing empty passwords
  34. #auth.backend.ldap.allow-empty-pw = "disable"
  35.  
  36. ## restrictions
  37. # set restrictions:
  38. #
  39. # ( <left-part-of-the-url> =>
  40. # ( "method" => "digest"/"basic",
  41. # "realm" => <realm>,
  42. # "require" => "user=<username>" )
  43. # )
  44. #
  45. # <realm> is a string to display in the dialog
  46. # presented to the user and is also used for the
  47. # digest-algorithm and has to match the realm in the
  48. # htdigest file (if used)
  49. #
  50.  
  51. auth.require = ( "/latest/" =>
  52. (
  53. "method" => "basic",
  54. "realm" => "Restricted Area",
  55. "require" => "valid-user"
  56. ),
  57. "/streaming/" =>
  58. (
  59. "method" => "basic",
  60. "realm" => "Restricted Area",
  61. "require" => "valid-user"
  62. ),
  63. "/motdet/" =>
  64. (
  65. "method" => "basic",
  66. "realm" => "Restricted Area",
  67. "require" => "valid-user"
  68. )
  69. )
  70.  
  71. # Or, using regular expressions:
  72. #$HTTP["url"] =~ "^/download|^/server-info" {
  73. # auth.require = ( "" =>
  74. # (
  75. # "method" => "digest",
  76. # "realm" => "download archiv",
  77. # "require" => "user=agent007|user=agent008"
  78. # )
  79. # )
  80. #}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement