AnsweredAssumed Answered

CIFS/NTLM Passthru only work after waiting for some time

Question asked by curious_george on Mar 29, 2008
Latest reply on Nov 4, 2014 by mcasanket
Hello again,

I'm running Alfresco 2.1 Community edition on a JBoss 4.2.2 application server, on Red Hat Enterprise Linux 4.0. I've configured our environment to use NTLM passthru authentication and CIFS. We are using iptables to forward the SMB and Netbios traffic from port 137,138,139, and 445 to higher ports, as designated in the file-servers.xml file.

After starting up the JBoss server, we can successfully navigate to the Alfresco web application. But if we try to access the Alfresco CIFS share through windows or Linux, we are unable to. The server.log gives us the following error:

00:13:24,310 DEBUG [org.alfresco.smb.protocol] TCP-SMB session request received from
00:13:24,311 DEBUG [org.alfresco.smb.protocol] Waiting for TCP-SMB session request …
00:13:24,311 DEBUG [org.alfresco.smb.protocol] Server session started
00:13:24,311 DEBUG [org.alfresco.smb.protocol] Negotiated SMB dialect - NT LM 0.12
00:13:24,311 DEBUG [org.alfresco.smb.protocol] Assigned protocol handler - org.alfresco.filesys.smb.server.NTProtocolHandler
00:13:24,313 DEBUG [org.alfresco.smb.protocol.auth] NT Session setup NTLMSSP, MID=8, UID=0, PID=65279
00:13:24,313 ERROR [org.alfresco.smb.protocol] ERROR [org.alfresco.smb.protocol] Closing session due to exception
        at org.alfresco.filesys.server.auth.CifsAuthenticator.generateNegotiateResponse(
        at org.alfresco.filesys.server.auth.passthru.PassthruAuthenticator.generateNegotiateResponse(
        at org.alfresco.filesys.smb.server.SMBSrvSession.procSMBNegotiate(

In Windows, we get a message stating "The specified network name is no longer valid". In Linux, the CIFS mount attempt results in a message stating that the host is unavailable, or something similar. I did verify that the JBoss application server and the Alfresco web application WAR file were indeed fully loaded and operational.

If I wait for several minutes (sometimes as long as half an hour, sometimes as little as 5 minutes), then the Alfresco CIFS share is suddenly accessible without any errors.

Anyone know what is going on?

NB: I just turned up debugging and restarted the JBoss server to get more information for this post. Now I found myself unable to access the Alfresco Web Application for a few minutes! The message in my web browser said "Failed to open passthru auth session". In the alfresco.log, I see some entries stating the Passthru server (e.g. my DOmain Controller) is online, then it's offline, and now it's online again…. FYI, I have my two domain controllers specified in the file-servers.xml file.