s3-samr: Do not return users in _samr_QueryDisplayInfo() for builtin domain.
authorGünther Deschner <gd@samba.org>
Thu, 7 May 2009 16:40:39 +0000 (18:40 +0200)
committerGünther Deschner <gd@samba.org>
Thu, 7 May 2009 22:41:40 +0000 (00:41 +0200)
Found by torture test.

Guenther

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