[horde] again phptype problem

Chuck Hagenbuch chuck at horde.org
Wed Jul 23 16:04:48 PDT 2003

Quoting Spool <mailing at rl-pc.com>:

> I try that because you saw that line blow away all those settings and I
> would try something.

Alright, let's back up here.

You had this:

$conf['auth']['params']['phptype'] = 'mysql';
$conf['auth']['params']['hostspec'] = 'localhost';
$conf['auth']['params']['username'] = 'horde';
$conf['auth']['params']['password'] = 'horde';
$conf['auth']['params']['database'] = 'horde';
$conf['auth']['params']['table'] = 'horde_users';

... which is all fine. That's what you want there. Then you had this:

// An array holding any parameters that the Auth object will need to
// function correctly.
$conf['auth']['params'] = array();

Look at that line. It might help to realize that the first 6 lines are
equivalent to this:

$conf['auth']['params'] = array('phptype' => 'mysql',
                                'hostspec' => 'localhost
 ... etc.

So you assign the params array, and then you replace it with an empty array.
That's why things don't work. Just remove this line:
$conf['auth']['params'] = array();


Charles Hagenbuch, <chuck at horde.org>
They're just looking at a wall of meat.

More information about the horde mailing list