Re: [Dovecot] Modifying LDAP search results for user_attrs

2012-04-04 Thread Christoph Bussenius
On 2012-04-04 15:10, Patrick Ben Koetter wrote: Or would I be able to modify this with a post-login script? Just one note: as far as I know, if your mail directory depends on a post-login script, it might be tricky to get LMTP or doveadm commands to work properly. Cheers, Christoph

Re: [Dovecot] Modifying LDAP search results for user_attrs

2012-04-04 Thread Timo Sirainen
On 4.4.2012, at 16.10, Patrick Ben Koetter wrote: > I need to authenticate users via LDAP either by mailaddress or login name. > In both cases the mailbox location is /src/mail/%d/%n. I can easily deduct > that path from the mailaddress, but not so from the login name. If you have something like

[Dovecot] Modifying LDAP search results for user_attrs

2012-04-04 Thread Patrick Ben Koetter
I need to authenticate users via LDAP either by mailaddress or login name. In both cases the mailbox location is /src/mail/%d/%n. I can easily deduct that path from the mailaddress, but not so from the login name. Can I get the mail address as part of fetching user_attrs and modify it on the fly?