/* get <who> */
for ( ; i < argc; i++ ) {
- char* pat;
+ char *pat;
split( argv[i], '=', &left, &right );
if ( strcasecmp( argv[i], "*" ) == 0 ) {
} else if ( strcasecmp( left, "dn" ) == 0 ) {
regtest(fname, lineno, right);
pat = ch_strdup( right );
+ } else {
+ pat = NULL;
}
if( pat != NULL ) {
"<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 );