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
This commit is contained in:
Gary Spencer
2007-02-02 11:45:22 +00:00
parent 6815ae2f5b
commit 504506a7a5

View File

@@ -517,7 +517,7 @@ public abstract class CifsAuthenticator
throw new SMBSrvException(SMBStatus.NTLogonFailure, SMBStatus.DOSAccessDenied, SMBStatus.ErrDos); 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 // Save the current user token in the client information
@@ -527,9 +527,9 @@ public abstract class CifsAuthenticator
client.setAuthenticationToken( null); client.setAuthenticationToken( null);
// DEBUG // DEBUG
logger.debug("User " + user + " logged on " if (logger.isDebugEnabled() && sess.hasDebug(SMBSrvSession.DBG_NEGOTIATE))
+ (client != null ? " (type " + client.getLogonTypeString() + ")" : "")); logger.debug("User " + user + " logged on " + (client != null ? " (type " + client.getLogonTypeString() + ")" : ""));
} }
// Create a virtual circuit and allocate a UID to the new circuit // Create a virtual circuit and allocate a UID to the new circuit