diff options
author | Luke Leighton <lkcl@samba.org> | 1998-12-01 23:51:17 +0000 |
---|---|---|
committer | Luke Leighton <lkcl@samba.org> | 1998-12-01 23:51:17 +0000 |
commit | f7682385826a9ed2f463d794e0c91ba53ddd6a9e (patch) | |
tree | ad5c37ea054797f6a3a23b7f157e68b7dc360f04 /source3/groupdb/aliasunix.c | |
parent | 08cdea519c692de092ba7a70664411c1a3cedac0 (diff) | |
download | samba-f7682385826a9ed2f463d794e0c91ba53ddd6a9e.tar.gz samba-f7682385826a9ed2f463d794e0c91ba53ddd6a9e.tar.bz2 samba-f7682385826a9ed2f463d794e0c91ba53ddd6a9e.zip |
ok. unix-nt mapping code issues
need to check, when looking up group members, that a group member is
a unix user [being mapped to an nt user] FIRST then if that fails
check that a group member is a unix group [being mapped to an nt group].
why? because you can have group names in a unix /etc/group file with
the same name as users.
this _might_ be a problem...
(This used to be commit 585d47644d3d709ccdfd5135c5f77166b609eb3b)
Diffstat (limited to 'source3/groupdb/aliasunix.c')
-rw-r--r-- | source3/groupdb/aliasunix.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source3/groupdb/aliasunix.c b/source3/groupdb/aliasunix.c index 715e290643..f9b93bbce4 100644 --- a/source3/groupdb/aliasunix.c +++ b/source3/groupdb/aliasunix.c @@ -90,8 +90,8 @@ BOOL get_unixalias_members(struct group *grp, fstrcpy(name, unix_name); - if (!lookupsmbgrpnam(name, &gmep) && - !lookupsmbpwnam (name, &gmep)) + if (!lookupsmbpwnam (name, &gmep) && + !lookupsmbgrpnam(name, &gmep)) { continue; } |