<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" "http://www.w3.org/TR/REC-html40/loose.dtd">
<html lang="en">
<head>
<meta content="text/html; charset=US-ASCII" http-equiv="Content-Type">
<title>
GitLab
</title>


<style>img {
max-width: 100%; height: auto;
}
</style>
</head>
<body>
<div class="content">

<p class="details" style="font-style: italic; color: #777;">
<a href="https://gitlab.com/cryptomilk">Andreas Schneider</a> created an issue <a href="https://gitlab.com/gnutls/gnutls/-/issues/1046">#1046</a>:
</p>
<div></div>
<p dir="auto">To honor system crypto policies we changed the 'tls priority' setting in Samba from <code>NORMAL:-VERS-SSL3.0</code> to <code>@SAMBA,SYSTEM,NORMAL:!-VERS-SSL3.0</code> according to the doc of <a href="https://gnutls.org/manual/html_node/Core-TLS-API.html#gnutls_005fpriority_005finit2" rel="nofollow noreferrer noopener" target="_blank">gnutls_priority_init2</a></p>
<pre class="code highlight js-syntax-highlight plaintext" lang="plaintext" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">Typical usage would be to specify                                                                                                                   </span>
<span id="LC2" class="line" lang="plaintext">application specified keyword first, followed by "SYSTEM" as                                                                                                                    </span>
<span id="LC3" class="line" lang="plaintext">a default fallback. e.g., "@LIBVIRT,SYSTEM:!-VERS-SSL3.0" will                                                                                                                     </span>
<span id="LC4" class="line" lang="plaintext">first try to find a config file entry matching "LIBVIRT", but if                                                                                                                   </span>
<span id="LC5" class="line" lang="plaintext">that does not exist will use the entry for "SYSTEM". If "SYSTEM"                                                                                                                   </span>
<span id="LC6" class="line" lang="plaintext">does not exist either, an error will be returned. In all cases,                                                                                                                    </span>
<span id="LC7" class="line" lang="plaintext">the SSL3.0 protocol will be disabled.</span></code></pre>
<p dir="auto">However this doesn't work at all as it even doesn't recognize NORMAL if SAMBA and SYSTEM profiles are not available:</p>
<pre class="code highlight js-syntax-highlight plaintext" lang="plaintext" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">asn@addc:~/workspace/projects/samba> GNUTLS_DEBUG_LEVEL=6 bin/ldbsearch -H ldaps://$SERVER:636/ -s base -b "" -U%</span>
<span id="LC2" class="line" lang="plaintext">gnutls[2]: Enabled GnuTLS 3.6.14 logging...</span>
<span id="LC3" class="line" lang="plaintext">gnutls[2]: getrandom random generator was detected</span>
<span id="LC4" class="line" lang="plaintext">gnutls[2]: Intel SSSE3 was detected</span>
<span id="LC5" class="line" lang="plaintext">gnutls[2]: Intel SHA was detected</span>
<span id="LC6" class="line" lang="plaintext">gnutls[2]: Intel AES accelerator was detected</span>
<span id="LC7" class="line" lang="plaintext">gnutls[2]: Intel GCM accelerator (AVX) was detected</span>
<span id="LC8" class="line" lang="plaintext">gnutls[2]: cfg: unable to access: /etc/gnutls/config: 2</span>
<span id="LC9" class="line" lang="plaintext">gnutls[5]: REC[0x55c6d6cc78a0]: Allocating epoch #0</span>
<span id="LC10" class="line" lang="plaintext">gnutls[2]: added 6 protocols, 29 ciphersuites, 19 sig algos and 10 groups into priority list</span>
<span id="LC11" class="line" lang="plaintext">gnutls[2]: cfg: unable to access: /etc/gnutls/config: 2</span>
<span id="LC12" class="line" lang="plaintext">gnutls[2]: resolved 'SAMBA' to '', next 'SYSTEM,NORMAL'</span>
<span id="LC13" class="line" lang="plaintext">gnutls[2]: cfg: unable to access: /etc/gnutls/config: 2</span>
<span id="LC14" class="line" lang="plaintext">gnutls[2]: resolved 'SYSTEM' to '', next 'NORMAL'</span>
<span id="LC15" class="line" lang="plaintext">gnutls[2]: cfg: unable to access: /etc/gnutls/config: 2</span>
<span id="LC16" class="line" lang="plaintext">gnutls[2]: resolved 'NORMAL' to '', next ''</span>
<span id="LC17" class="line" lang="plaintext">gnutls[2]: unable to resolve @SAMBA,SYSTEM,NORMAL:!VERS-SSL3.0</span>
<span id="LC18" class="line" lang="plaintext">gnutls[3]: ASSERT: priority.c[gnutls_priority_init]:2017</span>
<span id="LC19" class="line" lang="plaintext">gnutls[3]: ASSERT: priority.c[gnutls_priority_set_direct]:2343</span>
<span id="LC20" class="line" lang="plaintext">TLS ../../source4/lib/tls/tls_tstream.c:1052 - The request is invalid..  Check 'tls priority' option at '@SAMBA,SYSTEM,NORMAL:!VERS-SSL3.0'</span></code></pre>
<p dir="auto">How should the correct string be that it tries the a SAMBA and SYSTEM profile and if this doesn't work uses NORMAL and not trying to resolve NORMAL as a file?</p>

</div>
<div class="footer" style="margin-top: 10px;">
<p style="font-size: small; color: #777;">

<br>
Reply to this email directly or <a href="https://gitlab.com/gnutls/gnutls/-/issues/1046">view it on GitLab</a>.
<br>
You're receiving this email because of your account on gitlab.com.
If you'd like to receive fewer emails, you can
<a href="https://gitlab.com/-/sent_notifications/5b9fce44643d82e0a8ff03b2a1aae9f5/unsubscribe">unsubscribe</a>
from this thread or
adjust your notification settings.
<script type="application/ld+json">{"@context":"http://schema.org","@type":"EmailMessage","action":{"@type":"ViewAction","name":"View Issue","url":"https://gitlab.com/gnutls/gnutls/-/issues/1046"}}</script>


</p>
</div>
</body>
</html>