12345678910111213141516171819202122 |
- # Authentication for passwd-file users. Included from auth.conf.
- #
- # passwd-like file with specified location.
- # <doc/wiki/AuthDatabase.PasswdFile.txt>
- <% if Dovecot::Auth.has_passdb?(@auth['passwdfile']) -%>
- <%= Dovecot::Conf.authdb('passdb', @auth['passwdfile']['passdb']) %>
- <% else -%>
- passdb {
- driver = passwd-file
- args = scheme=CRYPT username_format=%u /etc/dovecot/users
- }
- <% end -%>
- <% if Dovecot::Auth.has_userdb?(@auth['userwdfile']) -%>
- <%= Dovecot::Conf.authdb('userdb', @auth['passwdfile']['userdb']) %>
- <% else -%>
- userdb {
- driver = passwd-file
- args = username_format=%u /etc/dovecot/users
- }
- <% end -%>
|