Re: Is it possible to split authentication and authorization requ ests based on NAS IP?

2003-04-03 Thread Alan DeKok
Deramus, Chris [EMAIL PROTECTED] wrote:
 Thanks, I sort of get what you are saying. But where do I define which
 sql.conf file to look in?

  radiusd.conf?  Is it really that hard to find out which file
references sql.conf?

  I assume that I would want sql1 for example to
 point to sql.conf and sql2 to point to sql2.conf or however I choose to set
 it up. I defined sql1 and sql2 in my radiusd.conf section and it made the
 application error out. I assume I have to define this elsewhere, any
 suggestions?

  Read sql.conf.  It's just a definition for an SQL module.  You can
create two instances of the SQL module by using standard methods.

  Alan DeKok.

- 
List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html


Re: Is it possible to split authentication and authorization requ ests based on NAS IP?

2003-04-03 Thread Alan DeKok
Deramus, Chris [EMAIL PROTECTED] wrote:
 I realize how aggravating this must be, but I guess I'm getting confused as
 to where you say create two instances of the SQL module.

  That isn't documented well...

  See 'doc/module_interface', section 2.

 When I run radiusd -X it generates the following error message:
 
 /usr/local/etc/raddb/users[148]: Parse error (check) for entry DEFAULT:
 Unknown value sql1 for attribute Autz-Type

do:

cp sql.conf sql1.conf

cp sql.conf sql2.conf

edit radiusd.conf to include sql1.conf  sql2.conf, instead of sql.conf

inside of sql1.conf, find 'sql {', and change it to 'sql sql1 {'
edit the queries for sql1...

inside of sql2.conf, find 'sql {', and change it to 'sql sql2 {'
edit the queries for sql2...


  The first name is the name of the module to load.  The second name
is the 'instance' name of the module, which allows multiple versions
to exist at the same time.

  Alan DeKok.


- 
List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html