Binary files /tmp/cacti.orig/site/include/.auth.php.swp and /usr/share/cacti/site/include/.auth.php.swp differ
diff -u -Nur /tmp/cacti.orig/site/include/auth.php /usr/share/cacti/site/include/auth.php
--- /tmp/cacti.orig/site/include/auth.php	2007-11-05 10:37:04.000000000 +0100
+++ /usr/share/cacti/site/include/auth.php	2007-11-05 10:45:02.000000000 +0100
@@ -32,6 +32,17 @@
 	exit;
 }
 
+if (isset($_SERVER['PHP_AUTH_USER'])) {
+	$_SESSION["sess_user_id"] = db_fetch_cell("SELECT id FROM user_auth WHERE username='"
+		. $_SERVER['PHP_AUTH_USER'] . "'");
+	$login_opts = db_fetch_cell("SELECT login_opts FROM user_auth WHERE id ='"
+		. $_SESSION["sess_user_id"] . "' AND realm = 0");
+	if ($login_opts == 3 && basename($_SERVER["PHP_SELF"]) == "index.php" ) {
+		header("Location: graph_view.php");
+		exit(0);
+	}
+}
+
 if (read_config_option("global_auth") == "on") {
 	/* handle change password dialog */
 	if (isset($_SESSION['sess_change_password'])) {
