mirror of
https://gitlab.easter-eggs.com/ee/ldapsaisie.git
synced 2024-11-18 08:19:05 +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) {
|
public static function getSubDnLdapServer($login=false) {
|
||||||
$login=(bool)$login;
|
$login=(bool)$login;
|
||||||
if (self :: cacheSudDn() && isset(self :: $_subDnLdapServer[self :: $ldapServerId][$login])) {
|
if (self :: cacheSudDn() && isset(self :: $_subDnLdapServer[self :: $ldapServerId][$login])) {
|
||||||
return self :: $_subDnLdapServer[self :: $ldapServerId];
|
return self :: $_subDnLdapServer[self :: $ldapServerId][$login];
|
||||||
}
|
}
|
||||||
if (!self::subDnIsEnabled()) {
|
if (!self::subDnIsEnabled()) {
|
||||||
return;
|
return;
|
||||||
|
@ -1638,7 +1638,6 @@ class LSsession {
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
self :: $LSaccess = $LSaccess;
|
self :: $LSaccess = $LSaccess;
|
||||||
$_SESSION['LSsession']['LSaccess'] = $LSaccess;
|
$_SESSION['LSsession']['LSaccess'] = $LSaccess;
|
||||||
}
|
}
|
||||||
|
@ -2018,9 +2017,9 @@ class LSsession {
|
||||||
if (!$subDn) {
|
if (!$subDn) {
|
||||||
$subDn = self :: $topDn;
|
$subDn = self :: $topDn;
|
||||||
}
|
}
|
||||||
if (self :: getSubDnLdapServer()) {
|
if (self :: getSubDnLdapServer(false)) {
|
||||||
if (isset(self :: $_subDnLdapServer[self :: $ldapServerId][$subDn])) {
|
if (isset(self :: $_subDnLdapServer[self :: $ldapServerId][false][$subDn])) {
|
||||||
return self :: $_subDnLdapServer[self :: $ldapServerId][$subDn];
|
return self :: $_subDnLdapServer[self :: $ldapServerId][false][$subDn];
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return '';
|
return '';
|
||||||
|
|
Loading…
Reference in a new issue