]> git.sur5r.net Git - openldap/commitdiff
Apply fix to "group/group_objectclass/member_atribute" parsing
authorKurt Zeilenga <kurt@openldap.org>
Sat, 10 Apr 1999 01:34:55 +0000 (01:34 +0000)
committerKurt Zeilenga <kurt@openldap.org>
Sat, 10 Apr 1999 01:34:55 +0000 (01:34 +0000)
suggested by Gerrit Thomson

servers/slapd/aclparse.c

index b7b0d9507ab8b5684e577cb2e860fbf4995a504f..00f920113196daef8dbb8fa58eda85700a1ea0f3 100644 (file)
@@ -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';