[sork] how to configure (passwd,vacation,forward) ?

Eric Rostetter eric.rostetter at physics.utexas.edu
Wed Nov 5 08:57:08 PST 2003


Quoting Roel Paule <roelpaule at hotmail.com>:

> forward and vacation.. its always gives me an error..
> and its always say, not properly configured.. my
> backend is sql.. im using postfix/mysql and
> courier-imap..

We would need to see your configuration files, or extracts there of,
to help.  Or at least hear what you did to install it (did you copy
the *.php.dist files to *.php files?  Did you then edit the *.php files?
etc).

> i also check my horde database.. theres no table for vacation, passwd, and
> forward..

Correct.  Any such tables would be from an outside agent.  Horde and sork
have no relevant sql tables themselves.

> any idea what is the right config if your backend is sql..

Nope.  But obviously you would need an sql table.  If you don't have one,
you need to create one.  Doing so is not part of Horde/sork, but part of
your mail software setup.

> this is the another error when i try to change my email password:
>
> Fatal error: Call to undefined function: getdriverconfig() in
> /www/horde.owel/html/horde/passwd/lib/Driver/sql.php on line 41

Huh?  That shouldn't be in the release version of passwd.  You must be
running a CVS HEAD version?  If so, that is your problem...  What is
in passwd/lib/version.php?

There was a bug in the forwards and/or vacation module for some drivers
that had this call, but I didn't think passwd had it.

In any case, if in doubt, try upgrading to a CVS RELENG snapshot version.
It should work (e.g. not have any getDriverConfig() calls).

> thanks.. and god bless you all.
>
> some info:
> Horde Versions:
>
>     * Horde: 2.2.3
>     * IMP: 3.2.2 (run IMP tests)
>     * Turba: 1.1
>     * Passwd: 2.2

This is strange, as the getDriverConfig() call should not be in that version.

> Vacation:
> /horde/vacation/config/conf.php
> // For sql driver, we need to define the database info.
> $conf['server']['params'] = array();
> $conf['server']['params']['phptype'] = 'mysql';
> $conf['server']['params']['hostspec'] = 'localhost';
> $conf['server']['params']['username'] = 'horde';
> $conf['server']['params']['password'] = 'secret';
> $conf['server']['params']['vacation'] = 'vacation'; // y/n ENUM
> $conf['server']['params']['message'] = 'vacation_msg';
> $conf['server']['params']['subject'] = 'vacation_sub';
> $conf['server']['params']['database'] = 'users';
> $conf['server']['params']['table'] = 'users';
> $conf['server']['params']['user_col'] = 'user';
> $conf['server']['params']['pass_col'] = 'password';

Do you have a database called "users" with a table called "user"? If so,
did you grant access to it for the user "horde"?  And so on for the other
info here?

> $conf['server']['params']['database'] = 'database';
> $conf['server']['params']['table'] = 'users_table';
> $conf['server']['params']['user_col'] = 'column_which_contains_usernames';
> $conf['server']['params']['pass_col'] = 'column_with_passwords';

Ditto here.  Do you have a database "database" with a table "users_table"
and so on.  If not, you need to change the config, or create the tables,
or some combination of those.

--
Eric Rostetter
The Department of Physics
The University of Texas at Austin

Why get even? Get odd!


More information about the sork mailing list