This website uses cookies for visitor traffic analysis. By using the website, you agree with storing the cookies on your computer.More information

--NTLM authentication

Information about development with ProjX.

--NTLM authentication

Postby Development@SIB » Sat Dec 22, 2012 9:50 pm



This article is outdated - please use our new system at

https://doc.sibvisions.com




Configure the NTLM authenticator com.sibvisions.apps.auth.NtlmAuthenticator as described here.

Be sure that you use com.sibvisions.rad.server.security.NtlmDBSecurityManager as security manager. The configuration is described here.

Add additional parameters to your config.xml

Code: Select all
<ntlm>
  <init-param>
    <param-name>jcifs.http.domainController</param-name>
    <param-value>domain.sibvisions.net</param-value>
  </init-param>
  <init-param>
    <param-name>jcifs.smb.client.domain</param-name>
    <param-value>DOMAIN.SIBVISIONS.NET</param-value>
  </init-param>   
  <init-param>
    <param-name>jcifs.smb.client.responseTimeout</param-name>
    <param-value>4000</param-value>
  </init-param>
  <init-param>
    <param-name>jcifs.smb.client.soTimeout</param-name>
    <param-value>4000</param-value>
  </init-param>
  <init-param>
    <param-name>jcifs.util.loglevel</param-name>
    <param-value>4</param-value>
  </init-param>
</ntlm>

All JCIFS Parameters are allowed.

If you start your application in a Browser, be sure to map:

Code: Select all
<servlet>
  <servlet-name>NtlmHandler</servlet-name>
  <display-name>Servlet based ntlm authentication</display-name>
  <servlet-class>com.sibvisions.apps.server.http.NtlmHandler</servlet-class>
</servlet>
     
<servlet-mapping>
  <servlet-name>NtlmHandler</servlet-name>
  <url-pattern>/auth/Ntlm</url-pattern>
</servlet-mapping>

in your web.xml.

The authentication was successfully tested with WinXP, Vista, Win7, Win8 - Java5, 6, 7. It's not needed to change your local security policies because NTLMv1 and NTLMv2 work.
User avatar
Development@SIB
 
Posts: 325
Joined: Mon Sep 28, 2009 1:54 pm

Return to Documentation