Win a copy of Think Java: How to Think Like a Computer Scientist this week in the Java in General forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Tomcat and NTLM authentication

 
sivaraman subbiah
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Rancher
Posts: 42967
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What is the "applet alert dialog" you're talking about? Can you post a screenshot of it?
 
sivaraman subbiah
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic