Hi All
I have followed this howto http://cdrtool.ag-projects.com/browser/doc/INSTALL.txt
I did the CDR Tool installation
I installed freeradius and I installed radiusclient-ng
I did comment out the radius modules from the exclude list in the openser Makefile
I did comment out ENABLE_RADIUS_ACC modules/acc/Makefile
I did enter the following info into openser --> modparam("acc", "radius_config","/usr/local/etc/radiusclient-ng/radiusclient.conf")
I did edit /usr/local/etc/radiusclient-ng/servers to meet the secret requirements
I did add dictionary.ser to /usr/local/etc/radiusclient-ng/
I did restart the freeradius server using radiusd -x
Now when I do start openser I do get the following error:
Jun 16 10:02:02 [4488] ERROR:acc:init_acc_rad: acc: can't get code for the Sip-Response-Code attribute
Jun 16 10:02:02 [4488] ERROR:acc:mod_init: failed to init radius
Jun 16 10:02:02 [4488] ERROR:core:init_mod: failed to initialize module acc
Jun 16 10:02:02 [4488] ERROR:core:main: error while initializing modules
Jun 16 10:02:02 [4488] DBG:xlog:destroy: destroy module...
And the radius server does not show any incoming requests.
I have been hinted that the error above is related to some dictionary issue. However as mentioned above I did copy the dictionary.ser file to /usr/local/etc/radiusclient-ng/
Any hints please?
Thanks.
El Monday 16 June 2008 11:11:33 Ali Jawad escribió:
I have been hinted that the error above is related to some dictionary issue. However as mentioned above I did copy the dictionary.ser file to /usr/local/etc/radiusclient-ng/
Yes, but did you add the same dictionaries to the FreeRadius server? note that FreeRadius servers uses /etc/freeradius/dictionay file, not the client files (they could be in separate machines).
Hi The server and client are on the same machine.
The freeradius server config files are on /etc/raddb/
So I did copy it to that dir
[root@localhost radiusclient-ng]# cd /etc/raddb/ [root@localhost raddb]# pwd /etc/raddb [root@localhost raddb]# ls dictionary.ser dictionary.ser [root@localhost raddb]#
-----Original Message----- From: users-bounces@lists.openser.org [mailto:users-bounces@lists.openser.org] On Behalf Of Iñaki Baz Castillo Sent: Monday, June 16, 2008 12:16 PM To: users@lists.openser.org Subject: Re: [OpenSER-Users] Acc/CDRTool Issue
El Monday 16 June 2008 11:11:33 Ali Jawad escribió:
I have been hinted that the error above is related to some dictionary issue. However as mentioned above I did copy the dictionary.ser file to /usr/local/etc/radiusclient-ng/
Yes, but did you add the same dictionaries to the FreeRadius server? note that FreeRadius servers uses /etc/freeradius/dictionay file, not the client files (they could be in separate machines).
El Monday 16 June 2008 11:19:58 Ali Jawad escribió:
Hi The server and client are on the same machine.
The freeradius server config files are on /etc/raddb/
So I did copy it to that dir
[root@localhost radiusclient-ng]# cd /etc/raddb/ [root@localhost raddb]# pwd /etc/raddb [root@localhost raddb]# ls dictionary.ser dictionary.ser [root@localhost raddb]#
That's not enough. Check that you FreeRadius "dictionary" file has an #INCLUDE pointing to that file.
THat's most probably the problem, happened to me too
;)
d On Mon, Jun 16, 2008 at 12:00 PM, Iñaki Baz Castillo ibc@in.ilimit.es wrote:
El Monday 16 June 2008 11:19:58 Ali Jawad escribió:
Hi The server and client are on the same machine.
The freeradius server config files are on /etc/raddb/
So I did copy it to that dir
[root@localhost radiusclient-ng]# cd /etc/raddb/ [root@localhost raddb]# pwd /etc/raddb [root@localhost raddb]# ls dictionary.ser dictionary.ser [root@localhost raddb]#
That's not enough. Check that you FreeRadius "dictionary" file has an #INCLUDE pointing to that file.
-- Iñaki Baz Castillo ibc@in.ilimit.es
Users mailing list Users@lists.openser.org http://lists.openser.org/cgi-bin/mailman/listinfo/users
Hi Again
I have re-read the howto and it states that I should comment out the include line for the dictionary.ser file in the dictionary file for radiusclient-ng. Should I do the same for the server ? I did it for the client by adding the following line to the radiusclient-ng file
$INCLUDE /usr/local/etc/radiusclient-ng/dictionary.ser
This gave the following errror
Jun 16 12:08:12 [4781] ERROR:acc:init_acc_rad: failed to read radius dictionary Jun 16 12:08:12 [4781] ERROR:acc:mod_init: failed to init radius Jun 16 12:08:12 [4781] ERROR:core:init_mod: failed to initialize module acc Jun 16 12:08:12 [4781] ERROR:core:main: error while initializing modules
However if I do edit the radiusclient.conf file and point the dictionary directly to /usr/local/etc/radiusclient-ng/dictionary.ser openser appears to launch normally. Although nothing is added to the radius db.
In short.
Should I include the server as well ?
Is my include line for the client correct ?
Thanks.
-----Original Message----- From: users-bounces@lists.openser.org [mailto:users-bounces@lists.openser.org] On Behalf Of Iñaki Baz Castillo Sent: Monday, June 16, 2008 1:01 PM To: users@lists.openser.org Subject: Re: [OpenSER-Users] Acc/CDRTool Issue
El Monday 16 June 2008 11:19:58 Ali Jawad escribió:
Hi The server and client are on the same machine.
The freeradius server config files are on /etc/raddb/
So I did copy it to that dir
[root@localhost radiusclient-ng]# cd /etc/raddb/ [root@localhost raddb]# pwd /etc/raddb [root@localhost raddb]# ls dictionary.ser dictionary.ser [root@localhost raddb]#
That's not enough. Check that you FreeRadius "dictionary" file has an #INCLUDE pointing to that file.
this is my config:
on the server (radius):
ls -l /etc/freeradius/dictionary.ser -rw-r--r-- 1 root freerad 4233 2008-06-11 04:03 /etc/freeradius/dictionary.ser
my /etc/freeradius/dictionary:
$INCLUDE /usr/share/freeradius/dictionary $INCLUDE /etc/freeradius/dictionary.ser
on the client (openser):
ls -l /etc/radiusclient-ng/ total 48 -rw-r--r-- 1 root root 7375 2008-06-11 04:14 dictionary -rw-r--r-- 1 root root 4233 2008-06-11 04:52 dictionary.ser
in the file /etc/radiusclient-ng/dictionary AT THE VERY END:
$INCLUDE /etc/radiusclient-ng/dictionary.ser
that's it.
d On Mon, Jun 16, 2008 at 1:13 PM, Ali Jawad ali.jawad@splendor.net wrote:
Hi Again
I have re-read the howto and it states that I should comment out the include line for the dictionary.ser file in the dictionary file for radiusclient-ng. Should I do the same for the server ? I did it for the client by adding the following line to the radiusclient-ng file
$INCLUDE /usr/local/etc/radiusclient-ng/dictionary.ser
This gave the following errror
Jun 16 12:08:12 [4781] ERROR:acc:init_acc_rad: failed to read radius dictionary Jun 16 12:08:12 [4781] ERROR:acc:mod_init: failed to init radius Jun 16 12:08:12 [4781] ERROR:core:init_mod: failed to initialize module acc Jun 16 12:08:12 [4781] ERROR:core:main: error while initializing modules
However if I do edit the radiusclient.conf file and point the dictionary directly to /usr/local/etc/radiusclient-ng/dictionary.ser openser appears to launch normally. Although nothing is added to the radius db.
In short.
Should I include the server as well ?
Is my include line for the client correct ?
Thanks.
-----Original Message----- From: users-bounces@lists.openser.org [mailto:users-bounces@lists.openser.org] On Behalf Of Iñaki Baz Castillo Sent: Monday, June 16, 2008 1:01 PM To: users@lists.openser.org Subject: Re: [OpenSER-Users] Acc/CDRTool Issue
El Monday 16 June 2008 11:19:58 Ali Jawad escribió:
Hi The server and client are on the same machine.
The freeradius server config files are on /etc/raddb/
So I did copy it to that dir
[root@localhost radiusclient-ng]# cd /etc/raddb/ [root@localhost raddb]# pwd /etc/raddb [root@localhost raddb]# ls dictionary.ser dictionary.ser [root@localhost raddb]#
That's not enough. Check that you FreeRadius "dictionary" file has an #INCLUDE pointing to that file.
-- Iñaki Baz Castillo ibc@in.ilimit.es
Users mailing list Users@lists.openser.org http://lists.openser.org/cgi-bin/mailman/listinfo/users
-- This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean.
Users mailing list Users@lists.openser.org http://lists.openser.org/cgi-bin/mailman/listinfo/users
Hi All
I did add to in /etc/raddb/dictionary
$INCLUDE /usr/share/freeradius/dictionary $INCLUDE /etc/raddb/dictionary.ser
I did add in /usr/local/etc/radiusclient-ng/dictionary
$INCLUDE /usr/local/etc/radiusclient-ng/dictionary.ser the the LAST line.
I did restart radiusd with no problems
When I restarted Openser I got
Jun 16 12:48:47 [4923] ERROR:acc:init_acc_rad: failed to read radius dictionary Jun 16 12:48:47 [4923] ERROR:acc:mod_init: failed to init radius Jun 16 12:48:47 [4923] ERROR:core:init_mod: failed to initialize module acc Jun 16 12:48:47 [4923] ERROR:core:main: error while initializing modules Jun 16 12:48:47 [4923] DBG:xlog:destroy: destroy module...
-----Original Message----- From: David Villasmil [mailto:david.villasmil.work@gmail.com] Sent: Monday, June 16, 2008 2:23 PM To: Ali Jawad Cc: users@lists.openser.org Subject: Re: [OpenSER-Users] Acc/CDRTool Issue
this is my config:
on the server (radius):
ls -l /etc/freeradius/dictionary.ser -rw-r--r-- 1 root freerad 4233 2008-06-11 04:03 /etc/freeradius/dictionary.ser
my /etc/freeradius/dictionary:
$INCLUDE /usr/share/freeradius/dictionary $INCLUDE /etc/freeradius/dictionary.ser
on the client (openser):
ls -l /etc/radiusclient-ng/ total 48 -rw-r--r-- 1 root root 7375 2008-06-11 04:14 dictionary -rw-r--r-- 1 root root 4233 2008-06-11 04:52 dictionary.ser
in the file /etc/radiusclient-ng/dictionary AT THE VERY END:
$INCLUDE /etc/radiusclient-ng/dictionary.ser
that's it.
d On Mon, Jun 16, 2008 at 1:13 PM, Ali Jawad ali.jawad@splendor.net wrote:
Hi Again
I have re-read the howto and it states that I should comment out the include line for the dictionary.ser file in the dictionary file for radiusclient-ng. Should I do the same for the server ? I did it for the client by adding the following line to the radiusclient-ng file
$INCLUDE /usr/local/etc/radiusclient-ng/dictionary.ser
This gave the following errror
Jun 16 12:08:12 [4781] ERROR:acc:init_acc_rad: failed to read radius dictionary Jun 16 12:08:12 [4781] ERROR:acc:mod_init: failed to init radius Jun 16 12:08:12 [4781] ERROR:core:init_mod: failed to initialize module acc Jun 16 12:08:12 [4781] ERROR:core:main: error while initializing modules
However if I do edit the radiusclient.conf file and point the dictionary directly to /usr/local/etc/radiusclient-ng/dictionary.ser openser appears to launch normally. Although nothing is added to the radius db.
In short.
Should I include the server as well ?
Is my include line for the client correct ?
Thanks.
-----Original Message----- From: users-bounces@lists.openser.org [mailto:users-bounces@lists.openser.org] On Behalf Of Iñaki Baz Castillo Sent: Monday, June 16, 2008 1:01 PM To: users@lists.openser.org Subject: Re: [OpenSER-Users] Acc/CDRTool Issue
El Monday 16 June 2008 11:19:58 Ali Jawad escribió:
Hi The server and client are on the same machine.
The freeradius server config files are on /etc/raddb/
So I did copy it to that dir
[root@localhost radiusclient-ng]# cd /etc/raddb/ [root@localhost raddb]# pwd /etc/raddb [root@localhost raddb]# ls dictionary.ser dictionary.ser [root@localhost raddb]#
That's not enough. Check that you FreeRadius "dictionary" file has an #INCLUDE pointing to that file.
-- Iñaki Baz Castillo ibc@in.ilimit.es
Users mailing list Users@lists.openser.org http://lists.openser.org/cgi-bin/mailman/listinfo/users
-- This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean.
Users mailing list Users@lists.openser.org http://lists.openser.org/cgi-bin/mailman/listinfo/users
El Monday 16 June 2008 13:51:24 Ali Jawad escribió:
I did add in /usr/local/etc/radiusclient-ng/dictionary
$INCLUDE /usr/local/etc/radiusclient-ng/dictionary.ser the the LAST line.
Humm, try copying the content of dictionary.ser into /usr/local/etc/radiusclient-ng/dictionary file instead of using an $INCLUDE line.