Thanks Roland.
That code sample looks good.
But I am facing a problem when I execute it. It prompts me for username
/password and provided correct credentials it does authenticate.

Is it not possible programmatically to set username/password?
Something similar to a callback Handler in LoginContext in the JAAS
tutorial 
referred in the bug.
https://issues.apache.org/jira/browse/HTTPCLIENT-523

        LoginContext con = null;

        try {
            // Create a LoginContext with a callback handler
            con = new LoginContext("com.sun.security.jgss.initiate",
callbackHandler);
} 
 

I don't see any API call in sun.security.jgss.GSSContextImpl to set any
callback function which may able me to set username/ password
programmatically rather than from a prompt.
My application can not take input from the user.

Thanks,
Pankaj Arora


-----Original Message-----
From: Roland Weber [mailto:[EMAIL PROTECTED] 
Sent: Friday, July 06, 2007 5:38 AM
To: HttpComponents Project
Subject: Re: Kerberos (SPNEGO support)

Hello Pankaj,

I believe it is possible:
https://issues.apache.org/jira/browse/HTTPCLIENT-523

The Subversion repository has recently moved, the code is now at:
http://svn.apache.org/repos/asf/jakarta/httpcomponents/oac.hc3x/trunk/sr
c/contrib/org/apache/commons/httpclient/contrib/auth/

hope that helps,
  Roland

---------------------------------------------------------------------
To unsubscribe, e-mail:
[EMAIL PROTECTED]
For additional commands, e-mail:
[EMAIL PROTECTED]


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to