summaryrefslogtreecommitdiffstats
path: root/source/lib/smbldap.c
diff options
context:
space:
mode:
authorGünther Deschner <gd@samba.org>2006-06-09 13:04:47 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 11:17:21 -0500
commite018ea3d1d70e68e6802843f88b3245dc09244c9 (patch)
treeffa58af9740c1f01fd9dcd0329927a135d93caa7 /source/lib/smbldap.c
parent322f1664df553d95fcdfc24f19bd7f34ce9b834b (diff)
downloadsamba-e018ea3d1d70e68e6802843f88b3245dc09244c9.tar.gz
samba-e018ea3d1d70e68e6802843f88b3245dc09244c9.tar.xz
samba-e018ea3d1d70e68e6802843f88b3245dc09244c9.zip
r16122: As we use 'inetOrgPerson' as structural objectclass for new accounts for
eDir, we already add 'sn' as required attribute on LDAP add operations. When we modify an entry, we need to request 'sn' as well in our attribute lists, so that we don't try to add it a second time. Guenther
Diffstat (limited to 'source/lib/smbldap.c')
-rw-r--r--source/lib/smbldap.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/source/lib/smbldap.c b/source/lib/smbldap.c
index dfa6782afef..5b18f4e3113 100644
--- a/source/lib/smbldap.c
+++ b/source/lib/smbldap.c
@@ -52,6 +52,7 @@ ATTRIB_MAP_ENTRY attrib_map_v22[] = {
{ LDAP_ATTR_LOGOFF_TIME, "logoffTime" },
{ LDAP_ATTR_KICKOFF_TIME, "kickoffTime" },
{ LDAP_ATTR_CN, "cn" },
+ { LDAP_ATTR_SN, "sn" },
{ LDAP_ATTR_DISPLAY_NAME, "displayName" },
{ LDAP_ATTR_HOME_PATH, "smbHome" },
{ LDAP_ATTR_HOME_DRIVE, "homeDrive" },
@@ -106,6 +107,7 @@ ATTRIB_MAP_ENTRY attrib_map_v30[] = {
{ LDAP_ATTR_LOGOFF_TIME, "sambaLogoffTime" },
{ LDAP_ATTR_KICKOFF_TIME, "sambaKickoffTime" },
{ LDAP_ATTR_CN, "cn" },
+ { LDAP_ATTR_SN, "sn" },
{ LDAP_ATTR_DISPLAY_NAME, "displayName" },
{ LDAP_ATTR_HOME_DRIVE, "sambaHomeDrive" },
{ LDAP_ATTR_HOME_PATH, "sambaHomePath" },