-
-
Notifications
You must be signed in to change notification settings - Fork 3.5k
Open
Labels
EnhancementA feature request for improving phpMyAdminA feature request for improving phpMyAdminpatch
Milestone
Description
We are using a single PMA for multiple servers and identical usernames can exist on more than one server, logging the hostname in addition to the username on the AuthLog is thus needed.
Here is the current patch i use on 5.1.3 :
--- libraries/common.inc.php 2022-02-10 23:16:06.000000000 +0100
+++ libraries/common.inc.php 2022-02-22 18:40:03.732456853 +0100
@@ -279,7 +279,7 @@
$auth_plugin->checkTwoFactor();
/* Log success */
- Logging::logUser($cfg['Server']['user']);
+ Logging::logUser($cfg['Server']['user']."@".$cfg['Server']['host']);
if ($dbi->getVersion() < $cfg['MysqlMinVersion']['internal']) {
Core::fatalError(Before, on the AuthLog :
Feb 22 18:51:04 phpmyadmin: user authenticated: sqluser from 1.2.3.4
Feb 22 18:51:10 phpmyadmin: user authenticated: sqluser from 4.3.2.1
With the patch :
Feb 22 18:51:04 phpmyadmin: user authenticated: sqluser@sqlserver1 from 1.2.3.4
Feb 22 18:51:10 phpmyadmin: user authenticated: sqluser@sqlserver2 from 4.3.2.1
ibennetch and williamdes
Metadata
Metadata
Assignees
Labels
EnhancementA feature request for improving phpMyAdminA feature request for improving phpMyAdminpatch