diff options
Diffstat (limited to 'source4/rpc_server')
-rw-r--r-- | source4/rpc_server/samr/dcesrv_samr.c | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/source4/rpc_server/samr/dcesrv_samr.c b/source4/rpc_server/samr/dcesrv_samr.c index ac75b417f9..cef580edec 100644 --- a/source4/rpc_server/samr/dcesrv_samr.c +++ b/source4/rpc_server/samr/dcesrv_samr.c @@ -520,12 +520,15 @@ static NTSTATUS dcesrv_samr_info_DomGeneralInformation(struct samr_domain_state } /* No users in BUILTIN, and the LOCAL group types are only in builtin, and the global group type is never in BUILTIN */ - info->num_users = samdb_search_count(state->sam_ctx, state->domain_dn, + info->num_users = samdb_search_count(state->sam_ctx, mem_ctx, + state->domain_dn, "(objectClass=user)"); - info->num_groups = samdb_search_count(state->sam_ctx, state->domain_dn, + info->num_groups = samdb_search_count(state->sam_ctx, mem_ctx, + state->domain_dn, "(&(objectClass=group)(groupType=%u))", GTYPE_SECURITY_GLOBAL_GROUP); - info->num_aliases = samdb_search_count(state->sam_ctx, state->domain_dn, + info->num_aliases = samdb_search_count(state->sam_ctx, mem_ctx, + state->domain_dn, "(&(objectClass=group)(groupType=%u))", GTYPE_SECURITY_DOMAIN_LOCAL_GROUP); |