I can't speak to Redhat 7.0 if your problem turns out to be platform
specific, but I just finished beating my head against a wall on Solaris
with the same issue. One small fix in /etc/imapd.conf fixed it. To
wit:
sasl_pwcheck_method: PAM <-- nope
pwcheck_method: PAM <-- works like a champ
Your example is lower case, but I don't think that makes a difference.
However, killing the leading "sasl_" sure does on Solaris
(documentation to the contrary not withstanding), and I'd be really
surprised if it doesn't fix it on Redhat too!
-- Rob
--On Monday, March 12, 2001 04:29:02 PM -0600 Barton Hodges
<[EMAIL PROTECTED]> wrote:
>
> Hi folks, I'm having problems setting up PAM authentication,
> and I'm hoping someone can help me figure it out. I've
> searched through all the archives and tried everything I can
> find.
>
> ------
>
> Here's what I'm using:
> Redhat 7.0 (with all available updates)
> cyrus-sasl-1.5.24
> cyrus-imapd-2.0.12
> pam_mysql-0.4.7
>
> ------
>
> I compiled pam_mysql-0.4.7 and copied pam_mysql.so
> to /lib/security
>
> ------
>
> I compiled and installed cyrus-sasl-1.5.24 with this:
> ./configure --with-pam=/etc/pam.d
> make
> make install
>
> ------
>
> I compiled and installed cyrus-imapd-2.0.12 with this:
> ./configure --with-auth=unix --disable-sieve
> make depend
> make all CFLAGS=-O
> make install
>
> ------
>
> This is my /etc/imapd.conf:
> configdirectory: /var/imap
> partition-default: /home/imap
> admins: cyrus root
> allowanonymouslogin: no
> sasl_pwcheck_method: pam
>
> ------
>
> This is my /etc/pam.d/imap:
>
> auth optional /lib/security/pam_mysql.so user=nobody \
> password=nopass db=system table=passwd \
> usercolumn=id passwdcolumn=password
> account required pam_permit.so
>
> ------
>
> If I set sasl_pwcheck_method: sasldb, then when I do
> imtest -m login -a cyrus localhost, it works just fine.
>
> However, when I set sasl_pwcheck_method: shadow
> (I have chmod +r /etc/shadow for testing)
> or sasl_pwcheck_method: pam, it does not work at all
> and I can't find any error messages telling why the authentication
> did not work.
>
> I noticed that when I do an imtest, this shows up:
>
> AUTH=DIGEST-MD5 AUTH=CRAM-MD5
>
> should I expect an "AUTH=PAM" to be listed here?
>
> Any help would be greatly appreciated.
>
> Barton
_ _ _ _ _ _ _ _ _ _
/\_\_\_\_\ /\_\ /\_\_\_\_\_\
/\/_/_/_/_/ /\/_/ \/_/_/_/_/_/ QUIDQUID LATINE DICTUM SIT,
/\/_/__\/_/ __ /\/_/ /\/_/ PROFUNDUM VIDITUR
/\/_/_/_/_/ /\_\ /\/_/ /\/_/
/\/_/ \/_/ /\/_/_/\/_/ /\/_/ (Whatever is said in Latin
\/_/ \/_/ \/_/_/_/_/ \/_/ appears profound)
Rob Tanner
UNIX and Networks Manager
Linfield College, McMinnville OR
(503) 434-2558 <[EMAIL PROTECTED]>