Cyrus IMAPD + OpenLDAP + PAM

From: Robinson Maureira Castillo (no email)
Date: Tue Oct 02 2001 - 13:53:51 EDT


Hi all, I know this has been posted before, but I still can't get this to
work, I get the following error when trying to use cyradm:

[root at ws01 RPMS]# cyradm -u rmaureira localhost
Please enter your password:
IMAP Password:
               at
/usr/lib/perl5/site_perl/5.6.0/i386-linux/Cyrus/IMAP/Admin.pm line 78
cyradm: cannot authenticate to server with as rmaureira

/dev/console shows:

Oct 2 13:50:54 ws01 master[21339]: about to exec /usr/cyrus/bin/imapd
Oct 2 13:50:54 ws01 service-/usr/cyrus/bin/imapd[21339]: executed
Oct 2 13:50:54 ws01 imapd[21339]: accepted connection
Oct 2 13:50:56 ws01 imapd[21339]: badlogin:
localhost.localdomain[127.0.0.1] PLAIN no mechanism available
Oct 2 13:51:00 ws01 slapd[18073]: daemon: conn=4 fd=7 connection from
IP=127.0.0.1:35444 (IP=0.0.0.0:389) accepted.
Oct 2 13:51:00 ws01 slapd[18073]: conn=4 op=0 BIND dn="" method=128
Oct 2 13:51:00 ws01 slapd[18073]: conn=4 op=0 RESULT tag=97 err=0 text=
Oct 2 13:51:00 ws01 slapd[18073]: conn=4 op=1 SRCH
base="dc=dominio,dc=com" scope=2 filter="(uid=rmaureira)"
Oct 2 13:51:00 ws01 slapd[18073]: conn=4 op=1 SEARCH RESULT tag=101 err=0
text=
Oct 2 13:51:00 ws01 slapd[18073]: conn=4 op=2 BIND
dn="CN=RMAUREIRA,DC=DOMINIO,DC=COM" method=128
Oct 2 13:51:00 ws01 slapd[18073]: conn=4 op=2 RESULT tag=97 err=0 text=
Oct 2 13:51:00 ws01 slapd[18073]: conn=4 op=3 BIND dn="" method=128
Oct 2 13:51:00 ws01 slapd[18073]: conn=4 op=3 RESULT tag=97 err=0 text=
Oct 2 13:51:00 ws01 slapd[18073]: conn=4 op=4 UNBIND
Oct 2 13:51:00 ws01 slapd[18073]: conn=-1 fd=7 closed
Oct 2 13:51:00 ws01 master[21307]: process 21339 exited, signaled to
death by 11

As you can see, my ldap server has the information for "rmaureira".

Any clues?

Here is my configuration:

Installed packages (all from the standard RH7.1 distro):
openssl-devel-0.9.6-3
openssl-0.9.6-3
openldap-2.0.7-14
openldap-servers-2.0.7-14
openldap-clients-2.0.7-14
openldap-devel-2.0.7-14
cyrus-sasl-devel-1.5.24-17
cyrus-imapd-2.0.9-3
cyrus-sasl-1.5.24-17

my /etc/imapd.conf

--
configdirectory: /var/imap
partition-default: /var/spool/imap
admins: rmaureira
allowanonymouslogin: no
sasl_pwcheck_method: pam
--
my /usr/lib/sasl/Cyrus.conf
--
pwcheck_method:pam
--
my /etc/pam.d/imap
--
#%PAM-1.0
auth            sufficient              /lib/security/pam_ldap.so 
account         sufficient              /lib/security/pam_ldap.so
password        required                /lib/security/pam_ldap.so debug
session         required                /lib/security/pam_deny.so
--
Best Regards
--
Robinson Maureira Castillo
Asesor DAI
INACAP







Hosted Email Solutions

Invaluement Anti-Spam DNSBLs



Powered By FreeBSD   Powered By FreeBSD