At 09:28 PM 10/4/2001 +0200, you wrote:
>Hello,
>
>Below is a fragment of my raddb/radiusd.conf.
>
>authorize {
> preprocess
> sql
> files
>}
>
>When I change the order of two modules in 'authorize' section like this
>
>authorize {
> preprocess
> files
> sql
>}
>
>'Add-Port-To-IP-Address' feature stops to work and every user gets the same
>IP address. I have a very small users file and try to store the most of
>check and reply items in a MySQL DB. For example, I have such record in my
>radgroupreply table
>
>DEFAULT | Add-Port-To-IP-Address | Yes
>
>and it works fine when 'files' is below 'sql'. Can someone explain me why it
>stops to work?
Run the server in debug mode ( radiusd -X ).
You'll most likely find that SQL is not being called at all, becuase,
yes, order does matter ( as do return values from the modules ). If
'files' returns success, then the server will not move on to call
SQL and your attributes will not be called.
You can authorize a user from only one module, it's difficult to have
modules build on each-other. I expect what you are trying to do is
something similar to a 'Module Fall-Through'.
If you feel daring, there is a document about how to do failover and
the like in the /doc directory. You may be able to get things
working the way you want by following the instructions in there to
modify the default behaviour on module return values.
-Chris
--
\\\|||/// \ Chris Parker - Manager, Development Engineering
\ ~ ~ / \ WX *is* Wireless! \ [EMAIL PROTECTED]
| @ @ | \ http://www.starnetwx.net \ (847) 963-0116
oOo---(_)---oOo--\------------------------------------------------------
\ Without C we would have 'obol', 'basi', and 'pasal'
-
List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html