SQL xlat not working

Alan DeKok aland at deployingradius.com
Wed Apr 1 18:17:39 CEST 2009


Eric Geier wrote:
> But even without using a raw attribute, the SQL xlat rule doesn't work, such
> as:
> 
> client 192.168.0.1/32 {
> 	secret	= "%{sql:SELECT secret FROM APs WHERE NAS-Identifier='blah'"

  That doesn't work.  Not only that, nothing in the documentation leads
you to believe that it COULD work.

> 	shortname	= testnet
> }
> 
> When googling, I think I found that when using LDAP, I would have to change
> a setting to get this working....I didn't find a similar setting for SQL.

  There isn't one.

> Is there a how to I can read to learn about this?

  The source code is freely available, and well commented.

  Alan DeKok.



More information about the Freeradius-Users mailing list