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 | 585d47644d3d709ccdfd5135c5f77166b609eb3b (patch) | |
tree | e1302555ade85313493fe2dd5573dca8390a66d5 /source/groupdb | |
parent | 9d4e810e7dd8d6d80b47204636f9a37774f95455 (diff) | |
download | samba-585d47644d3d709ccdfd5135c5f77166b609eb3b.tar.gz |
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...
Diffstat (limited to 'source/groupdb')
-rw-r--r-- | source/groupdb/aliasunix.c | 4 | ||||
-rw-r--r-- | source/groupdb/builtinunix.c | 4 | ||||
-rw-r--r-- | source/groupdb/groupunix.c | 4 |
3 files changed, 6 insertions, 6 deletions
diff --git a/source/groupdb/aliasunix.c b/source/groupdb/aliasunix.c index 715e2906438..f9b93bbce43 100644 --- a/source/groupdb/aliasunix.c +++ b/source/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; } diff --git a/source/groupdb/builtinunix.c b/source/groupdb/builtinunix.c index dc70ffb3dcb..3fa28b63aea 100644 --- a/source/groupdb/builtinunix.c +++ b/source/groupdb/builtinunix.c @@ -91,8 +91,8 @@ BOOL get_unixbuiltin_members(struct group *grp, fstrcpy(name, unix_name); - if (!lookupsmbgrpnam(name, &gmep) && - !lookupsmbpwnam (name, &gmep)) + if (!lookupsmbpwnam (name, &gmep) && + !lookupsmbgrpnam(name, &gmep)) { continue; } diff --git a/source/groupdb/groupunix.c b/source/groupdb/groupunix.c index e5ad029e48a..685e8146c02 100644 --- a/source/groupdb/groupunix.c +++ b/source/groupdb/groupunix.c @@ -85,8 +85,8 @@ BOOL get_unixgroup_members(struct group *grp, { DOM_NAME_MAP gmep; - if (!lookupsmbgrpnam(unix_name, &gmep) && - !lookupsmbpwnam (unix_name, &gmep)) + if (!lookupsmbpwnam (unix_name, &gmep) && + !lookupsmbgrpnam(unix_name, &gmep)) { continue; } |