summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2004-09-21 22:16:36 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 10:52:45 -0500
commit557f2cf461792913f1e9d6e8228bb20f392c62d8 (patch)
tree98d2b3e13a35e053bf8baaf08c1b1ee46d8d9823
parentf81761600ccd4a441ab011bc281cf3737ab9b301 (diff)
downloadsamba-557f2cf461792913f1e9d6e8228bb20f392c62d8.tar.gz
samba-557f2cf461792913f1e9d6e8228bb20f392c62d8.tar.xz
samba-557f2cf461792913f1e9d6e8228bb20f392c62d8.zip
r2479: Stop attribute "modifyTimestamp" from being deleted.
Jeremy. (This used to be commit 0351bf8b03306246efc17e532ebe78ecdafb645d)
-rw-r--r--source3/passdb/pdb_ldap.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/source3/passdb/pdb_ldap.c b/source3/passdb/pdb_ldap.c
index 35dbf4f0dc9..454aa8d8702 100644
--- a/source3/passdb/pdb_ldap.c
+++ b/source3/passdb/pdb_ldap.c
@@ -320,6 +320,11 @@ static NTSTATUS ldapsam_delete_entry(struct ldapsam_privates *ldap_state,
really exist. */
for (attrib = attrs; *attrib != NULL; attrib++) {
+ /* Don't delete LDAP_ATTR_MOD_TIMESTAMP attribute. */
+ if (strequal(*attrib, get_userattr_key2string(ldap_state->schema_ver,
+ LDAP_ATTR_MOD_TIMESTAMP))) {
+ continue;
+ }
if (strequal(*attrib, name)) {
DEBUG(10, ("ldapsam_delete_entry: deleting "
"attribute %s\n", name));