svn commit: samba r4538 - in branches/SAMBA_3_0/source/utils: .

jmcd at samba.org jmcd at samba.org
Wed Jan 5 16:03:09 GMT 2005


Author: jmcd
Date: 2005-01-05 16:02:56 +0000 (Wed, 05 Jan 2005)
New Revision: 4538

WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=samba&rev=4538

Log:
Fix bugzilla 2198, accounts which have password last set to 0 are getting
no passwords after vampire.  Set password last set field to now.


Modified:
   branches/SAMBA_3_0/source/utils/net_rpc_samsync.c


Changeset:
Modified: branches/SAMBA_3_0/source/utils/net_rpc_samsync.c
===================================================================
--- branches/SAMBA_3_0/source/utils/net_rpc_samsync.c	2005-01-05 16:02:30 UTC (rev 4537)
+++ branches/SAMBA_3_0/source/utils/net_rpc_samsync.c	2005-01-05 16:02:56 UTC (rev 4538)
@@ -445,6 +445,9 @@
 		stored_time = pdb_get_pass_last_set_time(account);
 		if (stored_time != unix_time)
 			pdb_set_pass_last_set_time(account, unix_time, PDB_CHANGED);
+	} else {
+		/* no last set time, make it now */
+		pdb_set_pass_last_set_time(account, time(NULL), PDB_CHANGED);
 	}
 
 #if 0



More information about the samba-cvs mailing list