[jcifs] Windows login username required at server end

Abhijit Karpe abhijitk at xpanxion.co.in
Thu Jun 5 13:54:19 GMT 2008

Hello Yannick,

Thanks for your quick response.

In my case domain authentication is immaterial so I would rather avoid
it. For me a user who is successfully logged in to the windows machine
(which is in a secured network) is secure enough to give him access to
my application. It is sort of an SSO support.
Also I need to find the authorization information for the user from my
application database. For this purpose I need the username.

It would be really helpful if anyone could point me to some detailed
documentation on how JCIFS internally works. In that case I would either
be able to extend the behavior to support my requirement or maybe even
write the code that would suffice.

Thanks again for your response!


-----Original Message-----
From: Yannick Lavanant [mailto:yannick at smellyfrog.com] 
Sent: Thursday, June 05, 2008 7:14 PM
To: Abhijit Karpe
Cc: jcifs at lists.samba.org
Subject: Re: [jcifs] Windows login username required at server end

Hi Abhi,

I'm not a specialist, but as far as I understand, JCIFS performs a 
domain authentication.

I remember using some native code that did what you are describing.
The advantage of JCIFS is that you are platform independant. As soon as 
you introduce native code, you get stuck with the operating system.

Is there any reason why you don't want to do a domain authentication?


Abhijit Karpe wrote:
> Hello,
> I have a requirement wherein I need the windows login username in my 
> application on JBoss.
> I have been investigating using the JCIFS library but so far whatever 
> I do, JCIFS tries to authenticate the user with the domain controller.
> What I need is not authentication with the domain controller. I just 
> need access to the username with which the user has logged in to the 
> windows machine.
> My application assumes that if the user has successfully logged in, he

> is a valid user.
> Can JCIFS help me with my requirement?
> If not, does anyone know how I may be able to achieve this? Any help 
> in this regard is highly appreciated.
> Thanking everyone in advance,
> Abhi

More information about the jcifs mailing list