git.samba.org
/
gd
/
samba-autobuild
/
.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3dd67b9
)
r7783: the whenChanged attribute is now handled by the timestamps module, and
author
Andrew Tridgell
<tridge@samba.org>
Mon, 20 Jun 2005 08:49:22 +0000
(08:49 +0000)
committer
Gerald (Jerry) Carter
<jerry@samba.org>
Wed, 10 Oct 2007 18:18:36 +0000
(13:18 -0500)
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
patch
|
blob
|
history
diff --git
a/source4/dsdb/samdb/samdb.c
b/source4/dsdb/samdb/samdb.c
index 0cbb141d40cc8d9e344af04140daf3f41f2f311e..5f9764ce4260b16bbfbd8b750cf32fa13ec19b19 100644
(file)
--- 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);
}