summaryrefslogtreecommitdiff
path: root/source3/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
commit9a0cb06b240f3d772b53a6acc4804ccd9cbc4072 (patch)
tree4f1f45b3f1bb8d1165aef9312afc8fb355ae2ec9 /source3/groupdb
parentbfc38ff872446e0ad365c22327c779e72a81bef9 (diff)
downloadsamba-9a0cb06b240f3d772b53a6acc4804ccd9cbc4072.tar.gz
samba-9a0cb06b240f3d772b53a6acc4804ccd9cbc4072.tar.bz2
samba-9a0cb06b240f3d772b53a6acc4804ccd9cbc4072.zip
fixing group database issues
(This used to be commit 591c63e3e1e3201ddcd7582585b652fb848d80ca)
Diffstat (limited to 'source3/groupdb')
-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