New build path variable
[freeradius.git] / dialup_admin / README
index b6f7ff1..2ea2678 100644 (file)
@@ -1,7 +1,21 @@
 dialup_admin is a web based administration interface for the freeradius radius server.
+It is written in PHP4 (although the files have an extension of php3 for historical reasons).
 It is modular and right now it assumes that user information is stored in an ldap server
 or an sql database and accounting in an sql server.
 
+Extra documentation from Stadler Karel (<Karel.Stadler@psi.ch>):
+http://kstadler.ch/index.php?topgroupid=1&subgroupid=14&groupid=11
+
+There is also a nice HOWTO in the doc folder
+
+
+INSTALLATION:
+
+Put dialup_admin in /usr/local/dialupadmin
+Create a link from your htdocs directory to /usr/local/dialupadmin/htdocs
+Edit /usr/local/dialupadmin/conf/* files to match your needs
+
+
 There are also a few more things included:
 
 * sql/badusers.sql: It will create a table named badusers which can be used to hold the
@@ -18,6 +32,14 @@ There are also a few more things included:
 * bin/clean_radacct: It will delete all entries in the radacct table with a starttime > 1 day and
   stoptime = 0. It will not do an harm even if it deletes valid entries since radiusd will fall
   back to insert if update fails.
+* bin/truncate_radacct: It will delete sessions from the radacct table which are older than a configurable
+  number of days
+* bin/tot_stats: Update the totacct table with aggregated daily accounting information for each user.
+  We keep a row per user for each day.
+* bin/monthly_tot_stats: Log in the mtotacct table aggregated accounting information for each user spaning
+  in one month period. If the current month has not ended it will log information up to the current month day
+
+
 
 
 The structure of the tree is:
@@ -27,8 +49,7 @@ conf::admin.conf=>
        The main configuration file. The directives used should be easily
        understood
 conf::config.php3=>
-       Just a helper php4 for reading the admin.conf file. Just make sure that it
-       opens the correct admin.conf file
+       Just a helper php4 for reading the admin.conf file.
 conf::default.vals=>
        Contains the default values for check and reply items. If you also use the users
        file except for the ldap/sql databases fill in the default values you have inserted
@@ -54,8 +75,8 @@ htdocs::index.html=>
        The main index file. Just contains the frames tags
 htdocs::content.html=>
        Change this file to include the greeting of your choise
-htdocs::buttons.html=>
-       The buttons html page
+htdocs::buttons.php3=>
+       This will open the corresponding buttons html file in the html/buttons folder
 htdocs::style.css=>
        CSS style file. Change it to match your preferences
 htdocs:: user_state.php3 =>
@@ -63,10 +84,15 @@ htdocs:: user_state.php3 =>
        overview of the status of a user. It will return the following fields
        separated by new lines:
        account_status(active or inactive),lock message,weekly limit,daily limit,
-       weekly used,weekly connections,daily used,daily connections
+       weekly used,weekly connections,daily used,daily connections,
+       active sessions number,active sessions time
 htdocs:: user_finger.php3 =>
-       It will inger the nas(es) and show the logged in users. If an argument server is passed then
+       It will finger the nas(es) and show the logged in users. If an argument server is passed then
        it will only show users for the specific access server.
+       If an argument usage_summary is passed then it will only show a line like:
+       "Online: <num> Free: <num>" which can be used by other pages
+htdocs::failed_logins.php3 =>
+       It will show all the failed logins as logged in the radacct table by the log_badlogins script
 
 html:: Contains the html code for a few pages 
 html::user_admin.html.php3 =>
@@ -75,6 +101,13 @@ html::stats.html.php3 =>
        html code for the stats page
 html::user_toolbar.html.php3 =>
        the user toolbar (show,edit,accounting...) which appears in almost all pages
+html::group_toolbar.html.php3 =>
+       the toolbar shown in the group manipulation pages
+html::/buttons
+       contains a folder default which contains a buttons.html.php3 file. When a user is connecting
+       with http authentication we first try to open the file in the folder <username>. If that fails
+       we open the file in the default folder. That way each admin can have a different view of the buttons
+       bar (for example see different finger pages).
 
 lib::  Contains the library items
 lib::ldap=>