cURL / Mailing Lists / curl-library / Single Mail

curl-library

Basic Auth error

From: Doug Dalton <ddalton_at_shortbus.net>
Date: Tue, 09 Dec 2008 14:10:18 -0800
I am having a problem with Basic auth with 7.15.5 on centos 5.2 getting the error  : gss_init_sec_context() failed: : Unknown code krb5 195* Authentication problem. Ignoring this. 

I have my curl set to basic, I notice that it negotiates to NTLM,  I am not sure if this is causing the issue?

    curl_setopt($ch, CURLOPT_USERPWD, "$username:$password");
      curl_setopt($ch, CURLOPT_HTTPAUTH,CURLAUTH_BASIC);

Debugging:
  1. * About to connect() to webmail.woodcock.com port 443
  2. *   Trying 209.92.255.145... * connected
  3. * Connected to webmail.woodcock.com (209.92.255.145) port 443
  4. * successfully set certificate verify locations:
  5. *   CAfile: /etc/pki/tls/certs/ca-bundle.crt
  6.   CApath: none
  7. * SSL connection using RC4-MD5
  8. * Server certificate:
  9. *        subject: /O=webmail.woodcock.com/OU=Domain Control Validated/CN=webmail.woodcock.com
  10. *        start date: 2007-11-28 15:29:10 GMT
  11. *        expire date: 2009-11-28 15:29:10 GMT
  12. *        issuer: /C=US/ST=Arizona/L=Scottsdale/O=GoDaddy.com, Inc./OU=http://certificates.godaddy.com/repository/CN=Go Daddy Secure Certification Authority/serialNumber=07969287
  13. * SSL certificate verify ok.
  14. > OPTIONS /exchange/ HTTP/1.1
  15. User-Agent: Branchit Server Agent
  16. Host: webmail.woodcock.com
  17. Accept: */*
  18. Depth: 1
  19. Translate: f
  20. Content-Type: text/xml
  21.  
  22. < HTTP/1.1 401 Unauthorized
  23. < Date: Tue, 09 Dec 2008 19:31:13 GMT
  24. < Content-Length: 83
  25. < Content-Type: text/html
  26. < Server: Microsoft-IIS/6.0
  27. < WWW-Authenticate: Negotiate
  28. < WWW-Authenticate: NTLM
  29. < WWW-Authenticate: Basic realm="webmail.woodcock.com"
  30. < X-Powered-By: ASP.NET
  31. * Ignoring the response-body
  32. * Connection #0 to host webmail.woodcock.com left intact
  33. * Issue another request to this URL: 'https://webmail.woodcock.com/exchange/'
  34. * Re-using existing connection! (#0) with host webmail.woodcock.com
  35. * Connected to webmail.woodcock.com (209.92.255.145) port 443
  36. > OPTIONS /exchange/ HTTP/1.1
  37. User-Agent: Branchit Server Agent
  38. Host: webmail.woodcock.com
  39. Accept: */*
  40. Depth: 1
  41. Translate: f
  42. Content-Type: text/xml
  43.  
  44. < HTTP/1.1 401 Unauthorized
  45. < Date: Tue, 09 Dec 2008 19:31:14 GMT
  46. < Content-Length: 83
  47. < Content-Type: text/html
  48. < Server: Microsoft-IIS/6.0
  49. * gss_init_sec_context() failed: : Unknown code krb5 195* Authentication problem. Ignoring this.
  50. < WWW-Authenticate: Negotiate
  51. < WWW-Authenticate: NTLM
  52. < WWW-Authenticate: Basic realm="webmail.woodcock.com"
  53. < X-Powered-By: ASP.NET
  54. * Connection #0 to host webmail.woodcock.com left intact
  55. * Closing connection #0




Received on 2008-12-09