idassert also in case of SASL mechs that do not set authcId

This commit is contained in:
Pierangelo Masarati 2007-09-09 21:52:10 +00:00
parent f834cdb2f7
commit 331fef5e78

View File

@ -2249,7 +2249,8 @@ ldap_back_proxy_authz_ctrl(
* but if it is not set this test fails. We need a different
* means to detect if idassert is enabled */
if ( ( BER_BVISNULL( &si->si_bc.sb_authcId ) || BER_BVISEMPTY( &si->si_bc.sb_authcId ) )
&& ( BER_BVISNULL( &si->si_bc.sb_binddn ) || BER_BVISEMPTY( &si->si_bc.sb_binddn ) ) )
&& ( BER_BVISNULL( &si->si_bc.sb_binddn ) || BER_BVISEMPTY( &si->si_bc.sb_binddn ) )
&& BER_BVISNULL( &si->si_bc.sb_saslmech ) )
{
goto done;
}