Re: [sqwebmail] sqwebmail, authdaemond in chroot - last act (I hope)
On Fri, Oct 17, 2003 at 07:58:14AM +0200, Holger Hecht wrote: I am still trying to use sqwebmail in an apache chroot of OpenBSD 3.3. Now I got nearly everything working, the authentication via ldap works (many thanks to Brian Candler for his test-script, it helped a lot), sqwebmail finds the mailhome, creates a cache record in /var/run/sqwebmail. The only problem is: I can not see anything after login in. Just a plain white page, no folders, no graphics, nothing. The browser fails to show any html-code. The html sources and graphics should be O.K. (the login is shown without any problems). What could be missing? Search the source code for fork and exec, because there are *binaries* which sqwebmail needs as well. The one which comes to mind immediately is gzip (which must be in the same path as when configure was run; i.e. if it found /usr/local/bin/gzip then your chroot environment needs /usr/local/bin/gzip). Alternatively recompile --without-gzip. If using ldap you also need the binary ldapsearch. There may be others; as I say, go through the source. Brian.
Re: Re: [sqwebmail] sqwebmail, authdaemond in chroot - last act (I hope)
Dear Brian, Am Freitag, 17. Oktober 2003 11:09 schrieben Sie: On Fri, Oct 17, 2003 at 07:58:14AM +0200, Holger Hecht wrote: I am still trying to use sqwebmail in an apache chroot of OpenBSD 3.3. Now I got nearly everything working, the authentication via ldap works (many thanks to Brian Candler for his test-script, it helped a lot), sqwebmail finds the mailhome, creates a cache record in /var/run/sqwebmail. The only problem is: I can not see anything after login in. Just a plain white page, no folders, no graphics, nothing. The browser fails to show any html-code. The html sources and graphics should be O.K. (the login is shown without any problems). What could be missing? Search the source code for fork and exec, because there are *binaries* which sqwebmail needs as well. The one which comes to mind immediately is gzip (which must be in the same path as when configure was run; i.e. if it found /usr/local/bin/gzip then your chroot environment needs /usr/local/bin/gzip). Alternatively recompile --without-gzip. If using ldap you also need the binary ldapsearch. There may be others; as I say, go through the source. and the winner was: gzip. I do not know how I could forget this, I have trapped all the libraries, but overlooked a program that is in the configure options. (By the way, the ldap-authentication failure I had the first time had something to do with a missing file under /etc). Thanks a lot. Regards, Holger
Re: [sqwebmail] sqwebmail, authdaemond in chroot
On Thu, Oct 09, 2003 at 05:52:21PM +0200, Holger Hecht wrote: Can I somehow test the authdaemon alone? Try this (adjust socket path to suit): #!/usr/bin/perl use Socket; $authsock = /var/sqwebmail/authdaemon/socket; $authtype = webmail; $|=1; print Username? ; $user = ; chomp($user); print Password? ; $pass = ; chomp($pass); $astr = $authtype\nlogin\n$user\n$pass\n; $astr = AUTH . length($astr) . \n . $astr; # See 'man perlipc' socket(SOCK,PF_UNIX,SOCK_STREAM,0) || die socket: $!; connect(SOCK, sockaddr_un($authsock)) || die connect: $!; syswrite(SOCK, $astr, length($astr)); $resp = ; while ($line = SOCK, defined($line)) { $resp .= $line; } close SOCK; print $resp;