Using NTLM authentication

Hi,Is there a way to get domain logged user name using NTLM authentication into JSF page.Please provide any solution on this ?
[147 byte] By [KirshnaMiriyalaa] at [2007-11-27 3:35:37]
# 1
Check out the documentation on NTLM authentication: http://java.sun.com/javase/6/docs/technotes/guides/net/http-auth.htmlSeema
Seema-1a at 2007-7-12 8:38:48 > top of Java-index,Security,Kerberos & Java GSS (JGSS)...
# 2

The documentation is good but it is incomplete. The example is about the http client while there is nothing on the server side. What I'm looking for, and I believe is the goal of this thread, is an easy way to implement NTLM or SPNEGO authentication on a servlet container (Tomcat, JBoss or others ) inside a Windows intranet.

For NTLM there is an easy way using JCIFS library which transparently to the programmer provides authentication. Using request.getRemoteUser() it is possible to retrive the name of the authenticated user.

I'm trying to find out if jcifs really supports SPNEGO - Kerberos authentication.

Thanks

Filippo

Message was edited by:

setecastronomy

setecastronomya at 2007-7-12 8:38:48 > top of Java-index,Security,Kerberos & Java GSS (JGSS)...
# 3

"For NTLM there is an easy way using JCIFS library which transparently to the programmer provides authentication. Using request.getRemoteUser() it is possible to retrive the name of the authenticated user. "

Does this mean, will this give the client user name, the one who is using the application?

Can you please provide some example or sample code ?

Thanks

KirshnaMiriyalaa at 2007-7-12 8:38:48 > top of Java-index,Security,Kerberos & Java GSS (JGSS)...