]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
ldap: switch of chasing referrals
authorStefan Eissing <stefan@eissing.org>
Sat, 23 May 2026 12:40:55 +0000 (14:40 +0200)
committerDaniel Stenberg <daniel@haxx.se>
Mon, 25 May 2026 15:02:43 +0000 (17:02 +0200)
It is switched off in the OpenLDAP backend, so we should do the
same here.

Follow-up to cdc1da912066535680f02eb31

Closes #21732

lib/ldap.c

index ed74e9a19afdc23eb759d00246f343a3e4084a79..d8ec859126c5daaa5d04bdb52d0374fc06470b10 100644 (file)
@@ -315,6 +315,9 @@ static CURLcode ldap_do(struct Curl_easy *data, bool *done)
 #endif
   ldap_set_option(server, LDAP_OPT_PROTOCOL_VERSION, &ldap_proto);
 
+  /* Do not chase referrals. */
+  ldap_set_option(server, LDAP_OPT_REFERRALS, LDAP_OPT_OFF);
+
   if(ldap_ssl) {
 #ifdef HAVE_LDAP_SSL
 #ifdef USE_WIN32_LDAP