We were missing displayName and that was preventing us
authoridra <idra@0c0555d6-39d7-0310-84fc-f1cc0bd64818>
Mon, 11 Jun 2007 00:05:48 +0000 (00:05 +0000)
committeridra <idra@0c0555d6-39d7-0310-84fc-f1cc0bd64818>
Mon, 11 Jun 2007 00:05:48 +0000 (00:05 +0000)
from successfully deleting an entry when "account" is
the STRUCTURAL objectclass used for users and machines.
"account" is used each time the user entry is in /etc/passwd
and we have only the samba attributes in ldap, as well
as for rfc2307(bis) standard based directories.

git-svn-id: svn+ssh://svn.samba.org/data/svn/samba/branches/SAMBA_3_0@23411 0c0555d6-39d7-0310-84fc-f1cc0bd64818

source/lib/smbldap.c

index cffc938..f8cb8f4 100644 (file)
@@ -138,6 +138,7 @@ ATTRIB_MAP_ENTRY attrib_map_to_delete_v30[] = {
        { LDAP_ATTR_LOGON_TIME,         "sambaLogonTime"        },
        { LDAP_ATTR_LOGOFF_TIME,        "sambaLogoffTime"       },
        { LDAP_ATTR_KICKOFF_TIME,       "sambaKickoffTime"      },
+       { LDAP_ATTR_DISPLAY_NAME,       "displayName"           },
        { LDAP_ATTR_HOME_DRIVE,         "sambaHomeDrive"        },
        { LDAP_ATTR_HOME_PATH,          "sambaHomePath"         },
        { LDAP_ATTR_LOGON_SCRIPT,       "sambaLogonScript"      },