1833694 Members
3717 Online
110062 Solutions
New Discussion

HP Apache and auth_ldap

 
Kyle Snavely_1
Advisor

HP Apache and auth_ldap

I am trying to set up apache on HP-UX to authenticate to LDAP, and if LDAP fails, I want it to check a local file such as a file created with htpasswd. My ldap configuration works fine until I add the AuthUserFile directive. When I do that, it skips LDAP entirely and just uses the authuserfile for authentication. When I remove the AuthUserFile directive LDAP continues to work properly.

Below is a snip from my httpd.conf:
Order allow,deny
Allow from all
AuthName "Restricted Area"
AuthType Basic
AuthLDAPAuthoritative off
# AuthLDAPURL should point to your ldap server
AuthLDAPURL ldap://dc1:389 dc2:389/DC=domain,DC=org?sAMaccountName
AuthLDAPBindDN ""
AuthLDAPBindPassword
AuthUserFile /tmp/test.dat
#AuthLDAPStartTLS on
require valid-user