cyrus using ldap user database

Cristian Salan cristian.salan at gmail.com
Tue Aug 2 10:52:08 EDT 2005


On 8/2/05, Igor Brezac <igor at ipass.net> wrote:
> 
> On Tue, 2 Aug 2005, Cristian Salan wrote:
> 
> > Hi list,
> >
> > I'm trying to make a simple setup using CyrusImapd with OpenLdap user
> > database.
> >
> > The following errors are listed in /var/log/messages:
> > imap[36714]: auxpropfunc error invalid parameter supplied
> > ptloader[36715]: starting: $Id: ptloader.c,v 1.39 2004/12/17 16:32:26 ken3
> > Exp $ (ldap)
> > ptloader[36715]: ldap_sasl_interactive_bind() failed 16 (No such attribute).
> > imap[36714]: ptload(): bad response from ptloader server:
> > ptsmodule_connect() failed
> 
> These are ptloader errors.

Can you please explain what is ptloader responsible for or where can I
found the documentation for it.

> > imap[36714]: bad userid authenticated
> > imap[36714]: badlogin: localhost [::1] plaintext some_existing_ldap_user
> > invalid user
> >
> > and in auth.log:
> > imap[36714]: auxpropfunc error invalid parameter supplied
> > imap[36714]: bad userid authenticated
> 
> Something is wrong with your ldapdb configuration and possibly openldap
> config.  See cyrus-sasl-src/doc/options.html

I've read what you sugested. Sorry but no clues (for me).

> > My (maybe too simple) config follows
> >
> > imapd.conf
> > configdirectory: /var/imap
> > partition-default: /var/spool/imap
> > allowplaintext: yes
> > sasl_pwcheck_method: auxprop
> > sasl_auxprop_plugin: ldapdb
> > sasl_mech_list: plain login
> 
> > ldap_uri: ldap://127.0.0.1/
> > ldap_base: dc=foo,dc=org
> > ldap_bind_dn: cn=Manager,dc=foo,dc=org
> > ldap_password: password
> 
> These are pts/ldap config params.  More than likely you do not need those.
> See cyrus-imapd/doc for more on authentication vs authorization.

If not here where should i tell it about the ldap server?

The debug for ldap and imapd is saying:
imap[64742]: executed
master[64742]: about to exec /usr/local/cyrus/bin/imapd
imap[64742]: _sasl_plugin_load failed on sasl_auxprop_plug_init for
plugin: ldapdb
imap[64742]: accepted connection
imap[64742]: ptload(): pinging ptloader
ptloader[64682]: accepted connection
slapd[39828]: connection_get(13): got connid=160
slapd[39828]: connection_read(13): checking for input on id=160
slapd[39828]: ber_get_next on fd 13 failed errno=35 (Resource
temporarily unavailable)
slapd[39828]: do_search
slapd[39828]: >>> dnPrettyNormal: <>
slapd[39828]: <<< dnPrettyNormal: <>, <>
slapd[39828]: => send_search_entry: dn=""
slapd[39828]: <= send_search_entry
slapd[39828]: send_ldap_result: conn=160 op=0 p=3
slapd[39828]: send_ldap_response: msgid=1 tag=101 err=0
slapd[39828]: connection_get(13): got connid=160
slapd[39828]: connection_read(13): checking for input on id=160
slapd[39828]: ber_get_next on fd 13 failed errno=0 (Undefined error: 0)
slapd[39828]: connection_read(13): input error=-2 id=160, closing.
slapd[39828]: connection_closing: readying conn=160 sd=13 for close
slapd[39828]: connection_close: deferring conn=160 sd=13
slapd[39828]: do_unbind
slapd[39828]: connection_resched: attempting closing conn=160 sd=13
slapd[39828]: connection_close: conn=160 sd=13
master[64669]: process 64742 exited, status 0

Thank you,
Cristian

---
Cyrus Home Page: http://asg.web.cmu.edu/cyrus
Cyrus Wiki/FAQ: http://cyruswiki.andrew.cmu.edu
List Archives/Info: http://asg.web.cmu.edu/cyrus/mailing-list.html




More information about the Info-cyrus mailing list