mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-12-27 18:19:52 -05:00
Fix acl parse bug
This commit is contained in:
parent
933908f72f
commit
d5b1892ccc
1 changed files with 8 additions and 5 deletions
|
|
@ -184,7 +184,7 @@ parse_acl(
|
|||
|
||||
/* get <who> */
|
||||
for ( ; i < argc; i++ ) {
|
||||
char* pat;
|
||||
char *pat;
|
||||
split( argv[i], '=', &left, &right );
|
||||
|
||||
if ( strcasecmp( argv[i], "*" ) == 0 ) {
|
||||
|
|
@ -196,6 +196,8 @@ parse_acl(
|
|||
} else if ( strcasecmp( left, "dn" ) == 0 ) {
|
||||
regtest(fname, lineno, right);
|
||||
pat = ch_strdup( right );
|
||||
} else {
|
||||
pat = NULL;
|
||||
}
|
||||
|
||||
if( pat != NULL ) {
|
||||
|
|
@ -430,10 +432,11 @@ acl_usage( void )
|
|||
"<what> ::= * | [dn=<regex>] [filter=<ldapfilter>] [attrs=<attrlist>]\n"
|
||||
"<attrlist> ::= <attr> | <attr> , <attrlist>\n"
|
||||
"<attr> ::= <attrname> | entry | children\n"
|
||||
"<who> ::= * | anonymous | self | dn=<regex>\n"
|
||||
"\t| dnattr=<attrname> | group[/<objectclass>[/<attrname>]]=<regex>\n"
|
||||
"\t| peername=<regex> | sockname=<regex>\n"
|
||||
"\t| domain=<regex> | sockurl=<regex>\n"
|
||||
"<who> ::= [ * | anonymous | self | dn=<regex> ]\n"
|
||||
"\t[dnattr=<attrname>]\t"
|
||||
"\t[group[/<objectclass>[/<attrname>]]=<regex>]\n"
|
||||
"\t[peername=<regex>] [sockname=<regex>]\n"
|
||||
"\t[domain=<regex>] [sockurl=<regex>]\n"
|
||||
"<access> ::= [self]{none|auth|compare|search|read|write}\n"
|
||||
);
|
||||
exit( 1 );
|
||||
|
|
|
|||
Loading…
Reference in a new issue