auth-checkpassword.conf.ext.erb 808 B

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