summaryrefslogtreecommitdiffstats
path: root/source/groupdb
diff options
context:
space:
mode:
authorLuke Leighton <lkcl@samba.org>1998-11-25 23:11:25 +0000
committerLuke Leighton <lkcl@samba.org>1998-11-25 23:11:25 +0000
commit591c63e3e1e3201ddcd7582585b652fb848d80ca (patch)
tree83714fb5e10f5c1490cf3ab707f1cb9a9cf15392 /source/groupdb
parent6acb4b68f68d516e2ac3c47e500f5600d653435e (diff)
downloadsamba-591c63e3e1e3201ddcd7582585b652fb848d80ca.tar.gz
samba-591c63e3e1e3201ddcd7582585b652fb848d80ca.tar.xz
samba-591c63e3e1e3201ddcd7582585b652fb848d80ca.zip
fixing group database issues
Diffstat (limited to 'source/groupdb')
-rw-r--r--source/groupdb/groupunix.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/source/groupdb/groupunix.c b/source/groupdb/groupunix.c
index 89406fe1391..56d9584155e 100644
--- a/source/groupdb/groupunix.c
+++ b/source/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