From f0c1c513346c8c97b057124bbc4dac6c8d500eed Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Mon, 20 Jun 2005 08:49:22 +0000 Subject: r7783: 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) (This used to be commit f267e9d5b7b40c9c8bf1aa67a00f42e2d3bb3bc5) --- source4/dsdb/samdb/samdb.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/source4/dsdb/samdb/samdb.c b/source4/dsdb/samdb/samdb.c index 0cbb141d40..5f9764ce42 100644 --- a/source4/dsdb/samdb/samdb.c +++ b/source4/dsdb/samdb/samdb.c @@ -922,7 +922,6 @@ int samdb_add(struct ldb_context *sam_ldb, TALLOC_CTX *mem_ctx, struct ldb_messa 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_delete(struct ldb_context *sam_ldb, TALLOC_CTX *mem_ctx, const char *d */ 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); } -- cgit