22 Mar
2012
22 Mar
'12
1:19 p.m.
On 22/03/12 15:27, PENZ Robert wrote:
Hi!
Thx for the fast response!
But how to I execute the SQL authorize_reply_query query after I did a EAP authentication? I don't do that currently in post-auth. I just have the sql modul activated in authorize.
Like this: post-auth { if (TLS-Client-Cert ~ /.../) { update reply { Tunnel-Private-Group-Id := "%{sql:query goes here}" } } } You can run any SQL query you like as part of an expansion. The SQL query can reference any attributes you like, using standard attribute expansion. See "man unlang".