summaryrefslogtreecommitdiff
path: root/source4
diff options
context:
space:
mode:
Diffstat (limited to 'source4')
-rw-r--r--source4/libcli/ldap/ldap_client.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/source4/libcli/ldap/ldap_client.c b/source4/libcli/ldap/ldap_client.c
index 32bd6656d6..a8463f7872 100644
--- a/source4/libcli/ldap/ldap_client.c
+++ b/source4/libcli/ldap/ldap_client.c
@@ -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;