s3-samr: Do not return users in _samr_QueryDisplayInfo() for builtin domain.
[ira/wip.git] / source3 / rpc_server / srv_samr_nt.c
index e0ba51c68ac27e3d87263d40d88848e77d1ada68..929d5df10f61d49aa904c44997b622f466c3ee6e 100644 (file)
@@ -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