I am using Apache server and linux redhat 7.2.
My company uses ldap to store employee info. We have a mounted directory, which has the ldap_db and also a user-passwd file which has all userid and encrypted passwords.
Now, I want to be able to put a .htaccess file at directory level, to authenticate users before they access my site.
I tried putting a .htaccess file at my homedirectory which looks like this:
AuthName John Doe's Members-Only Area
<Limit GET POST PUT>
But when I try http://localhost/~me
, it does not prompt for password. I dont get any errors either, and the webpages are displayed fine. Any idea why it does not prompt for userid/passwd?
In my LinuxGUI, System>AuthenticationConfi
guration> I checked "Enable LDAP Support" and Configured LDAP to point to the correct server name and search base.
(Although I dont know if this is related to the .htaccess authentication or not)