svn commit: samba r7783 - in branches/SAMBA_4_0/source/dsdb/samdb: .

tridge at samba.org tridge at samba.org
Mon Jun 20 08:49:22 GMT 2005


Author: tridge
Date: 2005-06-20 08:49:22 +0000 (Mon, 20 Jun 2005)
New Revision: 7783

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

Log:
the whenChanged attribute is now handled by the timestamps module, and
should not be handled here as well. I had to remove it from here as it
was buggy anyway (it wasn't setting the modify flags, this making an
invalid ldb_modify() request)

Modified:
   branches/SAMBA_4_0/source/dsdb/samdb/samdb.c


Changeset:
Modified: branches/SAMBA_4_0/source/dsdb/samdb/samdb.c
===================================================================
--- branches/SAMBA_4_0/source/dsdb/samdb/samdb.c	2005-06-20 08:47:52 UTC (rev 7782)
+++ branches/SAMBA_4_0/source/dsdb/samdb/samdb.c	2005-06-20 08:49:22 UTC (rev 7783)
@@ -922,7 +922,6 @@
 
 	samdb_msg_add_string(sam_ldb, mem_ctx, msg, "objectGUID", guidstr);
 	samdb_msg_set_ldaptime(sam_ldb, mem_ctx, msg, "whenCreated", now);
-	samdb_msg_set_ldaptime(sam_ldb, mem_ctx, msg, "whenChanged", now);
 	return ldb_add(sam_ldb, msg);
 }
 
@@ -939,8 +938,6 @@
 */
 int samdb_modify(struct ldb_context *sam_ldb, TALLOC_CTX *mem_ctx, struct ldb_message *msg)
 {
-	time_t now = time(NULL);
-	samdb_msg_set_ldaptime(sam_ldb, mem_ctx, msg, "whenChanged", now);
 	return ldb_modify(sam_ldb, msg);
 }
 



More information about the samba-cvs mailing list