This documentation is for Dovecot v1.x, see wiki2 for v2.x documentation.

LDAP

There are two ways to do LDAP authentication:

Both of these have their own advantages and disadvantages.

Configuration common to LDAP passdb and userdb

Connecting

There are two alternative ways to specify what LDAP server(s) to connect to:

If multiple LDAP servers are specified, it's decided by the LDAP library how the server connections are handled. Typically the first working server is used, and it's never disconnected from. So there is no load balancing or automatic reconnecting to the "primary" server.

SSL/TLS

You can enable TLS in two alternative ways:

See the tls_* settings in dovecot-ldap-example.conf for how to configure TLS. (I think they apply to ldaps too?)

SASL binds

It's possible to use SASL binds instead of the regular plaintext binds if your LDAP library supports them. See the sasl_* settings in dovecot-ldap-example.conf. Note that SASL binds are currently incompatible with authentication binds.

Active Directory

When connecting to AD, you may need to use port 3268. Then again, not all LDAP fields are available in port 3268. Use whatever works.

None: AuthDatabase/LDAP (last edited 2012-06-12 18:23:46 by plm56-1-88-188-61-85)