summaryrefslogtreecommitdiff
path: root/source4/rpc_server/samr
diff options
context:
space:
mode:
authorMatthias Dieter Wallnöfer <mwallnoefer@yahoo.de>2010-03-03 13:38:34 +0100
committerMatthias Dieter Wallnöfer <mwallnoefer@yahoo.de>2010-03-03 17:15:31 +0100
commit8d0fbfe987f4cefda872bb7a9caca0d9a77bf258 (patch)
treec9c668d8792f7d0b5f4070407a861e9b42f54e3e /source4/rpc_server/samr
parentf92c28bf4e93524217ac8eb4c3f21c0ab360ba26 (diff)
downloadsamba-8d0fbfe987f4cefda872bb7a9caca0d9a77bf258.tar.gz
samba-8d0fbfe987f4cefda872bb7a9caca0d9a77bf258.tar.bz2
samba-8d0fbfe987f4cefda872bb7a9caca0d9a77bf258.zip
s4:dcesrv_samr - Also "OpenGroup" needs to support universal groups
Diffstat (limited to 'source4/rpc_server/samr')
-rw-r--r--source4/rpc_server/samr/dcesrv_samr.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/source4/rpc_server/samr/dcesrv_samr.c b/source4/rpc_server/samr/dcesrv_samr.c
index b61c6f471d..77899aa4e6 100644
--- a/source4/rpc_server/samr/dcesrv_samr.c
+++ b/source4/rpc_server/samr/dcesrv_samr.c
@@ -2047,9 +2047,10 @@ static NTSTATUS dcesrv_samr_OpenGroup(struct dcesrv_call_state *dce_call, TALLOC
/* search for the group record */
ret = gendb_search(d_state->sam_ctx,
mem_ctx, d_state->domain_dn, &msgs, attrs,
- "(&(objectSid=%s)(objectclass=group)"
- "(grouptype=%d))",
+ "(&(objectSid=%s)(objectClass=group)"
+ "(|(groupType=%d)(groupType=%d)))",
ldap_encode_ndr_dom_sid(mem_ctx, sid),
+ GTYPE_SECURITY_UNIVERSAL_GROUP,
GTYPE_SECURITY_GLOBAL_GROUP);
if (ret == 0) {
return NT_STATUS_NO_SUCH_GROUP;