On Thursday, October 25, 2001, at 04:04 AM, Sylwester S. Biernacki wrote: > > On Wednesday, October 24, 2001, 11:26:25 PM, Bill wrote: > >> I hadn't thought of using the vpopmail php functions.. But they would >> require the web server to run as vpopmail, unless php was called as a >> cgi that was suid vpopmail. > > You have two choices: > 1. run httpd as vpopmail:vchkpw > 2. run script as vpopmail:vchkpw > > My choice was the second point. > I'm using omail not squirrelmail cause it's written in perl and I run > it through suidperl wrapper as user vpopmail. > Also there is vpopmail.pm perl module which I used instead of omail's > external checking of password. It works fine now and imho you can do > the same. In php you can have some problems but you can always wrap > squirrelmail through some program (sudo i.e.).
Well, my idea was to make it very simple and utilize what's already been done in qmailadmin. I'd like to stay away from perl or any cgi other than the qmailadmin binary itself. The 2 real problems I see are: 1. Lack of theme support 2. After changing the password, squirrelmail doesn't know about the new password and stalls while you get logged out. This is really just cumbersome, but I haven't figured out a good way to handle it yet. Ideas? Cheers, Bill Shupp
