Hi,
take a look at this...

---------------------

+++ freeradius-patched/src/modules/rlm_sql/rlm_sql.c    Fri Oct 12 08:58:03
2001
@@ -336,19 +336,17 @@
        }

        row = (inst->module->sql_fetch_row)(sqlsocket, inst->config);
-       (inst->module->sql_finish_select_query)(sqlsocket, inst->config);
-       sql_release_socket(inst, sqlsocket);

        if (row == NULL) {
                radlog(L_ERR, "rlm_sql_authenticate: no rows returned from
query (no
such user)");
                retval = RLM_MODULE_REJECT;
-               goto return_only;
+               goto release_and_return;
        }

        if (row[0] == NULL) {
                radlog(L_ERR, "rlm_sql_authenticate: row[0] returned
NULL.");
                retval = RLM_MODULE_REJECT;
-               goto return_only;
+               goto release_and_return;
        }

        /*
@@ -383,9 +381,10 @@
                }
        }

-       goto return_only;
+     // goto return_only;

 release_and_return:
+       (inst->module->sql_finish_select_query)(sqlsocket, inst->config);
        sql_release_socket(inst, sqlsocket);
 return_only:
        return(retval);

----------------------

Vic

----- Original Message -----
From: "Henry Su" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, October 12, 2001 12:19 AM
Subject: RE: an oracle authentication questions...


> Thanks Victor. I found the message:
>
http://lists.cistron.nl/pipermail/freeradius-users/2001-September/002196.htm
> l, but it did not help, after I change the code and try it again.
>
> -----Original Message-----
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED]]On Behalf Of Henry Su
> Sent: Thursday, October 11, 2001 12:08 PM
> To: [EMAIL PROTECTED]
> Subject: RE: an oracle authentication questions...
>
>
>
>
> Could you please be more specific, I could not find which thread it is.
> Thanks.
>
> -----Original Message-----
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED]]On Behalf Of victor
> Sent: Thursday, October 11, 2001 12:25 AM
> To: [EMAIL PROTECTED]
> Subject: Re: an oracle authentication questions...
>
>
>
>
> It seems to be the problem with the garbage in the rows returned in
rlm_sql
> module.
> read the September message archive (25.09.2001). There you can find some
> useful info.
>
> Vic
>
>
> -
> List info/subscribe/unsubscribe? See
> http://www.freeradius.org/list/users.html
>
>
> -
> List info/subscribe/unsubscribe? See
> http://www.freeradius.org/list/users.html
>
>
>
> --__--__--
>
>


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

Reply via email to