mirror of
https://github.com/samba-team/samba.git
synced 2025-01-06 13:18:07 +03:00
dcesrv_core: return NAK_REASON_PROTOCOL_VERSION_NOT_SUPPORTED for binds without contexts
This is the error Windows 2022 (and 2025 preview) return.
BUG: https://bugzilla.samba.org/show_bug.cgi?id=14356
Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Andreas Schneider <asn@samba.org>
(cherry picked from commit 8e6696b2ac
)
This commit is contained in:
parent
346dab391d
commit
cbcd11f2fb
@ -1141,7 +1141,8 @@ static NTSTATUS dcesrv_bind(struct dcesrv_call_state *call)
|
||||
}
|
||||
|
||||
if (call->pkt.u.bind.num_contexts < 1) {
|
||||
return dcesrv_bind_nak(call, 0);
|
||||
return dcesrv_bind_nak(call,
|
||||
DCERPC_BIND_NAK_REASON_PROTOCOL_VERSION_NOT_SUPPORTED);
|
||||
}
|
||||
|
||||
ack_ctx_list = talloc_zero_array(call, struct dcerpc_ack_ctx,
|
||||
|
@ -1371,14 +1371,12 @@ planoldpythontestsuite("ad_dc", "samba.tests.dcerpc.dnsserver", extra_args=['-U"
|
||||
planoldpythontestsuite("chgdcpass", "samba.tests.dcerpc.raw_protocol",
|
||||
environ={"MAX_NUM_AUTH": "8",
|
||||
"ALLOW_BIND_AUTH_PAD": "1",
|
||||
"LEGACY_BIND_NACK_NO_REASON": "1",
|
||||
"USERNAME": "$DC_USERNAME",
|
||||
"PASSWORD": "$DC_PASSWORD"})
|
||||
planoldpythontestsuite("ad_member", "samba.tests.dcerpc.raw_protocol",
|
||||
environ={"MAX_NUM_AUTH": "8",
|
||||
"ALLOW_BIND_AUTH_PAD": "1",
|
||||
"AUTH_LEVEL_CONNECT_LSA": "1",
|
||||
"LEGACY_BIND_NACK_NO_REASON": "1",
|
||||
"USERNAME": "$DC_USERNAME",
|
||||
"PASSWORD": "$DC_PASSWORD"})
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user