freeradius 3.0.4 --- unlang --- unknown module
Bilik.AA at lsrgroup.ru
Bilik.AA at lsrgroup.ru
Tue Nov 11 08:18:19 CET 2014
Hello everybody!
I use unlang incut in „default“ configfile in „post-auth“ subsection and it works fine on 2.1.12 version (FreeBSD 8.3-RELEASE):
-------------------------------------------------------------------------------------------------------------
if ("%{sql: SELECT vlan FROM radcheck WHERE username = '%{User-Name}'}" == "voice") {
update reply {
Cisco-AVPair = "device-traffic-class=voice"
}
}
else {
update reply {
Tunnel-Type = "VLAN",
Tunnel-Medium-Type = "IEEE-802",
Tunnel-Private-Group-ID = "%{sql: SELECT vlan FROM radcheck WHERE username = '%{User-Name}'}"
}
}
-------------------------------------------------------------------------------------------------------------
But on 3.0.4 version (FreeBSD 8.4-RELEASE) in doesn’t work. When I execute „radiusd -X“ such lines appear in debug output:
/usr/local/etc/raddb/sites-enabled/default[665]: Failed parsing expanded string:
/usr/local/etc/raddb/sites-enabled/default[665]: %{sql: SELECT vlan FROM radcheck WHERE username = '%{User-Name}'}
/usr/local/etc/raddb/sites-enabled/default[665]: ^ Unknown module
How could I manage this issue?
Thank you.
С уважением,
Александр Билик
Инженер по информационной безопасности
Группа управления коммуникациями
Группа ЛСР
E-mail: Bilik.AA at lsrgroup.ru<mailto:Bilik.AA at lsrgroup.ru>
www.lsrgroup.ru
[cid:image002.png at 01CFFD98.D0D378D0]
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freeradius.org/pipermail/freeradius-users/attachments/20141111/21d58b41/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image002.png
Type: image/png
Size: 1259 bytes
Desc: image002.png
URL: <http://lists.freeradius.org/pipermail/freeradius-users/attachments/20141111/21d58b41/attachment-0001.png>
More information about the Freeradius-Users
mailing list