[dev] Composite Drivers / Authentication Backend / Setup Help
Jan Schneider
jan at horde.org
Fri Jun 23 00:44:16 PDT 2006
Zitat von ali mohammed <nefertitian at gmail.com>:
> Hi,
>
> I am trying to hook up the horde authentication backend to two different
> drivers, one for merely authenticating the users (via PAM using hardware
> tokens that generate one time passwords) and another one for managing the
> list of users. I was able to successfully do that with using the below
> configuration:
>
> $conf['auth']['checkip'] = true;
> $conf['auth']['checkbrowser'] = true;
> $conf['auth']['alternate_login'] = false;
> $conf['auth']['redirect_on_logout'] = false;
> $conf['auth']['driver'] = 'composite';
> $conf['auth']['params']['drivers']['pamauth']['driver'] = 'pam';
> $conf['auth']['params']['drivers']['pamauth']['params']['service'] = 'php';
> $conf['auth']['params']['drivers']['mysqlauth']['driver']='sql';
> $conf['auth']['params']['drivers']['mysqlauth']['params']= array (
> 'hostspec'=>'localhost',
> 'phptype'=>'mysql',
> 'protocol'=>'unix',
> 'username'=>'xxxx',
> 'password'=>'xxxx',
> 'table'=>'CCUser',
> 'username_field'=>'ccUserName',
> 'database'=>'dbname');
> $conf['auth']['params']['drivers']['mysqlauth']['params']['driverconfig']='horde';
> $conf['auth']['params']['admin_driver'] = 'mysqlauth';
>
> Once I successfully log in, I am able to see the list of users pulled from
> the mysqlbackend. But how do I disable creating new users or changing
> passwords via horde? Horde still gives me the options for creating new users
> or changing passwords for existing users. I have a separate third party
> application that creates and updates user passwords using that same mysql
> backend. I just want horde to list the users and manage the permissions, not
> to create new users.
That's not possible. The admin_driver handles all of these. If you
provide one, you will be able to list, create and edit users.
Jan.
--
Do you need professional PHP or Horde consulting?
http://horde.org/consulting/
More information about the dev
mailing list