Bug 446347

Summary: openser-acc_radius - not found in module <acc>
Product: [Fedora] Fedora Reporter: Simon J Xuereb <sjxuereb>
Component: openserAssignee: Peter Lemenkov <lemenkov>
Status: CLOSED WORKSFORME QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: high Docs Contact:
Priority: low    
Version: 8CC: ondrejj
Target Milestone: ---   
Target Release: ---   
Hardware: i386   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2008-05-19 08:25:25 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
openser configuration file
none
openser dictionary
none
radiusclient.conf
none
radiusclient.conf
none
servers file
none
Revised openser dictionary none

Description Simon J Xuereb 2008-05-14 08:12:04 UTC
Description of problem:

Installed using "yum install openser-acc_radius.i386"

However parameters

modparam("acc", "radius_config", "/etc/radiusclient-ng/radiusclient.conf")
modparam("acc", "radius_flag", 1)
modparam("acc", "radius_missed_flag", 2)

are giving errors example:

May 14 11:40:48 [32394] ERROR:core:set_mod_param_regex: parameter
<radius_config> not found in module <acc>

I have also loaded module acc_radius.so and also tried parameters(just in case) 

modparam("acc_radius", "radius_config", "/etc/radiusclient-ng/radiusclient.conf")
modparam("acc_radius", "radius_flag", 1)
modparam("acc_radius", "radius_missed_flag", 2)

module seems to be totally ignored.

Version-Release number of selected component (if applicable):

openser-acc_radius-1.3.1-2.fc8

How reproducible:

Tried on 2 different Fedora 8 ( with all updates ) and reproduced the same results.

Steps to Reproduce:

loadmodule "acc_radius.so"
loadmodule "acc.so"

modparam("acc", "radius_config", "/etc/radiusclient-ng/radiusclient.conf")
modparam("acc", "radius_flag", 1)
modparam("acc", "radius_missed_flag", 2)
  
Actual results:

May 14 12:09:30 [32516] ERROR:core:set_mod_param_regex: parameter
<radius_config> not found in module <acc>
May 14 12:09:30 [32516] CRITICAL:core:yyerror: parse error in config file, line
54, column 20-21: Can't set module parameter
May 14 12:09:30 [32516] ERROR:core:set_mod_param_regex: parameter <radius_flag>
not found in module <acc>
May 14 12:09:30 [32516] CRITICAL:core:yyerror: parse error in config file, line
55, column 19-20: Can't set module parameter
May 14 12:09:30 [32516] ERROR:core:set_mod_param_regex: parameter
<radius_missed_flag> not found in module <acc>
May 14 12:09:30 [32516] CRITICAL:core:yyerror: parse error in config file, line
56, column 19-20: Can't set module parameter

Expected results:

Working normally.

Additional info:

I am not sure if the above error is actually a bug. But it seems the module is
totally being ignored.

Comment 1 Peter Lemenkov 2008-05-14 09:50:12 UTC
If you using acc_radius module then you mustn't include acc module. Please,
comment out loadmodule "acc.so" and repeat.

Comment 2 Simon J Xuereb 2008-05-14 12:32:32 UTC
When i comment #acc.so I get the following results.

May 14 16:26:23 [22664] ERROR:acc:init_acc_rad: acc: can't get code for the
Sip-Response-Code attribute
May 14 16:26:23 [22664] ERROR:acc:mod_init: failed to init radius
May 14 16:26:23 [22664] ERROR:core:init_mod: failed to initialize module acc
May 14 16:26:23 [22664] ERROR:core:main: error while initializing modules


I also upgraded to Fedora 9 now and still get the same results.


Comment 3 Peter Lemenkov 2008-05-14 12:44:39 UTC
Looks like you provided wrong radius-config.


Comment 4 Simon J Xuereb 2008-05-16 08:31:01 UTC
Created attachment 305656 [details]
openser configuration file

Comment 5 Simon J Xuereb 2008-05-16 08:31:58 UTC
Created attachment 305657 [details]
openser dictionary

Comment 6 Simon J Xuereb 2008-05-16 08:33:14 UTC
Created attachment 305659 [details]
radiusclient.conf

Comment 7 Simon J Xuereb 2008-05-16 08:41:46 UTC
Hi I moved on from the issue above using attached dictionary.openser.

However now during openser registration I am not seeing any incoming radius
requests (totally blank )in 

/usr/sbin/radiusd -X

my freeradius( localhost 1812,1813 ) + ldap was successfully tested using
NTRadPing and my /etc/raddb/clients.conf should be ok for localhost.

I have also noticed /usr/sbin/radclient is no longer present and
/usr/sbin/radiusclient is found instead when installing radiusclient-ng. 

Attached are my 3 configuration files.

Could radclient be the problem ?

10x for your help.

Regards

SJX


Comment 8 Simon J Xuereb 2008-05-16 08:46:19 UTC
Created attachment 305660 [details]
radiusclient.conf

Comment 9 Simon J Xuereb 2008-05-16 08:47:45 UTC
Created attachment 305662 [details]
servers file

Comment 10 Simon J Xuereb 2008-05-16 08:49:01 UTC
updated radiusclient.conf / servers file. 

10x again

SJX

Comment 11 Peter Lemenkov 2008-05-16 09:11:37 UTC
With attached dictionary file I've got the following errors:

May 16 13:02:20 dev /usr/sbin/openser[32682]: INFO:acc:mod_init: initializing... 
May 16 13:02:20 dev /usr/sbin/openser[32682]: ERROR:acc:init_acc_rad: acc: can't
get code for the User-Name attribute 
May 16 13:02:20 dev /usr/sbin/openser[32682]: ERROR:acc:mod_init: failed to init
radius 
May 16 13:02:20 dev /usr/sbin/openser[32682]: ERROR:core:init_mod: failed to
initialize module acc 
May 16 13:02:20 dev /usr/sbin/openser[32682]: ERROR:core:main: error while
initializing modules 

Although your exact message wasn't tracked, looks like you provided incomplete
dictionary.

Comment 12 Simon J Xuereb 2008-05-16 09:23:32 UTC
Created attachment 305664 [details]
Revised openser dictionary

Uncommented a few lines. It should work now.

10x

SJX