[horde] error loggin into horde
Christiaan DeRuiter
cdr00 at earthlink.net
Wed Feb 26 09:38:28 PST 2003
After many tries, I'm requesting the help of the horde list.
I'm having problems getting access to horde.
The goal is to have chora as a web tool for vcs.
So to accomplish this I need to gain access to horde.
I created an account into horde_users named test with password testing. The password is stored encrypted.
By adding some echo's to the login file I know that the password and username are passed along.
Line 33 44 and 45
Output of these lines.
Objecttesttesting
Object
Test
Testing
LOGIN.PHP << snip >>
30 if (isset($_POST['horde_user']) &&
31 isset($_POST['horde_pass'])) {
32 $auth = &Auth::singleton($conf['auth']['driver'],
$conf['auth']['params']);
33 echo $auth;
34 if ($auth->authenticate(Horde::getFormData('horde_user'),
35 array('password' =>
Horde::getFormData('horde_pass')))) {
36 $entry = sprintf('Login success for %s [%s] to Horde',
37 Auth::getAuth(), $_SERVER['REMOTE_ADDR']);
38 $level = LOG_INFO;
39 } else {
40 $entry = sprintf('FAILED LOGIN for %s [%s] to Horde',
41 Horde::getFormData('horde_user'),
$_SERVER['REMOTE_ADDR']);
42 $level = LOG_ERR;
43 }
44 echo $_POST['horde_user'];
45 echo $_POST['horde_pass'];
46 Horde::logMessage($entry, __FILE__, __LINE__, $level);
47 }
The following is the information from horde.php and the log file.
HORDE.PHP << snip >>
// What backend should we use for authenticating users to Horde? Valid // options are currently 'imap', 'ldap', 'mcal', 'sql', 'ftp' and 'krb5'. $conf['auth']['driver'] = 'sql';
// An array holding any parameters that the Auth object will need to // function correctly. // $conf['auth']['params'] = array('phptype' => 'odbc', $conf['auth']['params'] = array('phptype' => 'mysql',
//'hostspec' => '',
//'hostspec' => 'repository',
'hostspec' => 'localhost',
'username' => 'horde',
'password' => '***********',
'database' => 'horde',
'table' => 'horde_users');
<< snip >>
LOG FILE
Feb 26 11:02:56 HORDE [error] [horde] FAILED LOGIN for test [198.242.XX.XX] to Horde [on line 46 of "/repository/fs001/oridir/horde-2.2/login.php"]
Thanks for your Help
Chris.
-------------------------------
Chris de Ruiter
More information about the horde
mailing list