From 19f2fdb5874e52464cd525ff8b021ad8cc248163 Mon Sep 17 00:00:00 2001 From: cajus Date: Fri, 11 Dec 2009 14:07:03 +0000 Subject: [PATCH] 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 --- gosa-core/include/functions.inc | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) 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(); -- 2.30.2