1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-03 01:18:10 +03:00

s3:rpc_server/netlogon: implement netr_LogonGetCapabilities query_level=2

BUG: https://bugzilla.samba.org/show_bug.cgi?id=15425

Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz>
(cherry picked from commit 484a046d8e)
This commit is contained in:
Stefan Metzmacher 2023-07-19 18:03:09 +02:00 committed by Jule Anger
parent c6bfa4dbb2
commit 47e5aa1e36

View File

@ -2317,12 +2317,7 @@ NTSTATUS _netr_LogonGetCapabilities(struct pipes_struct *p,
case 1:
break;
case 2:
/*
* Until we know the details behind KB5028166
* just return DCERPC_NCA_S_FAULT_INVALID_TAG
* like an unpatched Windows Server.
*/
FALL_THROUGH;
break;
default:
/*
* There would not be a way to marshall the
@ -2350,7 +2345,15 @@ NTSTATUS _netr_LogonGetCapabilities(struct pipes_struct *p,
return status;
}
r->out.capabilities->server_capabilities = creds->negotiate_flags;
switch (r->in.query_level) {
case 1:
r->out.capabilities->server_capabilities = creds->negotiate_flags;
break;
case 2:
r->out.capabilities->requested_flags =
creds->ex->client_requested_flags;
break;
}
return NT_STATUS_OK;
}