openLDAP is a open source implementation of Light Weight Directory Access Protocol.it is read optimized which is used to store user information for authentication purpose.
Why to create another password file ???
Cant we utilize our existing authentication mechanism?
from some changes in .htaccess, we need not to alter any settings in Apache's httpd.conf.
Following lines have been added in .htaccess to allow LDAP Authentication and allow only certain users.
AuthName "Message which will appear in Login Window"
#AuthUserFile /usr/local/apache/passwd/passwd (Not needed anymore)
AuthLDAPURL ldap://linuxadmin.ofb.net:389/ou=people,o=ofb (Fake address)
require user "shailesh.mishra"
require user "tom"
require user "harry"
It is assumed that LDAP server is running in linuxadmin.ofb.net (Fake address) on port 389 with ou=people,o=ofb.
Although all these directive could have been written in httpd.conf itself but its always a good idea not to fiddle with existing settings.