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 "usern...@domain". So can dovecot sort the result 
order and How?



-- 
?????????s?????o????
???????X????????????
???????T?????????e??
???????????I????????

Reply via email to