test1560: allow to build and run without LDAP support

Closes #22312
This commit is contained in:
Daniel Stenberg 2026-07-13 18:54:20 +02:00
parent 30d7440295
commit eecc273f6d
No known key found for this signature in database
GPG key ID: 5CC908FDB71E12C2
2 changed files with 6 additions and 1 deletions

View file

@ -20,7 +20,6 @@ http
pop3
smtp
imap
ldap
dict
ftp
</features>

View file

@ -891,9 +891,11 @@ static const struct urltestcase get_url_list[] = {
{"pop3.example.com/path/html",
"pop3://pop3.example.com/path/html",
CURLU_GUESS_SCHEME, 0, CURLUE_OK},
#ifndef CURL_DISABLE_LDAP
{"ldap.example.com/path/html",
"ldap://ldap.example.com/path/html",
CURLU_GUESS_SCHEME, 0, CURLUE_OK},
#endif
{"imap.example.com/path/html",
"imap://imap.example.com/path/html",
CURLU_GUESS_SCHEME, 0, CURLUE_OK},
@ -912,9 +914,11 @@ static const struct urltestcase get_url_list[] = {
{"pop3.com/path/html",
"pop3://pop3.com/path/html",
CURLU_GUESS_SCHEME, 0, CURLUE_OK},
#ifndef CURL_DISABLE_LDAP
{"ldap.com/path/html",
"ldap://ldap.com/path/html",
CURLU_GUESS_SCHEME, 0, CURLUE_OK},
#endif
{"imap.com/path/html",
"imap://imap.com/path/html",
CURLU_GUESS_SCHEME, 0, CURLUE_OK},
@ -930,9 +934,11 @@ static const struct urltestcase get_url_list[] = {
{"pop3/path/html",
"http://pop3/path/html",
CURLU_GUESS_SCHEME, 0, CURLUE_OK},
#ifndef CURL_DISABLE_LDAP
{"ldap/path/html",
"http://ldap/path/html",
CURLU_GUESS_SCHEME, 0, CURLUE_OK},
#endif
{"imap/path/html",
"http://imap/path/html",
CURLU_GUESS_SCHEME, 0, CURLUE_OK},