I have Apache setup to authenticate with active directory through ldap for my users. There are a few "system" users (for automated build tests) that are manually setup and authenticate through file.
AuthBasicProvider ldap file
The issue I'm having is that the Active Directory box is wont to go down once in a while for maintenance or other reasons and I don't want my "system" users to be denied access during that time. I'd like Apache to attempt authentication with file and THEN ldap but this doesn't seem to be possible. According to http://httpd.apache.org/docs/2.2/mod/mod_auth_basic.html, "the order of processing is determined in the modules' source code and is not configurable."
This just doesn't seem right. I would think that one would (often) want to specify the order of the auth providers (if not for the reasons I want to then for other reasons). Is there no way to do this without hacking source code?
p.s. Changing the config to AuthBasicProvider file ldap
makes no difference.
The above quote is not talking about what you're asking:
From version 2.2, Apache allow to use multiple providers. I've tested on my system (Apache 2.2.20), it works fine:
Stop OpenLDAP, I still can login with users in
/etc/httpd/passwords
.