Hi, I get the following error trying to start freeradius; daytona:~# freeradius -x Starting - reading configuration files ... Errors reading dictionary: dict_init: /etc/freeradius/dictionary[177]: invalid ATTRIBUTE line Errors reading radiusd.conf daytona:~# Im using the dictionary file provided by MikroTik at http://www.mikrotik.com/Documentation/manual_2.9/dictionary whihc I installed by typing; cd /etc/freeradius rm dictionary wget http://www.mikrotik.com/Documentation/manual_2.9/dictionary chmod 640 dictionary chown root.freerad dictionary I'm relatively new to FreeRADIUS and any help would be appreciated. Regards Liam
Hi, I have found this explanation in the MikroTik manual
Here you can download MikroTik reference dictionary, which incorporates all the needed RADIUS attributes. This dictionary is the minimal dictionary, which is enough to support all features of MikroTik RouterOS. It is designed for FreeRADIUS, but may also be used with many other UNIX RADIUS servers (eg. XTRadius).
Note that it may conflict with the default configuration files of RADIUS server, which have references to the Attributes, absent in this dictionary. Please correct the configuration files, not the dictionary, as no other Attributes are supported by MikroTik RouterOS.
Which has me stumped, I'm not sure what I'm supposed to be removing (or adding) to what configuration files to alleviate my problem? Has anyone else had a similar problem they can shed some light on? Cheers Liam On 15/06/07, Liam Farr <liam@farr.net.nz> wrote:
Hi,
I get the following error trying to start freeradius;
daytona:~# freeradius -x Starting - reading configuration files ... Errors reading dictionary: dict_init: /etc/freeradius/dictionary[177]: invalid ATTRIBUTE line Errors reading radiusd.conf daytona:~#
Im using the dictionary file provided by MikroTik at http://www.mikrotik.com/Documentation/manual_2.9/dictionary whihc I installed by typing;
cd /etc/freeradius rm dictionary wget http://www.mikrotik.com/Documentation/manual_2.9/dictionary chmod 640 dictionary chown root.freerad dictionary
I'm relatively new to FreeRADIUS and any help would be appreciated.
Regards
Liam
Im using the dictionary file provided by MikroTik at http://www.mikrotik.com/Documentation/manual_2.9/dictionary whihc I installed by typing;
cd /etc/freeradius rm dictionary wget http://www.mikrotik.com/Documentation/manual_2.9/dictionary chmod 640 dictionary chown root.freerad dictionary
Ahem. You *deleted* everything FreeRADIUS knows about RADIUS attributes and replaced it with *only* MikroTik stuff? "Doomed" is the only word that comes to my mind then :-) /etc/freeradius/dictionary is the MASTER dictionary. Don't delete it. Instead, download the MikroTik thing into a different dictionary, and move it to /etc/freeradius under a *different* name, like /etc/freeradius/dictionary.mikrotik Then, edit /etc/freeradius/dictionary to $INCLUDE this file. The error log you provided still seems to indicate that there is a formatting error in that MikroTik dictionary. You need to fix its syntax so that it conforms to FreeRADIUS then - regardless of Mikrotik's claim that it *is* conformant.
I'm relatively new to FreeRADIUS and any help would be appreciated.
Start by not deleting essential parts ;-) Stefan -- Stefan WINTER Stiftung RESTENA - Réseau Téléinformatique de l'Education Nationale et de la Recherche Ingenieur Forschung & Entwicklung 6, rue Richard Coudenhove-Kalergi L-1359 Luxembourg E-Mail: stefan.winter@restena.lu Tel.: +352 424409-1 http://www.restena.lu Fax: +352 422473
_______________________________ From: freeradius-users-bounces+frank.ranner=defence.gov.au@lists.freeradius.or g [mailto:freeradius-users-bounces+frank.ranner=defence.gov.au@lists.freer adius.org] On Behalf Of Liam Farr Sent: Friday, 15 June 2007 15:11 To: FreeRadius users mailing list Subject: Errors reading dictionary - MikroTik Hi, I get the following error trying to start freeradius; daytona:~# freeradius -x Starting - reading configuration files ... Errors reading dictionary: dict_init: /etc/freeradius/dictionary[177]: invalid ATTRIBUTE line Errors reading radiusd.conf daytona:~# Im using the dictionary file provided by MikroTik at http://www.mikrotik.com/Documentation/manual_2.9/dictionary <http://www.mikrotik.com/Documentation/manual_2.9/dictionary> whihc I installed by typing; cd /etc/freeradius rm dictionary wget http://www.mikrotik.com/Documentation/manual_2.9/dictionary <http://www.mikrotik.com/Documentation/manual_2.9/dictionary> chmod 640 dictionary chown root.freerad dictionary I'm relatively new to FreeRADIUS and any help would be appreciated. Regards Liam 1. put back the dictionary you deleted. 2. in the /etc/freeradius/dictionary file add a line: $INCLUDE /usr/share/freeradius/dictionary.mikrotik 3. Replace dictionary.mikrotik in /usr/share/freeradius with lines 196 - end of the file in your url Now the server should load correctly. Regards, Frank Ranner
Thanks heaps Kelvin & Frank, worked a treat! I re downloaded the Debian free radius package, extracted and replaced the original /etc/freeradius/dictionary file, chomod & chown'd it and added the line '$INCLUDE /usr/share/freeradius/dictionary.mikrotik'. I didn't do step 3 though (?). Now when it starts I get this (which appears normal);
daytona:/etc/freeradius# freeradius -x Starting - reading configuration files ... Using deprecated naslist file. Support for this will go away soon. Module: Loaded PAP Module: Instantiated pap (pap) Module: Loaded CHAP Module: Instantiated chap (chap) Module: Loaded MS-CHAP Module: Instantiated mschap (mschap) Module: Loaded SQL rlm_sql (sql): Driver rlm_sql_mysql (module rlm_sql_mysql) loaded and linked rlm_sql (sql): Attempting to connect to freeradius_user@localhost :/freeradius rlm_sql (sql): starting 0 rlm_sql (sql): Attempting to connect rlm_sql_mysql #0 rlm_sql_mysql: Starting connect to MySQL server for #0 rlm_sql (sql): Connected new DB handle, #0 rlm_sql (sql): starting 1 rlm_sql (sql): Attempting to connect rlm_sql_mysql #1 rlm_sql_mysql: Starting connect to MySQL server for #1 rlm_sql (sql): Connected new DB handle, #1 rlm_sql (sql): starting 2 rlm_sql (sql): Attempting to connect rlm_sql_mysql #2 rlm_sql_mysql: Starting connect to MySQL server for #2 rlm_sql (sql): Connected new DB handle, #2 rlm_sql (sql): starting 3 rlm_sql (sql): Attempting to connect rlm_sql_mysql #3 rlm_sql_mysql: Starting connect to MySQL server for #3 rlm_sql (sql): Connected new DB handle, #3 rlm_sql (sql): starting 4 rlm_sql (sql): Attempting to connect rlm_sql_mysql #4 rlm_sql_mysql: Starting connect to MySQL server for #4 rlm_sql (sql): Connected new DB handle, #4 Module: Instantiated sql (sql) Module: Loaded Acct-Unique-Session-Id Module: Instantiated acct_unique (acct_unique) Initializing the thread pool... Listening on authentication *:1812 Listening on accounting *:1813 Ready to process requests.
I definatley owe you guys a pint! Cheers Liam On 15/06/07, Ranner, Frank MR <Frank.Ranner@defence.gov.au > wrote:
_______________________________
From: freeradius-users-bounces+frank.ranner= defence.gov.au@lists.freeradius.or g [mailto:freeradius-users-bounces+frank.ranner=defence.gov.au@lists.freer adius.org] On Behalf Of Liam Farr Sent: Friday, 15 June 2007 15:11 To: FreeRadius users mailing list Subject: Errors reading dictionary - MikroTik
Hi,
I get the following error trying to start freeradius;
daytona:~# freeradius -x Starting - reading configuration files ... Errors reading dictionary: dict_init: /etc/freeradius/dictionary[177]: invalid ATTRIBUTE line Errors reading radiusd.conf daytona:~#
Im using the dictionary file provided by MikroTik at http://www.mikrotik.com/Documentation/manual_2.9/dictionary <http://www.mikrotik.com/Documentation/manual_2.9/dictionary> whihc I installed by typing;
cd /etc/freeradius rm dictionary wget http://www.mikrotik.com/Documentation/manual_2.9/dictionary <http://www.mikrotik.com/Documentation/manual_2.9/dictionary> chmod 640 dictionary chown root.freerad dictionary I'm relatively new to FreeRADIUS and any help would be appreciated.
Regards
Liam
1. put back the dictionary you deleted. 2. in the /etc/freeradius/dictionary file add a line: $INCLUDE /usr/share/freeradius/dictionary.mikrotik 3. Replace dictionary.mikrotik in /usr/share/freeradius with lines 196 - end of the file in your url
Now the server should load correctly.
Regards, Frank Ranner
- List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html
Liam Farr wrote:
Im using the dictionary file provided by MikroTik at http://www.mikrotik.com/Documentation/manual_2.9/dictionary whihc I installed by typing;
Why? I am continually amazed at the number of people who go to great lengths to break the default configuration. The default configuration works. Don't touch it. In addition, the dictionary that they supply does *not* work with FreeRADIUS. I've added the 4-5 new attributes to the dictionary.miktrotik file that ships with FreeRADIUS. They're properly formatted, and will be included in the next release. Alan DeKok. -- http://deployingradius.com - The web site of the book http://deployingradius.com/blog/ - The blog
Hi, I was reading the FreeRADIUS how to guide on mikrotik's wiki, which explicitly said remove the dictionary file and replace it, (I have now changed the wiki to read 'include the dictionary.mikrotik file...). How would I get hold of the new updated dictionary file (that your about to release)? Cheers Liam On 15/06/07, Alan Dekok <aland@deployingradius.com> wrote:
Liam Farr wrote:
Im using the dictionary file provided by MikroTik at http://www.mikrotik.com/Documentation/manual_2.9/dictionary whihc I installed by typing;
Why? I am continually amazed at the number of people who go to great lengths to break the default configuration.
The default configuration works. Don't touch it. In addition, the dictionary that they supply does *not* work with FreeRADIUS.
I've added the 4-5 new attributes to the dictionary.miktrotik file that ships with FreeRADIUS. They're properly formatted, and will be included in the next release.
Alan DeKok. -- http://deployingradius.com - The web site of the book http://deployingradius.com/blog/ - The blog - List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html
Liam Farr wrote:
I was reading the FreeRADIUS how to guide on mikrotik's wiki, which explicitly said remove the dictionary file and replace it, (I have now changed the wiki to read 'include the dictionary.mikrotik file...).
The dictionary file that they have includes a LOT of non-mikrotik attributes. This is useless. If they want to document what attributes their software supports, they should do so in a documentation file, NOT in a server configuration file.
How would I get hold of the new updated dictionary file (that your about to release)?
If you don't need the new attributes, you don't need the new dictionary file. If you do need the new attributes, just copy them from the dictionary file Mikrotik supplies to the dictionary.mikrotik file supplied with FreeRADIUS. Follow the existing format in FreeRADIUS, and it will work. Alan DeKok. -- http://deployingradius.com - The web site of the book http://deployingradius.com/blog/ - The blog
participants (4)
-
Alan Dekok -
Liam Farr -
Ranner, Frank MR -
Stefan Winter