Dovecot 2.2.12

wid wid at list.widdi.eu
Sat Apr 19 20:51:03 CEST 2014


Am 19.04.2014 um 20:16 schrieb Mihai Badici:

> On Saturday 19 April 2014 19:25:48 widder wrote:
>> Hi,
>> 
>> I tried to install Dovecot 2.2.12 (stable) following this blog entry
>> http://kolab.org/blog/grote/2013/03/19/using-kolab-dovecot-imap-server
>> Since the newest Dovecot 2.2 includes metadata support the patch was not
>> needed. In Roundcube it was possible to save calendar entries and also
>> contact entires but adding a Task did not work.
>> 
>> I think my problem is Roundcube uses the primary mail address to login to
>> Dovecot but I have not yet found out how to look up the primary Mail
>> Address via LDAP. Roundcube tries to login in Dovecot with doe at example.org
>> so I had to configure Dovecot to ignore @example.org then it is equal to my
>> UID.
> 
> This article really need an update because the metadata support in 2.2.12 has 
> different sintax 
> 
> An working example of ldap filter is here ( i don't use kolab schema yet in my 
> setup, but is similar) :
> 
> 
> user_attrs =uid= mail,uid=home=/home/dovecot/%d/%{ldap:uid}
> # Filter for user lookup. Some variables can be used (see
> 
> user_filter = (|(uid=%u)(mail=%u))
> 
> 
> pass_attrs = uid=user,userPassword=password
> 
> 
> 
> # Filter for password lookups
> pass_filter = (uid=%u)
> 

Unfortunately, it doesn't work for me. I have the 389 directory server. Dovecot tries to login with the full mail address in LDAP since it doesn't know what the UID is.

Dovecot-Logfile:
Apr 19 20:40:44 auth: Debug: client in: AUTH	1	PLAIN	service=imap	secured	session=R7Oimmn3ewAAAAAAAAAAAAAAAAAAAAAB	lip=::1	rip=::1	lport=143	rport=56187	resp=<hidden>
Apr 19 20:40:44 auth: Debug: ldap(me at example.org,::1,<R7Oimmn3ewAAAAAAAAAAAAAAAAAAAAAB>): pass search: base=dc=example,dc=org scope=subtree filter=(uid=me at example.org) fields=uid,userPassword
Apr 19 20:40:44 auth: Error: ldap_search
Apr 19 20:40:44 auth: Error: put_filter: "(uid=me at example.org)"
Apr 19 20:40:44 auth: Error: put_filter: simple
Apr 19 20:40:44 auth: Error: put_simple_filter: "uid=me at example.org"
Apr 19 20:40:44 auth: Error: ldap_build_search_req ATTRS: uid userPassword
Apr 19 20:40:44 auth: Error: ldap_send_initial_request
Apr 19 20:40:44 auth: Error: ldap_send_server_request
Apr 19 20:40:44 auth: Error: ldap_result ld 0x1f17520 msgid -1
Apr 19 20:40:44 auth: Error: wait4msg ld 0x1f17520 msgid -1 (timeout 0 usec)
Apr 19 20:40:44 auth: Error: wait4msg continue ld 0x1f17520 msgid -1 all 0
Apr 19 20:40:44 auth: Error: ** ld 0x1f17520 Connections:
Apr 19 20:40:44 auth: Error: * host: localhost  port: 389  (default)
Apr 19 20:40:44 auth: Error:   refcnt: 2  status: Connected
Apr 19 20:40:44 auth: Error:   last used: Sat Apr 19 20:40:44 2014
Apr 19 20:40:44 auth: Error: 
Apr 19 20:40:44 auth: Error: 
Apr 19 20:40:44 auth: Error: ** ld 0x1f17520 Outstanding Requests:
Apr 19 20:40:44 auth: Error:  * msgid 2,  origid 2, status InProgress
Apr 19 20:40:44 auth: Error:    outstanding referrals 0, parent count 0
Apr 19 20:40:44 auth: Error:   ld 0x1f17520 request count 1 (abandoned 0)
Apr 19 20:40:44 auth: Error: ** ld 0x1f17520 Response Queue:
Apr 19 20:40:44 auth: Error:    Empty
Apr 19 20:40:44 auth: Error:   ld 0x1f17520 response count 0
Apr 19 20:40:44 auth: Error: ldap_chkResponseList ld 0x1f17520 msgid -1 all 0
Apr 19 20:40:44 auth: Error: ldap_chkResponseList returns ld 0x1f17520 NULL
Apr 19 20:40:44 auth: Error: ldap_int_select
Apr 19 20:40:44 auth: Error: read1msg: ld 0x1f17520 msgid -1 all 0
Apr 19 20:40:44 auth: Error: read1msg: ld 0x1f17520 msgid 2 message type search-result
Apr 19 20:40:44 auth: Error: read1msg: ld 0x1f17520 0 new referrals
Apr 19 20:40:44 auth: Error: read1msg:  mark request completed, ld 0x1f17520 msgid 2
Apr 19 20:40:44 auth: Error: request done: ld 0x1f17520 msgid 2
Apr 19 20:40:44 auth: Error: res_errno: 0, res_error: <>, res_matched: <>
Apr 19 20:40:44 auth: Error: ldap_free_request (origid 2, msgid 2)
Apr 19 20:40:44 auth: Error: ldap_parse_result
Apr 19 20:40:44 auth: Error: ldap_first_attribute
Apr 19 20:40:44 auth: Debug: ldap(me at example.org,::1,<R7Oimmn3ewAAAAAAAAAAAAAAAAAAAAAB>): no fields returned by the server
Apr 19 20:40:44 auth: Info: ldap(me at example.org,::1,<R7Oimmn3ewAAAAAAAAAAAAAAAAAAAAAB>): unknown user
Apr 19 20:40:44 auth: Error: ldap_msgfree
Apr 19 20:40:44 auth: Error: ldap_result ld 0x1f17520 msgid -1
Apr 19 20:40:44 auth: Error: wait4msg ld 0x1f17520 msgid -1 (timeout 0 usec)
Apr 19 20:40:44 auth: Error: wait4msg continue ld 0x1f17520 msgid -1 all 0
Apr 19 20:40:44 auth: Error: ** ld 0x1f17520 Connections:
Apr 19 20:40:44 auth: Error: * host: localhost  port: 389  (default)
Apr 19 20:40:44 auth: Error:   refcnt: 1  status: Connected
Apr 19 20:40:44 auth: Error:   last used: Sat Apr 19 20:40:44 2014
Apr 19 20:40:44 auth: Error: 
Apr 19 20:40:44 auth: Error: 
Apr 19 20:40:44 auth: Error: ** ld 0x1f17520 Outstanding Requests:
Apr 19 20:40:44 auth: Error:    Empty
Apr 19 20:40:44 auth: Error:   ld 0x1f17520 request count 0 (abandoned 0)
Apr 19 20:40:44 auth: Error: ** ld 0x1f17520 Response Queue:
Apr 19 20:40:44 auth: Error:    Empty
Apr 19 20:40:44 auth: Error:   ld 0x1f17520 response count 0
Apr 19 20:40:44 auth: Error: ldap_chkResponseList ld 0x1f17520 msgid -1 all 0
Apr 19 20:40:44 auth: Error: ldap_chkResponseList returns ld 0x1f17520 NULL
Apr 19 20:40:44 auth: Error: ldap_int_select
Apr 19 20:40:46 auth: Debug: client passdb out: FAIL	1	user=me at example.org


