diff options
author | Stefan Metzmacher <metze@samba.org> | 2019-01-24 09:10:11 +0100 |
---|---|---|
committer | Jeremy Allison <jra@samba.org> | 2019-03-28 23:09:34 +0000 |
commit | 23792449694b5221f6ea422166c96fac494e3e2c (patch) | |
tree | ea099acb7ec714a4d2071ad94e175c8a9ff6416a /source3 | |
parent | 4760b85243f335bb2094fc779802ce4b52db0ccb (diff) | |
download | samba-23792449694b5221f6ea422166c96fac494e3e2c.tar.gz |
smb2_sesssetup: avoid STATUS_PENDING responses for session setup
BUG: https://bugzilla.samba.org/show_bug.cgi?id=12845
BUG: https://bugzilla.samba.org/show_bug.cgi?id=13698
BUG: https://bugzilla.samba.org/show_bug.cgi?id=13796
Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Ralph Boehme <slow@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
Diffstat (limited to 'source3')
-rw-r--r-- | source3/smbd/smb2_sesssetup.c | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/source3/smbd/smb2_sesssetup.c b/source3/smbd/smb2_sesssetup.c index d34951a4eef..e3d58d312e4 100644 --- a/source3/smbd/smb2_sesssetup.c +++ b/source3/smbd/smb2_sesssetup.c @@ -107,7 +107,16 @@ NTSTATUS smbd_smb2_request_process_sesssetup(struct smbd_smb2_request *smb2req) } tevent_req_set_callback(subreq, smbd_smb2_request_sesssetup_done, smb2req); - return smbd_smb2_request_pending_queue(smb2req, subreq, 500); + /* + * Avoid sending a STATUS_PENDING message, which + * matches a Windows Server and avoids problems with + * MacOS clients. + * + * Even after 90 seconds a Windows Server doesn't return + * STATUS_PENDING if using NTLMSSP against a non reachable + * trusted domain. + */ + return smbd_smb2_request_pending_queue(smb2req, subreq, 0); } static void smbd_smb2_request_sesssetup_done(struct tevent_req *subreq) |