NTLM authentication?

113 views
Skip to first unread message

Kumar Shailove

unread,
Jan 15, 2014, 7:07:51 AM1/15/14
to sabredav...@googlegroups.com
Hello,
Does the SabreDev client support the ntlm authentication? I tried accessing a Sharepoint server, but getting an error 401.

Thanks

Evert Pot

unread,
Jan 15, 2014, 4:23:27 PM1/15/14
to sabredav...@googlegroups.com
Hi Kumar,

The current version does not really. You can override it to turn on CURLAUTH_NTLM, but I have no idea if that's sufficient. I personally never used NTLM, so I don't have a good grasp on what the requirements are.

The new version of the client (unreleased) will allow you to pass any curl setting. So if you are able to use NTLM auth using just curl, I can also show you an example of how this would work with the client.

Evert

Louis Simons

unread,
Jan 25, 2015, 7:07:11 PM1/25/15
to sabredav...@googlegroups.com

The current version does not really. You can override it to turn on CURLAUTH_NTLM, but I have no idea if that's sufficient. I personally never used NTLM, so I don't have a good grasp on what the requirements are.

The new version of the client (unreleased) will allow you to pass any curl setting. So if you are able to use NTLM auth using just curl, I can also show you an example of how this would work with the client.

I was able to use curl to pull down the file using the instructions at http://www.commandlinefu.com/commands/view/7005/get-a-file-from-sharepoint-with-curl.  How would you pass the curl settings to SabreDAV?

Thanks,
Louis

Evert Pot

unread,
Jan 26, 2015, 8:33:20 PM1/26/15
to sabredav...@googlegroups.com

Those curl settings relate to the curl command line tool, which is not the same as the curl PHP extension, which uses a different syntax for setting options.

That being said, you can add new settings with the addCurlSetting method on the client, defined here:

https://github.com/fruux/sabre-http/blob/master/lib/Client.php#L315

Evert


Reply all
Reply to author
Forward
0 new messages