From: kkalev Date: Wed, 13 Nov 2002 20:57:52 +0000 (+0000) Subject: * Now the create user page should work with sql X-Git-Url: https://git.entuzijast.net/?a=commitdiff_plain;h=75d65e2291303dcf78b34116ca0b9f29642422df;p=freeradius-dialup-admin.git * Now the create user page should work with sql * Make the default general_lib_type sql instead of ldap --- diff --git a/Changelog b/Changelog index 32301a1..552554b 100644 --- a/Changelog +++ b/Changelog @@ -12,6 +12,8 @@ Ver 1.61: * Allow selecting a specific access server in the failed logins page * In the user admin page use AcctStartTime not AcctStopTime when calculating usage for the last 7 days * Also show server:port in the user test page (so that it shows when used for server checks) +* Now the create user page should work with sql +* Make the default general_lib_type sql instead of ldap Ver 1.60: * Use require_once when including lib/functions.php3 in lib/sql * In the buttons toolbar Edit User should not be clickable. diff --git a/conf/admin.conf b/conf/admin.conf index c281e99..d54e15e 100644 --- a/conf/admin.conf +++ b/conf/admin.conf @@ -56,7 +56,7 @@ general_extra_ldap_attrmap: %{general_base_dir}/conf/extra.ldap-attrmap # # it can be either ldap or sql # -general_lib_type: ldap +general_lib_type: sql general_user_edit_attrs_file: %{general_base_dir}/conf/user_edit.attrs general_sql_attrs_file: %{general_base_dir}/conf/sql.attrs general_default_file: %{general_base_dir}/conf/default.vals diff --git a/lib/sql/create_user.php3 b/lib/sql/create_user.php3 index fd723ef..8e16d13 100644 --- a/lib/sql/create_user.php3 +++ b/lib/sql/create_user.php3 @@ -5,6 +5,7 @@ else{ echo "Could not include SQL library
\n"; exit(); } +include_once('../lib/functions.php3'); if ($config[sql_use_operators] == 'true'){ include("../lib/operators.php3"); $text = ',op'; diff --git a/lib/sql/defaults.php3 b/lib/sql/defaults.php3 index c0a85e6..9b1f5f9 100644 --- a/lib/sql/defaults.php3 +++ b/lib/sql/defaults.php3 @@ -1,6 +1,6 @@