Hi list,
my ldap directory uses DNs like this:
uid=solist,ou=People,dc=solistland,dc=net,ou=Virtuals
but I only could use something like
uid=solist,ou=People,dc=solistland.net,ou=Virtuals
with dovecot, which obviously isn't what the dcObject object class was meant to present.
I've written a small function for var-expand.c which introduces a new modifier for string variable expansions, %D (arbitrarily chosen), which substitutes dots to ",dc=". You might want to include that in dovecot's code base, after bringing it up to dovecot standards of course. :-)
Example of use:
base = ou=People,dc=%Dd,ou=Virtuals
Warning: I'm a beginner in C and could only understand so much of dovecot's code, so this patch is a hack at best. That said, I tested it with more than 10k logins and can say it works for me. :-D
Cheers, Antonio