and which pam_mysql? did you compile it enabling DEBUG option?

Nick

-----Original Message-----
From: Mark Davis [mailto:[EMAIL PROTECTED]]
Sent: Friday, October 12, 2001 14:40
To: [EMAIL PROTECTED]
Subject: Re: pam/mysql doesnt work


Hi! again

Thx for your answer. But i also tried to compile sasl with the follwoing 
options:
$ ./configure  --prefix=/usr --with-passwd_method=PAM
--with_pam=/lib/security
or
$ ./configure  --prefix=/usr --with_pam=/lib/security

and as you can see in the log of my configure:
> >checking for pam_start in -lpam... yes
> >checking for security/pam_appl.h... yes
> >checking PAM support... yes

I also tried sasl_pwcheck_method: pam, pan??? and pam. Always "cannot find 
..."

And i also removed the "pwcheck_method" from imapd.conf

And finally there are NO spaces at the end (i verified with vi).

Nothing worked. I'am getting frustrated.

Isn't there a how-to that i maybe didnt worked through, that you can tell me
?

I am using ( i forgot to mention last time):
Distro: SuSE 7.2 (Maybe next monday i try 7.3)

openssl-0.9.6a (and dev)
cyrus-imapd-2.0.16
cyrus-sasl-1.5.24 
pam-0.74-39 (and dev)
mysql-2.23.37 (client and dev)

Greets
Mark Davis


Am Donnerstag, 11. Oktober 2001 14:36 schrieben Sie:
> Mark,
>
> Try substituting --with-pam for --with-passwd_method=PAM when
> configuring sasl.
>
>
> Also try removing:
>
>  pwcheck_method: PAM
>
> from your /etc/imapd.conf . You should only require:
>
>  sasl_pwcheck_method: pam
>
> Mark Davis wrote:
> >Hi all...
> >
> >I want to authenticate the users via a mysql-db. So i compiled pam_mysql
> > and made the files pop3/imap in the /etc/pam.d/ directory.
> >
> >I read all the mailings about pam / mysql... But i still have problems to
> > get the thing to work...
> >
> >I always get the following message in /var/log/messages or
> > /var/log/auth.log:
> >
> >Oct 10 15:33:24 mail imapd[10949]: unrecognized plaintext verifier PAM
> >
> >It seems, that sasl doesnt know what PAM is ?!
> >
> >I compiled sasl with:
> >$ ./configure  \
> >        --prefix=/usr \
> >        --with-passwd_method=PAM
> >
> >and the result auf the configure-script looks as PAM should work (see
> > below).
> >
> >sasldb works fine... Any ideas ? All my configuration files are listed
> > below.
> >
> >Greets
> >Mark Davis
> >
> >$ ldd /usr/local/imapd/bin/imapd
> >        libsasl.so.7 => /usr/local/lib/libsasl.so.7 (0x40017000)
> >        libssl.so.0.9.6 => /usr/lib/libssl.so.0.9.6 (0x40026000)
> >        libcrypto.so.0.9.6 => /usr/lib/libcrypto.so.0.9.6 (0x40054000)
> >        libdb-3.3.so => /usr/lib/libdb-3.3.so (0x40115000)
> >        libresolv.so.2 => /lib/libresolv.so.2 (0x40196000)
> >        libnsl.so.1 => /lib/libnsl.so.1 (0x401a8000)
> >        libc.so.6 => /lib/libc.so.6 (0x401be000)
> >        libdl.so.2 => /lib/libdl.so.2 (0x402db000)
> >        libcrypt.so.1 => /lib/libcrypt.so.1 (0x402df000)
> >        /lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0x40000000)
> >
> >
> >$ more /usr/local/sasl/cyrus.conf
> >pwcheck_method: PAM
> >
> >
> >$ more /etc/imapd.conf:
> >configdirectory: /var/imap
> >partition-default: /var/spool/imap
> >admins: root cyrus
> >sasl_pwcheck_method: PAM
> >srvtab: /var/imap/srvtab
> >allowanonymouslogin: no
> >pwcheck_method: PAM
> >allowplaintext: yes
> >
> >
> >$ ./configure  --prefix=/usr --with-passwd_method=PAM
> >...
> >checking for syslog... yes
> >checking for crypt... no
> >checking for crypt in -lcrypt... yes
> >checking for connect... yes
> >checking for pam_start in -lpam... yes
> >checking for security/pam_appl.h... yes
> >checking PAM support... yes
> >checking CRAM-MD5... enabled
> >checking SCRAM-MD5... disabled
> >checking for des_pcbc_encrypt in -ldes... no
> >checking for RSAPublicEncrypt in -lrsaref... no
> >checking for des_pcbc_encrypt in -lcrypto... yes
> >checking for openssl/des.h... yes
> >checking DIGEST-MD5... enabled
> >checking for res_search in -lresolv... yes
> >checking for krb.h... no
> >configure: warning: No Kerberos V4 found
> >checking KERBEROS_V4... disabled
> >checking for gssapi.h... no
> >checking for gssapi/gssapi.h... no
> >configure: warning: Disabling GSSAPI
> >checking GSSAPI... disabled
> >checking ANONYMOUS... enabled
> >checking PLAIN... enabled
> >checking LOGIN... disabled
> >checking SRP... disabled
> >checking X509... disabled
> >
> >
> >$more /etc/pam.d/imap (or pop3)
> >#%PAM-1.0
> >auth    optional        /lib/security/pam_mysql.so user=test passwd=word
> >host=localhost table=user db=mail crypt=2
> >password   required     /lib/security/pam_mysql.so user=test passwd=word
> >host=localhost table=user db=mail crypt=2

Reply via email to