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
Request always returns null #11
Comments
You are probably missing either cURL or SOAP for PHP Originally posted by torbenkoehn on Google Code: http://code.google.com/p/php-ews/issues/detail?id=11#c1 |
I have both cURL and SOAP for PHP but always get a null as well Originally posted by frak.off on Google Code: http://code.google.com/p/php-ews/issues/detail?id=11#c2 |
The problem is that you are likely receiving a 401 Unauthorized response back php-ews is not handling that properly. It appears that the options that cURL is compiled with in Debian (as well as Ubuntu and probably other Debian based distros) has changed. I'm going to try to compile from source and see if I can get it working. Originally posted by jamesiarmes on Google Code: http://code.google.com/p/php-ews/issues/detail?id=11#c3 |
Having done some investigation since your post, it does indeed seem that the account I was using did not have the correct permissions to access everyone's mailbox. Sorry for the misleading post. Originally posted by frak.off on Google Code: http://code.google.com/p/php-ews/issues/detail?id=11#c4 |
In order to fix the issue with the version of cURL currently provided in Debian in Ubuntu, you will need to compile from source using the following to configure (you may have to provide additional options if you have other requirements): ./configure --enable-http --enable-ftp --enable-file --enable-telnet --enable-tftp --enable-ipv6 --enable-crypto-auth --enable-tls-srp --enable-cookies This has been tested with cURL 7.22 on Ubuntu 10.04 (Lucid Lynx). Originally posted by jamesiarmes on Google Code: http://code.google.com/p/php-ews/issues/detail?id=11#c6 |
Marking this as "WontFix" since it is not actually an issue with the library. Originally posted by jamesiarmes on Google Code: http://code.google.com/p/php-ews/issues/detail?id=11#c7 |
To verify that your curl setup is working you can run the following from the command line (make sure you replace host, username and password with the appropriate values): curl https://*host*/EWS/Exchange.asmx -w %{http_code} --ntlm -u *username*:*password* -k If curl is configured correctly, this should return a 302 rather than a 401. Originally posted by jamesiarmes on Google Code: http://code.google.com/p/php-ews/issues/detail?id=11#c8 |
ok, i'm on unbuntu 10.04 i get:
but then i get:
so it will compile without TLS-SRP, google told me that openssl hasn't tls-srp support... is it needed? if i compile it anyway i still get the the 401 error what have you done? Originally posted by mr.schickfick on Google Code: http://code.google.com/p/php-ews/issues/detail?id=11#c9 |
@mr.schickfick are you still having trouble with this? I have not tested this method using cURL 7.23.1. You can get cURL 7.22.0 (which is what I used above) from http://curl.haxx.se/download/curl-7.22.0.tar.gz. Originally posted by jamesiarmes on Google Code: http://code.google.com/p/php-ews/issues/detail?id=11#c10 |
hey, i have exactly the same problem, the code in #8 returned 401 Originally posted by icksde1 on Google Code: http://code.google.com/p/php-ews/issues/detail?id=11#c11 |
same as #11. If we're getting a 401 return to curl https://*host*/EWS/Exchange.asmx -w %{http_code} --ntlm -u *username*:*password* -k but can use those same credentials to log into https://host/owa without a problem, where should we look next? Originally posted by Zxurian on Google Code: http://code.google.com/p/php-ews/issues/detail?id=11#c12 |
Any help on this? I have 2 CentOS servers. It works on one but not the other. I don't see much of a difference. Maybe a different in curl versions? Originally posted by keith@keithslater.com on Google Code: http://code.google.com/p/php-ews/issues/detail?id=11#c13 |
From what I can tell it is definitely a problem with what curl version is being used. It looks like somewhere between 7.15.5 and 7.19.7 curl started using NSS for SSL instead of OpenSSL. From what it looks like curl 7.20.1 or above should fix the problem however I'm having a hard time upgrading. Relevant info: Originally posted by keith@keithslater.com on Google Code: http://code.google.com/p/php-ews/issues/detail?id=11#c14 |
Hi, yes still issues, again with 7.22.0 same error:
Originally posted by mr.schickfick on Google Code: http://code.google.com/p/php-ews/issues/detail?id=11#c16 |
after a little bit of trying it seems like TLS-SRP is not required, but configure and installing with --prefix=/usr/ does the trick ;-) |
More details on the issue with Ubuntu and another possible solution https://bugs.launchpad.net/ubuntu/+source/curl/+bug/675974 |
Hi, I solved this issue on my Qnap webserver with the following in line 77 of NTLMSoapClient.php, I comment the line (//) : Kelljery |
Kelljery, I tried your solution and am still having the problem. Commented out: curl_setopt($ch, CURLOPT_HTTPAUTH, CURLAUTH_NTLM); |
Hi, |
For Mac OS X users, if you use Mac Ports version 7.28.1 then problems with the NTLM 401 are resolved. Versions: OS X 10.7, PHP 5.4.6, libcurl 7.28.1 |
Really impressed with this project. Great work. I've got it working on my dev server (WAMP stack)...but when I move it to my production (LAMP) Debian server I get nothing but a NULL result for any of the function calls. I might be missing something basic...I'm sure it's a configuration issue on my end...some kind of error would be helpful....any ideas on where I could start with troubleshooting??? Do I need to COM objects enabled, etc..? Any more info on the dependencies would be really great.
Originally posted by kvnlnt@yahoo.com on Google Code: http://code.google.com/p/php-ews/issues/detail?id=11
The text was updated successfully, but these errors were encountered: