[Dovecot] dovecot ldap search result ordering?

chasye chasye at gmail.com
Sat Jun 26 09:53:43 EEST 2010


I use openLDAP as dovecot pass/user db.
here is main part of dovecot-ldap.conf:

pass_attrs = mail=user, uid=userdb_home=/home/xadmin/%d/%$,userPassword=password
pass_filter = (&(objectClass=posixAccount)(uid=%u))
default_pass_scheme = SSHA

user_attrs = mail=user, uid=home=/home/xadmin/%d/%$
user_filter = (&(objectClass=posixAccount)(|(mail=%u)(mailAlias=%u)))

It works fine, but some account failed to get their domain in pass_attrs.
I check the log.
when it success, the result order is "mail, uid, userPassword"
when it failed, the order is "userPassword, uid, mail"

we just use a username to login. I think dovecot cant get the domain before
username changed to "username at domain". So can dovecot sort the result 
order and How?



-- 
  多情卻似總無情,
  唯覺尊前笑不成。
  蠟燭有心還惜別,
  替人垂淚到天明。



More information about the dovecot mailing list