Re: SQL query length

2008-01-16 Thread Alan DeKok
Spam Eater wrote: Problem: When I have the attribute Session-Timeout in the radcheck table, I get a Segmentation Fault after the query as run, no matter if it returns results or not. doc/bugs a) I've noticed that freeradius performs Accounting-Request when this attribute is set, is this

Re: SQL query length

2008-01-16 Thread Spam Eater
Hello Alan, Thank you so much for your quick response! Please check my comments inline below: Problem: When I have the attribute Session-Timeout in the radcheck table, I get a Segmentation Fault after the query as run, no matter if it returns results or not. doc/bugs a) I've

Re: SQL query length

2008-01-16 Thread Peter Nixon
b) Is there a limit to the sql query length? In 1.1.x, yes. About 253 octets in many cases. If the queries are in the configuration (e.g. rlm_sql_ippool), then the queries can be very long. Ok, this is certainly a problem for me. I can't change freeradius version (at least not

Re: SQL query length

2008-01-16 Thread Alan DeKok
Spam Eater wrote: Ok, this is certainly a problem for me. I can't change freeradius version (at least not now, maybe in the future) so I assume the only option is to 'exec' external scripts to perform more complex queries, am I right? It's an option, but not the only one. You can use Perl

Re: SQL query length

2008-01-16 Thread Spam Eater
Ok, this is certainly a problem for me. I can't change freeradius version (at least not now, maybe in the future) so I assume the only option is to 'exec' external scripts to perform more complex queries, am I right? It's an option, but not the only one. You can use Perl or Python,

Re: SQL query length

2008-01-16 Thread A . L . M . Buxey
Hi, option is to 'exec' external scripts to perform more complex queries, am I right? It's an option, but not the only one. You can use Perl or Python, too. Sorry if this seems studpid, but, do you mean that I can embed Perl in radiusd.conf? no - you can call PERL from pre-auth,