mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-12-28 02:29:34 -05:00
syncrepl searchbase must be within the database naming context (ITS#5073)
This commit is contained in:
parent
97d2c51980
commit
caf89557ab
1 changed files with 8 additions and 0 deletions
|
|
@ -3351,6 +3351,14 @@ parse_syncrepl_line(
|
|||
Debug( LDAP_DEBUG_ANY, "%s: %s.\n", c->log, c->cr_msg, 0 );
|
||||
return -1;
|
||||
}
|
||||
if ( select_backend( &si->si_base, 0 ) != c->be ) {
|
||||
ber_memfree( si->si_base.bv_val );
|
||||
snprintf( c->cr_msg, sizeof( c->cr_msg ),
|
||||
"Base DN \"%s\" is not within the database naming context",
|
||||
val );
|
||||
Debug( LDAP_DEBUG_ANY, "%s: %s.\n", c->log, c->cr_msg, 0 );
|
||||
return -1;
|
||||
}
|
||||
gots |= GOT_BASE;
|
||||
} else if ( !strncasecmp( c->argv[ i ], LOGBASESTR "=",
|
||||
STRLENOF( LOGBASESTR "=" ) ) )
|
||||
|
|
|
|||
Loading…
Reference in a new issue