Subject: Re: freeradius 2 certificate compatibility issue with ubuntu
14.04 Message-ID: <20160430132627.GA10793@lboro.ac.uk> Content-Type: text/plain; charset=us-ascii
p.s.: using v2 since v3 isn't supported on Ubuntu yet. After a full week of trying both the unofficial release and attempting to compile it myself, I realized that I don't know anywhere near enough about freeradius to debug it properly.
v3 is supported on Ubuntu - I've installed it on 14.x, 15.x and 16.x servers.
Excellent! Maybe you can help my get past the part that held me up (for most of a week) the last several times I tried to install this version. I did the following and everything went fine (generating the large prime took several minutes): apt-add-repository ppa:freeradius/stable-3.0 apt-get update apt-get install freeradius make Then, after making sure all the necessary utilities were installed: sudo apt-get install freeradius freeradius-mysql freeradius-utils and creating a test user, I started it with "freeradius -X" and the following tests all gave me "Access-Accept" (the third one wouldn't work for my freeradius2): radtest bob h3llo localhost 1812 t3sting123 radtest -t mschap bob h3llo localhost 100 t3sting123 radtest -t eap-md5 bob h3llo localhost 100 t3sting123 The problem I had is that I could never get the database to work. I installed extra mysql stuff I remembered needing for v2: sudo apt-get install mysql-server sudo apt-get install libmysqlclient-dev Then added a database "radius", and imported its tables and user: mysql -u root -p radius < /etc/freeradius/mods-config/sql/main/mysql/schema.sql mysql -u root -p < /etc/freeradius/mods-config/sql/main/mysql/setup.sql And added a test user: INSERT INTO radcheck (UserName, Attribute, op, Value) VALUES ('bobsql', 'Password', ':=', 'h3llo'); Now, the manual at http://wiki.freeradius.org/guide/SQL-HOWTO says to open "/etc/raddb/radiusd.conf" and "$INCLUDE sql.conf", but "sql.conf" isn't in this version. It also says to edit "/etc/raddb/sql.conf" and the "raddb" directory doesn't even exist on my computer. I tried cross referencing this with other sites (and made much use of "grep" and "find"), but nothing worked. Installing daloradius seemed to fix the problem but it came back the next day. Dustin
Hi,
Maybe you can help my get past the part that held me up (for most of a week) the last several times I tried to install this version.
maybe - but we all do things in different ways - for example, I would just install build essentials, the mysql-dev, ssl-dev etc etc and build freeradius 3 from source myself
mysql -u root -p radius < /etc/freeradius/mods-config/sql/main/mysql/schema.sql mysql -u root -p < /etc/freeradius/mods-config/sql/main/mysql/setup.sql
note the above paths......
Now, the manual at http://wiki.freeradius.org/guide/SQL-HOWTO says to open "/etc/raddb/radiusd.conf" and "$INCLUDE sql.conf", but "sql.conf" isn't in this version. It also says to edit "/etc/raddb/sql.conf" and the "raddb" directory doesn't even exist on my computer.
the guide you are readin is still v2 specific. for v3 there are README.rst files in the top level config location (when built from source anyway!) and mods-config directory. if not there - read them from the freeradius git repository web front end. in v3, the sql and ldap and conditional modules....which means to use them, you simply need to configure the sql module - note the above path I asked you to note? - they are the specific config parts but you need to edir mods-available/sql as required ('the engine') - and then ensure theres a symlink to it in the mods-enabled ...then restart the freeradius process after making the change alan
participants (2)
-
A.L.M.Buxey@lboro.ac.uk -
Dustin S