svn commit: samba r2478 - in trunk/source/passdb: .
jra at samba.org
jra at samba.org
Tue Sep 21 22:16:37 GMT 2004
Author: jra
Date: 2004-09-21 22:16:36 +0000 (Tue, 21 Sep 2004)
New Revision: 2478
WebSVN: http://websvn.samba.org/websvn/changeset.php?rep=samba&path=/trunk/source/passdb&rev=2478&nolog=1
Log:
Stop attribute "modifyTimestamp" from being deleted.
Jeremy.
Modified:
trunk/source/passdb/pdb_ldap.c
Changeset:
Modified: trunk/source/passdb/pdb_ldap.c
===================================================================
--- trunk/source/passdb/pdb_ldap.c 2004-09-21 13:46:12 UTC (rev 2477)
+++ trunk/source/passdb/pdb_ldap.c 2004-09-21 22:16:36 UTC (rev 2478)
@@ -349,6 +349,11 @@
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));
More information about the samba-cvs
mailing list