auth-passwdfile.conf.ext.erb 680 B

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