Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Some OWA Servers require NTLM and Basic authentication #2

Open
nhira opened this issue Jul 30, 2011 · 2 comments
Open

Some OWA Servers require NTLM and Basic authentication #2

nhira opened this issue Jul 30, 2011 · 2 comments

Comments

@nhira
Copy link

nhira commented Jul 30, 2011

Thank you very much for doing this! It is very useful.

Some servers require NTLM and Basic authentication. In this case, the Authorization: NTLM header must be sent before the Authorization: Basic header.

Please consider adding an authorization_type to the class so affected users can use something like this:

401c401
< curl_setopt($ch, CURLOPT_HTTPAUTH, CURLAUTH_NTLM);


> curl_setopt($ch, CURLOPT_HTTPAUTH, CURLAUTH_NTLM | CURLAUTH_BASIC);

@rileydutton
Copy link
Owner

If you wouldn't mind submitting a quick commit/pull request I'd definitely welcome the change!

@cby016
Copy link
Contributor

cby016 commented Jan 18, 2012

In order to use this class with microsoft live 365 I had to make this change also ie replace

curl_setopt($ch, CURLOPT_HTTPAUTH, CURLAUTH_NTLM);
with
curl_setopt($ch, CURLOPT_HTTPAUTH, CURLAUTH_NTLM | CURLAUTH_BASIC);

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants