Craig <[EMAIL PROTECTED]> wrote:
> I have been trying to get
> 
> [EMAIL PROTECTED] to authenticated from /etc/shadow1
> [EMAIL PROTECTED] to authenticated from /etc/shadow2
> 
> for a while but don't know how. Does freeradius allow this? 

  Sure.  You need two instances of the 'unix' module:

modules {
        unix ISP1 {
             ...
             shadow = /etc/shadow1
             ...
        }

        unix ISP2 {
             ...
             shadow = /etc/shadow2
             ...
        }
}


authenticate {
        authtype ISP1 {
                 ISP1
        }
        authtype ISP2 {
                 ISP2
        }
}


  Then in the 'users' file, do:

DEFAULT   User-Name =~ "@isp1.com$", Auth-Type := ISP1
          ...

DEFAULT   User-Name =~ "@isp2.com$", Auth-Type := ISP2
          ...


  That should work fine.

  Alan DeKok.

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

Reply via email to