mirror of
https://github.com/Cacti/cacti.git
synced 2026-12-05 14:44:14 +09:00
resolve Bug:2656
This commit is contained in:
1 parent
d498c6dce1
commit
b6815fda66
1 file changed
+7
@@ -94,6 +94,13 @@ if ($action == 'login') {
|
||||
/* Locate user in database */
|
||||
$user = db_fetch_row_prepared('SELECT * FROM user_auth WHERE username = ? AND realm = 2', array($username));
|
||||
|
||||
if (!$user) {
|
||||
cacti_log("AUTH LOGIN: User " . $username . " authenticated by web server but not found in Cacti database.");
|
||||
$username = htmlspecialchars($username);
|
||||
auth_display_custom_error_message("$username is not authorized to use Cacti.");
|
||||
exit;
|
||||
}
|
||||
|
||||
break;
|
||||
case '3':
|
||||
/* LDAP Auth */
|
||||
|
||||
Reference in new issue
Block a user