> 
> 
> 
>> 
>> My dovecot-ldap.conf.ext
>> 
>> hosts = localhost
>> dn = uid=kolab-service,ou=Special Users,dc=example,dc=org
>> dnpass = "password_from_kolab-service"
>> auth_bind = yes
>> auth_bind_userdn = uid=%u,ou=People,dc=example,dc=org
>> base = dc=example,dc=org
>> scope = subtree
>> user_attrs = mail=user,userPassword=password
>> user_filter =
>> (|(&(|(uid=cyrus-admin)(uid=cyrus-murder))(uid=%u))(&(|(uid=%u)(mail=%n@%d)
>> (mail=%n@%r))(objectclass=kolabinetorgperson))) pass_attrs =
>> mail=user,userPassword=password
>> pass_filter =
>> (|(&(|(uid=cyrus-admin)(uid=cyrus-murder))(uid=%u))(&(|(uid=%u)(mail=%n@%d)
>> (mail=%n@%r))(objectclass=kolabinetorgperson))) default_pass_scheme = SSHA
>> 
>> 
>> My dovecot.conf
>> 
>> auth_username_format = %Ln
>> imap_metadata = yes
>> mail_attribute_dict = file:/var/vmail/%d/%n/dovecot-metadata
>> 
>> Has someone of you already configured Dovecot to accept the full email
>> address?
>> 
>> It could be a great alternative to Cyrus since metadata is now part of the
>> normal Dovecot sources.
>> 
>> Thank you
>> _______________________________________________
>> users mailing list
>> users at lists.kolab.org
>> https://lists.kolab.org/mailman/listinfo/users
> -- 
> Mihai Bădici
> http://mihai.badici.ro
> _______________________________________________
> users mailing list
> users at lists.kolab.org
> https://lists.kolab.org/mailman/listinfo/users



More information about the users mailing list