summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--source3/rpc_server/srv_samr_nt.c14
1 files changed, 14 insertions, 0 deletions
diff --git a/source3/rpc_server/srv_samr_nt.c b/source3/rpc_server/srv_samr_nt.c
index f10597055e..6ad5ec7706 100644
--- a/source3/rpc_server/srv_samr_nt.c
+++ b/source3/rpc_server/srv_samr_nt.c
@@ -814,6 +814,13 @@ NTSTATUS _samr_enum_dom_users(pipes_struct *p, SAMR_Q_ENUM_DOM_USERS *q_u,
DEBUG(5,("_samr_enum_dom_users: %d\n", __LINE__));
+ if (info->builtin_domain) {
+ /* No users in builtin. */
+ init_samr_r_enum_dom_users(r_u, q_u->start_idx, 0);
+ DEBUG(5,("_samr_enum_dom_users: No users in BUILTIN\n"));
+ return r_u->status;
+ }
+
become_root();
/* AS ROOT !!!! */
@@ -940,6 +947,13 @@ NTSTATUS _samr_enum_dom_groups(pipes_struct *p, SAMR_Q_ENUM_DOM_GROUPS *q_u, SAM
DEBUG(5,("samr_reply_enum_dom_groups: %d\n", __LINE__));
+ if (info->builtin_domain) {
+ /* No groups in builtin. */
+ init_samr_r_enum_dom_groups(r_u, q_u->start_idx, 0);
+ DEBUG(5,("_samr_enum_dom_users: No groups in BUILTIN\n"));
+ return r_u->status;
+ }
+
/* the domain group array is being allocated in the function below */
become_root();