[horde] question about phptype - thks

Jan Schneider jan at horde.org
Mon Nov 26 14:19:38 PST 2001


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
::::::::::::::::::::::::::::::::::::::::::::::




More information about the horde mailing list