r7810: don't give errors when the ldap server sends us reference replies
authorAndrew Tridgell <tridge@samba.org>
Tue, 21 Jun 2005 13:42:47 +0000 (13:42 +0000)
committerGerald (Jerry) Carter <jerry@samba.org>
Wed, 10 Oct 2007 18:18:38 +0000 (13:18 -0500)
(This used to be commit f2b2d2626f5eb4fbd7d7c5cdcde486d00fc19447)

source4/libcli/ldap/ldap_client.c

index 32bd6656d6edbb815b2464a682e311f70d585875..a8463f78724202289c0c71580ee4190d2370b977 100644 (file)
@@ -130,7 +130,8 @@ static void ldap_match_message(struct ldap_connection *conn, struct ldap_message
        req->replies[req->num_replies] = talloc_steal(req->replies, msg);
        req->num_replies++;
 
-       if (msg->type != LDAP_TAG_SearchResultEntry) {
+       if (msg->type != LDAP_TAG_SearchResultEntry &&
+           msg->type != LDAP_TAG_SearchResultReference) {
                /* currently only search results expect multiple
                   replies */
                req->state = LDAP_REQUEST_DONE;