From owner-freebsd-isp Wed Jul 18 4:38:14 2001 Delivered-To: freebsd-isp@freebsd.org Received: from proxon.bnc.net (proxon.bnc.net [62.225.99.6]) by hub.freebsd.org (Postfix) with ESMTP id A3C0F37B403; Wed, 18 Jul 2001 04:38:10 -0700 (PDT) (envelope-from ap@proxon.bnc.net) Received: (from ap@localhost) by proxon.bnc.net (8.11.3/8.11.3) id f6IBc5s86331; Wed, 18 Jul 2001 13:38:05 +0200 (CEST) (envelope-from ap) Date: Wed, 18 Jul 2001 13:38:05 +0200 From: Achim Patzner To: hackers@freebsd.org, isp@freebsd.org Subject: UW IMAP, PAM and mysql Message-ID: <20010718133805.A86188@proxon.bnc.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i Sender: owner-freebsd-isp@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org Hi! I didn't know exactly whom to annoy about it so I sent it to hackers AND ISP... I'm trying to get UW IMAP to authenticate users using a mysql database (using pam_mysql). Am I the only one trying to do this? My /etc/pam.conf contains all the necessary things: [...] # Mail services imap auth sufficient pam_mysql.so user=[...] #imap auth required pam_unix.so imap account sufficient pam_mysql.so user=[...] try_first_pass #imap account required pam_unix.so try_first_pass imap session required pam_deny.so pop3 auth sufficient pam_mysql.so host=[...] #pop3 auth sufficient pam_unix.so pop3 account sufficient pam_mysql.so host=[...] try_first_pass #pop3 account sufficient pam_unix.so try_first_pass pop3 session required pam_deny.so [...] As you might have guessed: It doesn't work. If the account in question doesn't exist in /etc/passwd authentication will fail _without_ a query to the mysql database. Obviously I misunderstood something about PAM in general or using pam_mysql. Any ideas? Noses. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-isp" in the body of the message