OpenLDAP/Services/Apache
OpenLDAP и Apache (auth_ldap)
/etc/httpd/conf/addon-modules/mod-auth_ldap.conf
<Directory /var/www/html/hidden> AuthName "secured zone" AuthType Basic AuthLDAPBindDN cn=apache,ou=daemons,dc=ldap.lan AuthLDAPBindPassword apache_pass AuthLDAPStartTLS off AuthLDAPUrl ldap://172.16.1.109/dc=ldap.lan?uid?sub?(sn=apache-allowed) AuthLDAPCompareDNOnServer on require valid-user </Directory>
Примечание : у альтовской сборки auth_ldap вероятно есть баг - при добавлении ou=apache ( AuthLDAPUrl ldap://172.16.1.109/ou=apache,dc=ldap.lan?uid), auth_ldap пишет, что Could not connect to LDAP server: No such file or directory