mirror of
https://github.com/inverse-inc/sogo.git
synced 2026-06-08 20:09:44 +00:00
(fix) we update the baseDN placeholders of all LDAP sources upon login
This commit is contained in:
@@ -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];
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user