Sunday, July 22, 2007

openLDAP authentication on apache

Create a .htaccess file under www folder

AuthType Basic
AuthName "LDAP SERVER"
AuthLDAPEnabled on
AuthLDAPURL ldap://<openldap server>/<schema>?uid
require valid-user


Schema Structure sample like:. ou=people,ou=organization unit,o=organization


change the following setting under httpd.conf
AllowOverride Options AuthConfig

No comments: