File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Tomcat and the fly likes Tomcat and NTLM authentication Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Products » Tomcat
Bookmark "Tomcat and NTLM authentication" Watch "Tomcat and NTLM authentication" New topic
Author

Tomcat and NTLM authentication

sivaraman subbiah
Greenhorn

Joined: Dec 29, 2008
Posts: 7
Hi,

I am doing NTLM authentication using jcifs . My web.xml is like this:

.....
<!-- NTLM Authentication -->


<filter>
<filter-name>NtlmHttpFilter</filter-name>
<filter-class>jcifs.http.NtlmHttpFilter</filter-class>

<init-param>
<param-name>jcifs.smb.client.domain</param-name>
<param-value>DomainNameHere</param-value>
</init-param>
<init-param>
<param-name>jcifs.smb.client.username</param-name>
<param-value>UserNameHere</param-value>
</init-param>
<init-param>
<param-name>jcifs.smb.client.password</param-name>
<param-value>PasswordHere</param-value>
</init-param>

<init-param>
<param-name>jcifs.util.loglevel</param-name>
<param-value>3</param-value>
</init-param>
<init-param>
<param-name>jcifs.http.domainController</param-name>
<param-value>domainControllerNameHere</param-value>
</init-param>
</filter>

<filter-mapping>
<filter-name>NtlmHttpFilter</filter-name>
<url-pattern>*.do</url-pattern>
</filter-mapping>

......


am using struts and working in eclipse. The problem is when i start my server, An applet alert dialog is shown and i have to click on Allow button for the jcifs to be configured properly, otherwise it throws an exception. Even after that, when i try to access a link, i the applet alert keeps on displaying and i have to click on Allow button many times, before finally the whole configuration works and the user is authenticated. WHen i try to access the link from a remote machine, then also i have to click on the Allow button in the applet alerts in the server ..then only it works.


WHat am I doing wrong here or do I have to do some additional settings??

Thanks in advance
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 41461
    
  51
What is the "applet alert dialog" you're talking about? Can you post a screenshot of it?


Ping & DNS - my free Android networking tools app
sivaraman subbiah
Greenhorn

Joined: Dec 29, 2008
Posts: 7
Hi All,

I have found the reason for the applet thing. It was because of me being in a secured zone in my work place (network). THanks for the reply
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Tomcat and NTLM authentication