Stripping Realms from SQL Accounting Queries

tnt at kalik.net tnt at kalik.net
Tue Nov 24 21:11:39 CET 2009


>> Perhaps do what is suggested wherever you care to look (this
>> list, documentation, website, ...) - run server in debug mode
>> (radiusd -X). Then you will see exactly what is happening.
>
> I did that, and it didn't help.  I added a realm definition back in to the
> config file, and here's the debug output now:

No, just a small snip of it.

> Doh, no dice!  Incidentally, as I mentioned in another reply a few minutes
> ago, using %{SQL-User-Name} instead of %{User-Name} results in an empty
> string,

That doesn't make much sense. SQL-User-Name *is* User-Name by default. At
least in recent versions.

>  and using only %{Stripped-User-Name} also results in an empty
> string.

Most likely suffix and sql module outputs are not from processing same
request.

> If you really would like me to, I suppose I could get you the whole debug
> output, but it's a few thousand lines for a single authorization.

Yes, we would *really* like you too! "If you want help on the list, post
the debug" is not written in README, FAQ and almost daily on this list
because it's someones idea of a joke. If you don't know or are not sure
which parts of the debug are relevant - post the whole thing (including
startup). Nobody will say anything bad about it.

Ivan Kalik




More information about the Freeradius-Users mailing list