diff options
author | Günther Deschner <gd@samba.org> | 2008-12-02 00:08:56 +0100 |
---|---|---|
committer | Günther Deschner <gd@samba.org> | 2008-12-02 00:53:27 +0100 |
commit | 931f16f6229f16eac866934f65f567c200d4b111 (patch) | |
tree | 6ad5c29ced84d78ca0bb92f5c11ebb578d8bb7dc | |
parent | 61a6b49e48f9d58c50a1be8e3b55ed49ceba5344 (diff) | |
download | samba-931f16f6229f16eac866934f65f567c200d4b111.tar.gz samba-931f16f6229f16eac866934f65f567c200d4b111.tar.bz2 samba-931f16f6229f16eac866934f65f567c200d4b111.zip |
s3-samr: _samr_EnumDomainUsers always returns a sam array (even w/o users).
Guenther
-rw-r--r-- | source3/rpc_server/srv_samr_nt.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/rpc_server/srv_samr_nt.c b/source3/rpc_server/srv_samr_nt.c index 7baab1c86f..dc2377b902 100644 --- a/source3/rpc_server/srv_samr_nt.c +++ b/source3/rpc_server/srv_samr_nt.c @@ -1012,6 +1012,7 @@ NTSTATUS _samr_EnumDomainUsers(pipes_struct *p, if (!samr_array) { return NT_STATUS_NO_MEMORY; } + *r->out.sam = samr_array; become_root(); @@ -1071,7 +1072,6 @@ NTSTATUS _samr_EnumDomainUsers(pipes_struct *p, samr_array->entries = samr_entries; *r->out.resume_handle = *r->in.resume_handle + num_account; - *r->out.sam = samr_array; *r->out.num_entries = num_account; DEBUG(5,("_samr_EnumDomainUsers: %d\n", __LINE__)); |