[Dovecot] ldap auth (with user and domain a different places)

Peter Clark peter-clark at bethel.edu
Mon Jan 10 06:06:55 EET 2005


On Monday 10 January 2005 04:21, Timo Boettcher wrote:
>    I am trying to use dovecot with my virtual-hosting setup. I have
>    all users in LDAP like uid=user,dc=domain.tld,o=myorganization for
>    the user with the mail-address user at domain.tld. This is also the
>    username that user should use for login, but it is nowhere in the
>    ldap-db in this form together, just user and domain at their own
>    places. Is it possible to authenticate with dovecot against such an
>    ldap-directory?
    If you don't have multiple domains, you could just authenticate the user 
using %n. E.g., in dovecot-ldap.conf:

user_filter = (uid=%n)
pass_filter = (uid=%n)

If you do have multiple domains, it's not that more complicated:

user_filter = (&(uid=%n)(dc=%d))
pass_filter = (&(uid=%n)(dc=%d))

    :Peter



More information about the dovecot mailing list