Skip to content

Commit

Permalink
Rename passdb_mechanisms to passdb_mechamisms_filter and "none" value…
Browse files Browse the repository at this point in the history
… to "lookup"
  • Loading branch information
sirainen committed Sep 18, 2024
1 parent 5ad2171 commit b712577
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
8 changes: 4 additions & 4 deletions data/settings.js
Original file line number Diff line number Diff line change
Expand Up @@ -8939,23 +8939,23 @@ The scheme that passwords are in the passdb, unless overridden by the passdb
entry (typically by prefixing with \`{SCHEME}\`).`
},

passdb_mechanisms: {
passdb_mechanisms_filter: {
tags: [ 'passdb' ],
added: {
settings_passdb_mechanisms_added: false,
settings_passdb_mechanisms_filter_added: false,
},
values: setting_types.BOOLLIST,
text: `
Skip the passdb if non-empty and the current auth mechanism is not listed here.
If the value contains \`none\`, it matches for non-authenticating passdb
If the value contains \`lookup\`, it matches for non-authenticating passdb
lookups (e.g. lmtp/doveadm lookups).
Example:
\`\`\`[dovecot.conf]
passdb passwd-file {
driver = passwd-file
mechanisms = PLAIN LOGIN
mechanisms_filter = PLAIN LOGIN
# ...
}
\`\`\``
Expand Down
2 changes: 1 addition & 1 deletion data/updates.js
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ export const updates = {
settings_mail_lua_added: '2.4.0',
settings_mailbox_special_use_changed: '2.4.0',
settings_metric_fields_changed: '2.4.0',
settings_passdb_mechanisms_added: '2.2.30',
settings_passdb_mechanisms_filter_added: '2.4.0',
settings_passdb_static_password_added: '2.4.0',
settings_passdb_username_filter_added: '2.2.30',
settings_service_idle_kill_changed: '2.3.21',
Expand Down
2 changes: 1 addition & 1 deletion docs/core/config/auth/databases/oauth2.md
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ oauth2 {
}
passdb oauth2 {
mechanisms = plain login
mechanisms_filter = plain login
oauth2 {
# inherit common oauth2 settings from the global scope
grant_url = http://localhost:8000/token
Expand Down

0 comments on commit b712577

Please sign in to comment.