mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-03-25 14:40:37 +08:00
Apply acl group extended parse fix.
This commit is contained in:
parent
0e12e9ea67
commit
9a7ba30dac
1
CHANGES
1
CHANGES
@ -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';
|
||||
|
Loading…
x
Reference in New Issue
Block a user