From qmail-return-25279-nelson-l-6ca615d95fcb76f5bb3afdc1a6ef9814=crynwr.com@list.cr.yp.to Mon Jan 04 20:30:03 1999 X-VM-v5-Data: ([nil nil nil nil nil nil nil nil nil] [nil nil nil nil nil nil nil nil nil nil nil nil "^From:" nil nil nil nil nil nil nil nil] nil) Return-Path: Delivered-To: nelson-l-6ca615d95fcb76f5bb3afdc1a6ef9814@desk.crynwr.com Received: (qmail 8447 invoked from network); 4 Jan 1999 20:30:02 -0000 Received: from ns.crynwr.com (192.203.178.14) by desk.crynwr.com with SMTP; 4 Jan 1999 20:30:02 -0000 Received: (qmail 12450 invoked by uid 500); 4 Jan 1999 20:25:32 -0000 Delivered-To: nelson-l-6ca615d95fcb76f5bb3afdc1a6ef9814@crynwr.com Received: (qmail 12444 invoked by uid 0); 4 Jan 1999 20:25:25 -0000 Received: from muncher.math.uic.edu (131.193.178.181) by pdam.crynwr.com with SMTP; 4 Jan 1999 20:25:25 -0000 Received: (qmail 22907 invoked by uid 1002); 4 Jan 1999 20:24:05 -0000 Mailing-List: contact qmail-help@list.cr.yp.to; run by ezmlm Precedence: bulk Delivered-To: mailing list qmail@list.cr.yp.to Received: (qmail 28143 invoked from network); 4 Jan 1999 20:22:34 -0000 Received: from japh.ip.pt (194.79.69.45) by muncher.math.uic.edu with SMTP; 4 Jan 1999 20:22:34 -0000 Received: (qmail 2476 invoked from network); 4 Jan 1999 20:21:35 -0000 Received: from localhost (HELO japh.ip.pt) (127.0.0.1) by localhost with SMTP; 4 Jan 1999 20:21:35 -0000 Message-ID: X-Mailer: XFMail 1.3 [p0] on Linux X-Priority: 3 (Normal) MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="_=XFMail.1.3.p0.Linux:990104202135:491=_" From: Pedro Melo Sender: melo@japh.ip.pt To: qmail@list.cr.yp.to Subject: Patch to checkpassword - auth via CDB - New Version Date: Mon, 04 Jan 1999 20:21:35 -0000 (WET) This message is in MIME format --_=XFMail.1.3.p0.Linux:990104202135:491=_ Content-Type: text/plain; charset=us-ascii Hi! Forgot the attachment the first time... Sorry about that... This patch allow's you to create a CDB file to handle all you authentication with checkpassword. This patch works with checkpassword-0.81, and requires cdb-0.55. Perl is also required to use a little script that is included to create the authentication database. I added more information to the INSTALL file. Please let me know if you use it. I would like to know if anybody else finds it usefull... Thanks! Russel, I dont have a site for it, so could you please include it in www.qmail.org? --- Pedro Melo pedro.melo@co.ip.pt IP - Engenharia http://ip.pt/ Tel: +351-1-3166740 Av. Duque de Avila, 23 Fax: +351-1-3166701 1049-071 LISBOA - PORTUGAL 8:20pm up 5:00, 6 users, load average: 1.51, 1.31, 1.12 --_=XFMail.1.3.p0.Linux:990104202135:491=_ Content-Disposition: attachment; filename="patch.checkpassword-0.81" Content-Transfer-Encoding: base64 Content-Type: application/octet-stream; name=patch.checkpassword-0.81; SizeOnDisk=6824 ZGlmZiAtdXJOIGNoZWNrcGFzc3dvcmQtMC44MS9JTlNUQUxMIG4vSU5TVEFMTAotLS0gY2hlY2tw YXNzd29yZC0wLjgxL0lOU1RBTEwJU2F0IERlYyAxOSAyMTowNTo1NiAxOTk4CisrKyBuL0lOU1RB TEwJU3VuIEphbiAgMyAyMzowNzoyNiAxOTk5CkBAIC03LDYgKzcsMzYgQEAKICogVGhlIGNoZWNr cGFzc3dvcmQgaG9tZSBkaXJlY3RvcnksIG5vcm1hbGx5IC8uIFRvIGNoYW5nZSB0aGlzCiBkaXJl Y3RvcnksIGVkaXQgY29uZi1ob21lIG5vdy4KIAorKiBUaGUgbG9jYXRpb24gb2YgeW91ciBDREIg YXV0aGVudGljYXRpb24gZGF0YWJhc2UuIFRvIGNoYW5nZSB0aGlzLCBlZGl0Citjb25mLWF1dGhm aWxlIG5vdy4KKworVGhpbmdzIHlvdSBoYXZlIHRvIGRvIGJlZm9yZSBjb21waWxpbmc6CisKKyog SW5zdGFsbCBjZGIgKHRlc3RlZCB3aXRoIGNkYi0wLjU1KS4gVGhlIGNkYi5oIGFuZCB0aGUgdWlu dDMyLmggaW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