Skip to content

Commit e17d1e1

Browse files
sirainencmouse
authored andcommitted
auth/ldap: Update userdb ldap
1 parent 34ba665 commit e17d1e1

File tree

2 files changed

+11
-6
lines changed

2 files changed

+11
-6
lines changed

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

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -338,12 +338,12 @@ If you're using DN template, there is no LDAP lookup that returns fields, so
338338

339339
Usually your LDAP database also contains the [[link,userdb]].
340340

341-
If your home directory can be specified with a template and you're using
342-
only a single UID and GID, you should use [[link,auth_staticdb]]
343-
instead to avoid an unnecessary LDAP lookup. You can also use
344-
[[link,auth_prefetch]] to avoid the userdb LDAP lookup.
341+
If your home directory can be specified with a template, you're using only a
342+
single UID and GID, and you don't need any other user-specific fields, you
343+
should use [[link,userdb_static]] instead to avoid an unnecessary LDAP lookup.
344+
You can also use [[link,auth_prefetch]] to avoid the userdb LDAP lookup.
345345

346-
Userdb lookups are always done using the default DN (`dn` setting)
346+
Userdb lookups are always done using the [[setting,ldap_auth_dn]]
347347
bind. It's not possible to do the lookup using the user's DN (remember
348348
that e.g. [[link,lda]] or [[link,lmtp]] needs to do userdb lookups
349349
without knowing the user's password).
@@ -367,7 +367,9 @@ userdb ldap {
367367
}
368368
```
369369

370-
# For using doveadm -A:
370+
### User Iteration
371+
372+
For using `doveadm -A` or `-u` with wildcards:
371373
```
372374
userdb ldap {
373375
iterate_filter = (objectClass=posixAccount)

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

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,9 @@ layout: doc
33
title: Static
44
dovecotlinks:
55
auth_staticdb: static authentication database
6+
userdb_static:
7+
hash: userdb
8+
text: Userdb Static
69
---
710

811
# Static Password Database (`static`)

0 commit comments

Comments
 (0)