Search code examples
curllibcurlkerberos-delegation

curl with Kerberos error: option --negotiate: the installed libcurl version doesn't support this


I would like to use curl with Kerberos

curl --negotiate '<SOME_ULR>'

or

curl --negotiate -u : '<SOME_ULR>'

But I got the error:

curl: option --negotiate: the installed libcurl version doesn't support this

My OS: OS X El Capitan

Curl version:

curl -V
curl 7.52.1 (x86_64-apple-darwin13.4.0) libcurl/7.52.1 OpenSSL/1.0.2l zlib/1.2.8
Protocols: dict file ftp ftps gopher http https imap imaps pop3 pop3s rtsp smb smbs smtp smtps telnet tftp
Features: IPv6 Largefile NTLM NTLM_WB SSL libz TLS-SRP UnixSockets HTTPS-proxy

Any Ideas?


Solution

  • I found it. My problem was in curl version

    Actuall curl version supporting --negotiate

    curl -V
    
    curl 7.43.0 (x86_64-apple-darwin15.0) libcurl/7.43.0 SecureTransport zlib/1.2.5
    Protocols: dict file ftp ftps gopher http https imap imaps ldap ldaps pop3 pop3s rtsp smb smbs smtp smtps telnet tftp
    Features: AsynchDNS IPv6 Largefile GSS-API Kerberos SPNEGO NTLM NTLM_WB SSL libz UnixSockets