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."
A citação acima é não falando sobre o que você está perguntando:
This should only be necessary when combining
mod_auth_basic
with third-party modules that are not configured with theAuthBasicProvider
directive. When using such modules, the order of processing is determined in the modules' source code and is not configurable.
A partir da versão 2.2, o Apache permite usar múltiplos provedores . Eu testei no meu sistema (Apache 2.2.20), ele funciona bem:
<Location />
AuthType Basic
AuthBasicProvider file ldap
AuthUserFile /etc/httpd/passwords
AuthzLDAPAuthoritative Off
AuthLDAPURL ldap://ip:389/dc=x,dc=y?cn
AuthLDAPBindDN cn=anonymous,ou=z,dc=x,dc=y
AuthLDAPBindPassword pa$$w0rd
AuthName "Restricted Area"
AuthzLDAPGroupBase ou=z,dc=x,dc=y
AuthzLDAPGroupkey cn
AuthzLDAPMemberKey member
AuthzLDAPSetGroupAuth user
require valid-user
AuthzLDAPLogLevel error
</Location>
Pare o OpenLDAP, ainda posso fazer login com usuários em /etc/httpd/passwords
.