From 93fa38cd0897349109eb14695fcc0b4fc3da4f45 Mon Sep 17 00:00:00 2001 From: Kurt Zeilenga Date: Sat, 10 Apr 1999 01:34:55 +0000 Subject: [PATCH] Apply fix to "group/group_objectclass/member_atribute" parsing suggested by Gerrit Thomson --- servers/slapd/aclparse.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/servers/slapd/aclparse.c b/servers/slapd/aclparse.c index b7b0d9507a..00f9201131 100644 --- a/servers/slapd/aclparse.c +++ b/servers/slapd/aclparse.c @@ -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'; -- 2.39.5