(fix) we update the baseDN placeholders of all LDAP sources upon login

This commit is contained in:
Ludovic Marcotte
2019-03-15 13:35:12 -04:00
parent 47456c9ebd
commit 008e901ad6
2 changed files with 20 additions and 11 deletions
+4 -1
View File
@@ -683,7 +683,9 @@ static Class NSNullK;
// We MUST, for all LDAP sources, update the bindDN and bindPassword
// to the user's value if bindAsCurrentUser is set to true in the
// LDAP source configuration
// LDAP source configuration.
//
// We also update the baseDN of all sources.
if (checkOK)
{
NSObject <SOGoDNSource> *currentSource;
@@ -697,6 +699,7 @@ static Class NSNullK;
{
[currentSource setBindDN: [currentSource lookupDNByLogin: _login]];
[currentSource setBindPassword: _pwd];
[currentSource updateBaseDNFromLogin: _login];
}
}