From owner-freebsd-isp Thu Dec 7 5:46:24 2000 From owner-freebsd-isp@FreeBSD.ORG Thu Dec 7 05:46:20 2000 Return-Path: Delivered-To: freebsd-isp@freebsd.org Received: from mail.psknet.com (orion.psknet.com [63.171.251.4]) by hub.freebsd.org (Postfix) with SMTP id 058D937B400 for ; Thu, 7 Dec 2000 05:46:20 -0800 (PST) Received: (qmail 40981 invoked from network); 7 Dec 2000 13:46:13 -0000 Received: from abyss.dashit.net (HELO ABYSS) (209.100.22.250) by orion.psknet.com with SMTP; 7 Dec 2000 13:46:13 -0000 From: "Troy Settle" To: , "Daniel" Cc: Subject: RE: Change password via web Date: Thu, 7 Dec 2000 08:46:13 -0500 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook IMO, Build 9.0.2416 (9.0.2911.0) In-reply-to: <0012071209470B.03569@freefire.psi-domain.co.uk> X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4133.2400 Importance: Normal X-AntiVirus: scanned for viruses by Pulaski Networks (http://www.psknet.com) using AMaViS (http://www.amavis.org) Sender: owner-freebsd-isp@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org Install poppassd from /usr/ports/mail/poppassd Then grab one of my scripts: http://home.psknet.com/troy/passwd.php.txt http://home.psknet.com/troy/passwd.pl.txt The PHP script is self contained. For the perl script, you'll need to create a form (username, passwd, np1, np2) Should take you all of about 5 minutes to get up and running. G'luck, -- Troy Settle Pulaski Networks 540.994.4254 It's always a long day, 86400 doesn't fit into a short. ** -----Original Message----- ** From: owner-freebsd-isp@FreeBSD.ORG ** [mailto:owner-freebsd-isp@FreeBSD.ORG]On Behalf Of Jamie Heckford ** Sent: Thursday, December 07, 2000 6:58 AM ** To: Daniel ** Cc: freebsd-isp@freebsd.org ** Subject: Re: Change password via web ** ** ** I did this - took me ages to figure out how ;) ** ** This was my method:- ** ** 1. Create a web form, thats asks for there username, current ** password, new pass, ** verify new pass. ** ** 2. Have there current password verified against a MySQL database ** with a perl ** script. ** ** 3. If ok, drop there new password into a plain text file with the format ** username,password \n . Have a seperate plain text file that will ** have there new ** password in a SQL UPDATE statement in, say, newpass.sql ** ** 4. Every ten minutes, have another perl script on cron process ** the plain text ** files. ** ** Process the MySQL with something like "mysql -upass -padmin passworddb < ** /var/passtmp/newpass.sql ** ** Then process the password plain text file, with something like this: ** ** open (UD, ") { ** @LINE = split /,/; ** foreach $value (@LINE) { ** ** Put your own hack here :) ** ** } ** ** I'll give you a clue for updating the passwords with your own ** hack, and that is ** adduser is a perl script ;) ** ** I copied the adduser script and then hacked it to include my own ** processing for ** the web stuff and ran it seperatly. ** ** Have Fun ** ** Jamie ** ** On Thu, 07 Dec 2000, you wrote: ** > Hi, i've just started using FreeBSD and i've just started to ** work at an ISP ** > in my local, and i've been asked to make a web page so that ** our clients can ** > change their passwords on the web. Has anyone done this sort of thing ** > before or know of any places i could get reference material ** from? Anything ** > would be apperciated. ** > ** > ** > Thanks ** > ** > ** > Dan ** > ** > ** > ** > To Unsubscribe: send mail to majordomo@FreeBSD.org ** > with "unsubscribe freebsd-isp" in the body of the message ** -- ** Jamie Heckford ** Chief Network Engineer ** Psi-Domain - Innovative Linux Solutions. Ask Us How. ** ** =================================== ** email: heckfordj@psi-domain.co.uk ** web: http://www.psi-domain.co.uk/ ** ** tel: +44 (0)1737 789 246 ** fax: +44 (0)1737 789 245 ** mobile: +44 (0)7779 646 529 ** =================================== ** ** ** To Unsubscribe: send mail to majordomo@FreeBSD.org ** with "unsubscribe freebsd-isp" in the body of the message ** ** To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-isp" in the body of the message