From: kkalev Date: Sun, 22 Dec 2002 15:44:14 +0000 (+0000) Subject: Add sql_use_http_credentials configuration directive to connect to the sql database... X-Git-Url: https://git.entuzijast.net/?a=commitdiff_plain;h=80b2a9277f6f0894d59cbd97a6398064a8f88697;p=freeradius-dialup-admin.git Add sql_use_http_credentials configuration directive to connect to the sql database using the http user credentials (that way there can be more than one administrator usernames, each with different privileges on the sql database). --- diff --git a/Changelog b/Changelog index d017f90..4a6ccf7 100644 --- a/Changelog +++ b/Changelog @@ -16,6 +16,9 @@ Ver 1.62: server (pap or chap). * Replace single quotes with double quotes in log_badlogins * Add a missing +* Add sql_use_http_credentials configuration directive to connect to the sql database using the http user + credentials (that way there can be more than one administrator usernames, each with different privileges + on the sql database). Ver 1.61: * Add a string encoder for greek * If general_decode_normal_attributes is set then encode attributes in lib/ldap/change_info. In the near future diff --git a/conf/admin.conf b/conf/admin.conf index 94870a7..79c4d52 100644 --- a/conf/admin.conf +++ b/conf/admin.conf @@ -172,6 +172,13 @@ sql_user_info_table: userinfo sql_groupcheck_table: radgroupcheck sql_groupreply_table: radgroupreply sql_usergroup_table: usergroup +# +# If set to yes then the HTTP credentials (http authentication) +# will be used to connect to the sql server instead of sql_username +# and sql_password. That way multiple admins with different rights +# on the sql database can connect through one dialup_admin interface. +#sql_use_http_credentials: yes + # # true or false diff --git a/lib/sql/drivers/mysql/functions.php3 b/lib/sql/drivers/mysql/functions.php3 index b0ff08f..1097a98 100644 --- a/lib/sql/drivers/mysql/functions.php3 +++ b/lib/sql/drivers/mysql/functions.php3 @@ -1,8 +1,17 @@