Welcome, Guest. Please login or register.

Author Topic: Radius authentication in v1.4p6  (Read 1394 times)

Basiliss

  • Newbie
  • *
  • Posts: 3
    • View Profile
Radius authentication in v1.4p6
« on: January 06, 2016, 05:12:34 AM »
Under Ubuntu 14.04.3 I have installed all of the OS updates and the following dependencies as per instructions: apache2 libapache2-mod-php5 mysql-server libnet-snmp-perl libcrypt-rijndael-perl libcrypt-hcesha-perl libcrypt-des-perl libdigest-hmac-perl libio-pty-perl libnet-telnet-perl libalgorithm-diff-perl librrds-perl php5-mysql php5-snmp php5-gd php5-mcrypt rrdtool libsocket6-perl
along with the optional libweb-simple-perl libnet-ntp-perl libnet-dns-perl and then installed NeDi v1.4p6.

Everything works as intended to work, however when I configure the gui to use radius authentication
guiauth radius
radserver   192.168.0.1   1645   mypass   5   2

something is off.. I use a windows 2008R2 NPS box as a RADIUS server, which is tested with other devices. However, when I am trying to connect to NeDi with the above configuration parameters, I got a "server error message" in the browser. I did try a couple of them, including IE, Chrome and firefox.

From the RADIUS server side, I can't see any log in attempt in the logs.

Is there anything else that I need to install, in order to get the gui authentication to work with RADIUS?

gerold

  • Newbie
  • *
  • Posts: 11
    • View Profile
Re: Radius authentication in v1.4p6
« Reply #1 on: January 06, 2016, 03:03:25 PM »
Have a look at your apache log file.

In my case (Debian 8.2) I had to preload the radius.so library. The error message looked like this
Code: [Select]
$ sudo grep radius /var/log/apache2/error.log
[Tue Dec 08 13:24:14.606030 2015] [:error] [pid 8018] [client 129.70.200.60:60215] PHP Fatal error:  Call to undefined function radius_auth_open() in /opt/nedi/nedi-1.5/html/index.php on line 69, referer: https://nedi.example.com/

To fix this I created a radius.ini file as shown below.
Code: [Select]
$ cat /etc/php5/conf.d/radius.ini
extension=radius.so
$ ls -l /etc/php5/apache2/conf.d/radius.ini
lrwxrwxrwx 1 root root 23 Dec  8 13:54 /etc/php5/apache2/conf.d/radius.ini -> ../../conf.d/radius.ini

Apache needs to be restarted after theese files have been created.

Basiliss

  • Newbie
  • *
  • Posts: 3
    • View Profile
Re: Radius authentication in v1.4p6
« Reply #2 on: January 07, 2016, 01:54:02 AM »
Thanks gerold,

It works after those changes  :)
« Last Edit: January 07, 2016, 07:19:25 AM by Basiliss »