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

Reply via email to