From owner-freebsd-questions Thu Jan 7 21:19:19 1999 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id VAA04085 for freebsd-questions-outgoing; Thu, 7 Jan 1999 21:19:19 -0800 (PST) (envelope-from owner-freebsd-questions@FreeBSD.ORG) Received: from darwin.house.lan (ts2p31.wizvax.net [204.97.162.96]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id VAA04080 for ; Thu, 7 Jan 1999 21:19:16 -0800 (PST) (envelope-from jaime@snowmoon.com) Received: from localhost (jaime@localhost) by darwin.house.lan (8.8.8/8.8.7) with ESMTP id AAA01931 for ; Fri, 8 Jan 1999 00:18:41 -0500 (EST) (envelope-from jaime@darwin.house.lan) Date: Fri, 8 Jan 1999 00:18:41 -0500 (EST) From: Jaime Reply-To: jaime@snowmoon.com To: freebsd-questions@FreeBSD.ORG Subject: Re: Users changing passwords In-Reply-To: Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG I have more information about this problem. The chpasswd.cgi script that I found in the mailing list archives is choking on this line: connect(PASSD, $that) || die "connect: $!"; All the print commands in the rest of the script produce no output that the apache server sees. This is where STDOUT should be going. Whether STDOUT isn't aimed there or STDOUT is somehow going to a /dev/null sort of place is what I don't know. Also, if the script is run by hand (./chpasswd.cgi), it will run perfectly. Of course, the flow chart of the program causes it to not execute the "connect" command in that case. So, as far as I can tell, the problem has something to do with connect. Anyone have any ideas? Thanks in advance, Jaime On Thu, 7 Jan 1999, Jaime wrote: > I'm almost done putting together a new mail/web/file/dhcp server > for work. Its a FreeBSD 3.0-RELEASE system (needed the 16 character > usernames) with an assortment of goodies. But I've hit a snag. > > Most of the people who I have to support will never allow > themselves to learn enough to use Pine, passwd, du, and so forth. As a > result, I'm making a collection of Intranet style CGIs, using IMAP, etc. > and keeping them out of telnet. But I have no way to allow them to change > their passwords. > > I did find a CGI in the mailing list archives, but it won't work > correctly. It uses Perl5 and accesses a poppassd process over a network > socket. However, as soon as it makes a call to cgi-lib.pl, it stops > sending output to the server. (STDOUT should go to apache, so that apache > can hand it off to the web browser.) As far as I can tell, its not > producing an error. I must assume, based on a tip in the apache FAQ, that > STDOUT is being redirected to the wrong place. If I just stick cgi-lib.pl > at the bottom of the script, it makes an error. The error is "Request to > receive too much data: 73 bytes". > > So, my question is can someone either (1) tell me how to give my > users the ability to change their password without giving them telnet or > (2) tell me what I'm going wrong with the script found at: > > http://www.freebsd.org/cgi/getmsg.cgi?fetch=200807+207835+/user > /local/www/db/text/1998/freebsd-questions > /19981206.freebsd-questions > > > The help is greatly appreciated. Thanks in advance. > > TIA, > Jaime > > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-questions" in the body of the message > To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message