[horde] Horde + IMP (on OpenBSD, Apache chroot, solved)

Kevin Myer kevin_myer at iu13.org
Fri Jun 3 17:14:34 PDT 2005


I traced this out and found that the IMAP toolkit wants to lookup a 
user in the
password database (I think maybe a geteuid call).

Jun  3 19:50:48 diabase httpd: /etc/pwd.db: No such file or directory
Jun  3 19:50:48 diabase httpd: /etc/pwd.db: No such file or directory
Jun  3 19:50:48 diabase httpd: IMAP toolkit crash: Unable to look up user name
Jun  3 19:50:48 diabase httpd: IMAP toolkit crash: Unable to look up user name
Jun  3 19:50:48 diabase httpd: IMAP toolkit crash: Unable to look up user name

Discovery of this was facilitated by:

1)  Running apache in single process mode (httpd -X)
2)  run ktrace on the single process of httpd (ktrace -p <httpd pid>)
3)  kdump the ktrace.out file and review that (kdump)
4)  Notice the returns of some of the system calls (RET   connect -1 
errno 2 No
such file or directory)

So to solve the problem:

mkdir /var/www/etc
cp /etc/pwd.db /var/www/etc
cp /etc/spwd.db /var/www/etc

If you want to get more useful logging information out of Apache, start 
syslogd
with another listening socket on /var/www/dev/log as well.

I modified my /etc/rc to include the following (or at least it should work - I
haven't rebooted yet but I did restart syslogd with the additional socket):

if [ "X${httpd_flags}" != X"NO" ]; then
        rm -f /var/www/dev/log
        syslogd_flags="${syslogd_flags} -a /var/www/dev/log"
fi

Kevin

-- 
Kevin M. Myer
Senior Systems Administrator
Lancaster-Lebanon Intermediate Unit 13  http://www.iu13.org




More information about the horde mailing list