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...
fstrcpy(name, unix_name);
- if (!lookupsmbgrpnam(name, &gmep) &&
- !lookupsmbpwnam (name, &gmep))
+ if (!lookupsmbpwnam (name, &gmep) &&
+ !lookupsmbgrpnam(name, &gmep))
{
continue;
}
fstrcpy(name, unix_name);
- if (!lookupsmbgrpnam(name, &gmep) &&
- !lookupsmbpwnam (name, &gmep))
+ if (!lookupsmbpwnam (name, &gmep) &&
+ !lookupsmbgrpnam(name, &gmep))
{
continue;
}
{
DOM_NAME_MAP gmep;
- if (!lookupsmbgrpnam(unix_name, &gmep) &&
- !lookupsmbpwnam (unix_name, &gmep))
+ if (!lookupsmbpwnam (unix_name, &gmep) &&
+ !lookupsmbgrpnam(unix_name, &gmep))
{
continue;
}