Yo All!

Found a bug in FreeRADIUS Ver 0.4.  The problem is in rlm_unix.c.  You can
only specify a shadow password file when password caching is on.  When
cacheing is off it will fail.

Here is the patch to fix it:

*** rlm_unix.c.dist     Tue Mar  5 22:30:26 2002
--- rlm_unix.c.gem      Tue Mar  5 23:17:28 2002
***************
*** 506,512 ****
         *      stand right now.
         */
        if (inst->shadow_file != NULL) {
!               if ((spwd = fgetspnam(inst->shadow_file, name)) == NULL)
                        encrypted_pass = get_shadow_encrypted_pwd(spwd);
        } else if ((encrypted_pass == NULL) || (strlen(encrypted_pass) < 10)) {
                if ((spwd = getspnam(name)) != NULL)
--- 506,512 ----
         *      stand right now.
         */
        if (inst->shadow_file != NULL) {
!               if ((spwd = fgetspnam(inst->shadow_file, name)) != NULL)
                        encrypted_pass = get_shadow_encrypted_pwd(spwd);
        } else if ((encrypted_pass == NULL) || (strlen(encrypted_pass) < 10)) {
                if ((spwd = getspnam(name)) != NULL)



RGDS
GARY
---------------------------------------------------------------------------
Gary E. Miller Rellim 20340 Empire Blvd, Suite E-3, Bend, OR 97701
        [EMAIL PROTECTED]  Tel:+1(541)382-8588 Fax: +1(541)382-8676


- 
List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html

Reply via email to