Running into a strange problem.
I have an apache site with (single) LDAP authentication that runs fine.
However, I need to add a second ldap server to it, so I'm using AuthnProviderAlias for that, and now it keeps on reporting that the user cannot be found, even though the authentication information is exactly the same.
So this works:
<Location />
AuthFormProvider ldap
AuthName "Windows user authentication"
AuthLDAPBindDN CN=<cn>,OU=<ou>,DC=<dc>,DC=<dc>,DC=<dc>
AuthLDAPBindPassword <password>
AuthLDAPURL ldap://<ip>/dc=<dc>,dc=<dc>,DC=<dc>?sAMAccountName?sub?(objectClass=*)
...
However moving exact the same information to an alias results in that dreaded 'user not found' error.
<AuthnProviderAlias ldap ldap-alias>
AuthLDAPBindDN CN=<cn>,OU=<ou>,DC=<dc>,DC=<dc>,DC=<dc>
AuthLDAPBindPassword <password>
AuthLDAPURL ldap://<ip>/dc=<dc>,dc=<dc>,DC=<dc>?sAMAccountName?sub?(objectClass=*)
</AuthnProviderAlias>
...
<Location />
AuthFormProvider ldap-alias
AuthName "Windows user authentication"
...
I must be overseeing something very simple but fail to spot it.
Thanks a lot for your help.
Btw, running Apache 2.4.7 on Ubuntu 14.03.