diff --git a/src/includes/class/class.LSldap.php b/src/includes/class/class.LSldap.php index ffaed5f7..cd14125b 100644 --- a/src/includes/class/class.LSldap.php +++ b/src/includes/class/class.LSldap.php @@ -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;