mirror of
https://gitlab.easter-eggs.com/ee/ldapsaisie.git
synced 2024-12-22 16:33:48 +01:00
LSattr_ldap_password : Added wildcardPassword and encodedWildcardPassword options
This commit is contained in:
parent
8585976768
commit
970e400820
1 changed files with 22 additions and 0 deletions
|
@ -55,6 +55,28 @@ class LSattr_ldap_password extends LSattr_ldap {
|
|||
|
||||
$data[]=$this -> encodePassword($this -> clearPassword);
|
||||
|
||||
// Wildcard Password
|
||||
if (isset($this -> config['ldap_options']['wildcardPassword'])) {
|
||||
if(!is_array($this -> config['ldap_options']['wildcardPassword'])) {
|
||||
$data[]=$this -> encodePassword($this -> config['ldap_options']['wildcardPassword']);
|
||||
}
|
||||
else {
|
||||
foreach($this -> config['ldap_options']['wildcardPassword'] as $pwd) {
|
||||
$data[]=$this -> encodePassword($pwd);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// Wildcard Password already encoded
|
||||
if (isset($this -> config['ldap_options']['encodedWildcardPassword'])) {
|
||||
if(!is_array($this -> config['ldap_options']['encodedWildcardPassword'])) {
|
||||
$data[]=$this -> config['ldap_options']['encodedWildcardPassword'];
|
||||
}
|
||||
else {
|
||||
$data=array_merge($data,$this -> config['ldap_options']['encodedWildcardPassword']);
|
||||
}
|
||||
}
|
||||
|
||||
return $data;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue