diff options
author | Volker Lendecke <vlendec@samba.org> | 2004-02-16 14:25:40 +0000 |
---|---|---|
committer | Volker Lendecke <vlendec@samba.org> | 2004-02-16 14:25:40 +0000 |
commit | c55fbad91087029679e4b57718d6e4e7de12656c (patch) | |
tree | f4daceae30055d9600ace0844e5258e294286a1f | |
parent | 1687d2d607039938bf18fe8d4d3300f8c33f3d28 (diff) | |
download | samba-c55fbad91087029679e4b57718d6e4e7de12656c.tar.gz samba-c55fbad91087029679e4b57718d6e4e7de12656c.tar.bz2 samba-c55fbad91087029679e4b57718d6e4e7de12656c.zip |
Cosmetic fix: use sid_is_in_our_domain.
Volker
(This used to be commit fc0dc0607d03eaefc2a0e3ffe7f1cf3612e73e0c)
-rw-r--r-- | source3/rpc_server/srv_samr_nt.c | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/source3/rpc_server/srv_samr_nt.c b/source3/rpc_server/srv_samr_nt.c index b8de24cf39..3c9adf4129 100644 --- a/source3/rpc_server/srv_samr_nt.c +++ b/source3/rpc_server/srv_samr_nt.c @@ -3263,7 +3263,6 @@ NTSTATUS _samr_query_groupmem(pipes_struct *p, SAMR_Q_QUERY_GROUPMEM *q_u, SAMR_ int final_num_sids = 0; int i; DOM_SID group_sid; - uint32 group_rid; fstring group_sid_str; DOM_SID *sids=NULL; @@ -3282,17 +3281,14 @@ NTSTATUS _samr_query_groupmem(pipes_struct *p, SAMR_Q_QUERY_GROUPMEM *q_u, SAMR_ return r_u->status; } - /* todo: change to use sid_compare_front */ - - sid_split_rid(&group_sid, &group_rid); sid_to_string(group_sid_str, &group_sid); DEBUG(10, ("sid is %s\n", group_sid_str)); - /* can we get a query for an SID outside our domain ? */ - if (!sid_equal(&group_sid, get_global_sam_sid())) + if (!sid_check_is_in_our_domain(&group_sid)) { + DEBUG(3, ("sid %s is not in our domain\n", group_sid_str)); return NT_STATUS_NO_SUCH_GROUP; + } - sid_append_rid(&group_sid, group_rid); DEBUG(10, ("lookup on Domain SID\n")); if(!get_domain_group_from_sid(group_sid, &map)) |