auth-checkpassword.conf.ext.erb 863 B

12345678910111213141516171819202122232425262728293031
  1. # Generated by Chef
  2. # Authentication for checkpassword users. Included from auth.conf.
  3. #
  4. # <doc/wiki/AuthDatabase.CheckPassword.txt>
  5. <% if Dovecot::Auth.has_passdb?(@auth['checkpassword']) -%>
  6. <%= Dovecot::Conf.authdb('checkpassword', 'passdb', @auth['checkpassword']['passdb']) %>
  7. <% else -%>
  8. passdb {
  9. driver = checkpassword
  10. args = /usr/bin/checkpassword
  11. }
  12. <% end -%>
  13. <% if Dovecot::Auth.has_userdb?(@auth['checkpassword']) -%>
  14. <%= Dovecot::Conf.authdb('checkpassword', 'userdb', @auth['checkpassword']['userdb']) %>
  15. <% else -%>
  16. # passdb lookup should return also userdb info
  17. userdb {
  18. driver = prefetch
  19. }
  20. <% end -%>
  21. # Standard checkpassword doesn't support direct userdb lookups.
  22. # If you need checkpassword userdb, the checkpassword must support
  23. # Dovecot-specific extensions.
  24. #userdb {
  25. # driver = checkpassword
  26. # args = /usr/bin/checkpassword
  27. #}