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
fd4b027511b18615e215b66183f95b54bcab683e)
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
}
NT_STATUS_NOT_OK_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;
}