Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 18 Jul 2001 13:38:05 +0200
From:      Achim Patzner <ap@proxon.bnc.net>
To:        hackers@freebsd.org, isp@freebsd.org
Subject:   UW IMAP, PAM and mysql
Message-ID:  <20010718133805.A86188@proxon.bnc.net>

next in thread | raw e-mail | index | archive | help
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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20010718133805.A86188>