Hello -
On Wed, 01 Jan 1997, Le Anh Tuan wrote:
> >%_Hi all,
> We are a small ISP in Vietnam, and we just want to setup a Radiator Radius server
>to handle some Ness with separate user groups. Each user group stored in different
>database, and each NAS will authenticate with different user.
> For example : for NAS_1, user@realm, database users_dab
> NAS_2, user@realm, database users_db2
> etc ...
You might try something like this:
# Set up the clients and a handler for each one
<Client NAS_1>
Secret something
</Client>
<Client NAS_2>
Secret somethingelse
</Client>
# Handler for NAS_1
# Authenticate from SQL users_dab
# Strip realm from username before authentication
# May need to do more sophisticated rewrite to verify realm
<Handler NAS-Identifier = NAS_1>
RewriteUsername s/^([^@]+).*/$1/
<AuthBy SQL>
DBSource ...
DBUsername ...
DBAuth ...
</AuthBy>
</Handler>
# Handler for NAS_2
# Authenticate from SQL users_db2
# Strip realm from username before authentication
# May need to do more sophisticated rewrite to verify realm
<Handler NAS-Identifier = NAS_2>
RewriteUsername s/^([^@]+).*/$1/
<AuthBy SQL>
DBSource ...
DBUsername ...
DBAuth ...
</AuthBy>
</Handler>
hth
Hugh
--
Radiator: the most portable, flexible and configurable RADIUS server
anywhere. SQL, proxy, DBM, files, LDAP, NIS+, password, NT, Emerald,
Platypus, Freeside, TACACS+, PAM, external, etc etc on Unix, Win95/8,
NT, Rhapsody
===
Archive at http://www.thesite.com.au/~radiator/
To unsubscribe, email '[EMAIL PROTECTED]' with
'unsubscribe radiator' in the body of the message.