diff options
-rw-r--r-- | source4/rpc_server/samr/dcesrv_samr.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/source4/rpc_server/samr/dcesrv_samr.c b/source4/rpc_server/samr/dcesrv_samr.c index 1621003ea3..7de2377fe9 100644 --- a/source4/rpc_server/samr/dcesrv_samr.c +++ b/source4/rpc_server/samr/dcesrv_samr.c @@ -521,11 +521,11 @@ static NTSTATUS dcesrv_samr_info_DomGeneralInformation(struct samr_domain_state info->num_users = samdb_search_count(state->sam_ctx, state->domain_dn, "(objectClass=user)"); info->num_groups = samdb_search_count(state->sam_ctx, state->domain_dn, - "(&(objectClass=group)(sAMAccountType=%u))", - ATYPE_GLOBAL_GROUP); + "(&(objectClass=group)(groupType=%u))", + GTYPE_SECURITY_GLOBAL_GROUP); info->num_aliases = samdb_search_count(state->sam_ctx, state->domain_dn, - "(&(objectClass=group)(sAMAccountType=%u))", - ATYPE_LOCAL_GROUP); + "(&(objectClass=group)(groupType=%u))", + GTYPE_SECURITY_DOMAIN_LOCAL_GROUP); return NT_STATUS_OK; } |