referral is a legitimate result

This commit is contained in:
Pierangelo Masarati 2011-08-22 09:07:54 -06:00
parent 72e8a15068
commit 71eda709c6

View File

@ -1557,7 +1557,12 @@ done:
ldap_get_option( ld, LDAP_OPT_RESULT_CODE, (void *)&rc );
}
if ( rc != 0 ) {
switch ( rc ) {
case LDAP_SUCCESS:
case LDAP_REFERRAL:
break;
default:
tool_perror( "ldap_result", rc, NULL, NULL, NULL, NULL );
return( rc );
}