]> git.entuzijast.net Git - freeradius-dialup-admin.git/commitdiff
Fix a few bugs
authorkkalev <kkalev>
Fri, 18 Jun 2004 15:12:51 +0000 (15:12 +0000)
committerkkalev <kkalev>
Fri, 18 Jun 2004 15:12:51 +0000 (15:12 +0000)
Enable debug for sql and ldap

conf/admin.conf
htdocs/clear_opensessions.php3
htdocs/failed_logins.php3
htdocs/nas_admin.php3
htdocs/stats.php3
htdocs/user_stats.php3
lib/sql/nas_list.php3

index 9ef077804a948fe5135132d4dc8e65457d2f58e9..16ccabf58074a859145c737bf57d4c8bb0700963 100644 (file)
@@ -194,7 +194,7 @@ ldap_regular_profile_attr: dialupregularprofile
 #
 # Uncomment to enable ldap debug
 #
-#ldap_debug: true
+ldap_debug: true
 #
 # Allow for defining the ldap filter used when searching for a user
 # Variables supported:
index 133ce708a965cbf7ab5378990e2a401cc6b5b7b8..30254ff60bfeae990003efe738d29d9d868023ee 100644 (file)
@@ -1,5 +1,6 @@
 <?php
 require('../conf/config.php3');
+require('../lib/xlat.php3');
 if (is_file("../lib/sql/drivers/$config[sql_type]/functions.php3"))
        include_once("../lib/sql/drivers/$config[sql_type]/functions.php3");
 else{
index 475d84ea94ca7cfc23becd70710630795a6d7249..be3413aaf849bbede62b868fecafb76eb292d01e 100644 (file)
@@ -2,6 +2,7 @@
 require('../conf/config.php3');
 require('../lib/attrshow.php3');
 require('../lib/sql/nas_list.php3');
+require('../lib/xlat.php3');
 ?>
 <html>
 <?php
index 84d9318c66409db9ba6dd5403315e237d18a0092..1c3aab28488f7cd45a789510da8f816ddf80275a 100644 (file)
@@ -16,7 +16,7 @@ else{
 EOM;
        exit();
 }
-if ($config[general_restrict_nasadmin_access == 'yes'){
+if ($config[general_restrict_nasadmin_access] == 'yes'){
        $auth_user = $HTTP_SERVER_VARS["PHP_AUTH_USER"];
        if ($auth_user == '' || $mappings[$auth_user][nasadmin] != 'yes'){
                echo <<<EOM
index b45c02403c76ccde38d5f37ea96686d1113a1dc8..fbd2825dff7aaa9ad26c4a5546df2d3ed87ae31a 100644 (file)
@@ -1,6 +1,7 @@
 <?php
 require('../conf/config.php3');
 require('../lib/sql/nas_list.php3');
+require('../lib/xlat.php3');
 ?>
 <html>
 <head>
index f736d72a625fbd959e8ca4a36526bf2788cd9eeb..d78047c862b64f3369f68541d264b209a993ae7c 100644 (file)
@@ -2,6 +2,7 @@
 require('../conf/config.php3');
 require('../lib/functions.php3');
 require('../lib/sql/nas_list.php3');
+require('../lib/xlat.php3');
 ?>
 <html>
 <?php
index 2d689eca412f20a0353d0945fa5be0d13567a009..6ac4ded2561270bb80df27806eb9194dabd506fe 100644 (file)
@@ -11,9 +11,9 @@ if ($config[sql_nas_table] != ''){
        }
        $link = @da_sql_pconnect($config);
        if ($link){
-               $auth_user = HTTP_SERVER_VARS["PHP_AUTH_USER"];
+               $auth_user = $HTTP_SERVER_VARS["PHP_AUTH_USER"];
                $extra = '';
-               if (isset($mappings[$auth_user][nasdb]){
+               if (isset($mappings[$auth_user][nasdb])){
                        $NAS_ARR = array();
                        $NAS_ARR = split(',',$mappings[$auth_user][nasdb]);
                        $extra = 'WHERE nasname IN (';