summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRich Megginson <rmeggins@redhat.com>2010-08-26 11:13:48 -0600
committerRich Megginson <rmeggins@redhat.com>2010-10-18 10:43:16 -0600
commit71a8c8c137ed2c5a374864390da7ca8e08cd7769 (patch)
treec74b6b8290ef7fc93a48ae03554be8395ee7f177
parent577d0067856879a2c38be0e9324108ce45b6d686 (diff)
downloadds-71a8c8c137ed2c5a374864390da7ca8e08cd7769.tar.gz
ds-71a8c8c137ed2c5a374864390da7ca8e08cd7769.tar.xz
ds-71a8c8c137ed2c5a374864390da7ca8e08cd7769.zip
ger should support both "dn" and "distinguishedName"
the name "dn" is being deprecated - the standard attribute name is "distinguishedName" - ger should support both of these (cherry picked from commit 8db7b8aa30e9cca9ab3bea380de2e81c85bb05fb) Branch: 389-ds-base-1.2.6
-rw-r--r--ldap/servers/plugins/acl/acleffectiverights.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/ldap/servers/plugins/acl/acleffectiverights.c b/ldap/servers/plugins/acl/acleffectiverights.c
index 013c0884..5edce85b 100644
--- a/ldap/servers/plugins/acl/acleffectiverights.c
+++ b/ldap/servers/plugins/acl/acleffectiverights.c
@@ -702,7 +702,8 @@ _ger_get_attrs_rights (
{
if (charray_inlist(allattrs, attrs[i]) ||
charray_inlist(opattrs, attrs[i]) ||
- (0 == strcasecmp(attrs[i], "dn")))
+ (0 == strcasecmp(attrs[i], "dn")) ||
+ (0 == strcasecmp(attrs[i], "distinguishedName")))
{
_ger_get_attr_rights ( gerpb, e, subjectndn, attrs[i],
gerstr, gerstrsize, gerstrcap, isfirstattr, errbuf );