I noticed that when trying curl with a sharepoint site it works with
older versions of curl!

curl --version
curl 7.21.0 (i686-pc-linux-gnu) libcurl/7.21.0 OpenSSL/0.9.8o zlib/1.2.3.4 
libidn/1.18
Protocols: dict file ftp ftps http https imap imaps ldap ldaps pop3 pop3s rtsp 
smtp smtps telnet tftp 
Features: GSS-Negotiate IDN IPv6 Largefile NTLM SSL libz 

Here is the command I run when connecting to an exchange server:
curl --ntlm --verbose --show-error --user xxx 
https://server.com/EWS/Services.wsdl > /tmp/test

Here is the command I run when connecting to a sharepoint server:
curl --ntlm --verbose --show-error --user xxx 
https://server.com/Lists/Kontakter/AllItems.aspx > /tmp/test

The big differences I notice in the verbose outputs are:
For sharepoint: 
Server: Microsoft-IIS/6.0 
Content-Length: 1539

For exchange:
Server: Microsoft-IIS/7.0
Content-Length: 0
The string "gss_init_sec_context() failed: : Credentials cache file 
'/tmp/krb5cc_1000' not found" is shown
The string "WWW-Authenticate: Negotiate" is shown

Also the returned WWW-Authenticate base64 encoded data differs, but
maybe the server name in someway is encoded.

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/675974

Title:
  NTLM authentication isnt tried in libcurl3

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/curl/+bug/675974/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to