If I recall correctly a similar question was asked sometime last week.
One way to accomplish this would be to create two separate SQL connections;
sql1 & sql2.
sql sql1 {
driver = "rlm_sql_mysql"
...
}
sql sql2 {
driver = "rlm_sql_mysql"
...
}
Add DEFAULT check conditions to the users file to check for the IP address
of your NAS, setting Autz-Type to either SQL1 or SQL2.
DEFAULT NAS-IP-Address == 192.168.0.1, Autz-Type := SQL1
DEFAULT NAS-IP-Address == 192.168.0.2, Autz-Type := SQL2
In radiusd.conf add the appropriate Autz-Type enteries to the 'authorize'
section, see 'Autz-Type' in the FreeRADIUS docs.
authorize{
suffix
preprocess
Autz-Type SQL1{
sql1
}
Autz-Type SQL2{
sql2
}
files
}
> -----Original Message-----
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED] Behalf Of Jeff Green
> Sent: 02 July 2003 14:52
> To: [EMAIL PROTECTED]
> Subject: Configuration Advice
>
>
> Hi Everyone,
>
>
> I'm using FreeRadius 0.8.1 with MySql backend and
> everything's
> working fine. It's a great piece of s/w.
>
> I've read the O'Reilly book and read the docs but I'm stuck on a
> configuration
> issue.
>
> My question is:
>
> I have two NAS (completely different) and I want one RADIUS server with
> one set of user definitions (username/password).
>
> How do I get Freeradius to send different set of Reply-Items depending on
> the NAS the request comes from ?
>
>
>
> Many Thanks,
>
> ---
> Jeff Green
> SAPIENS (UK) Ltd
> t: +44 (0)1895 464000 f: +44 (0)1895 463098
> url: http://www.sapiens.co.uk
> "Heavenly thoughts, in heavenly minds .. is not the World's design"
> ------------------------------------------------------------------------
> Confidentiality Note: The information contained in this email and
> document(s) attached are for the exclusive use of the addressee
> and may contain confidential, privileged and non-disclosable
> information. If the recipient of this email is not the addressee,
> such recipient is strictly prohibited from reading, photocopying,
> distribution or otherwise using this email or its contents in any
> way. Please notify the Sapiens (UK) Ltd. Systems Administrator
> via e-mail immediately at [EMAIL PROTECTED], if you
> have received this email in error.
>
> Disclaimer: The views, opinions and guidelines contained in this
> confidential e-mail are those of the originating author and may
> not be representative of Sapiens (UK) Ltd.
> ------------------------------------------------------------------------
>
> -
> List info/subscribe/unsubscribe? See
http://www.freeradius.org/list/users.html
-------------------------------------------------------------------------------------------------------
This email, and any files transmitted with it, is copyright and may contain
confidential information.
The contents are intended for the use of the addressee(s) only.
Unauthorized use may be unlawful.
If you receive this email by mistake, please advise sender immediately.
The views of the author may not necessarily constitute the views of Telco Electronics
Limited.
Nothing in this mail shall bind Telco Electronics Limited in any contract or
obligation.
Telco Electronics Limited
6-8 Oxford Court
Brackley
Northants
NN13 7XY
Tel 07000 701999
Fax 07000 701777
-
List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html