mirror of
https://gitlab.easter-eggs.com/ee/ldapsaisie.git
synced 2024-12-18 22:43:47 +01:00
LSsession :: Fixed bug in subDn management
This commit is contained in:
parent
1ea9403083
commit
405ceba157
1 changed files with 4 additions and 5 deletions
|
@ -1000,7 +1000,7 @@ class LSsession {
|
|||
public static function getSubDnLdapServer($login=false) {
|
||||
$login=(bool)$login;
|
||||
if (self :: cacheSudDn() && isset(self :: $_subDnLdapServer[self :: $ldapServerId][$login])) {
|
||||
return self :: $_subDnLdapServer[self :: $ldapServerId];
|
||||
return self :: $_subDnLdapServer[self :: $ldapServerId][$login];
|
||||
}
|
||||
if (!self::subDnIsEnabled()) {
|
||||
return;
|
||||
|
@ -1638,7 +1638,6 @@ class LSsession {
|
|||
);
|
||||
}
|
||||
}
|
||||
|
||||
self :: $LSaccess = $LSaccess;
|
||||
$_SESSION['LSsession']['LSaccess'] = $LSaccess;
|
||||
}
|
||||
|
@ -2018,9 +2017,9 @@ class LSsession {
|
|||
if (!$subDn) {
|
||||
$subDn = self :: $topDn;
|
||||
}
|
||||
if (self :: getSubDnLdapServer()) {
|
||||
if (isset(self :: $_subDnLdapServer[self :: $ldapServerId][$subDn])) {
|
||||
return self :: $_subDnLdapServer[self :: $ldapServerId][$subDn];
|
||||
if (self :: getSubDnLdapServer(false)) {
|
||||
if (isset(self :: $_subDnLdapServer[self :: $ldapServerId][false][$subDn])) {
|
||||
return self :: $_subDnLdapServer[self :: $ldapServerId][false][$subDn];
|
||||
}
|
||||
}
|
||||
return '';
|
||||
|
|
Loading…
Reference in a new issue