diff options
author | Günther Deschner <gd@samba.org> | 2009-05-07 18:40:39 +0200 |
---|---|---|
committer | Günther Deschner <gd@samba.org> | 2009-05-08 00:41:40 +0200 |
commit | b96fdae1f414bacd301a756d267497341e71738d (patch) | |
tree | 9b8da9bad4fc288e6b51ac19f92d5596366e9687 /source3/rpc_server | |
parent | f05d888d7ab910b3ed39e4d36eeb52cb86bd990e (diff) | |
download | samba-b96fdae1f414bacd301a756d267497341e71738d.tar.gz samba-b96fdae1f414bacd301a756d267497341e71738d.tar.bz2 samba-b96fdae1f414bacd301a756d267497341e71738d.zip |
s3-samr: Do not return users in _samr_QueryDisplayInfo() for builtin domain.
Found by torture test.
Guenther
Diffstat (limited to 'source3/rpc_server')
-rw-r--r-- | source3/rpc_server/srv_samr_nt.c | 5 |
1 files changed, 5 insertions, 0 deletions
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 |