apache 2 and mod_auth_ldap Fail over authentication

Posted on 2009-02-11
Last Modified: 2013-12-19
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

Question by:iayman
    LVL 27

    Accepted 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.

    Author Closing Comment

    Thank you
    I don't know how I miss this

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    Free Trending Threat Insights Every Day

    Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

    Suggested Solutions

    Title # Comments Views Activity
    Group Policies review 1 45
    should I worry about this? 6 79
    MySQL going to sleep 4 56
    MS Access question 11 36
    As a Mac user and former AppleCare AHA & Senior Advisor, I'm constantly bombarded with questions about Macs and if they need Antivirus. This short article is my response to those questions.
    Using SQL Scripts we can save all the SQL queries as files that we use very frequently on our database later point of time. This is one of the feature present under SQL Workshop in Oracle Application Express.
    Video by: Steve
    Using examples as well as descriptions, step through each of the common simple join types, explaining differences in syntax, differences in expected outputs and showing how the queries run along with the actual outputs based upon a simple set of dem…
    Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…

    779 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    14 Experts available now in Live!

    Get 1:1 Help Now