Re: Config: Reading value from file for password does not work
Aki Tuomi via dovecot <[email protected]> Sun, 19 Apr 2026 18:14:40 +0300 (EEST)
| Newsgroups | gmane.mail.imap.dovecot |
|---|---|
| Message-ID | <1669224040.2327.1776611680409@appsuite-pro-sync-core-mw-groupware-0.appsuite-pro-sync-core-mw-hazelcast-headless.appsuite-dev.svc.cluster.local> |
I wonder if it would be better solution to use $ENV:LDAP_AUTH_DN_PASSWORD instead? Also, the file you read the password needs to be root:dovecot 0640 Aki > On 19/04/2026 18:07 EEST René Neumann via dovecot <[email protected]> wrote: > > > Forgot to add: I'm using dovecot v2.4.3 > > Am 19.04.26 um 15:52 schrieb René Neumann via dovecot: > > Hi, > > > > I want to read the ldap auth-dn password from a file to avoid having it > > as part of the configuration (which may be checked into VCS). > > > > I specified > > > > ldap_auth_dn_password = </some/file > > > > where /some/file contains the password without extra whitespace (esp. > > there is no `\n`, I checked with xxd). > > > > But ldap auth does not succeed because of a wrong password. Password > > itself does work though, as checked with ldapsearch (even using the same > > file as password provider) > > > > `doveconf -x -P` *does* show the correct value. > > > > The same issue has been reported back in 2019 [1], without any reply > > though :-/ > > > > Any ideas? > > > > Thanks, > > René > > > > [1] https://dovecot.org/list/dovecot/2019-September/117100.html > > > > _______________________________________________ > > dovecot mailing list -- [email protected] > > To unsubscribe send an email to [email protected] > > _______________________________________________ > dovecot mailing list -- [email protected] > To unsubscribe send an email to [email protected] _______________________________________________ dovecot mailing list -- [email protected] To unsubscribe send an email to [email protected]