s4 rpc_server_samr: DomGeneralInformation use dsdb_domain_count
authorGary Lockyer <gary@catalyst.net.nz>
Wed, 13 Feb 2019 20:33:57 +0000 (09:33 +1300)
committerAndrew Bartlett <abartlet@samba.org>
Thu, 14 Feb 2019 04:03:23 +0000 (05:03 +0100)
commit7fc379ce867ed18e1d4ac508bea4a6b90c59300f
treef431003620b0a78a1322753e4f3ca494652bee97
parent12fcab1181efbda3e8b2ac8e471388e9a8d5c009
s4 rpc_server_samr: DomGeneralInformation use dsdb_domain_count

Use dsdb_domain_count instead of samdb_search_count to determine the
number of users, groups and aliases.  This gives a performance gain of
around 10%, reduces the total memory allocated and fixes the incorrect
count returned for aliases.

Signed-off-by: Gary Lockyer <gary@catalyst.net.nz>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
selftest/knownfail.d/dom_general_information [deleted file]
source4/rpc_server/samr/dcesrv_samr.c