Scarab commit: svn commit: r10307 - branches/release/b21/src/java/org/tigris/scarab/pipeline/NTLMLoginValve.java

[email protected]
Newsgroups gmane.comp.java.scarab.cvs
Message-ID <[email protected]>
Author: jorgeuriarte
Date: 2006-10-02 08:11:57-0700
New Revision: 10307

Modified:
   branches/release/b21/src/java/org/tigris/scarab/pipeline/NTLMLoginValve.java

Log:
Fixes SCB1407 in some cases of NTLM authentication problems in some Windows domains.

Modified: branches/release/b21/src/java/org/tigris/scarab/pipeline/NTLMLoginValve.java
Url: http://scarab.tigris.org/source/browse/scarab/branches/release/b21/src/java/org/tigris/scarab/pipeline/NTLMLoginValve.java?view=diff&rev=10307&p1=branches/release/b21/src/java/org/tigris/scarab/pipeline/NTLMLoginValve.java&p2=branches/release/b21/src/java/org/tigris/scarab/pipeline/NTLMLoginValve.java&r1=10306&r2=10307
==============================================================================
--- branches/release/b21/src/java/org/tigris/scarab/pipeline/NTLMLoginValve.java	(original)
+++ branches/release/b21/src/java/org/tigris/scarab/pipeline/NTLMLoginValve.java	2006-10-02 08:11:57-0700
@@ -77,9 +77,12 @@
     {
         bNTLMActive = Turbine.getConfiguration().getBoolean("scarab.login.ntlm.active", false);
         domainController = Turbine.getConfiguration().getString("scarab.login.ntlm.domain", "<check properties>");
+        Config.setProperty("jcifs.util.loglevel", log.isDebugEnabled()?"10":"0");        
         Config.setProperty("jcifs.smb.client.soTimeout", "300000");
         Config.setProperty("jcifs.netbios.cachePolicy", "600");
         Config.setProperty("jcifs.http.domainController", domainController);
+        Config.setProperty("jcifs.smb.client.domain", domainController);
+        Config.setProperty("http.auth.ntlm.domain", domainController);        
 
         if( domainController == null )
         {
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.