mirror of
https://gitlab.easter-eggs.com/ee/ldapsaisie.git
synced 2024-12-18 14:33:49 +01:00
LSldap::update(): fix object creation with required userPassword attribute
This commit is contained in:
parent
1aa4dd8113
commit
c0d8f9f81a
1 changed files with 1 additions and 1 deletions
|
@ -475,7 +475,7 @@ class LSldap extends LSlog_staticLoggerClass {
|
|||
$error = false;
|
||||
|
||||
// Handle special case: user password change
|
||||
if ($changed_attrs && self :: attrExists($changed_attrs, 'userPassword')) {
|
||||
if ($changed_attrs && !$entry->isNew() && self :: attrExists($changed_attrs, 'userPassword')) {
|
||||
$changed_attrs = self :: updateUserPassword($object_type, $changed_attrs, $dn);
|
||||
if ($changed_attrs === false) {
|
||||
return false;
|
||||
|
|
Loading…
Reference in a new issue