Pārlūkot izejas kodu

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
Rich Megginson 15 gadi atpakaļ
vecāks
revīzija
8db7b8aa30
1 mainītis faili ar 2 papildinājumiem un 1 dzēšanām
  1. 2 1
      ldap/servers/plugins/acl/acleffectiverights.c

+ 2 - 1
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 );