auth-passwdfile.conf.ext.erb 629 B

12345678910111213141516171819202122
  1. # Authentication for passwd-file users. Included from auth.conf.
  2. #
  3. # passwd-like file with specified location.
  4. # <doc/wiki/AuthDatabase.PasswdFile.txt>
  5. <% if Dovecot::Auth.has_passdb?(@auth['passwdfile']) -%>
  6. <%= Dovecot::Conf.authdb('passdb', @auth['passwdfile']['passdb']) %>
  7. <% else -%>
  8. passdb {
  9. driver = passwd-file
  10. args = scheme=CRYPT username_format=%u /etc/dovecot/users
  11. }
  12. <% end -%>
  13. <% if Dovecot::Auth.has_userdb?(@auth['userwdfile']) -%>
  14. <%= Dovecot::Conf.authdb('userdb', @auth['passwdfile']['userdb']) %>
  15. <% else -%>
  16. userdb {
  17. driver = passwd-file
  18. args = username_format=%u /etc/dovecot/users
  19. }
  20. <% end -%>