12345678910111213141516171819202122232425262728293031323334353637383940 |
- # Generated by Chef
- # Authentication for LDAP users. Included from auth.conf.
- #
- # <doc/wiki/AuthDatabase.LDAP.txt>
- <% if Dovecot::Auth.has_passdb?(@auth['ldap']) -%>
- <%= Dovecot::Conf.authdb('ldap', 'passdb', @auth['ldap']['passdb']) %>
- <% else -%>
- passdb {
- driver = ldap
- # Path for LDAP configuration file, see example-config/dovecot-ldap.conf.ext
- args = /etc/dovecot/dovecot-ldap.conf.ext
- }
- <% end -%>
- <% if Dovecot::Auth.has_userdb?(@auth['ldap']) -%>
- <%= Dovecot::Conf.authdb('ldap', 'userdb', @auth['ldap']['userdb']) %>
- <% else -%>
- # "prefetch" user database means that the passdb already provided the
- # needed information and there's no need to do a separate userdb lookup.
- # <doc/wiki/UserDatabase.Prefetch.txt>
- #userdb {
- # driver = prefetch
- #}
- userdb {
- driver = ldap
- args = /etc/dovecot/dovecot-ldap.conf.ext
- }
- # If you don't have any user-specific settings, you can avoid the userdb LDAP
- # lookup by using userdb static instead of userdb ldap, for example:
- # <doc/wiki/UserDatabase.Static.txt>
- #userdb {
- #driver = static
- #args = uid=vmail gid=vmail home=/var/vmail/%u
- #}
- <% end -%>
|