<IfModule !ldap_module>
   LoadModule ldap_module                    /usr/lib64/httpd/modules/mod_ldap.so
</IfModule>
<IfModule !authnz_ldap_module>
   LoadModule authnz_ldap_module             /usr/lib64/httpd/modules/mod_authnz_ldap.so
</IfModule>

<IfModule mod_authnz_ldap.c>
   LDAPVerifyServerCert off
   LDAPSharedCacheSize 200000
   LDAPCacheEntries 1024
   LDAPCacheTTL 600
   LDAPOpCacheEntries 1024
   LDAPOpCacheTTL 600
   #LDAPTrustedMode TLS
</IfModule>

<AuthnProviderAlias ldap ldap-local>
    AuthLDAPBindDN "cn=Manager,dc=test,dc=local"
    AuthLDAPBindPassword "manager"
    AuthLDAPURL "ldap://localhost:9000/DC=test,DC=local?uid"
</AuthnProviderAlias>

<AuthnProviderAlias file file-local>
  AuthUserFile /omd/sites/demo/etc/htpasswd
</AuthnProviderAlias>

<Location "/demo">
  Order allow,deny
  Allow from all

  AuthName "OMD Monitoring Site demo"
  AuthType Basic
  AuthMerging Or
  AuthBasicProvider file-local ldap-local
  require valid-user
</Location>
