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