- LSattr_ldap_password : Ajout d'une possiblité de stocker le mot de passe

directement en clair.
This commit is contained in:
Benjamin Renard 2009-02-11 15:58:35 +00:00
parent 484fea1957
commit e9533f7105

View file

@ -120,7 +120,11 @@ class LSattr_ldap_password extends LSattr_ldap {
return '{CRYPT}'.crypt($this -> clearPassword,'$1$'.$this -> getSalt().'$'); return '{CRYPT}'.crypt($this -> clearPassword,'$1$'.$this -> getSalt().'$');
} }
break; break;
case 'clear':
return $this -> clearPassword;
break;
} }
LSerror :: addErrorCode('LSattr_ldap_password_01',$this -> config['ldap_options']['encode']);
return $this -> clearPassword; return $this -> clearPassword;
} }