From owner-freebsd-questions@FreeBSD.ORG Mon Dec 12 03:21:42 2005 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id C207116A420 for ; Mon, 12 Dec 2005 03:21:42 +0000 (GMT) (envelope-from leblanc@keyslapper.net) Received: from camomile.cloud9.net (camomile.cloud9.net [168.100.1.3]) by mx1.FreeBSD.org (Postfix) with ESMTP id 7618F43D75 for ; Mon, 12 Dec 2005 03:21:25 +0000 (GMT) (envelope-from leblanc@keyslapper.net) Received: from camomile.cloud9.net (localhost.cloud9.net [127.0.0.1]) by camomile.cloud9.net (Postfix) with SMTP id 4F7CA5543 for ; Sun, 11 Dec 2005 22:21:24 -0500 (EST) Received: from keyslapper.net (250-119.customer.cloud9.net [168.100.250.119]) by camomile.cloud9.net (Postfix) with ESMTP id AE9AE5559 for ; Sun, 11 Dec 2005 22:21:23 -0500 (EST) Received: from localhost (localhost [127.0.0.1]) by keyslapper.net (Postfix) with ESMTP id 88E2011A6D for ; Sun, 11 Dec 2005 22:17:16 -0500 (EST) Received: from keyslapper.net ([127.0.0.1]) by localhost (keyslapper.net [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 00551-10 for ; Sun, 11 Dec 2005 22:17:16 -0500 (EST) Received: by keyslapper.net (Postfix, from userid 1001) id 41BCE1187C; Sun, 11 Dec 2005 22:17:16 -0500 (EST) Date: Sun, 11 Dec 2005 22:17:16 -0500 From: Louis LeBlanc To: freebsd-questions@freebsd.org Message-ID: <20051212031716.GA87116@keyslapper.net> Mail-Followup-To: freebsd-questions@freebsd.org References: <20051212024427.GA27477@keyslapper.net> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="X1bOJ3K7DJ5YkBrT" Content-Disposition: inline In-Reply-To: <20051212024427.GA27477@keyslapper.net> X-PGP-Key: http://www.keyslapper.net/~leblanc/leblanc-at-keyslapper-net.asc User-Agent: Mutt/1.5.11 X-Virus-Scanned: amavisd-new at keyslapper.net X-AntiVirus: Checked by Vexira Antivirus v1.5 Subject: Re: courier-authlib-0.58 dumps core at login X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: freebsd-questions@FreeBSD.org List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 12 Dec 2005 03:21:42 -0000 --X1bOJ3K7DJ5YkBrT Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On 12/11/05 09:44 PM, Louis LeBlanc sat at the `puter and typed: > Hey folks. >=20 > Is it me, or is the courier-authlib port the absolute worst thing to > upgrade? It seems like *every* single time I try to upgrade this > port, I wind up with nobody being able to log into my courier > installation. Usually, it's a simple matter of a simple manual > restart of the daemon (it shuts down fine at deinstallation, but won't > start back up when portupgrade is used), sometimes it's a minor config > tweak. >=20 > The thing is I keep forgetting this little issue for some stupid > reason, and this time, I've got the darn thing dumping core every time > someone tries to log in. >=20 > The ports/security/courier-authlib-base/ port installs without any > problems, but it only builds and installs the libauthpam.so module. > This is fine, I guess, since I've removed all the other modules from > the authmodulelist config - that's the only one it ever used before > anyway. >=20 > So, now I've gone through the whole fiasco of re-installing my entire > courier-* setup, verifying ALL the configs for authdaemonrc, imapd, > and imapd-ssl. Still, authdaemond dumps core anytime someone tries to > log in. >=20 > Anyone else see anything wierd with courier-authlib-base-0.58? >=20 > I have googled for it, and all I get are links to the various copies > of the ports/UPDATING file. Of course, it contains all the keywords I > can come up with, but none are relevant to the recent issue - and the > current UPDATING file has nothing about the latest courier-authlib > update. >=20 > BTW, I'm the only one on the system that can get mail, because I'm > using mutt. My Thunderbird and Squirrelmail users cannot log into > either imap service (imapd with squirrelmail, imapd-ssl remotely). > So, this is a little annoying, and probably a bit urgent. >=20 > I have the entire port configuration output if it's of any help. It > looks like the config process cycles through 12 times. Quick followup: I ran a couple tests with this as follows: Using authtest, I was able to see what the encrypted password was on my user account. I then set DEBUG=3D2 in the authdaemonrc file, and restarted the authdaemon. This routs encrypted passwords to the debug file when a login is attempted. These passwords do match, but the debug log shows a rejection. Here's the output to the debug log: Dec 11 22:08:07 keyslapper imapd: Connection, ip=3D[::1] Dec 11 22:08:07 keyslapper authdaemond: received auth request, service=3Dim= ap, authtype=3Dlogin Dec 11 22:08:07 keyslapper authdaemond: authpam: trying this module Dec 11 22:08:07 keyslapper authdaemond: authpam: sysusername=3Dleblanc, sys= userid=3D, sysgroupid=3D1001, homedir=3D/home/leblanc, address=3Dlebl= anc, fullname=3DLouis LeBlanc, maildir=3D, quota=3D, options=3D= Dec 11 22:08:07 keyslapper authdaemond: authpam: clearpasswd=3D, pass= wd=3D$1$zXwYvUtS$W1234567890ABCdefGHIj/ Dec 11 22:08:07 keyslapper authdaemond: pam_service=3Dimap, pam_username=3Dleblanc Dec 11 22:08:07 keyslapper authdaemond: authpam: REJECT - try next module Dec 11 22:08:07 keyslapper authdaemond: FAIL, all modules rejected and the authtest output: # authtest leblanc Authentication succeeded. Authenticated: leblanc (system username: leblanc) Home Directory: /home/leblanc Maildir: (none) Quota: (none) Encrypted Password: $1$zXwYvUtS$W1234567890ABCdefGHIj/ Cleartext Password: (none) Options: wbnodsn=3D1 Naturally, I changed the encrypted password here, but rest assured I did check them character by character. BTW, authdaemond did dump core again. Thanks again. Lou --=20 Louis LeBlanc FreeBSD-at-keyslapper-DOT-net Fully Funded Hobbyist, KeySlapper Extrordinaire :) Please send off-list email to: leblanc at keyslapper d.t net Key fingerprint =3D C5E7 4762 F071 CE3B ED51 4FB8 AF85 A2FE 80C8 D9A2 God doesn't play dice. -- Albert Einstein --X1bOJ3K7DJ5YkBrT Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.2 (FreeBSD) iD8DBQFDnOu8r4Wi/oDI2aIRAlHJAKCNMAzsyLVczDtYKQ4DO9ObhgM+PwCggBsV 7SUx+nBDtzraJ78BPl+0IYg= =6Brf -----END PGP SIGNATURE----- --X1bOJ3K7DJ5YkBrT--