usage of exec to get LDAP value..

haizam haizam at myjaring.net
Thu Aug 25 11:10:01 CEST 2005


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






More information about the Freeradius-Users mailing list