Fix caching of DN in LDAP source
parent
3950e9d4c3
commit
826537ed01
|
@ -549,10 +549,6 @@ static Class NSStringK;
|
||||||
|
|
||||||
if (userDN)
|
if (userDN)
|
||||||
{
|
{
|
||||||
// We cache the _login <-> userDN entry to speed up things
|
|
||||||
[[SOGoCache sharedCache] setDistinguishedName: userDN
|
|
||||||
forLogin: _login];
|
|
||||||
|
|
||||||
if (!passwordPolicy)
|
if (!passwordPolicy)
|
||||||
didBind = [bindConnection bindWithMethod: @"simple"
|
didBind = [bindConnection bindWithMethod: @"simple"
|
||||||
binddn: userDN
|
binddn: userDN
|
||||||
|
@ -564,6 +560,11 @@ static Class NSStringK;
|
||||||
perr: (void *)_perr
|
perr: (void *)_perr
|
||||||
expire: _expire
|
expire: _expire
|
||||||
grace: _grace];
|
grace: _grace];
|
||||||
|
|
||||||
|
if (didBind)
|
||||||
|
// We cache the _login <-> userDN entry to speed up things
|
||||||
|
[[SOGoCache sharedCache] setDistinguishedName: userDN
|
||||||
|
forLogin: _login];
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue