diff options
author | Luke Leighton <lkcl@samba.org> | 1998-11-25 23:11:25 +0000 |
---|---|---|
committer | Luke Leighton <lkcl@samba.org> | 1998-11-25 23:11:25 +0000 |
commit | 9a0cb06b240f3d772b53a6acc4804ccd9cbc4072 (patch) | |
tree | 4f1f45b3f1bb8d1165aef9312afc8fb355ae2ec9 /source3/groupdb/groupunix.c | |
parent | bfc38ff872446e0ad365c22327c779e72a81bef9 (diff) | |
download | samba-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/groupunix.c')
-rw-r--r-- | source3/groupdb/groupunix.c | 7 |
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 |