• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 685
  • Last Modified:

apache 2 and mod_auth_ldap Fail over authentication

Okay guys I need help I have apache 2 and I want to have ldap authentication if the user is not ldap user check a htpasswd file. I added the fbelow configuration in  .htaccess inside the folder  the ldap auth works fine but I when the ldap fail to auth the other authority is not working any ideas

AuthName "ladp auth"
AuthType Basic
AuthLDAPAuthoritative no
AuthBasicProvider ldap
AuthUserFile /dev/null
AuthLDAPURL ldap://(myldap)
AuthLDAPGroupAttribute uniqueMember
AuthLDAPGroupAttributeIsDN on
AuthLDAPBindDN (Mysearch)
AuthLDAPBindPassword dsearch
AuthUserFile /whosts/www/ldap/.htpasswd

Open in new window

1 Solution
shouldn't that be

AuthBasicProvider ldap file


AuthUserFile /dev/null =? Why /dev/null? That makes no sense to me if you're using file-based authentication.
iaymanAuthor Commented:
Thank you
I don't know how I miss this

Featured Post

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now