[horde] new cyrus/sql driver for admin/users

Chuck Hagenbuch chuck at horde.org
Mon Sep 2 21:04:10 PDT 2002


Quoting Ilya <mail at krel.org>:

> $conf['auth']['driver'] = 'composite';
> $conf['auth']['params'] = array();
> $conf['auth']['params']['drivers'] = array();

K... you don't need the array() lines, btw.

> $conf['auth']['params']['drivers']['ip'] = array();
> $conf['auth']['params']['drivers']['ip']['driver'] = 'ipbasic';
> $conf['auth']['params']['drivers']['ip']['params'] = array();
> $conf['auth']['params']['drivers']['ip']['params']['blocks'] =
> array('192.168.0.0/16');

I doubt you need this section, unless you really want IP-based auth.

> $conf['auth']['params']['drivers']['imp'] = array();
> $conf['auth']['params']['drivers']['imp']['driver'] = 'application';
> $conf['auth']['params']['drivers']['imp']['params'] = array();
> $conf['auth']['params']['drivers']['imp']['params']['app'] = 'imp';
> $conf['auth']['params']['drivers']['imp']['params']['sql'] = array();
> $conf['auth']['params']['drivers']['imp']['params']['sql']['driver'] =>
> 'sql';
> $conf['auth']['params']['loginscreen_switch'] =
> '_horde_select_loginscreen';
> $conf['auth']['params']['drivers']['admin_driver'] = 'cyrsql';
> $conf['auth']['params']['drivers']['admin_driver']['params'] = array();
> $conf['auth']['params']['drivers']['admin_driver']['params']
> .....................params for cyrsql here

admin_driver is just a string setting; you want to set up drivers[cyrsql]
and then set admin_driver just to cyrsql.

You also need a _horde_select_loginscreen() function defined there, which
takes an empty argument, looks at the enviroment, and says which backend to
use for logging in - you can just have it return 'sql'.

-chuck

--
Charles Hagenbuch, <chuck at horde.org>
"After a few minutes the most aromatic and nice smelling Italian coffee 
 will come out of the exhaustpipe." - Our stove-top espresso pot


More information about the horde mailing list