Anatoly Ivanov
2012-Aug-30 23:45 UTC
[Dovecot] LDAP auth and multiple attributes to construct the mail path
Hello, So I am trying to construct mail path for my LDAP user lookups, and i need to use two attributes instead of one. For examle, my LDAP directory has two attributes: departmentAttr and userIDAttr, and I want the maildir to reside in /home/${departmentAttr}/${userIDAttr} Unfortunately, I cannot seem to find a way to configure dovecot this way. Right now, I have something like user_attrs = departmentAttr=mail=maildir:/home/%$/%u But %u is the username (which in my environment can easily change, so I cannot use this for maildir location). Any ideas on how to achieve that? So far I have just one brute-force solution - to create an attribute MailDirAttr, and populate it with concatenation of departmentAttr+'/'+userIDAttr by means of a scheduled task. This sounds like unnecessary information duplication, which is usually a very bad practice. So, again - any ideas? Thank you, Anatoly.
Timo Sirainen
2012-Aug-31 13:56 UTC
[Dovecot] LDAP auth and multiple attributes to construct the mail path
On 31.8.2012, at 2.45, Anatoly Ivanov wrote:> So I am trying to construct mail path for my LDAP user lookups, and i need > to use two attributes instead of one. > > For examle, my LDAP directory has two attributes: departmentAttr and > userIDAttr, and I want the maildir to reside in > /home/${departmentAttr}/${userIDAttr}With v2.1: /home/%{ldap:departmentAttr}/%{ldap:userIDAttr} With older versions: you can't.
Possibly Parallel Threads
- Low memory corruption - trap invalid opcode ip:7f5c688028b0 sp:7ffff97af848 error:0 in ld-2.11.2.so[7f5c687ef000+1e000]
- building debug version of klibc
- Shipping development files for mingw32
- [LLVMdev] linker errors when trying to link llvm-gcc
- building debug version of klibc