From df19d01826cfe1c91e6b94f2c5ff53a1be9416f1 Mon Sep 17 00:00:00 2001 From: Pierangelo Masarati Date: Mon, 22 Aug 2011 09:07:54 -0600 Subject: [PATCH] referral is a legitimate result --- clients/tools/ldapsearch.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) 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 ); } -- 2.39.5