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

Who is Participating?
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
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.