mirror of
https://github.com/samba-team/samba.git
synced 2024-12-22 13:34:15 +03:00
s4:smb_server: make use of PROTOCOL_SMB2_02
metze
This commit is contained in:
parent
b489388509
commit
d9c2aaa000
@ -465,7 +465,7 @@ static const struct {
|
||||
void (*proto_reply_fn)(struct smbsrv_request *req, uint16_t choice);
|
||||
int protocol_level;
|
||||
} supported_protocols[] = {
|
||||
{"SMB 2.002", "SMB2", reply_smb2, PROTOCOL_SMB2},
|
||||
{"SMB 2.002", "SMB2", reply_smb2, PROTOCOL_SMB2_02},
|
||||
{"NT LANMAN 1.0", "NT1", reply_nt1, PROTOCOL_NT1},
|
||||
{"NT LM 0.12", "NT1", reply_nt1, PROTOCOL_NT1},
|
||||
{"LANMAN2.1", "LANMAN2", reply_lanman2, PROTOCOL_LANMAN2},
|
||||
|
@ -113,7 +113,7 @@ static NTSTATUS smb2srv_negprot_backend(struct smb2srv_request *req, struct smb2
|
||||
return NT_STATUS_NOT_SUPPORTED;
|
||||
}
|
||||
|
||||
req->smb_conn->negotiate.protocol = PROTOCOL_SMB2;
|
||||
req->smb_conn->negotiate.protocol = PROTOCOL_SMB2_02;
|
||||
|
||||
current_time = timeval_current(); /* TODO: handle timezone?! */
|
||||
boot_time = timeval_current(); /* TODO: fix me */
|
||||
|
@ -63,7 +63,7 @@ static NTSTATUS smbsrv_recv_generic_request(void *private_data, DATA_BLOB blob)
|
||||
packet_set_callback(smb_conn->packet, smbsrv_recv_smb_request);
|
||||
return smbsrv_recv_smb_request(smb_conn, blob);
|
||||
case SMB2_MAGIC:
|
||||
if (lpcfg_srv_maxprotocol(smb_conn->lp_ctx) < PROTOCOL_SMB2) break;
|
||||
if (lpcfg_srv_maxprotocol(smb_conn->lp_ctx) < PROTOCOL_SMB2_02) break;
|
||||
status = smbsrv_init_smb2_connection(smb_conn);
|
||||
NT_STATUS_NOT_OK_RETURN(status);
|
||||
packet_set_callback(smb_conn->packet, smbsrv_recv_smb2_request);
|
||||
|
Loading…
Reference in New Issue
Block a user