# Generated by Chef

# Authentication via dict backend. Included from 10-auth.conf.
#
# <doc/wiki/AuthDatabase.Dict.txt>

<% if DovecotCookbook::Auth.passdb?(@auth['dict']) -%>
<%=  DovecotCookbook::Conf.authdb('dict', 'passdb', @auth['dict']['passdb']) %>
<% else -%>
passdb {
  driver = dict

  # Path for dict configuration file, see
  # example-config/dovecot-dict-auth.conf.ext
  args = /etc/dovecot/dovecot-dict-auth.conf.ext
}
<% end -%>

<% if DovecotCookbook::Auth.userdb?(@auth['dict']) -%>
<%=  DovecotCookbook::Conf.authdb('dict', 'userdb', @auth['dict']['userdb']) %>
<% else -%>
userdb {
  driver = dict
  args = /etc/dovecot/dovecot-dict-auth.conf.ext
}
<% end -%>
