From 9a0cb06b240f3d772b53a6acc4804ccd9cbc4072 Mon Sep 17 00:00:00 2001 From: Luke Leighton Date: Wed, 25 Nov 1998 23:11:25 +0000 Subject: fixing group database issues (This used to be commit 591c63e3e1e3201ddcd7582585b652fb848d80ca) --- source3/groupdb/groupunix.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'source3/groupdb') diff --git a/source3/groupdb/groupunix.c b/source3/groupdb/groupunix.c index 89406fe139..56d9584155 100644 --- a/source3/groupdb/groupunix.c +++ b/source3/groupdb/groupunix.c @@ -203,11 +203,16 @@ static DOMAIN_GRP *getgrpunixpwent(void *vp, DOMAIN_GRP_MEMBER **mem, int *num_m if (map_group_gid(unix_grp->gr_gid, &sid, gp_buf.name, NULL)) { + fstring sid_str; /* * find the NT name represented by this UNIX gid. * then, only accept NT groups that are in our domain */ + sid_to_string(sid_str, &sid); + DEBUG(10,("getgrpunixpwent: entry %s mapped to name %s, SID %s\n", + unix_grp->gr_name, gp_buf.name, sid_str)); + sid_split_rid(&sid, &gp_buf.rid); if (sid_equal(&sid, &global_sam_sid)) { @@ -219,7 +224,7 @@ static DOMAIN_GRP *getgrpunixpwent(void *vp, DOMAIN_GRP_MEMBER **mem, int *num_m gp_buf.name)); } } - else + else if (!is_alias) { /* * assume that the UNIX group is an NT group with -- cgit