Edit report at http://bugs.php.net/bug.php?id=52232&edit=1
ID: 52232 Updated by: paj...@php.net Reported by: andres dot maier at abf dot ch Summary: cURL doesn't support GSSAPI by default -Status: Open +Status: Feedback Type: Feature/Change Request Package: cURL related Operating System: Windows PHP Version: 5.3 New Comment: Please see http://www.php.net/curl_setopt (CURLOPT_HTTPAUTH) Did you try ANY_SAFE or using the bitwise operator for ntlm and GSS? I suppose too that it is only in your comment that the curl_setopt misses the curl resource. Previous Comments: ------------------------------------------------------------------------ [2010-07-08 07:39:27] andres dot maier at abf dot ch It doesn't work in my opinion. The option CURLOPT_HTTPAUTH can have multiple authentication types like CURLAUTH_BASIC (value), *NTLM, as well as CURLAUTH_GSSNEGOTIATE - which is used to authenticate with kerberos. When we set this option/auth type [curl_setopt(CURLOPT_HTTPAUTH, CURLAUTH_GSSNEGOTIATE)] we get false as return value - which means that GSSAPI (or SSPI) is not available and this property can not be used with the cURL extension. ------------------------------------------------------------------------ [2010-07-07 16:48:08] paj...@php.net I don't understand what you are saying sorry. Does it work? If not, what does not work exactly (like the constants are not defined or the required protocols are not listed in the available features, via curl info)? The options are not available? or they are not used even when you set them? ------------------------------------------------------------------------ [2010-07-07 13:24:03] andres dot maier at abf dot ch If it would work with winsspi then we should be able to set CURLAUTH_GSSNEGOTIATE as CURLOPT_HTTPAUTH option in cURL. But if we do so, false gets returned and we aren't able to delegate the authorization token of the client. ------------------------------------------------------------------------ [2010-07-02 11:05:19] paj...@php.net I don't libgssapi works on windows. However windows supports this auth mechanism via SSPI. See: http://msdn.microsoft.com/en-us/library/aa380496%28VS.85%29.aspx And Winsspi is built into curl on windows. Did you try it? or is it what you are looking for? ------------------------------------------------------------------------ [2010-07-02 10:15:49] andres dot maier at abf dot ch Description: ------------ Our clients use Kerberos for SSO and we noticed that cURL doesn't support the GSSAPI by default. We couldn't find any cURL binaries with GSSAPI support neither could we get it compiled on windows. It would be great to have GSSAPI support by default because kerberos is a very wide spread authentication. ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/bug.php?id=52232&edit=1