summaryrefslogtreecommitdiffstats
path: root/ldap
diff options
context:
space:
mode:
authorRich Megginson <rmeggins@redhat.com>2010-08-26 11:13:48 -0600
committerRich Megginson <rmeggins@redhat.com>2010-08-26 11:14:20 -0600
commit8db7b8aa30e9cca9ab3bea380de2e81c85bb05fb (patch)
tree05990453b73726c14ad4b15477cee35fe4456b4f /ldap
parent50aff5657fb42d2b4b97e19eefcaa70d2464c694 (diff)
downloadds-8db7b8aa30e9cca9ab3bea380de2e81c85bb05fb.tar.gz
ds-8db7b8aa30e9cca9ab3bea380de2e81c85bb05fb.tar.xz
ds-8db7b8aa30e9cca9ab3bea380de2e81c85bb05fb.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
Diffstat (limited to 'ldap')
-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 );