1CURLOPT_LOGIN_OPTIONS(3)   curl_easy_setopt options   CURLOPT_LOGIN_OPTIONS(3)
2
3
4

NAME

6       CURLOPT_LOGIN_OPTIONS - login options
7

SYNOPSIS

9       #include <curl/curl.h>
10
11       CURLcode curl_easy_setopt(CURL *handle, CURLOPT_LOGIN_OPTIONS, char *options);
12

DESCRIPTION

14       Pass a char * as parameter, which should be pointing to the null-termi‐
15       nated options string to use for the transfer.
16
17       For more information  about  the  login  options  please  see  RFC2384,
18       RFC5092 and IETF draft draft-earhart-url-smtp-00.txt
19
20       CURLOPT_LOGIN_OPTIONS(3) can be used to set protocol specific login op‐
21       tions, such as the preferred authentication mechanism  via  "AUTH=NTLM"
22       or  "AUTH=*",  and should be used in conjunction with the CURLOPT_USER‐
23       NAME(3) option.
24
25       The application does not have to keep the string around  after  setting
26       this option.
27

DEFAULT

29       NULL
30

PROTOCOLS

32       Only IMAP, LDAP, POP3 and SMTP support login options.
33

EXAMPLE

35       CURL *curl = curl_easy_init();
36       if(curl) {
37         curl_easy_setopt(curl, CURLOPT_URL, "smtp://example.com/");
38         curl_easy_setopt(curl, CURLOPT_LOGIN_OPTIONS, "AUTH=*");
39         ret = curl_easy_perform(curl);
40         curl_easy_cleanup(curl);
41       }
42

AVAILABILITY

44       Added in 7.34.0. Support for OpenLDAP added in 7.82.0.
45

RETURN VALUE

47       Returns  CURLE_OK  if  the option is supported, CURLE_UNKNOWN_OPTION if
48       not, or CURLE_OUT_OF_MEMORY if there was insufficient heap space.
49

SEE ALSO

51       CURLOPT_USERNAME(3), CURLOPT_PASSWORD(3),
52
53
54
55libcurl 7.82.0                 January 10, 2022       CURLOPT_LOGIN_OPTIONS(3)
Impressum