Skip to content

Commit ed511a4

Browse files
sirainencmouse
authored andcommitted
auth/ldap: Fix using passdb_fields with passdb_ldap_bind_userdn=yes
1 parent f76528c commit ed511a4

File tree

1 file changed

+3
-6
lines changed
  • docs/core/config/auth/databases

1 file changed

+3
-6
lines changed

docs/core/config/auth/databases/ldap.md

+3-6
Original file line numberDiff line numberDiff line change
@@ -223,12 +223,9 @@ of two LDAP requests per login in both cases).
223223
If you're also using Dovecot for SMTP AUTH, it doesn't do a userdb lookup
224224
so the prefetch optimization doesn't help.
225225

226-
If you're using DN template, [[setting,passdb_fields]] and
227-
[[setting,passdb_ldap_filter]] settings
228-
are completely ignored. That means you can't make passdb return any
229-
[[link,passdb_extra_fields]]. You should also set
230-
[[setting,auth_username_format,%{user | lower}]] in `dovecot.conf` to normalize the
231-
username by lowercasing it.
226+
If you're using DN template, there is no LDAP lookup that returns fields, so
227+
[[setting,passdb_fields]] can't access any `%{ldap:*}` variables. Also,
228+
[[setting,passdb_ldap_filter]] setting is ignored.
232229

233230
::: code-group
234231
```[dovecot.conf]

0 commit comments

Comments
 (0)