When doing group checks, call fgetgrnam on the *group* file, not
authoraland <aland>
Thu, 22 Aug 2002 14:14:20 +0000 (14:14 +0000)
committeraland <aland>
Thu, 22 Aug 2002 14:14:20 +0000 (14:14 +0000)
on the *passwd* file.

Patch from Maxim Konovalov

src/modules/rlm_unix/rlm_unix.c

index f37ee13..255604a 100644 (file)
@@ -226,7 +226,7 @@ static int groupcmp(void *instance, REQUEST *req, VALUE_PAIR *request, VALUE_PAI
                return -1;
 
        if (group_inst->group_file)
-               grp = fgetgrnam(group_inst->passwd_file, (char *)check->strvalue);
+               grp = fgetgrnam(group_inst->group_file, (char *)check->strvalue);
        else
                grp = getgrnam((char *)check->strvalue);
        if (grp == NULL)