From owner-freebsd-ports@FreeBSD.ORG Fri Dec 11 16:49:25 2009 Return-Path: Delivered-To: freebsd-ports@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 56149106566C for ; Fri, 11 Dec 2009 16:49:25 +0000 (UTC) (envelope-from srandall52@gmail.com) Received: from mail-yw0-f204.google.com (mail-yw0-f204.google.com [209.85.211.204]) by mx1.freebsd.org (Postfix) with ESMTP id 0D39C8FC08 for ; Fri, 11 Dec 2009 16:49:24 +0000 (UTC) Received: by ywh42 with SMTP id 42so1078743ywh.28 for ; Fri, 11 Dec 2009 08:49:24 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:date:from:to:cc:subject :message-id:in-reply-to:references:x-mailer:mime-version :content-type:content-transfer-encoding; bh=u69JUluajqo1499a8FzXXlNzlXoqTb4u4Ku1sH5InUo=; b=b2aCUE5FCqXncwfAOXaxWQ0QUbECB48m/AcLw+eBKhoa+GO9YqfUmQDNtjB3KL778G FNFR2Nu8N6vdgOyRTESVDx1jRLN4BoDHH9e/dtcvk4P6L9LyegKMNUoZrA6q4cvitnsd N7nCyOPhxjW74/TBGnyuzSVx4wFScd/xlN6pY= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=date:from:to:cc:subject:message-id:in-reply-to:references:x-mailer :mime-version:content-type:content-transfer-encoding; b=NcqKSUEXSaxPKDTv4LJ6KZ+44WiJy786VTYEtz+2NyxSxEUme8p34Cv8D3HouiiYCy 4kMHL9H3bX59u1f5x49nlRXCcmlPpasu5mAOPI8jOKMSdOoVwkwyUYyvx6ttrljBwrxp EKE68UBLJwRU0WVZShBumyasAnY27cs1aFeiY= Received: by 10.150.171.14 with SMTP id t14mr2746866ybe.316.1260550164264; Fri, 11 Dec 2009 08:49:24 -0800 (PST) Received: from locust.local (adsl-71-158-210-141.dsl.wchtks.sbcglobal.net [71.158.210.141]) by mx.google.com with ESMTPS id 22sm918148yxe.57.2009.12.11.08.49.22 (version=SSLv3 cipher=RC4-MD5); Fri, 11 Dec 2009 08:49:23 -0800 (PST) Date: Fri, 11 Dec 2009 10:49:21 -0600 From: Steve Randall To: David Southwell Message-ID: <20091211104921.14f05a92@locust.local> In-Reply-To: <200912111444.12602.david@vizion2000.net> References: <200912111444.12602.david@vizion2000.net> X-Mailer: Claws Mail 3.7.3 (GTK+ 2.18.3; i386-portbld-freebsd8.0) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Cc: freebsd-ports@freebsd.org Subject: Re: CUPS/PAM configuration authentication problem. X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 11 Dec 2009 16:49:25 -0000 On Fri, 11 Dec 2009 14:44:12 +0000 David Southwell wrote: > > Hi > Thanks to some help from people on the freebsd-questions lists I have > finally succeeded in getting cups the server to communicate with my > printer and print. > HOWEVER!! > > One minor niggling problem remains. I still cannot communicate with the > cups management interface on http://localhost:631 due to password > authentication failure. > > On good authority I believe I have a PAM configuration error most likely - and > was told to check my /etc/pam.d/cups file. Not that I would know what to do > with it when I found it!!! > > However there is no /etc/pam.d/cups file !! > > BUT: there is a /usr/local/etc/pam.d/cups > > which has the following lines: > auth required pam_unknown.so nodelay > account required pam_unknown.so I looked at the cups configuration script, and it appears you have found a bug in configuring the PAM option. (Which defaults to "off", so it probably isn't tested much.) Where the file says "pam_unknown.so" it should say "pam_unix.so". Make that simple change and you should be up and running. But if you don't know what to do with the PAM file, you might as well just rebuild cups-base with the PAM option turned back off. You don't need PAM if all you want is normal Unix authentication. HTH