[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: SMTP AUTH and auth_imap stopped working


Hi, again!
	
Seems like I found the problem. I wish I did find it 30 minutes ago, *before* I sent email to the list :)

I remembered that I was working on a problem few days ago that involved OpenLDAP server, so I recompiled it on the same machine where I have my testing qmail-ldap instance, tested and realized it doesn't fix the issue. I had put some notes and decided to revisit the issue later.

Turns out, the only reason why it wasn't working is because I didn't enable Cyrus SASL password verification when I rebuilt OpenLDAP. So, I re-run configure with --enable-spasswd and voila, everything works again :)


Hopefully that will help others to avoid the same mistake.

Q.


Hi!

I need some help here. I have a qmail-ldap server running version 20040401 that I use here for all kinds of testing. So, today I had to make one more minor modification and recompiled qmail-ldap. The problem is that after I recompiled it SMTP AUTH and auth_imap module stopped working. I can't figure out what exactly happened, but what I remember is that few days ago I upgraded most of packages on the system (it's RedHat WS 3.0 on x86). The strange thing though is that when I try to use auth_imap with Courier - it doesn't work. When I try to use Courier's own authldap module (that was also recompiled at the same time I recompiled qmail-ldap) - it works just fine. Which confuses me quite a bit, because at first I thought that perhaps some libraries are corrupted or some header files are incorrect.


    So, here are some details as far as file-permissions and libraries go:

# rpm -qa|grep openssl
openssl-0.9.7a-33.4
openssl-devel-0.9.7a-33.4

# ls -al /var/qmail/control |grep ldap
-rw-r--r--    1 qmaild   root           41 Jun 24 20:56 ldapbasedn
-rw-r--r--    1 root     root            8 Jun 30 14:03 ldapdefaultdotmode
-rw-r--r--    1 root     root            4 Jun 24 21:01 ldapgid
-rw-r--r--    1 qmaild   root           54 Jun 24 20:57 ldaplogin
-rw-r--r--    1 root     root           10 Jun 24 20:58 ldapobjectclass
-r--------    1 qmaild   root           13 Jun 24 20:57 ldappassword
-rw-r--r--    1 root     root            2 Jun 25 16:23 ldaprebind
-rw-r--r--    1 root     root           20 Sep  3 14:30 ldapserver
-rw-r--r--    1 root     root            4 Jun 24 21:01 ldapuid

# ls -al /var/qmail/control|grep cert
-rw-r-----    1 qmaild   qmail        2270 Jun 24 21:25 cert.pem


# ldd /var/qmail/bin/auth_imap
        libldap.so.2 => /usr/local/lib/libldap.so.2 (0xb75b4000)
        liblber.so.2 => /usr/local/lib/liblber.so.2 (0xb75a9000)
        libcrypt.so.1 => /lib/libcrypt.so.1 (0xb757c000)
        libresolv.so.2 => /lib/libresolv.so.2 (0xb756a000)
        libsyncdir.so => /usr/lib/libsyncdir.so (0xb7567000)
        libc.so.6 => /lib/tls/libc.so.6 (0xb742f000)
        libdl.so.2 => /lib/libdl.so.2 (0xb742c000)
        libsasl2.so.2 => /usr/lib/libsasl2.so.2 (0xb7419000)
        libssl.so.4 => /lib/libssl.so.4 (0xb73e5000)
        libcrypto.so.4 => /lib/libcrypto.so.4 (0xb72ee000)
        /lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0xb75eb000)
libgssapi_krb5.so.2 => /usr/kerberos/lib/libgssapi_krb5.so.2 (0xb72da000)
        libkrb5.so.3 => /usr/kerberos/lib/libkrb5.so.3 (0xb727c000)
        libcom_err.so.3 => /usr/kerberos/lib/libcom_err.so.3 (0xb727a000)
        libk5crypto.so.3 => /usr/kerberos/lib/libk5crypto.so.3 (0xb726a000)
        libz.so.1 => /usr/lib/libz.so.1 (0xb725c000)


# ldd /usr/local/courier-imap/libexec/authlib/authldap
        libldap.so.2 => /usr/local/lib/libldap.so.2 (0xb75b4000)
        liblber.so.2 => /usr/local/lib/liblber.so.2 (0xb75a9000)
        libresolv.so.2 => /lib/libresolv.so.2 (0xb7597000)
        libcrypt.so.1 => /lib/libcrypt.so.1 (0xb756a000)
        libc.so.6 => /lib/tls/libc.so.6 (0xb7431000)
        libdl.so.2 => /lib/libdl.so.2 (0xb742e000)
        libsasl2.so.2 => /usr/lib/libsasl2.so.2 (0xb741b000)
        libssl.so.4 => /lib/libssl.so.4 (0xb73e7000)
        libcrypto.so.4 => /lib/libcrypto.so.4 (0xb72f0000)
        /lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0xb75eb000)
libgssapi_krb5.so.2 => /usr/kerberos/lib/libgssapi_krb5.so.2 (0xb72dc000)
        libkrb5.so.3 => /usr/kerberos/lib/libkrb5.so.3 (0xb727e000)
        libcom_err.so.3 => /usr/kerberos/lib/libcom_err.so.3 (0xb727c000)
        libk5crypto.so.3 => /usr/kerberos/lib/libk5crypto.so.3 (0xb726c000)
        libz.so.1 => /usr/lib/libz.so.1 (0xb725e000)


Any ideas of what could be wrong?



Thanks in advance!

Q.




This mailing list archive is a service of Copilot Consulting.