[Dovecot] Custom LDAP filter for doveadm-mailbox?
Dear Timo,
With Dovecot-2.0.16, 'doveadm mailbox list -A' will perform LDAP search with filter "(objectClass=posixAccount)", and get value of attribute 'uid' as mail user. Is it possible to custom the ldap filter and returned attribute name? For example:
- LDAP filter: (&(objectClass=mailUser)(accountStatus=active))
- Returned attribute name: mail
Did i miss something?
Thanks.
Zhang Huangbin
iRedMail: Open Source Mail Server Solution for Red Hat Enterprise Linux, CentOS, Scientific Linux, Debian, Ubuntu, Mint, Gentoo, openSUSE, FreeBSD: http://www.iredmail.org/
On 19.4.2012, at 18.30, Zhang Huangbin wrote:
With Dovecot-2.0.16, 'doveadm mailbox list -A' will perform LDAP search with filter "(objectClass=posixAccount)", and get value of attribute 'uid' as mail user. Is it possible to custom the ldap filter and returned attribute name? For example:
- LDAP filter: (&(objectClass=mailUser)(accountStatus=active))
- Returned attribute name: mail
Did i miss something?
See iterate_* settings in example dovecot-ldap.conf.ext.
On Thursday, April 19, 2012 at 11:44 PM, Timo Sirainen wrote:
See iterate_* settings in example dovecot-ldap.conf.ext.
It works as expected. Thanks. :)
Zhang Huangbin
iRedMail: Open Source Mail Server Solution for Red Hat Enterprise Linux, CentOS, Scientific Linux, Debian, Ubuntu, Mint, Gentoo, openSUSE, FreeBSD: http://www.iredmail.org/
participants (2)
-
Timo Sirainen
-
Zhang Huangbin