[sork] Vacation - unable to connect to server
Peter K. Botcherby
Peter.Botcherby at genetics.kcl.ac.uk
Tue Dec 9 07:07:19 PST 2003
Many thanks Eric and my apologies for misquoting. I have got a bit further
trying to debug this by turning on the logs as you suggested. What it
showed was that nothing was getting to the ftp server ie. no messages were
being logged. If I ran ftp directly from a PC then messages were logged to
syslog correctly. I have delved a little to see what is going on and found
that the error message was coming from
/usr/apache/htdocs/horde/vacation/lib/Driver/forwards.php (line 86 see *
below )
// Try to login with the username/password, no realm.
$status = $_vfs->checkCredentials();
if (is_a($status, 'PEAR_Error')) {
$this->err_str = $status->getMessage();
$this->err_str .= ' ' . _("Check your username and
password."); **********
return false;
}
This led me to look at /usr/apache/htdocs/horde/vacation/main.php (line 76
see * below )
if ($driver->setVacation($user, $realm, $password,
$vacationmsg, $alias)) {
$notification->push(_("Vacation notice successfully
enabled."), 'horde.success');
} else {
$notification->push(_("Failure in modifying vacation
notice: ") *********
. $driver->err_str, 'horde.error');
}
These two messages were put together to give the error message I was
getting.
I was able to print out my $user, $passwd and $realm - user /passwd were
correct and $realm came back with 'default' I used to know where to set the
default realm in Horde 2 but not sure where this should be set with the CVS
Not sure where to look from here but will keep digging - any pointers most
welcome.
Thanks again
Peter
----- Original Message -----
From: "Eric Rostetter" <eric.rostetter at physics.utexas.edu>
To: <sork at lists.horde.org>
Sent: Monday, December 08, 2003 6:40 PM
Subject: Re: [sork] Vacation - unable to connect to server
> Quoting "Peter K. Botcherby" <Peter.Botcherby at genetics.kcl.ac.uk>:
>
> > Previously with the Horde 2.2.3 stable release I had problems with
vacation
> > not
> > honouring aliases so following Eric's advice I installed the CVS
versions of
> > Horde and Imp and Sork
>
> That wasn't my advice. My advice was to install the CVS RELENG code of
> vacation which would work fine with the stable releases of horde et al.
>
> > All ok except the vacation and forward modules - that say they cannot
connect
> > to
> > the ftp server. ftp is enabled in php which I have updated to php-4.3.4
and
> > all tests appear to be working correctly. (BTW Not tried the passwd
module
>
> Did you configure the ftp the same way in Hore and vacation/forwards? For
> example, always use either "localhost" or the FQDN or whatever?
>
> > Failure in modifying vacation notice: Connection to FTP server failed.
Check
> > your username and password
>
> I'm not sure, but I think that means it probably did connect to the
service,
> but failed the login (I'd have to check the code to refresh my memory to
be
> sure, and I don't have time right now). If you enable ftp server logging,
> you should hopefully get an error message that might be useful (like bad
> username, permission denied, bad password, etc).
>
> > As initially I had to use ftp as the backend to login to horde I do not
> > understand what is going on and would appreciate your help again.
>
> Unless you use different host names (like localhost vs FQDN) in the two,
> then it should work. If it isn't, it is likely an issue such as username
> including/excluding the domain in one version, or something like that.
>
> You're ftp logs would be very useful in this case.
>
> > I really
> > need to get vacation and forwards working.
>
> Let me know if you have ftp logs, can enable them, don't have any access
> to them, etc. and we'll work from there.
>
> > regards & thanks
> > Peter
> >
> >
> > Horde Applications
> >
> > Notice: Undefined index: fileroot in
/usr/apache/htdocs/horde/lib/Test.php on
> > line 599
> >
> > Horde: 3.0-cvs
> > Imp: 4.0-cvs (run Imp tests)
> > Turba: 2.0-cvs (run Turba tests)
> > Kronolith: 2.0-cvs
> > Mnemo: 2.0-cvs
> > Nag: 2.0-cvs
> > Nic: 0.0.2-cvs (run Nic tests)
> > Jonah: 0.0.3-cvs (run Jonah tests)
> > Klutz: 0.0.1-cvs
> > Forwards: 2.2-cvs
> > Passwd: 2.2-cvs
> > Vacation: 2.2-cvs
> > PHP Version 4.3.4 all on Solaris 9 sparc
> >
> > --
> > Sork mailing list
> > Frequently Asked Questions: http://horde.org/faq/
> > To unsubscribe, mail: sork-unsubscribe at lists.horde.org
> >
>
>
> --
> Eric Rostetter
> The Department of Physics
> The University of Texas at Austin
>
> Why get even? Get odd!
> --
> Sork mailing list
> Frequently Asked Questions: http://horde.org/faq/
> To unsubscribe, mail: sork-unsubscribe at lists.horde.org
>
More information about the sork
mailing list