Hello,

I'm trying to set up a combo of postfix, courier and ldap with both local en virtual users, using the jamm howto as a guide. Most parts are working but I can't get the ldap authentication in Courier to work. As LDAP in itself is running and both postfix and jamm have no problem with it, I believe this to be an error in my courier configuration part.
I have looked at the logs and they report a 'Protocol error', which leaves me baffled.


I'm running courier-imap-1.6.2-1 and openldap2-2.1.4-70 on SuSE 8.1. Besides ldap, courier has also been compiled with mysql support, although I don't use mysql at the moment. I mention this because earlier I had the problem that authdaemond started authdaemond.mysql instead of authdaemond.ldap. I had to rename authdaemond.mysql to authdaemond.mysql- to prevent this.

The relevant configuration files:

authdaemonrc:
authmodulelist="authldap authpam"
authmodulelistorig="authcustom authcram authuserdb authldap authmysql authpam"
daemons=5
version=""
authdaemonvar=/var/run/authdaemon.courier-imap


authldaprc:
LDAP_SERVER    maurice.schekkerman.com
LDAP_PORT    389
LDAP_BASEDN    o=hosting,dc=schekkerman.,dc=com
LDAP_TIMEOUT    8
LDAP_AUTHBIND    1
LDAP_MAIL    mail
LDAP_GLOB_UID    vmail
LDAP_GLOB_GID    vmail
LDAP_HOMEDIR    homeDirectory
LDAP_MAILDIR    mailbox
LDAP_CRYPTPW    userPassword
LDAP_TLS    0

And the logging part which let me to the conclusion that this mailinglist might be the best place to ask this question:

