summaryrefslogtreecommitdiff
path: root/source4
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2005-06-20 08:49:22 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 13:18:36 -0500
commitf0c1c513346c8c97b057124bbc4dac6c8d500eed (patch)
tree4635d9ddc2ed61ba722983c51bc9e2e3f3abf83e /source4
parent3dd67b97468e86a88bc151a8b4f206c1722a8d8b (diff)
downloadsamba-f0c1c513346c8c97b057124bbc4dac6c8d500eed.tar.gz
samba-f0c1c513346c8c97b057124bbc4dac6c8d500eed.tar.bz2
samba-f0c1c513346c8c97b057124bbc4dac6c8d500eed.zip
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)
Diffstat (limited to 'source4')
-rw-r--r--source4/dsdb/samdb/samdb.c3
1 files changed, 0 insertions, 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);
}