summaryrefslogtreecommitdiff
path: root/source3/groupdb/groupunix.c
diff options
context:
space:
mode:
Diffstat (limited to 'source3/groupdb/groupunix.c')
-rw-r--r--source3/groupdb/groupunix.c7
1 files changed, 6 insertions, 1 deletions
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