ldap: switch of chasing referrals

It is switched off in the OpenLDAP backend, so we should do the
same here.

Follow-up to cdc1da9120

Closes #21732
This commit is contained in:
Stefan Eissing 2026-05-23 14:40:55 +02:00 committed by Daniel Stenberg
parent 0b8dbbc63c
commit 230a986636
No known key found for this signature in database
GPG key ID: 5CC908FDB71E12C2

View 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