From: Pierangelo Masarati Date: Mon, 22 Aug 2011 15:07:54 +0000 (-0600) Subject: referral is a legitimate result X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=71eda709c688c674ea957951503a91cee5396d47;p=openldap referral is a legitimate result --- diff --git a/clients/tools/ldapsearch.c b/clients/tools/ldapsearch.c index 64568a70d2..ff50e8fecc 100644 --- a/clients/tools/ldapsearch.c +++ b/clients/tools/ldapsearch.c @@ -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 ); }