You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@directory.apache.org by gi...@apache.org on 2024/11/29 15:29:47 UTC

(directory-site) branch asf-site updated: Updated site from master (b674a378922f773cf03d89e4bf3e320e55dad559)

This is an automated email from the ASF dual-hosted git repository.

git-site-role pushed a commit to branch asf-site
in repository https://gitbox.apache.org/repos/asf/directory-site.git


The following commit(s) were added to refs/heads/asf-site by this push:
     new 182448ad Updated site from master (b674a378922f773cf03d89e4bf3e320e55dad559)
182448ad is described below

commit 182448ad83863dc42b0aa52840645bc59c487719
Author: jenkins <bu...@apache.org>
AuthorDate: Fri Nov 29 15:29:40 2024 +0000

    Updated site from master (b674a378922f773cf03d89e4bf3e320e55dad559)
---
 content/api/internal-design-guide/4-asn1.html | 18 ++++++++++++++++++
 content/sitemap.xml                           |  4 ++--
 2 files changed, 20 insertions(+), 2 deletions(-)

diff --git a/content/api/internal-design-guide/4-asn1.html b/content/api/internal-design-guide/4-asn1.html
index 6049628c..5fc60358 100644
--- a/content/api/internal-design-guide/4-asn1.html
+++ b/content/api/internal-design-guide/4-asn1.html
@@ -371,6 +371,24 @@ Each transition is based on the tags used between two states.</p>
 <li><em>VERSION_STATE</em></li>
 <li><em>NAME_STATE</em></li>
 </ul>
+<h4 id="bindresponse-message">BindResponse message</h4>
+<p>The <em>BindResponse</em> message contains two elements:</p>
+<ul>
+<li>A <em>LdapResult</em> element</li>
+<li>An optional response used in a aunthentication dialogue, if the <em>BindRequest</em> message was a <strong>SASL</strong> one</li>
+</ul>
+<pre><code>BindResponse ::= [APPLICATION 1] SEQUENCE {
+             COMPONENTS OF LDAPResult,
+             serverSaslCreds    [7] OCTET STRING OPTIONAL }
+</code></pre><p>The associated state machine is shwon below:</p>
+<img src="images/asn1-bind-response.png" alt="BindResponse state machine" width="100%"/>
+<p>Just because we may have some data after the <em>LDAPResult</em> element, we use a special version of the <em>LDAPResult</em> state machine:</p>
+<img src="images/asn1-ldap-result-BR.png" alt="BindResponse LDAPResult state machine" width="100%"/>
+<p>In any case, two states are mandatory:</p>
+<ul>
+<li><em>RESULT_CODE_BR_STATE</em></li>
+<li><em>MATCHED_DN_BR_STATE</em></li>
+</ul>
 <h4 id="error-handling">Error handling</h4>
 <p>So when we are expecting a specific tag (as seen previoulsy, <strong>0x04</strong>, for instance), and we get another tag, we throw a <em>DecoderException</em>, and we stop the decoding.
 Of course, we have to discard all the <strong>PDU</strong>, and hopefully, we know how many bytes to process as it&rsquo;s given in the first <strong>TLV</strong>.</p>
diff --git a/content/sitemap.xml b/content/sitemap.xml
index a5d16802..e610ec28 100644
--- a/content/sitemap.xml
+++ b/content/sitemap.xml
@@ -719,7 +719,7 @@
   
   <url>
     <loc>https://directory.apache.org/api/internal-design-guide/4-asn1.html</loc>
-    <lastmod>2024-11-29T14:41:13+01:00</lastmod>
+    <lastmod>2024-11-29T16:14:04+01:00</lastmod>
   </url>
   
   <url>
@@ -1744,7 +1744,7 @@
   
   <url>
     <loc>https://directory.apache.org/api.html</loc>
-    <lastmod>2024-11-29T14:41:13+01:00</lastmod>
+    <lastmod>2024-11-29T16:14:04+01:00</lastmod>
   </url>
   
   <url>