mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-12-26 01:29:59 -05:00
Fix bug in group spec parsing, was failing to set attributeType if a
nondefault objectclass was given
This commit is contained in:
parent
9ac0eab126
commit
0b15c19cdf
1 changed files with 7 additions and 7 deletions
|
|
@ -338,7 +338,7 @@ parse_acl(
|
|||
/* format of string is "group/objectClassValue/groupAttrName" */
|
||||
if ((value = strchr(left, '/')) != NULL) {
|
||||
*value++ = '\0';
|
||||
if (value && *value
|
||||
if (*value
|
||||
&& (name = strchr(value, '/')) != NULL)
|
||||
{
|
||||
*name++ = '\0';
|
||||
|
|
@ -353,14 +353,14 @@ parse_acl(
|
|||
*--value = '/';
|
||||
} else {
|
||||
b->a_group_oc = ch_strdup("groupOfNames");
|
||||
}
|
||||
|
||||
if (name && *name) {
|
||||
b->a_group_at = ch_strdup(name);
|
||||
*--name = '/';
|
||||
if (name && *name) {
|
||||
b->a_group_at = ch_strdup(name);
|
||||
*--name = '/';
|
||||
|
||||
} else {
|
||||
b->a_group_at = ch_strdup("member");
|
||||
}
|
||||
} else {
|
||||
b->a_group_at = ch_strdup("member");
|
||||
}
|
||||
continue;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue