[jcifs] returning null username only in Mozilla

vardhaman narasagoudar vardhamanbn at gmail.com
Wed Nov 14 09:27:28 GMT 2007

Hello ,

  I am trying for windows Authentication ..using JSP. +JCIFS + Netbeans+
Orcale. When I run the application on IE it run properly displaying the
username and the domain name. But when I run the same application on Mozilla
I am able to get only the username but *not the domain name. *How can I
overcome this problem?

I am using
1. String sysUser = request.getRemoteUser();
2. jcifs.smb.NtlmPasswordAuthentication auth =

  String user = auth.getUsername();
  String domain = auth.getDomain();

  out.println("user "+ user);
  out.println("domain"+ domain);

this is the web.xml file





How can I display/ read the domain name in when running the application on

Looking forward for your reply.

Thanks & Regards
Vardhaman B.N
-------------- next part --------------
HTML attachment scrubbed and removed

More information about the jcifs mailing list