Yes I am purposely using authpwd (I wanted to make sure it wasn't
something goofy with FreeBSD's pam). This is an internal machine and
there are no more than a handful of logins so authpwd is fine.
I just did a ktrace and noticed that sqwebmail took 30ms altogether to
execute the action of displaying the next e-mail. The problem is gotta
be elsewhere so I am going to play with this some more.
Thanks for the quick response!
Tim
On Tue, Jul 17, 2001 at 01:17:42AM +0000, Sam Varshavchik wrote:
> Tim writes:
>
> >> * Do an ldd on the binary. See what dynamic libraries are being loaded.
> >
> > % ldd /usr/local/www/cgi-bin/sqwebmail
> > /usr/local/www/cgi-bin/sqwebmail:
> > libcrypt.so.2 => /usr/lib/libcrypt.so.2 (0x280a2000)
> > libc.so.3 => /usr/lib/libc.so.3 (0x280b7000)
> >
> >> * Verify that login caching is set up correctly. Sounds like you don't have
> >> the login cache properly set up. This will result in a fallback of EVERY
> >> request getting authenticated against whatever you're using for
> >> authentication.
> >
> > I think it's setup OK - see below. Also, initially I had setup sqwebmail
> > withOUT login caching and then I got the slowness complaint, so I set it
> > up WITH login caching and had the same problem.
> >
> > Thanks,
> >
> > Tim
> >
> > % sudo ls -alR /var/run/sqwebmail
> > total 3
> > drwxr-xr-x 3 bin wheel 512 Jul 16 19:06 .
> > drwxr-xr-x 4 root wheel 512 Jul 16 19:01 ..
> > drwx------ 3 bin wheel 512 Jul 16 19:06 138240
> >
> > /var/run/sqwebmail/138240:
> > total 3
> > drwx------ 3 bin wheel 512 Jul 16 19:06 .
> > drwxr-xr-x 3 bin wheel 512 Jul 16 19:06 ..
> > drwx------ 2 bin wheel 512 Jul 16 19:06 ti
> >
> > /var/run/sqwebmail/138240/ti:
> > total 3
> > drwx------ 2 bin wheel 512 Jul 16 19:06 .
> > drwx------ 3 bin wheel 512 Jul 16 19:06 ..
> > -rw------- 1 bin wheel 67 Jul 16 19:18 tim.authpwd
> >
> > % ls -ld /usr/local/www/cgi-bin/sqwebmail
> > -rwsr-xr-x 1 root wheel 270212 Jul 16 19:06
> > /usr/local/www/cgi-bin/sqwebmail
> >
> > % sudo more /var/run/sqwebmail/138240/ti/tim.authpwd
> > 1000 1000 /usr/home/tim/Maildir
> > AUTHADDR=tim
> > AUTHFULLNAME=Tim
>
> Double check that you should really be using authpwd. Authpwd is for
> password in /etc/passwd file, which almost nobody uses anymore, although I
> can't see how you'd be able to authenticate if this is wrong.
>
> --
> Sam