diff --git a/ChangeLog b/ChangeLog index cdb229bc8b..80c2ed94ca 100644 --- a/ChangeLog +++ b/ChangeLog @@ -3,6 +3,7 @@ phpMyAdmin - ChangeLog 4.7.0.0 (not yet released) - issue #11924 Remove caching of server information +- issue #6146 Log authentication attempts to syslog 4.6.0.0 (not yet released) + issue #11456 Disabled storage engines @@ -127,7 +128,6 @@ phpMyAdmin - ChangeLog 4.3.14.0 (not yet released) - --- Older ChangeLogs can be found on our project website --- http://www.phpmyadmin.net/old-stuff/ChangeLogs/ diff --git a/libraries/logging.lib.php b/libraries/logging.lib.php index 540ff5a4a5..105a9ead7d 100644 --- a/libraries/logging.lib.php +++ b/libraries/logging.lib.php @@ -22,5 +22,11 @@ function PMA_logUser($user, $status = 'ok') apache_note('userID', $user); apache_note('userStatus', $status); } + if (function_exists('syslog')) { + @syslog( + LOG_AUTHPRIV, + 'phpMyAdmin: ' . $user . ' (' . $status . ') from ' . $_SERVER['REMOTE_ADDR'] + ); + } }