mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-12-28 18:49:34 -05:00
Apply fix to "group/group_objectclass/member_atribute" parsing
suggested by Gerrit Thomson
This commit is contained in:
parent
f34bd50e30
commit
93fa38cd08
1 changed files with 2 additions and 2 deletions
|
|
@ -203,14 +203,14 @@ parse_acl(
|
|||
b->a_dnattr = ch_strdup( right );
|
||||
|
||||
#ifdef SLAPD_ACLGROUPS
|
||||
} else if ( strcasecmp( left, "group" ) == 0 ) {
|
||||
} else if ( strncasecmp( left, "group", sizeof("group")-1 ) == 0 ) {
|
||||
char *name = NULL;
|
||||
char *value = NULL;
|
||||
regtest(fname, lineno, right);
|
||||
|
||||
/* format of string is "group/objectClassValue/groupAttrName"
|
||||
*/
|
||||
if ((value = strchr(right, '/')) != NULL) {
|
||||
if ((value = strchr(left, '/')) != NULL) {
|
||||
*value++ = '\0';
|
||||
if (value && *value && (name = strchr(value, '/')) != NULL)
|
||||
*name++ = '\0';
|
||||
|
|
|
|||
Loading…
Reference in a new issue