From b96fdae1f414bacd301a756d267497341e71738d Mon Sep 17 00:00:00 2001 From: Günther Deschner Date: Thu, 7 May 2009 18:40:39 +0200 Subject: s3-samr: Do not return users in _samr_QueryDisplayInfo() for builtin domain. Found by torture test. Guenther --- source3/rpc_server/srv_samr_nt.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'source3') diff --git a/source3/rpc_server/srv_samr_nt.c b/source3/rpc_server/srv_samr_nt.c index e0ba51c68a..929d5df10f 100644 --- a/source3/rpc_server/srv_samr_nt.c +++ b/source3/rpc_server/srv_samr_nt.c @@ -1397,6 +1397,11 @@ NTSTATUS _samr_QueryDisplayInfo(pipes_struct *p, return status; } + if (sid_check_is_builtin(&dinfo->sid)) { + DEBUG(5,("_samr_QueryDisplayInfo: no users in BUILTIN\n")); + return NT_STATUS_OK; + } + /* * calculate how many entries we will return. * based on -- cgit