From 504506a7a536039dbdc8bc0fb40b19b80243d0e8 Mon Sep 17 00:00:00 2001 From: Gary Spencer Date: Fri, 2 Feb 2007 11:45:22 +0000 Subject: [PATCH] Fix problem where authentication token was set only in debug mode. Fix for AR-1150. git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@5012 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261 --- .../alfresco/filesys/server/auth/CifsAuthenticator.java | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/source/java/org/alfresco/filesys/server/auth/CifsAuthenticator.java b/source/java/org/alfresco/filesys/server/auth/CifsAuthenticator.java index 7f90e141eb..8220cf9947 100644 --- a/source/java/org/alfresco/filesys/server/auth/CifsAuthenticator.java +++ b/source/java/org/alfresco/filesys/server/auth/CifsAuthenticator.java @@ -517,7 +517,7 @@ public abstract class CifsAuthenticator throw new SMBSrvException(SMBStatus.NTLogonFailure, SMBStatus.DOSAccessDenied, SMBStatus.ErrDos); } - else if (logger.isDebugEnabled() && sess.hasDebug(SMBSrvSession.DBG_NEGOTIATE)) + else { // Save the current user token in the client information @@ -527,9 +527,9 @@ public abstract class CifsAuthenticator client.setAuthenticationToken( null); // DEBUG - - logger.debug("User " + user + " logged on " - + (client != null ? " (type " + client.getLogonTypeString() + ")" : "")); + + if (logger.isDebugEnabled() && sess.hasDebug(SMBSrvSession.DBG_NEGOTIATE)) + logger.debug("User " + user + " logged on " + (client != null ? " (type " + client.getLogonTypeString() + ")" : "")); } // Create a virtual circuit and allocate a UID to the new circuit