[jcifs] not able to use jcifs.properties file
vibhuti.gupta at thePSI.com
Sun Mar 7 23:35:07 MST 2010
Thanks for your prompt reply.
I have specified -Djcifs.properties=/path_to_file/jcifs.prop system property
in Catalina.bat file. I have set the log level to 4 in properties file. So
on tomcat console the JCIFS properties list is displayed. Looking at it, it
seems that NtlmHttpFilter is able to read the properties file. But it throws
the following exception when trying to login for a valid user name and
jcifs.smb.SmbAuthException: Logon failure: unknown user name or bad
If I do not use properties file and instead specify domain controller and
other values explicitly in web.xml, it allows login for the same user.
It seems that there is something different happening when trying to
authenticate using the properties file.
From: Michael B Allen [mailto:ioplex at gmail.com]
Sent: Sunday, March 07, 2010 11:59 AM
Cc: jcifs at lists.samba.org
Subject: Re: [jcifs] not able to use jcifs.properties file
On Sat, Mar 6, 2010 at 7:52 AM, vibhuti <vibhuti.gupta at thepsi.com> wrote:
> As stated in different posts on various forums I found that we need to
> specify jcifs.properties as a system property. So I modified my tomcat
> file and declared -Djcifs.properties=jcifs.prop.
> This also does not work.
If you use the -Djcifs.properties=/path/to/file.prp system property,
that will definitely work. I think perhaps you just got the path wrong
or you're not modifying the commandline in the way you think.
Michael B Allen
Java Active Directory Integration
More information about the jCIFS