From f7682385826a9ed2f463d794e0c91ba53ddd6a9e Mon Sep 17 00:00:00 2001 From: Luke Leighton Date: Tue, 1 Dec 1998 23:51:17 +0000 Subject: 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) --- source3/groupdb/groupunix.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'source3/groupdb/groupunix.c') diff --git a/source3/groupdb/groupunix.c b/source3/groupdb/groupunix.c index e5ad029e48..685e8146c0 100644 --- a/source3/groupdb/groupunix.c +++ b/source3/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; } -- cgit