This file is indexed.

/usr/share/auth2db-frontend/www/conn.php is in auth2db-frontend 0.2.5-2+dfsg-4.

This file is owned by root:root, with mode 0o644.

The actual contents of the file can be viewed below.

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
<?
//connect to the database

$conf="/etc/auth2db/auth2db.conf";
 
if ($file = @file( $conf )) {
       foreach ($file as $line) {
               $temp = explode("=", $line);
               
               switch ( trim($temp[0]) ){
               case "dbuser": $user = str_replace("\n", "", str_replace("'", "", str_replace('"', "", trim($temp[1]) ))); break;
               case "dbpass": $pass = str_replace("\n", "", str_replace("'", "", str_replace('"', "", trim($temp[1]) ))); break;	       
               case "dbname": $name = str_replace("\n", "", str_replace("'", "", str_replace('"', "", trim($temp[1]) ))); break;
               case "dbserver": $server = str_replace("\n", "", str_replace("'", "", str_replace('"', "", trim($temp[1]) ))); break;
               }
       }       
}
else 
       print "Configuration file " .$conf. " couldn't be read ";

if ($server) 
       $link = mysql_connect($server, $user, $pass) or die ("Error connecting to database.");
else 
       $link = mysql_connect("localhost", $user, $pass) or die ("Error connecting to database.");

mysql_select_db($name, $link) or die ("Couldn't select the database.");


?>