mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-12-26 01:29:59 -05:00
Ensure exact DNs are normalized in slap_parseURI.
This commit is contained in:
parent
fc11d8312c
commit
369b1515db
1 changed files with 6 additions and 3 deletions
|
|
@ -136,9 +136,12 @@ is_dn_exact: bv.bv_len = uri->bv_len - (bv.bv_val - uri->bv_val);
|
|||
|
||||
is_dn: bv.bv_len = uri->bv_len - (bv.bv_val - uri->bv_val);
|
||||
|
||||
ber_dupbv_x( nbase, &bv, op->o_tmpmemctx );
|
||||
*scope = LDAP_X_SCOPE_EXACTREGEX;
|
||||
return LDAP_SUCCESS;
|
||||
rc = dnNormalize( 0, NULL, NULL, &bv, nbase, op->o_tmpmemctx );
|
||||
if( rc == LDAP_SUCCESS ) {
|
||||
*scope = LDAP_X_SCOPE_EXACTREGEX;
|
||||
}
|
||||
|
||||
return( rc );
|
||||
|
||||
/* explicitly set to regex: it will be regcomp'd/regexec'd */
|
||||
} else if ( !strncasecmp( uri->bv_val, "dn.regex:", sizeof("dn.regex:")-1 ) ) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue