mirror of
https://github.com/curl/curl.git
synced 2026-08-25 14:53:34 +03:00
openldap: implement STARTTLS
As this introduces use of CURLOPT_USE_SSL option for LDAP, also check this option in ldap.c as it is not supported by this backend. Closes #8065
This commit is contained in:
parent
a6e2643433
commit
a40160aee8
5 changed files with 83 additions and 10 deletions
|
|
@ -464,6 +464,11 @@ static CURLcode ldap_do(struct Curl_easy *data, bool *done)
|
|||
#endif
|
||||
#endif /* CURL_LDAP_USE_SSL */
|
||||
}
|
||||
else if(data->set.use_ssl > CURLUSESSL_TRY) {
|
||||
failf(data, "LDAP local: explicit TLS not supported");
|
||||
result = CURLE_NOT_BUILT_IN;
|
||||
goto quit;
|
||||
}
|
||||
else {
|
||||
server = ldap_init(host, (int)conn->port);
|
||||
if(!server) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue