]> git.sur5r.net Git - openldap/commitdiff
referral is a legitimate result
authorPierangelo Masarati <ando@OpenLDAP.org>
Mon, 22 Aug 2011 15:07:54 +0000 (09:07 -0600)
committerQuanah Gibson-Mount <quanah@openldap.org>
Thu, 6 Oct 2011 23:52:32 +0000 (16:52 -0700)
clients/tools/ldapsearch.c

index fb85a60726e354b8178be329a363c4ccb68ebc94..fe83db5a0ae12efca5bdb7c020172766a40f39dc 100644 (file)
@@ -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 );
        }