docs:guide-user:services:remote_control:daloradius

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
docs:guide-user:services:remote_control:daloradius [2018/03/04 11:38]
bobafetthotmail ↷ Page moved from inbox:daloradius to docs:guide-user:services:remote_control:daloradius
docs:guide-user:services:remote_control:daloradius [2018/06/11 14:24] (current)
tmomas link fixed
Line 6: Line 6:
 ==== Prerequisites ==== ==== Prerequisites ====
   * You need to have a freeradius server up and running.\\ Unfortunately,​ this is not documented on this wiki yet, but relatively straightforward. This howto expects that you have one already up and running.   * You need to have a freeradius server up and running.\\ Unfortunately,​ this is not documented on this wiki yet, but relatively straightforward. This howto expects that you have one already up and running.
-  * You should have configured your Wifi to use your radius server.\\ For this, see [[doc:uci:wireless#wpa.enterprise.access.point]]. Don't forget, that you will need wpad instead of wpad-mini for enterprise WPA!+  * You should have configured your Wifi to use your radius server.\\ For this, see [[docs:guide-user:network:​wifi:​basic#wpa_enterprise_access_point]]. Don't forget, that you will need wpad instead of wpad-mini for enterprise WPA!
   * It might be a good idea to have [[doc:​howto:​luci.on.lighttpd|LuCI running on Lighthttpd]]   * It might be a good idea to have [[doc:​howto:​luci.on.lighttpd|LuCI running on Lighthttpd]]
  
 ==== Required Packages ==== ==== Required Packages ====
 === Server (OpenWrt) === === Server (OpenWrt) ===
-  ***''​lighttpd''​** ​ as webserver +  * **''​lighttpd''​** ​ as webserver 
-  ***''​lighttpd-mod-fastcgi''​** ​ to run php5 +  * **''​lighttpd-mod-fastcgi''​** ​ to run php5 
-  ***''​php5-fastcgi''​** +  * **''​php5-fastcgi''​** 
-  ***''​php-pear-db''​** prerequisite for daloradius +  * **''​php-pear-db''​** prerequisite for daloradius 
-  ***''​php5-mod-session''​** prerequisite for daloradius +  * **''​php5-mod-session''​** prerequisite for daloradius 
-  ***''​php5-mod-gd''​** prerequisite for daloradius +  * **''​php5-mod-gd''​** prerequisite for daloradius 
-  ***''​php5-mod-mysql''​** prerequisite for daloradius +  * **''​php5-mod-mysql''​** prerequisite for daloradius 
-  ***''​mysql-server''​** prerequisite for daloradius +  * **''​mysql-server''​** prerequisite for daloradius 
-  ***''​freeradius2-mod-sql-mysql''​** to connect freeradius to your DB +  * **''​freeradius2-mod-sql-mysql''​** to connect freeradius to your DB 
-  ***''​samba36-server''​** if you want to use the NT-Hash authentification described below+  * **''​samba36-server''​** if you want to use the NT-Hash authentification described below
  
  
Line 31: Line 31:
 ==== Download & unpack daloradius ==== ==== Download & unpack daloradius ====
  
-download ​daloradius-XXX.tar.gz from http://​sourceforge.net/​projects/​daloradius/​files/​latest/​download+Download ​daloradius-XXX.tar.gz from [[http://​sourceforge.net/​projects/​daloradius/​files/​latest/​download]] 
 <​code>​ <​code>​
 gunzip daloradius-XXX.tar.gz gunzip daloradius-XXX.tar.gz
Line 43: Line 44:
 === lighttpd === === lighttpd ===
  
-in ''/​etc/​lighttpd/​lighttpd.conf''​ (note that bin-path differs from the default in this file!):+In ''/​etc/​lighttpd/​lighttpd.conf''​ (note that bin-path differs from the default in this file!):
 <​code>​ <​code>​
 #### fastcgi module #### fastcgi module
Line 60: Line 61:
 === php === === php ===
  
-create ​a file ''/​etc/​php5/​pear.ini''​ or edit your ''/​etc/​php.ini''​+Create ​a file ''/​etc/​php5/​pear.ini''​ or edit your ''/​etc/​php.ini''​
 <​code>​ <​code>​
 include_path = "​.:/​usr/​lib/​php/"​ include_path = "​.:/​usr/​lib/​php/"​
Line 68: Line 69:
 === mysql === === mysql ===
  
-set a ''​datadir''​ in ''/​etc/​my.cnf''​+Set a ''​datadir''​ in ''/​etc/​my.cnf''​
 <​code>​ <​code>​
 datadir ​        = /​data/​mysql/​ datadir ​        = /​data/​mysql/​
Line 79: Line 80:
 </​code>​ </​code>​
  
-create ​a DB '​radius'​ and a user by the same name. insert ​your password.+Create ​a DB '​radius'​ and a user by the same name. Insert ​your password.
 <code bash> <code bash>
 cat <<EOF | mysql -u root cat <<EOF | mysql -u root
Line 89: Line 90:
 === daloradius === === daloradius ===
  
-fill database+Fill database
 <code bash> <code bash>
 mysl -u root radius < /​www/​daloradius/​contrib/​db/​fr2-mysql-daloradius-and-freeradius.sql mysl -u root radius < /​www/​daloradius/​contrib/​db/​fr2-mysql-daloradius-and-freeradius.sql
Line 98: Line 99:
 === freeradius === === freeradius ===
  
-  * the freeradius-mod-sql-mysql package is missing the ''​$INCLUDE sql/​${database}/​dialup.conf''​ file. google it, download it and put it in the right place on your machine. +  * The freeradius-mod-sql-mysql package is missing the ''​$INCLUDE sql/​${database}/​dialup.conf''​ file. google it, download it and put it in the right place on your machine. 
-  * add your credentials to the ''/​etc/​freeradius/​sql.conf''​ +  * Add your credentials to the ''/​etc/​freeradius/​sql.conf''​ 
-  * uncomment ​the sql module in ''/​etc/​freeradius/​sites/​default''​+  * Uncomment ​the sql module in ''/​etc/​freeradius/​sites/​default''​
  
 ==== done ==== ==== done ====
  
-daloradius ​should be available now at http://​openwrt.lan/​daloradius/​index.php - have fun!+Daloradius ​should be available now at ''​%%http://​openwrt.lan/​daloradius/​index.php%%'' ​- have fun!
  
 ===== NT-Hashes ===== ===== NT-Hashes =====
docs/guide-user/services/remote_control/daloradius.txt · Last modified: 2018/06/11 14:24 by tmomas