[horde] question about phptype - thks

m.ibarra at cdcixis-na.com m.ibarra at cdcixis-na.com
Tue Nov 27 05:08:19 PST 2001


This seems to pop up alot, perhaps an example in the config
files are in order?

Which file, and what is the proper syntax for adding entries
for the auth drivers? 

BTW, it appears as though I must add usernames to horde/config/horde.php

		$conf['auth']['admins'] = array();
	to read 
		$conf['auth']['admins'] = array(admin at example.com);
	otherwise it fails. 

The above also fails, however my message is different, this time it reads:

"there are no administrators. user administration is disabled."

-mike

Zitat von "P150 - EiTheL Corp." <p150 at paradogs.com>:

> Hi there!
> 
> i just downlaoded and installed latest CVS Horde/IMP/Turba.
> 
> Im using it agains mysql.
> 
> I setup in horde.php:
> 
> /**
>  ** Horde Authentication
>  **/
> 
> // Which users should be treated as administrators (root, super-user)
> // by Horde?
> $conf['auth']['admins'] = array();
> 
> // What backend should we use for authenticating users to Horde? Valid
> // options are currently 'imap', 'ldap', 'mcal', 'sql', and 'ftp'.
> $conf['auth']['driver'] = 'sql';
> 
> // An array holding any parameters that the Auth object will need to
> // function correctly. For IMAP, this is the server name, port,
> // protocol, etc.
> $conf['auth']['params'] = array();
> 
> Then under preference system settings:
> 
> $conf['prefs']['driver'] = 'sql';
> $conf['prefs']['params'] = array();
> $conf['prefs']['params']['phptype'] = 'mysql';
> $conf['prefs']['params']['hostspec'] = 'localhost';
> $conf['prefs']['params']['username'] = 'user';
> $conf['prefs']['params']['password'] = 'pass';
> $conf['prefs']['params']['database'] = 'horde';
> $conf['prefs']['params']['table'] = 'horde_prefs';
> 
> Then i go in user table in horde db and i add manually user and pass.
> 
> Then i go to http://mydomain.com/horde i log in as user / pass i typed
> in
> table and it shows:
> 
> object(pear_error)(10) {
>   ["error_message_prefix"]=>
>   string(0) ""
>   ["error_prepend"]=>
>   string(0) ""
>   ["error_append"]=>
>   string(0) ""
>   ["mode"]=>
>   int(1)
>   ["level"]=>
>   int(1024)
>   ["code"]=>
>   NULL
>   ["message"]=>
>   string(65) "Required 'phptype' not specified in authentication
> configuration."
>   ["debuginfo"]=>
>   string(0) ""
>   ["userinfo"]=>
>   NULL
>   ["callback"]=>
>   NULL
> }
> [/usr/local/apache/htdocs/horde/lib/Auth/sql.php : 87]
> 
> Whats wrong please?

You have to add parameters for auth driver also. Just copy your entries 
from the prefs driver and change horde_prefs to horde_users.
 
> Another question is, how i have to add and manage horde users? i have
> to
> type in table by hand?

No. Add usernames to the auth/admins array and go to horde/admin/user.php.

Jan.

::::::::::::::::::::::::::::::::::::::::
AMMMa AG - discover your knowledge
:::::::::::::::::::::::::::
Detmolder Str. 25-33 :: D-33604 Bielefeld
fon +49.521.96878-0 :: fax  +49.521.96878-20
http://www.ammma.de
::::::::::::::::::::::::::::::::::::::::::::::

-- 
Horde mailing list: http://horde.org/horde/
Frequently Asked Questions: http://horde.org/faq/
To unsubscribe, mail: horde-unsubscribe at lists.horde.org




More information about the horde mailing list