Dear all,

I've configured my radius to load value of timeout based on NAS-Port-Type.. Using LDAP for user's entry..

In LDAP.. user's entry will have additional 2 attributes

TimeoutPSTN: 4000
TimeoutISDN: 1000

then in users file.. using exec to run small script to get correct value of sessiontimeout based on NAS-Port-Type

DEFAULT NAS-Port-Type == "Sync", Autz-Type := DIALUP, Auth-Type := DIALUP Session-Timeout = `%{exec:/usr/local/etc/raddb/timeout.pl %U ISDN}`

DEFAULT NAS-Port-Type == "Async", Autz-Type := DIALUP, Auth-Type := DIALUP Session-Timeout = `%{exec:/usr/local/etc/raddb/timeout.pl %U PSTN}`

And its works... But my question is there any better way to do this?? Maybe directly get value from LDAP....


thanks..


--haizam



- List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html

Reply via email to