[prev in list] [next in list] [prev in thread] [next in thread] 

List:       freeradius-users
Subject:    Re: If statement for two different sql queries
From:       Alan DeKok <aland () deployingradius ! com>
Date:       2021-10-12 23:27:31
Message-ID: 4182FAC1-A7EB-4334-BB2C-5EFA388634C8 () deployingradius ! com
[Download RAW message or body]

On Oct 12, 2021, at 6:58 PM, Giedrius Baronas <g.baronas@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.

-
List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic