mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-12-23 16:19:35 -05:00
check return code (ITS#6643)
This commit is contained in:
parent
79d4e4cf6a
commit
00efc1c507
1 changed files with 6 additions and 1 deletions
|
|
@ -191,8 +191,13 @@ meta_search_dobind_init(
|
||||||
( mt->mt_idassert_flags & LDAP_BACK_AUTH_OVERRIDE ) ) )
|
( mt->mt_idassert_flags & LDAP_BACK_AUTH_OVERRIDE ) ) )
|
||||||
{
|
{
|
||||||
rc = meta_back_proxy_authz_cred( mc, candidate, op, rs, LDAP_BACK_DONTSEND, &binddn, &cred, &method );
|
rc = meta_back_proxy_authz_cred( mc, candidate, op, rs, LDAP_BACK_DONTSEND, &binddn, &cred, &method );
|
||||||
if ( rc != LDAP_SUCCESS ) {
|
switch ( rc ) {
|
||||||
|
case LDAP_SUCCESS:
|
||||||
|
break;
|
||||||
|
case LDAP_UNAVAILABLE:
|
||||||
goto down;
|
goto down;
|
||||||
|
default:
|
||||||
|
goto other;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* NOTE: we copy things here, even if bind didn't succeed yet,
|
/* NOTE: we copy things here, even if bind didn't succeed yet,
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue