Thank you, Kostas.
I tried it, nothing changed.
And I seek in the source code, in rlm_sql.c, function rlm_sql_authorize
if the pairs do not match, module will return
RLM_MODULE_NOTFOUND,
and in auth.c, function rad_authenticate
if (r != RLM_MODULE_NOTFOUND &&
r != RLM_MODULE_NOOP &&
r != RLM_MODULE_OK &&
r != RLM_MODULE_UPDATED) {
so, it seems as same as RLM_MODULE_OK,
(just in rlm_sql_authorize
pairmove(&request->reply->vps, &reply_tmp);
pairmove(&request->config_items, &check_tmp);
pairfree(&reply_tmp);
pairfree(&check_tmp);
was skipped)
I change the RLM_MODULE_NOTFOUND to
RLM_MODULE_INVALID in rlm_sql_authorize,
then it works:
Thu Mar 7 13:59:19 2002 : Info: rlm_sql: Pairs do not match [jb@adsl]
Thu Mar 7 13:59:19 2002 : Auth: Invalid user: [jb@adsl] (from nas
unisphere-lqf port 1359675619 cli
#SZ_ERX1400_LQF#A51#11#227)
I am not sure is this the right way make it work.
Can anyone tell me another way it will work?
>
> In your radiusd.conf instead of
>
> authorize{
> [...]
> sql
> [...]
> }
>
> do
>
> authorize{
> [...]
> sql{
> notfound = return
> }
> [...]
> }
>
> --
> Kostas Kalevras Network Operations Center
> [EMAIL PROTECTED] National Technical University of Athens, Greece
> Work Phone: +30 10 7721861
> 'Go back to the shadow' Gandalf
-
List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html