mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-12-25 00:59:45 -05:00
don't add the trailing '??base' to URIs
This commit is contained in:
parent
c67ce5f2e3
commit
74896472de
1 changed files with 6 additions and 1 deletions
|
|
@ -172,7 +172,8 @@ meta_back_db_config(
|
|||
|
||||
ludp->lud_dn[ 0 ] = '\0';
|
||||
|
||||
for ( tmpludp = ludp->lud_next; tmpludp; tmpludp = tmpludp->lud_next ) {
|
||||
/* check all, to apply the scope check on the first one */
|
||||
for ( tmpludp = ludp; tmpludp; tmpludp = tmpludp->lud_next ) {
|
||||
if ( tmpludp->lud_dn != NULL && tmpludp->lud_dn[ 0 ] != '\0' ) {
|
||||
fprintf( stderr, "%s: line %d: "
|
||||
"multiple URIs must have "
|
||||
|
|
@ -181,6 +182,10 @@ meta_back_db_config(
|
|||
return( 1 );
|
||||
|
||||
}
|
||||
|
||||
if ( tmpludp->lud_scope == LDAP_SCOPE_BASE ) {
|
||||
tmpludp->lud_scope = LDAP_SCOPE_DEFAULT;
|
||||
}
|
||||
}
|
||||
|
||||
li->targets[ i ]->mt_uri = ldap_url_list2urls( ludp );
|
||||
|
|
|
|||
Loading…
Reference in a new issue