Multiple NAS freeradius

Alejandro Gandara agandara at optaresolutions.com
Tue Oct 4 13:57:35 CEST 2011


Thanks very much for the fastest and efectivest answer.


2011/10/4 Arran Cudbard-Bell <a.cudbardb at freeradius.org>

>
> On 4 Oct 2011, at 13:32, Alejandro Gandara wrote:
>
> Hi list,
>
> Im using freeradius 2.1.10 with ldap and I have a doubt.
>
> Im testing radius with two NAS , first one an  openvpn service and the
> other one  is a switch Procurve.
>
> My question is the following:
>
>  Can I configure the openvpn nas to read some attribute from the ldap ( as
> framedipaddress) and at the same time configure switch procurve to read the
> attribute pool-name from the radius?
>  How can I tell freeradius which attribute read for each nas?
>
> For example:
>
> User1 connect trhough openvpn so it will get the ip provided from
> framedipaddress attribute.
> User 1 disconnect openvpn
> User 1 connect with wired connection so it will get  the IP provided for
> ippool after read poolname attribute from ldap.
>
>
> Sure...
>
> sites-available/default
>
> authorize {
> if(Client-shortname == 'openvpn'){
> update reply {
> Framed-IP-Address := "%{ldap:my ldap query}"
> }
> }
> else {
> update reply {
> My-Other-Attribute := "%{ldap:my ldap query}"
> }
> }
> }
>
> clients.conf
>
> client <foo ip> {
> shortname = openvpn
> }
>
>
> Arran Cudbard-Bell
> a.cudbardb at freeradius.org
>
> Betelwiki, Betelwiki, Betelwiki.... http://wiki.freeradius.org/ !
>
>
> -
> List info/subscribe/unsubscribe? See
> http://www.freeradius.org/list/users.html
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freeradius.org/pipermail/freeradius-users/attachments/20111004/17c1ca9b/attachment.html>


More information about the Freeradius-Users mailing list