Mar 19 23:22:41 maurice imapd: Connection, ip=[::ffff:192.168.0.12]
Mar 19 23:22:41 maurice imapd: LOGIN: DEBUG: ip=[::ffff:192.168.0.12], command=CAPABILITY
Mar 19 23:23:01 maurice imapd: LOGIN: DEBUG: ip=[::ffff:192.168.0.12], command=LOGIN
Mar 19 23:23:01 maurice imapd: LOGIN: DEBUG: ip=[::ffff:192.168.0.12], username=schekker
Mar 19 23:23:01 maurice imapd: LOGIN: DEBUG: ip=[::ffff:192.168.0.12], password=<snip>
Mar 19 23:23:01 maurice slapd[21636]: daemon: activity on 1 descriptors
Mar 19 23:23:01 maurice slapd[21636]: daemon: new connection on 9
Mar 19 23:23:01 maurice slapd[21636]: daemon: conn=5 fd=9 connection from IP=212.61.46.200:3086 (IP=0.0.0.0:389) accepted.
Mar 19 23:23:01 maurice slapd[21636]: daemon: added 9r
Mar 19 23:23:01 maurice slapd[21636]: daemon: activity on:
Mar 19 23:23:01 maurice slapd[21636]:
Mar 19 23:23:01 maurice slapd[21636]: daemon: select: listen=6 active_threads=0 tvp=NULL
Mar 19 23:23:01 maurice slapd[21636]: daemon: activity on 1 descriptors
Mar 19 23:23:01 maurice slapd[21636]: daemon: activity on:
Mar 19 23:23:01 maurice slapd[21636]: 9r
Mar 19 23:23:01 maurice slapd[21636]:
Mar 19 23:23:01 maurice slapd[21636]: daemon: read activity on 9
Mar 19 23:23:01 maurice slapd[21636]: connection_get(9)
Mar 19 23:23:01 maurice slapd[21636]: connection_get(9): got connid=5
Mar 19 23:23:01 maurice slapd[21636]: connection_read(9): checking for input on id=5
Mar 19 23:23:01 maurice slapd[21636]: ber_get_next on fd 9 failed errno=11 (Resource temporarily unavailable)
Mar 19 23:23:01 maurice slapd[21636]: daemon: select: listen=6 active_threads=1 tvp=NULL
Mar 19 23:23:01 maurice slapd[25018]: do_bind
Mar 19 23:23:01 maurice slapd[25018]: >>> dnPrettyNormal: <>
Mar 19 23:23:01 maurice slapd[25018]: <<< dnPrettyNormal: <>, <>
Mar 19 23:23:01 maurice slapd[25018]: do_bind: version=2 dn="" method=128
Mar 19 23:23:01 maurice slapd[25018]: conn=5 op=0 BIND dn="" method=128
Mar 19 23:23:01 maurice slapd[25018]: send_ldap_result: conn=5 op=0 p=2
Mar 19 23:23:01 maurice slapd[25018]: send_ldap_result: err=2 matched="" text="requested protocol version not allowed"
Mar 19 23:23:01 maurice slapd[25018]: send_ldap_response: msgid=1 tag=97 err=2
Mar 19 23:23:01 maurice slapd[25018]: conn=5 op=0 RESULT tag=97 err=2 text=requested protocol version not allowed
Mar 19 23:23:01 maurice authdaemond.ldap: ldap_simple_bind_s failed: Protocol error
Mar 19 23:23:01 maurice slapd[21636]: daemon: activity on 1 descriptors
Mar 19 23:23:01 maurice slapd[21636]: daemon: activity on:
Mar 19 23:23:01 maurice slapd[21636]: 9r
Mar 19 23:23:01 maurice slapd[21636]:
Mar 19 23:23:01 maurice slapd[21636]: daemon: read activity on 9
Mar 19 23:23:01 maurice slapd[21636]: connection_get(9)
Mar 19 23:23:01 maurice slapd[21636]: connection_get(9): got connid=5
Mar 19 23:23:01 maurice slapd[21636]: connection_read(9): checking for input on id=5
Mar 19 23:23:01 maurice slapd[21636]: ber_get_next on fd 9 failed errno=0 (Success)
Mar 19 23:23:01 maurice slapd[21636]: connection_read(9): input error=-2 id=5, closing.
Mar 19 23:23:01 maurice slapd[21636]: connection_closing: readying conn=5 sd=9 for close
Mar 19 23:23:01 maurice slapd[25018]: do_unbind
Mar 19 23:23:01 maurice slapd[21636]: connection_close: deferring conn=5 sd=9
Mar 19 23:23:01 maurice slapd[25018]: conn=5 op=1 UNBIND
Mar 19 23:23:01 maurice slapd[21636]: daemon: select: listen=6 active_threads=1 tvp=NULL
Mar 19 23:23:01 maurice slapd[25018]: connection_resched: attempting closing conn=5 sd=9
Mar 19 23:23:01 maurice slapd[21636]: daemon: activity on 1 descriptors
Mar 19 23:23:01 maurice slapd[25018]: connection_close: conn=5 sd=9
Mar 19 23:23:01 maurice slapd[21636]: daemon: select: listen=6 active_threads=1 tvp=NULL
Mar 19 23:23:01 maurice slapd[25018]: daemon: removing 9
Mar 19 23:23:01 maurice slapd[25018]: conn=5 fd=9 closed
Mar 19 23:23:06 maurice imapd: LOGIN FAILED, ip=[::ffff:192.168.0.12]
Mar 19 23:23:10 maurice imapd: LOGIN: DEBUG: ip=[::ffff:192.168.0.12], command=LOGOUT
Mar 19 23:23:10 maurice imapd: LOGOUT, ip=[::ffff:192.168.0.12]


Any help or pointer would be greatly appreciated.

TIA, Maurice



-------------------------------------------------------
This SF.net email is sponsored by: Does your code think in ink? You could win a Tablet PC. Get a free Tablet PC hat just for playing. What are you waiting for?
http://ads.sourceforge.net/cgi-bin/redirect.pl?micr5043en
_______________________________________________
courier-users mailing list
[EMAIL PROTECTED]
Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-users

Reply via email to