hc-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Paulo Rodrigues (Created) (JIRA)" <j...@apache.org>
Subject [jira] [Created] (HTTPCLIENT-1156) Kerberos Authentication Scheme
Date Thu, 05 Jan 2012 12:35:39 GMT
Kerberos Authentication Scheme

                 Key: HTTPCLIENT-1156
                 URL: https://issues.apache.org/jira/browse/HTTPCLIENT-1156
             Project: HttpComponents HttpClient
          Issue Type: Improvement
          Components: HttpClient
    Affects Versions: 4.1.2
         Environment: Microsoft IIS
            Reporter: Paulo Rodrigues
            Priority: Minor

HttpClient 4.1.2 has a SPNEGO authentication that uses the Negotiate keyword.  But the MS
IIS that I must connect to does not send back an WWW-Authenticate: Negotiate, but, instead,
does send an WWW-Authenticate: Kerberos

So I used the NegotiateScheme.java and NegotiateSchemeFactory.java as a base to create a "new"
scheme, called, KerberosScheme.java and KerberosSchemeFactory.java to make it work.

Essentially I replaced every "Negotiate" scheme by "Kerberos", in the KerberosScheme.java,
and removed the part of the code that tried, first, SPNEGO_OID, using KERBEROS_OID directly,

It works fine for me, but took me a while to figure this out.

That why I think it could come on the new versions.

I'll attach my version but it has no package - it was made only for a test project.  It's
trivial to put it in the right place/package.

This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira


To unsubscribe, e-mail: dev-unsubscribe@hc.apache.org
For additional commands, e-mail: dev-help@hc.apache.org

View raw message