I have a working apache 2.4 config for ldap with svn
<IfModule mod_ssl.c>
<VirtualHost _default_:443>
...
<Location /ldapsvn>
DAV svn
SVNParentPath /var/ldapsvn
SVNAdvertiseV2Protocol Off
SVNListParentPath Off
SVNAutoversioning On
SVNReposName "repo name"
AuthType Basic
AuthName "My auth"
AuthBasicProvider ldap
AuthLDAPURL "ldap://ldapserver:port/DC=abc-de,DC=si?userPrincipalName?sub?(objectClass=*)"
AuthLDAPBindDN "CN=ldapp,OU=System;OU=Users;OU=XYZ;DC=xyz1;DC=abc-de;DC=si"
AuthLDAPBindPassword "[[hunter2]]"
Require valid-user
</location>
but if I include the ldap settings as an alias, then the authentication stops working
<AuthnProviderAlias ldap ldapAlias1>
AuthLDAPURL "ldap://ldapserver:port/DC=abc-de,DC=si?userPrincipalName?sub?(objectClass=*)"
AuthLDAPBindDN "CN=ldapp,OU=System;OU=Users;OU=XYZ;DC=xyz1;DC=abc-de;DC=si"
AuthLDAPBindPassword "[[hunter2]]"
</AuthnProviderAlias>
<IfModule mod_ssl.c>
<VirtualHost _default_:443>
...
<Location /ldapsvn>
DAV svn
SVNParentPath /var/ldapsvn
SVNAdvertiseV2Protocol Off
SVNListParentPath Off
SVNAutoversioning On
SVNReposName "repo name"
AuthType Basic
AuthName "My auth"
AuthBasicProvider ldapAlias1
Require valid-user
</location>
I will eventually have to add a second ldap server, but I tried with a single one to test the config.
Any help would be appreciated.