mirror of
https://git.openldap.org/openldap/openldap.git
synced 2024-12-21 03:10:25 +08:00
check return code (ITS#6643)
This commit is contained in:
parent
79d4e4cf6a
commit
00efc1c507
@ -191,8 +191,13 @@ meta_search_dobind_init(
|
||||
( mt->mt_idassert_flags & LDAP_BACK_AUTH_OVERRIDE ) ) )
|
||||
{
|
||||
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;
|
||||
default:
|
||||
goto other;
|
||||
}
|
||||
|
||||
/* NOTE: we copy things here, even if bind didn't succeed yet,
|
||||
|
Loading…
Reference in New Issue
Block a user