mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-01-06 10:46:21 +08:00
ITS#6392 fix authid-rewrite parsing
This commit is contained in:
parent
572e16883c
commit
c6de7bf853
@ -2010,9 +2010,15 @@ sortval_reject:
|
||||
case CFG_REWRITE: {
|
||||
struct berval bv;
|
||||
char *line;
|
||||
int rc = 0;
|
||||
|
||||
if ( c->op == LDAP_MOD_ADD ) {
|
||||
c->argv++;
|
||||
c->argc--;
|
||||
}
|
||||
if(slap_sasl_rewrite_config(c->fname, c->lineno, c->argc, c->argv))
|
||||
return(1);
|
||||
rc = 1;
|
||||
if ( rc == 0 ) {
|
||||
|
||||
if ( c->argc > 1 ) {
|
||||
char *s;
|
||||
@ -2032,7 +2038,12 @@ sortval_reject:
|
||||
|
||||
ber_bvarray_add( &authz_rewrites, &bv );
|
||||
}
|
||||
break;
|
||||
if ( c->op == LDAP_MOD_ADD ) {
|
||||
c->argv--;
|
||||
c->argc++;
|
||||
}
|
||||
return rc;
|
||||
}
|
||||
#endif
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user