Apply acl group extended parse fix.

This commit is contained in:
Kurt Zeilenga 1999-05-25 02:41:48 +00:00
parent 0e12e9ea67
commit 9a7ba30dac
2 changed files with 3 additions and 2 deletions
CHANGES
servers/slapd

@ -6,6 +6,7 @@ Changes included in OpenLDAP 1.2 Release Engineering
Fixed ldbm Berkeley DB 2.4 mp_pool init problem
Fixed slapd modrdn
Fixed slapd command line usage and log level option
Fixed slapd acl group extended format parsing (ITS#123)
Fixed slurpd ldap_pvt_thread_create argument typo
Added modrdn test.
Build environment

@ -204,14 +204,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';