Re: Multiple Password Files

2003-01-21 Thread Alan DeKok
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



Re: Multiple Password Files

2003-01-21 Thread Simon White
21-Jan-03 at 18:00, 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? Surely multiple 
> password files/databases/locations would be supported, since many ISP's with 
> resellers would want this.

You read up on realms and maybe using something like MySQL/LDAP rather
than shadow files? (I bet you could do it with shadow files though)

-- 
|-Simon White, Internet Services Manager, Certified Check Point CCSA.
|-MTDS  Internet, Security, Anti-Virus, Linux and Hosting Solutions.
|-MTDS  14, rue du 16 novembre, Agdal, Rabat, Morocco.
|-MTDS  tel +212.3.767.4861 - fax +212.3.767.4863

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