hi�� everyone
 
I'm trying to setup FreeRadius0.5 working with Oracle Database
from the command line - sqlplus - all fine, I can do select, insert, etc
solaris 8, Local Oracle is 8.1.6.
 
FreeRadius dump  core with do a select operate,
 
so i add following code in the end of rlm_sql_instantiate
 
---
 sqlsocket = sql_get_socket(inst);
  if (sqlsocket == NULL) {
   return(RLM_MODULE_NOOP);
  }
 
 strcpy(querystr,"select userpassword from userinfo where username='test'");
 if ((inst->module->sql_select_query)(sqlsocket,inst->config,querystr) <0){
  radlog(L_ERR, "sessionn control: database query error");
   sql_release_socket(inst, sqlsocket);
        return RLM_MODULE_FAIL;
    }
    /* core fump when fetch */
    row = (inst->module->sql_fetch_row)(sqlsocket,inst->config);
---
 
i find OCIStmtExecute return OCI_SUCCESS when no record match with my query string.
and when one record match with my query string , i get 0 from sql_num_rows()
 
Any help would be fine

Best Regards,

 

Jedi H. Zheng
OneWave Technologies, Inc.
[EMAIL PROTECTED]
Tel: +86-21-62479900 ext. 3010
Fax: +86-21-62473300

 

                                                     ï¿½ï¿½ï¿½ï¿½Ç§ï¿½ï¿½,��Ը���� ��

Reply via email to