diff options
author | Jeremy Allison <jra@samba.org> | 2005-11-27 01:26:52 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 11:05:36 -0500 |
commit | d9f26f78f6325651b79f21e11fb1781c9cfafd78 (patch) | |
tree | 34194c64cf5b6c85c32bc28af89abf5991205798 | |
parent | 48c2f9fc72afaf5d7817bfb12f0acef9ab26faf0 (diff) | |
download | samba-d9f26f78f6325651b79f21e11fb1781c9cfafd78.tar.gz samba-d9f26f78f6325651b79f21e11fb1781c9cfafd78.tar.bz2 samba-d9f26f78f6325651b79f21e11fb1781c9cfafd78.zip |
r11927: No users or groups to return in BUILTIN domain.
Jeremy.
(This used to be commit 908e671c75f78b87fe0ee9129f0aca004565c407)
-rw-r--r-- | source3/rpc_server/srv_samr_nt.c | 14 |
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(); |