mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-07-24 17:32:48 +00:00
When NT dialect is negotiated with the client the SMB response flags and flags2 fields were not being
set. If the client set the extended security flag the server would indicate it supports extended security. The flags and flags2 values are now set in the response. (AR-426). git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@2368 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
@@ -1305,8 +1305,7 @@ public class SMBSrvSession extends SrvSession implements Runnable
|
||||
setDefaultFlags2(SMBSrvPacket.FLG2_LONGFILENAMES + SMBSrvPacket.FLG2_UNICODE);
|
||||
|
||||
// Access the authenticator for this server and determine if the server is in share or
|
||||
// user level
|
||||
// security mode.
|
||||
// user level security mode.
|
||||
|
||||
SrvAuthenticator auth = getServer().getConfiguration().getAuthenticator();
|
||||
int secMode = 0;
|
||||
@@ -1350,13 +1349,12 @@ public class SMBSrvSession extends SrvSession implements Runnable
|
||||
nt.packInt(Capability.Unicode + Capability.RemoteAPIs + Capability.NTSMBs + Capability.NTFind
|
||||
+ Capability.NTStatus + Capability.LargeFiles + Capability.LargeRead + Capability.LargeWrite);
|
||||
|
||||
// Return the current server date/time, and timezone
|
||||
// Return the current server date/time, and timezone offset
|
||||
|
||||
long srvTime = NTTime.toNTTime(new java.util.Date(System.currentTimeMillis()));
|
||||
|
||||
nt.packLong(srvTime);
|
||||
nt.packWord(getServer().getConfiguration().getTimeZoneOffset());
|
||||
// server timezone offset
|
||||
|
||||
// Encryption key length
|
||||
|
||||
@@ -1402,6 +1400,9 @@ public class SMBSrvSession extends SrvSession implements Runnable
|
||||
|
||||
m_smbPkt.setByteCount(pos - m_smbPkt.getByteOffset());
|
||||
|
||||
m_smbPkt.setFlags( getDefaultFlags());
|
||||
m_smbPkt.setFlags2( getDefaultFlags2());
|
||||
|
||||
m_smbPkt.setTreeId(0);
|
||||
m_smbPkt.setUserId(0);
|
||||
}
|
||||
|
Reference in New Issue
Block a user