Author: jra
Date: 2004-09-21 22:16:36 +0000 (Tue, 21 Sep 2004)
New Revision: 2479

WebSVN: 
http://websvn.samba.org/websvn/changeset.php?rep=samba&path=/branches/SAMBA_3_0/source/passdb&rev=2479&nolog=1

Log:
Stop attribute "modifyTimestamp" from being deleted.
Jeremy.

Modified:
   branches/SAMBA_3_0/source/passdb/pdb_ldap.c


Changeset:
Modified: branches/SAMBA_3_0/source/passdb/pdb_ldap.c
===================================================================
--- branches/SAMBA_3_0/source/passdb/pdb_ldap.c 2004-09-21 22:16:36 UTC (rev 2478)
+++ branches/SAMBA_3_0/source/passdb/pdb_ldap.c 2004-09-21 22:16:36 UTC (rev 2479)
@@ -320,6 +320,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));

Reply via email to