Re: xlat sql trouble

2005-01-21 Thread Red Cayenne
On Mon, 17 Jan 2005 11:43:51 -0500, Alan DeKok <[EMAIL PROTECTED]> wrote: > Red Cayenne <[EMAIL PROTECTED]> wrote: > I mean that your sql xlat function needs to call radius_xlat, too. > How else will it expand the variables passed to your function? > > Print out the string that gets passed to

Re: xlat sql trouble

2005-01-17 Thread Alan DeKok
Red Cayenne <[EMAIL PROTECTED]> wrote: > Thanks, this got me going. I got a clue that radius_xlat should call > itself to do the substitution, however I'm uncertain how to do this. I mean that your sql xlat function needs to call radius_xlat, too. How else will it expand the variables passed to

Re: xlat sql trouble

2005-01-17 Thread Red Cayenne
On Sun, 16 Jan 2005 11:46:52 -0500, Alan DeKok <[EMAIL PROTECTED]> wrote: > Read the original sql_xlat function, and see what the differences > are between it and your function. > > Odds are you're not calling radius_xlat. > > Alan DeKok. Thanks, this got me going. I got a clue that radius

Re: xlat sql trouble

2005-01-16 Thread Alan DeKok
Red Cayenne <[EMAIL PROTECTED]> wrote: > I wrote a custom xlat sql function (my setup is with mysql backend), > registered it, and radius_xlat gets the function running. However, > variables in query are not replaced with attribute values... So my > question is: what did I do wrong? :) Read the

xlat sql trouble

2005-01-15 Thread Red Cayenne
Hi, I wrote a custom xlat sql function (my setup is with mysql backend), registered it, and radius_xlat gets the function running. However, variables in query are not replaced with attribute values... So my question is: what did I do wrong? :) sql.conf : test_query = "SELECT id FROM ${authcheck_