s4:setpassword script - Passwords set by this script are set by the administrator...
authorMatthias Dieter Wallnöfer <mwallnoefer@yahoo.de>
Tue, 8 Sep 2009 10:02:22 +0000 (12:02 +0200)
committerMatthias Dieter Wallnöfer <mwallnoefer@yahoo.de>
Tue, 8 Sep 2009 10:02:22 +0000 (12:02 +0200)
source4/scripting/python/samba/samdb.py

index b78c8f37d93913cedd9faca6357562d873e001a1..3f4252b36af3efd5030782e4feb03fcbfd61ac98 100644 (file)
@@ -166,7 +166,7 @@ pwdLastSet: 0
 
             glue.samdb_set_password(samdb=self, user_dn=str(user_dn),
                         dom_dn=self.domain_dn(), mod=mod, new_password=password,
 
             glue.samdb_set_password(samdb=self, user_dn=str(user_dn),
                         dom_dn=self.domain_dn(), mod=mod, new_password=password,
-                        user_change=True)
+                        user_change=False)
 
             self.modify(mod)
 
 
             self.modify(mod)