Hello Danny -

At 7:45 +0000 01/1/19, Danny Kruitbosch wrote:
>Hi,
>
>I'm setting up Radiator to user AuthBy SQL.
>
>I was wondering if AuthSelect wil accept any (complex) SQL query...
>And can I define my query in a global var and than say:
>
>       AuthSelect MyGlobalVar


You would specify it like this:

        AuthSelect %{GlobalVar:MyGlobalVar}


>
>By the way....
>
>For any of you wanting to know, I posted a question on how to assign
>dynamic IP addresses depending on NAS_IP and Group membership. These
>groups are not Unix groups, but groups defined in my DB. I got it
>working.
>
>This is what I did:
>
>My usertable has a field called GROUPID (integer).
>I added this: ATTRIBUTE Group-ID 1001 integer to my dictionary
>With the AuthColumnDef I defined Group-ID as a reply item. Then I used
>NAS-IP-Group-ID as my poolhint. Works great! Mail me if you if you want
>more info...
>

In this particular case you do not need to define the attribute in 
the dictionary, just remember to do a DeleteFromReply before 
returning the reply.

hth

Hugh

-- 

NB: I am travelling this week, so there may be delays in our correspondence.

Radiator: the most portable, flexible and configurable RADIUS server
anywhere. SQL, proxy, DBM, files, LDAP, NIS+, password, NT, Emerald,
Platypus, Freeside, Interbiller, TACACS+, PAM, external, etc, etc.
Available on Unix, Linux, FreeBSD, Windows 95/98/2000, NT, MacOS X.

===
Archive at http://www.starport.net/~radiator/
Announcements on [EMAIL PROTECTED]
To unsubscribe, email '[EMAIL PROTECTED]' with
'unsubscribe radiator' in the body of the message.

Reply via email to