rpc_query_user_list() returns NT_STATUS_NO_MEMORY for the MACHINE ACCOUNT child if there are no users to enumerate. It should return successfully with an emtpy list. Patch will follow.
Created attachment 12628 [details] patch for 4.5
Created attachment 12629 [details] patch for 4.4
Re-assigning to Karolin for inclusion in 4.5.next, 4.4.next.
(In reply to Jeremy Allison from comment #3) Pushed to autobuild-v4-{5,4}-test.
(In reply to Karolin Seeger from comment #4) Pushed to both branches. Closing out bug report. Thanks!