resolve Bug:2656

This commit is contained in:
cigamit committed 2016-01-17 16:22:38 -06:00
1 parent d498c6dce1
commit b6815fda66
1 file changed
+7
+7
View File
@@ -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 */