http://howtoforge.com/intrusion-detection-with-snort-mysql-apache2-on-ubuntu-7.10

Discussion in 'Installation/Configuration' started by Paradigit, May 2, 2008.

  1. Paradigit

    Paradigit New Member

  2. Paradigit

    Paradigit New Member

    i made some progress

    i used 127.0.1.1/base-1.4.0/setup
    now i am in the interface.

    Still a problem:
    Access denied for user 'snort'@'localhost' (using password: YES) in /usr/share/php/adodb/drivers/adodb-mysql.inc.php on line 365
    is what i get

    Any suggestions?
     
  3. falko

    falko Super Moderator

    Please set the correct database login credentials in /usr/share/php/adodb/drivers/adodb-mysql.inc.php.
     
  4. Paradigit

    Paradigit New Member

    thanks for the quick reply.
    what i did is:

    sudo gedit adodb-mysql.inc.php
    now gedit opens, and i scrolled to line 365.

    what i see is:


    // returns true or false
    function _connect($argHostname, $argUsername, $argPassword, $argDatabasename)
    {
    if (!empty($this->port)) $argHostname .= ":".$this->port;

    if (ADODB_PHPVER >= 0x4300)
    $this->_connectionID = mysql_connect($argHostname,$argUsername,$argPassword,
    $this->forceNewConnect,$this->clientFlags);
    else if (ADODB_PHPVER >= 0x4200)
    $this->_connectionID = mysql_connect($argHostname,$argUsername,$argPassword,
    $this->forceNewConnect);
    else
    $this->_connectionID = mysql_connect($argHostname,$argUsername,$argPassword);

    if ($this->_connectionID === false) return false;
    if ($argDatabasename) return $this->SelectDB($argDatabasename);
    return true;
    }

    what do i have to change?
    thanks
     
  5. falko

    falko Super Moderator

    Did you put the right MySQL details into /etc/snort/snort.conf?
     
  6. Paradigit

    Paradigit New Member

    that was the solution. I have changed snort_password from the real password to the words
    snort_password.

    Now i can login
     

Share This Page