mirror of
https://github.com/webmin/webmin.git
synced 2026-02-03 06:03:28 +00:00
Add config option to force use of some authentication plugin
This commit is contained in:
@@ -12,6 +12,7 @@ encoding=Encoding for database content,3,Default (from current language)
|
||||
max_dbs=Maximum number of databases and tables, indexes and views to display,0,5
|
||||
max_text=Maximum display length for text fields,3,Unlimited
|
||||
charset=Character set for MySQL data,15,charset
|
||||
auth_plugin=Force use of authentication plugin,3,System default
|
||||
line2=System configuration,11
|
||||
mysqlshow=Path to mysqlshow command,0
|
||||
mysqladmin=Path to mysqladmin command,0
|
||||
|
||||
@@ -1620,13 +1620,18 @@ return $sql;
|
||||
sub get_mysql_plugin
|
||||
{
|
||||
my ($query) = @_;
|
||||
my @plugin = &execute_sql($master_db,
|
||||
"show variables LIKE '%default_authentication_plugin%'");
|
||||
my $plugin = $plugin[0]->{'data'}->[0]->[1];
|
||||
if ($plugin && $query) {
|
||||
$plugin = " with $plugin ";
|
||||
if ($config{'auth_plugin'}) {
|
||||
return " with $config{'auth_plugin'}";
|
||||
}
|
||||
else {
|
||||
my @plugin = &execute_sql($master_db,
|
||||
"show variables LIKE '%default_authentication_plugin%'");
|
||||
my $plugin = $plugin[0]->{'data'}->[0]->[1];
|
||||
if ($plugin && $query) {
|
||||
$plugin = " with $plugin ";
|
||||
}
|
||||
return $plugin;
|
||||
}
|
||||
return $plugin;
|
||||
}
|
||||
|
||||
# perms_column_to_privilege_map(col)
|
||||
|
||||
Reference in New Issue
Block a user