FreeRADIUS - Errors reading dictionary

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 which 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

I have now read the manual at http://www.mikrotik.com/testdocs/ros/2.9/guide/aaa_radius.php

And found this;

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.

So my question has become how? MikroTik?

Well I have found a solution that works, (with thanks to the freeradius list, and a very helpful Aussie!)

I replaced put the original /etc/freeradius/dictionary file back and added the line

$INCLUDE        /usr/share/freeradius/dictionary.mikrotik

to it and now all seems fine :sunglasses:

Have I done the correct thing here? Comments please :slight_smile: