How to add VAP based on LDAP group membership

Thomas Stather Thomas.Stather at mpimf-heidelberg.mpg.de
Mon Feb 22 12:01:27 CET 2016


Hi

Thanks a lot Stefan Paetow and Michael Ströder for pointing me in the 
right direction :)
Now i have another (but hopefully not difficult to solve) problem.

I get "Search returned no results" ouput which is obvious, since the 
mac-address VAP (after "rewrite-calling-station-id") has the format:

AA-BB-CC-DD-EE-FF

but on the ldap-server, the format is

aa:bb:cc:dd:ee:ff

How can i rewrite the mac address only for this ldap query (and not 
globally)? I hope then it will work in my case.


Best,

Thomas


Am 22.02.2016 um 10:25 schrieb Stefan Paetow:
>> if ("%{redundant_ldap:///ou=hosts,dc=testdomain,dc=de?macAddress?sub?macAddress=%{Calling-Station-Id}}") {
>>          update reply {
>>             Aruba-User-Vlan = "200"
>>          }
>> }
> Try:
>
> if ("%{redundant_ldap:ldap:///ou=hosts,dc=testdomain,dc=de?macAddress?sub?macAddress=%{Calling-Station-Id}}") {
> :
> :
> }
>
> Your original statement just refers to the ldap module, so it's seen as 'feed "///ou=hosts,..." to redundant_ldap', not 'feed "ldap:///ou=hosts,..." to redundant_ldap'.
>
> :-)
>
> Stefan Paetow
> Moonshot Industry & Research Liaison Coordinator
>
> t: +44 (0)1235 822 125
> gpg: 0x3FCE5142
> xmpp: stefanp at jabber.dev.ja.net
> skype: stefan.paetow.janet
>
> jisc.ac.uk
>
> Networkshop44, University of Manchester. Save the date: 22-24 March, 2016. #NWS44
>
> Jisc is a registered charity (number 1149740) and a company limited by guarantee which is registered in England under Company No. 5747339, VAT No. GB 197 0632 86. Jisc’s registered office is: One Castlepark, Tower Hill, Bristol, BS2 0JA. T 0203 697 5800.
>
> Jisc Collections and Janet Ltd. is a wholly owned Jisc subsidiary and a company limited by guarantee which is registered in England under Company No. number 2881024, VAT No. GB 197 0632 86. The registered office is: Lumen House, Library Avenue, Harwell, Didcot, Oxfordshire, OX11 0SG. T 01235 822200.
>
>
>
> -
> List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html

-- 
Thomas Stather
IT Services

Tel:  +49 6221-486 628
Fax: +49 6221-486 561

------------------------------------------------------------------------
Max Planck Institute for Medical Research (MPImF)
Jahnstrasse 29, 69120 Heidelberg
Germany



More information about the Freeradius-Users mailing list