<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<body>
<p>Ping<br>
</p>
<div class="moz-cite-prefix">Am 18.09.19 um 15:39 schrieb Jakobus
Schürz via dovecot:<br>
</div>
<blockquote type="cite"
cite="mid:0LcmN9-1hl74D17Ad-00kAI1@mail.gmx.com">
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
<p>Hi guys!</p>
<p>In
<a class="moz-txt-link-freetext"
href="https://doc.dovecot.org/configuration_manual/config_file/config_file_syntax/"
moz-do-not-send="true">https://doc.dovecot.org/configuration_manual/config_file/config_file_syntax/</a>
i ca see this:</p>
<div class="section" id="reading-value-from-file">
<h2>Reading value from file</h2>
<p>It’s possible to read the value for a setting from a file:</p>
<div class="highlight-none notranslate">
<div class="highlight">
<pre><span></span>key = </path/to/file
</pre>
</div>
</div>
<p>The value is read exactly as the entire contents of the file.
This includes all the whitespace and newlines. The paths are
relative to the currently parsed config file’s directory,
similar to how !include works. The file is read immediately
whenever parsing the configuration file, so if it changes
afterwards it requires a configuration reload to see the
changes. This functionality is especially useful for reading
SSL certificates and keys.</p>
</div>
<div class="section">So i thought it's a good idea, to write the
password for dnpass for my ldap in this notation in my config</div>
<div class="section"><br>
</div>
<div class="section">dnpass = <private/dnpass</div>
<div class="section"><br>
</div>
<div class="section">/etc/dovecot/private/dnpass contains only
this</div>
<div class="section">myVerYSecretLdApPAssworD</div>
<div class="section"><br>
</div>
<div class="section">no space, no newline.</div>
<div class="section"><br>
</div>
<div class="section">But dovecot cannot authenticate on the
ldap-host.</div>
<div class="section">I also tried <br>
</div>
<div class="section">dnpass = </private/dnpass</div>
<div class="section">dnpass = </etc/dovecot/private/dnpass</div>
<div class="section"><br>
</div>
<div class="section">Then i tried a file</div>
<div class="section">/etc/dovecot/conf.d/00-dnpass.conf</div>
<div class="section">with</div>
<div class="section">dnpass = myVerYSecretLdApPAssworD</div>
<div class="section"><br>
</div>
<div class="section">It should be included with dovecot.conf <br>
</div>
<div class="section"><br>
</div>
<div class="section">!include conf.d/*.conf</div>
<div class="section"><br>
</div>
<div class="section">The only notation that works is the line</div>
<div class="section"><br>
</div>
<div class="section">dnpass = myVerYSecretLdApPAssworD</div>
<div class="section"><br>
</div>
<div class="section">in /etc/dovecot/dovecot-ldap-userdb.conf.ext</div>
<div class="section"><br>
</div>
<div class="section">I thought it's a good idea to write it in an
extra file, so i have to manipulate only one small file with
ansible, when i renew the password.</div>
<div class="section"><br>
</div>
<div class="section">Is it a bug or does it work as designed, and
the doc is wrong?</div>
<div class="section"><br>
</div>
<div class="section">thank you</div>
<div class="section"><br>
</div>
<div class="section">Jakob<br>
</div>
</blockquote>
</body>
</html>