I've already tried and it doesn't work. for example I want to check for existence of a custom check-item in user profiles with unlang, I try this: If(control:custom_check_item) { ... } This always returns true in my case , doesn't matter if a user have custom_check_item in his profile or not. -----Original Message----- From: freeradius-users-bounces+nasser=rasana.net@lists.freeradius.org [mailto:freeradius-users-bounces+nasser=rasana.net@lists.freeradius.org] On Behalf Of Arran Cudbard-Bell Sent: Monday, May 20, 2013 4:02 PM To: FreeRadius users mailing list Subject: Re: reference to check items using unlang On 20 May 2013, at 03:03, Nasser Heidari <nasser@rasana.net> wrote:
Hi All,
How can I reference to check items using unlang? When I use perl script , simply reference it by $RAD_CHECK. For example I want to check if there is a check item in sql user profile , then do some actions using unlang and if not then ignore it. By the way I know that I can do that by querying sql in unlang but I wondering if there is a better way for doing that.
control:<Attribute> Arran Cudbard-Bell <a.cudbardb@freeradius.org> FreeRADIUS Development Team - List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html