Hey guys,

    The following is the output from openldap, run with 256 debugging level,
    when conversing with postfix.  The authentication works fine, and I can
    relay mail.  Life is good:

    daemon: conn=7 fd=9 connection from IP=127.0.0.1:34434 (IP=0.0.0.0:34049) accepted.
    conn=7 op=0 BIND dn="" method=128
    ber_flush: 14 bytes to sd 9
    conn=7 op=0 RESULT tag=97 err=0 text=
    conn=7 op=1 SRCH base="o=negativetwenty" scope=2 
filter="(&(objectClass=posixAccount)(uid=cyradm))"
    ber_flush: 291 bytes to sd 9
    conn=7 op=1 ENTRY dn="uid=cyradm, ou=Admins, o=negativetwenty"
    ber_flush: 14 bytes to sd 9
    conn=7 op=1 SEARCH RESULT tag=101 err=0 text=
    conn=7 op=2 BIND dn="UID=CYRADM,OU=ADMINS,O=NEGATIVETWENTY" method=128
    ber_flush: 14 bytes to sd 9
    conn=7 op=2 RESULT tag=97 err=0 text=
    conn=7 op=3 BIND dn="" method=128
    ber_flush: 14 bytes to sd 9
    conn=7 op=3 RESULT tag=97 err=0 text=
    conn=7 op=4 UNBIND
    conn=-1 fd=9 closed


    Now, this is my output when running cyradm, with openldap running at the
    same debug level.  cyradm says: "at /usr/local/lib/perl/5.6.1/Cyrus/IMAP/Admin.pm 
line 78
    cyradm: cannot authenticate to server with login as cyradm
    Segmentation fault"  However, I get the following output from openldap:

    daemon: conn=8 fd=9 connection from IP=127.0.0.1:34437 (IP=0.0.0.0:34049) accepted.
    conn=8 op=0 BIND dn="" method=128
    ber_flush: 14 bytes to sd 9
    conn=8 op=0 RESULT tag=97 err=0 text=
    conn=8 op=1 SRCH base="o=negativetwenty" scope=2 
filter="(&(objectClass=posixAccount)(uid=cyradm))"
    ber_flush: 291 bytes to sd 9
    conn=8 op=1 ENTRY dn="uid=cyradm, ou=Admins, o=negativetwenty"
    ber_flush: 14 bytes to sd 9
    conn=8 op=1 SEARCH RESULT tag=101 err=0 text=
    conn=8 op=2 BIND dn="UID=CYRADM,OU=ADMINS,O=NEGATIVETWENTY" method=128
    ber_flush: 14 bytes to sd 9
    conn=8 op=2 RESULT tag=97 err=0 text=
    conn=8 op=3 BIND dn="" method=128
    ber_flush: 14 bytes to sd 9
    conn=8 op=3 RESULT tag=97 err=0 text=
    conn=8 op=4 UNBIND
    conn=-1 fd=9 closed

    Now, this is just a direct telnet to my imap server, along with the
    openldap output:

    balthasar:/usr/local/man/man1# telnet localhost imap
    Trying 127.0.0.1...
    Connected to localhost.
    Escape character is '^]'.
    * OK imap.negativetwenty.com Cyrus IMAP4 v2.0.14-NAMESPACE-r3 server ready
    . login cyradm <cyradm_pass_here>
    Connection closed by foreign host.

    And this is the openldap output:

    daemon: conn=11 fd=9 connection from IP=127.0.0.1:34443 (IP=0.0.0.0:34049) 
accepted.
    conn=11 op=0 BIND dn="" method=128
    ber_flush: 14 bytes to sd 9
    conn=11 op=0 RESULT tag=97 err=0 text=
    conn=11 op=1 SRCH base="o=negativetwenty" scope=2 
filter="(&(objectClass=posixAccount)(uid=cyradm))"
    ber_flush: 291 bytes to sd 9
    conn=11 op=1 ENTRY dn="uid=cyradm, ou=Admins, o=negativetwenty"
    ber_flush: 14 bytes to sd 9
    conn=11 op=1 SEARCH RESULT tag=101 err=0 text=
    conn=11 op=2 BIND dn="UID=CYRADM,OU=ADMINS,O=NEGATIVETWENTY" method=128
    ber_flush: 14 bytes to sd 9
    conn=11 op=2 RESULT tag=97 err=0 text=
    conn=11 op=3 BIND dn="" method=128
    ber_flush: 14 bytes to sd 9
    conn=11 op=3 RESULT tag=97 err=0 text=
    conn=11 op=4 UNBIND
    conn=-1 fd=9 closed
    
    Now, all three binds appeared to have worked.  But Postfix was the only
    one that was able to accept that.  So, anyone know what might be going
    wrong here?  Maybe I'll just have to use the SASL LDAP patches and be
    done with it, but I'm really interested in knowing why these keeps
    bailing like this.  I once thought it was a problem with cyradm, but the
    telnet fails too, so maybe it's a problem with the imapd?

    Thanks.

-- 
 Kevin

Reply via email to