12345678910111213141516171819202122232425262728293031 |
- # Generated by Chef
- # Authentication for checkpassword users. Included from auth.conf.
- #
- # <doc/wiki/AuthDatabase.CheckPassword.txt>
- <% if Dovecot::Auth.has_passdb?(@auth['checkpassword']) -%>
- <%= Dovecot::Conf.authdb('checkpassword', 'passdb', @auth['checkpassword']['passdb']) %>
- <% else -%>
- passdb {
- driver = checkpassword
- args = /usr/bin/checkpassword
- }
- <% end -%>
- <% if Dovecot::Auth.has_userdb?(@auth['checkpassword']) -%>
- <%= Dovecot::Conf.authdb('checkpassword', 'userdb', @auth['checkpassword']['userdb']) %>
- <% else -%>
- # passdb lookup should return also userdb info
- userdb {
- driver = prefetch
- }
- <% end -%>
- # Standard checkpassword doesn't support direct userdb lookups.
- # If you need checkpassword userdb, the checkpassword must support
- # Dovecot-specific extensions.
- #userdb {
- # driver = checkpassword
- # args = /usr/bin/checkpassword
- #}
|