From: cajus Date: Fri, 11 Dec 2009 14:07:03 +0000 (+0000) Subject: Yes. Really makes sense. Thanks for reporting. X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=19f2fdb5874e52464cd525ff8b021ad8cc248163;p=gosa.git Yes. Really makes sense. Thanks for reporting. Moved shadow attribute writing some lines down to be not overwritten. Closes #810 git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@14893 594d385d-05f5-0310-b6e9-bd551577e9d8 --- diff --git a/gosa-core/include/functions.inc b/gosa-core/include/functions.inc index 1234a6d44..d7921871b 100644 --- a/gosa-core/include/functions.inc +++ b/gosa-core/include/functions.inc @@ -2977,13 +2977,12 @@ function change_password ($dn, $password, $mode=0, $hash= "") // Not for groups if ($mode == 0){ + // Create SMB Password + $attrs= generate_smb_nt_hash($password); if ($shadow != 0){ $attrs['shadowLastChange']= $shadow; } - - // Create SMB Password - $attrs= generate_smb_nt_hash($password); } $attrs['userPassword']= array();