<IfDefine HAVE_LDAP> <IfModule !util_ldap.c> LoadModule ldap_module extramodules/mod_ldap.so </IfModule> </IfDefine> <IfDefine HAVE_AUTH_LDAP> <IfModule !mod_auth_ldap.c> LoadModule auth_ldap_module extramodules/mod_auth_ldap.so </IfModule> </IfDefine> # Examples below are taken from the online documentation # Refer to: # http://localhost/manual/mod/mod_ldap.html # http://localhost/manual/mod/mod_auth_ldap.html <IfModule util_ldap.c> LDAPSharedCacheSize 200000 LDAPCacheEntries 1024 LDAPCacheTTL 600 LDAPOpCacheEntries 1024 LDAPOpCacheTTL 600 # LDAPTrustedCA /etc/ssl/apache/mod_ldap.pem # LDAPTrustedCAType BASE64_FILE # <Location /ldap-status> # SetHandler ldap-status # Order deny,allow # Deny from all # Allow from 127.0.0.1 # </Location> </IfModule> <IfModule mod_auth_ldap.c> <Location /ldap-status> SetHandler ldap-status AuthLDAPEnabled On #AuthLDAPFrontPageHack On #AuthType Basic #AuthName "Cache status" #require valid-user #AuthLDAPURL "ldaps://localhost/dc=example,dc=com?uid" #AuthLDAPURL ldaps://127.0.0.1:636/dc=example,dc=com?uid?one <IfModule mod_access.c> Order deny,allow Deny from all Allow from 127.0.0.1 </IfModule> </Location> </IfModule>