mirror of
https://gitlab.easter-eggs.com/ee/ldapsaisie.git
synced 2024-11-26 11:52:59 +01:00
Redefine globals on per LDAP server basic
Signed-off-by: Benjamin Renard <brenard@easter-eggs.com>
This commit is contained in:
parent
ba611b784a
commit
12014b5bf4
1 changed files with 14 additions and 0 deletions
|
@ -955,6 +955,7 @@ class LSsession {
|
||||||
self :: $ldapServerId = $id;
|
self :: $ldapServerId = $id;
|
||||||
self :: $ldapServer = $conf;
|
self :: $ldapServer = $conf;
|
||||||
self :: setLocale();
|
self :: setLocale();
|
||||||
|
self :: setGlobals();
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
|
@ -2318,6 +2319,19 @@ class LSsession {
|
||||||
$data=array('recoverPassword' => isset(self :: $ldapServer['recoverPassword']));
|
$data=array('recoverPassword' => isset(self :: $ldapServer['recoverPassword']));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Set globals from the ldap server
|
||||||
|
*
|
||||||
|
* @retval void
|
||||||
|
*/
|
||||||
|
public static function setGlobals() {
|
||||||
|
if ( isset(self :: $ldapServer['globals'])) {
|
||||||
|
foreach(self :: $ldapServer['globals'] as $key => $value) {
|
||||||
|
$GLOBALS[$key] = $value;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
?>
|
?>
|
||||||
|
|
Loading…
Reference in a new issue