At 11:51 AM 1/5/2002 +0200, Igor Chen wrote:
>Seems that radius can't reach sql-user-name when updating session with
>Alive record...
Can you apply the following patch to 'src/modules/rlm_sql/rlm_sql.c' and
see if the problem is fixed?
--- beging patch ---
*** rlm_sql.c 2001/12/14 16:05:16 1.69
--- rlm_sql.c 2002/01/07 16:18:23
*************** static int rlm_sql_accounting(void *inst
*** 471,476 ****
--- 471,484 ----
*/
case PW_STATUS_ALIVE:
+ /*
+ * Set, escape, and check the user attr here
+ */
+ if(sql_set_user(inst, request, sqlusername, 0) < 0) {
+ sql_release_socket(inst, sqlsocket);
+ return RLM_MODULE_FAIL;
+ }
+
radius_xlat(querystr, MAX_QUERY_LEN,
inst->config->accounting_update_query, request, NULL);
query_log(inst, querystr);
--- end patch ---
Please let me know if that works and I'll commit the change to the
current CVS build.
-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