46_mod_ldap.conf 892 B

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. <IfDefine LDAP>
  2. <IfModule !util_ldap.c>
  3. LoadModule ldap_module modules/mod_ldap.so
  4. </IfModule>
  5. </IfDefine>
  6. <IfDefine AUTH_LDAP>
  7. <IfModule !mod_auth_ldap.c>
  8. LoadModule auth_ldap_module modules/mod_auth_ldap.so
  9. </IfModule>
  10. </IfDefine>
  11. # Examples below are taken from the online documentation
  12. # Refer to:
  13. # http://localhost/manual/mod/mod_ldap.html
  14. # http://localhost/manual/mod/mod_auth_ldap.html
  15. <IfModule util_ldap.c>
  16. LDAPSharedCacheSize 200000
  17. LDAPCacheEntries 1024
  18. LDAPCacheTTL 600
  19. LDAPOpCacheEntries 1024
  20. LDAPOpCacheTTL 600
  21. <Location /ldap-status>
  22. SetHandler ldap-status
  23. Order deny,allow
  24. Deny from all
  25. Allow from 127.0.0.1
  26. </Location>
  27. </IfModule>
  28. <IfModule mod_auth_ldap.c>
  29. #AuthLDAPURL ldap://ldap1.airius.com:389/ou=People, o=Airius?uid?sub?(objectClass=*)
  30. #require valid-user
  31. </IfModule>