From: Jeremy Allison Date: Tue, 21 Sep 2004 22:16:36 +0000 (+0000) Subject: r2479: Stop attribute "modifyTimestamp" from being deleted. X-Git-Tag: samba-misc-tags/initial-v3-0-unstable~5775 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=0351bf8b03306246efc17e532ebe78ecdafb645d;p=thirdparty%2Fsamba.git r2479: Stop attribute "modifyTimestamp" from being deleted. Jeremy. --- diff --git a/source/passdb/pdb_ldap.c b/source/passdb/pdb_ldap.c index 35dbf4f0dc9..454aa8d8702 100644 --- a/source/passdb/pdb_ldap.c +++ b/source/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));