summaryrefslogtreecommitdiff
path: root/source4
diff options
context:
space:
mode:
authorMatthias Dieter Wallnöfer <mwallnoefer@yahoo.de>2010-01-12 22:16:36 +0100
committerMatthias Dieter Wallnöfer <mwallnoefer@yahoo.de>2010-01-14 10:58:06 +0100
commit40bc48dfa909fe8eda7e1c4ae072dc298d20e978 (patch)
tree2fbcc1c1c0a219a46e0a09c1e97572cf91144cf9 /source4
parentc663af8b7b39fd24aae7666540e4e6211230aae0 (diff)
downloadsamba-40bc48dfa909fe8eda7e1c4ae072dc298d20e978.tar.gz
samba-40bc48dfa909fe8eda7e1c4ae072dc298d20e978.tar.bz2
samba-40bc48dfa909fe8eda7e1c4ae072dc298d20e978.zip
s4:SAMR RPC - Fix the criteria for group searches
This should match the MS-SAMR documentation (section 3.1.5.5.1.1)
Diffstat (limited to 'source4')
-rw-r--r--source4/rpc_server/samr/dcesrv_samr.c8
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;
}