mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-12-28 18:49:34 -05:00
deal with the case a pseudorootn is not defined
This commit is contained in:
parent
01bb0fa1ea
commit
ada7954667
1 changed files with 10 additions and 2 deletions
|
|
@ -351,8 +351,16 @@ retry:;
|
|||
*/
|
||||
|
||||
if ( ispriv ) {
|
||||
ber_dupbv( &msc->msc_cred, &mt->mt_pseudorootpw );
|
||||
ber_dupbv( &msc->msc_bound_ndn, &mt->mt_pseudorootdn );
|
||||
if ( !BER_BVISNULL( &mt->mt_pseudorootdn ) ) {
|
||||
ber_dupbv( &msc->msc_bound_ndn, &mt->mt_pseudorootdn );
|
||||
if ( !BER_BVISNULL( &mt->mt_pseudorootpw ) ) {
|
||||
ber_dupbv( &msc->msc_cred, &mt->mt_pseudorootpw );
|
||||
}
|
||||
|
||||
} else {
|
||||
ber_str2bv( "", 0, 1, &msc->msc_bound_ndn );
|
||||
}
|
||||
|
||||
LDAP_BACK_CONN_ISPRIV_SET( msc );
|
||||
|
||||
} else {
|
||||
|
|
|
|||
Loading…
Reference in a new issue