[horde] Help with horde.php

Chuck Hagenbuch chuck at horde.org
Sat Oct 20 22:18:41 PDT 2001


Quoting Harry Hoffman <hhoffman at ip-solutions.net>:

>   It's been quite some time since I've used Horde/IMP. I just downloaded
> them from cvs and am trying to figure out how-to setup the authentication
> in horde.php. I have searched the mailing lists and haven't found any
> working examples. Does anyone have a working example in setting up the
> auth that they would care to share? Also, it it better to do via IMAP auth
> or MySQL?

There is no "better"; do you have an existing IMAP server with all of your users
that you want to re-use? Or do you want to create and manage accounts from
scratch? That'd answer it, for me.

For IMAP, it'd look something like this:

$conf['auth']['driver'] = 'imap';
$conf['auth']['params']['dsn'] = '{imap.server/imap:143}INBOX';

For SQL:

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

-chuck

--
Charles Hagenbuch, <chuck at horde.org>
"What was and what may be lie, like children whose faces we cannot see, in 
the arms of silence. All we ever have is here, now." - Ursula K. Le Guin




More information about the horde mailing list