[Dovecot] Default for non-present LDAP attributes?
With 1.2, is there a syntax to, for LDAP lookups, use a given fixed replacement for a non-present LDAP attribute? E.g. something that would extend user_attrs = mailFileServer=mail=maildir:/import/mail/%$/%d to use maildir:/import/mail/foo/%d in case the mailFileServer attribute is not present?
On Wed, 2012-06-27 at 22:18 +0200, Edgar Fuß wrote:
With 1.2, is there a syntax to, for LDAP lookups, use a given fixed replacement for a non-present LDAP attribute? E.g. something that would extend user_attrs = mailFileServer=mail=maildir:/import/mail/%$/%d to use maildir:/import/mail/foo/%d in case the mailFileServer attribute is not present?
The "mail" field defaults to mail_location setting. Other fields you can put to plugin {} section.
On 28.6.2012, at 12.19, Edgar Fuß wrote:
The "mail" field defaults to mail_location setting. Ah, yes, thanks. So simple I didn't think of it. Will it default when the LDAP attribute is not present or will I have to check the attribute's presence in the LDAP filter?
The default settings are in dovecot.conf. LDAP attributes that are returned by the LDAP server override those settings.
participants (2)
-
Edgar Fuß
-
Timo Sirainen