auth-checkpassword.conf.ext.erb 976 B

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