If statement for two different sql queries

Alan DeKok aland at deployingradius.com
Wed Oct 13 01:27:31 CEST 2021


On Oct 12, 2021, at 6:58 PM, Giedrius Baronas <g.baronas at gmail.com> wrote:
> I described the new module but the goal was to describe an additional
> instance sql1 that would use the same rlm_sql module.

  Your previous example was correct.  I doin't understand why you changed it.

> sql1 {

  That's wrong.

> I repeating read on manual https://wiki.freeradius.org/modules/Rlm_sql
> which sayed:
> 
> You can create multiple named instances like so:
> 
> sql sql_instance1 {

  Did you do:

	sql sql1 {
		...
	}

  ?

> I add word sql before both instances sql and sql1
> 
>  # Loading module "sql" from file /etc/freeradius/mods-enabled/sql
>  sql sql {

  Again, that's wrong.  Don't do that.

  Your previous message had:

sql sql1 {
	...
}

sql sql2 {
	...
}

  That works.  The documentation says to configure it this way.

  Alan DeKok.



More information about the Freeradius-Users mailing list