summaryrefslogtreecommitdiff
path: root/source4/rpc_server
diff options
context:
space:
mode:
authorJelmer Vernooij <jelmer@samba.org>2012-09-26 19:47:56 +0200
committerJelmer Vernooij <jelmer@samba.org>2012-09-26 22:12:07 +0200
commit90b1a94cb436d872148742eec1af56ba7c6dc9ef (patch)
tree958becb6d7b6fca31a78b7c5d2e6b1c35824db43 /source4/rpc_server
parent5022b3d8c183181b922e3ccac49e5819eb453035 (diff)
downloadsamba-90b1a94cb436d872148742eec1af56ba7c6dc9ef.tar.gz
netlogon: Per MS-NRPC, don't send unknown workstation flags back to the
client.
Diffstat (limited to 'source4/rpc_server')
-rw-r--r--source4/rpc_server/netlogon/dcerpc_netlogon.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/source4/rpc_server/netlogon/dcerpc_netlogon.c b/source4/rpc_server/netlogon/dcerpc_netlogon.c
index 309601e9da6..633687fd9d3 100644
--- a/source4/rpc_server/netlogon/dcerpc_netlogon.c
+++ b/source4/rpc_server/netlogon/dcerpc_netlogon.c
@@ -1685,7 +1685,8 @@ static NTSTATUS dcesrv_netr_LogonGetDomainInfo(struct dcesrv_call_state *dce_cal
}
domain_info->workstation_flags =
- r->in.query->workstation_info->workstation_flags;
+ r->in.query->workstation_info->workstation_flags & (
+ NETR_WS_FLAG_HANDLES_SPN_UPDATE | NETR_WS_FLAG_HANDLES_INBOUND_TRUSTS);
r->out.info->domain_info = domain_info;
break;