|
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
����ǧ��,��Ը���� ��
|
- Re: (no subject) Alan DeKok
- (no subject) Andrew V. Atangulov
- (no subject) Max Malzkuhn
- Re: (no subject) Alan DeKok
- (no subject) LAURENT MPETI KABILA
- (no subject) Mazen Kassem
- (no subject) Russell Premont
- (no subject) Allen Lee
- (no subject) Mazen R. Kassem
- (no subject) Динар
- Re: (no subject) 郑 浩
- Re: (no subject) Alan DeKok
- (no subject) 郑浩
- (no subject) Andrey Nikulin
- Re: (no subject) Chris Parker
- (no subject) Andrey Nikulin
- (no subject) Andrey Nikulin
- (no subject) [EMAIL PROTECTED]
- (no subject) Diretoria
- RE: (no subject) Aaron T. Weiker
- (no subject) Hooman Amini
