<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic HLAPI: bug when making 2 consecutive connections in Intel vPro® Platform</title>
    <link>https://community.intel.com/t5/Intel-vPro-Platform/HLAPI-bug-when-making-2-consecutive-connections/m-p/332450#M3894</link>
    <description>&lt;P&gt;Hi everyone,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've been working with the HLAPI library, and came across the following issue:&lt;/P&gt;&lt;P&gt;when connecting to an AMT11 machine with &lt;B&gt;digest authentication and server TLS&lt;/B&gt;, if the 1st connection uses the correct credentials, &lt;B&gt;the 2nd connection works even if the credentials are wrong&lt;/B&gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;See below sample code:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;            IAMTInstance amt;&lt;/P&gt;&lt;P&gt;            IAMTInstance amt2;&lt;/P&gt;&lt;P&gt;            try&lt;/P&gt;&lt;P&gt;            {&lt;/P&gt;&lt;P&gt;              ConnectionInfoEX ci = new ConnectionInfoEX("ro-nrc-vpro.anita.local", "admin", "Abcd1234!", true, // correct user and password&lt;/P&gt;&lt;P&gt;                                             "", ConnectionInfoEX.AuthMethod.Digest, null, null, null);&lt;/P&gt;&lt;P&gt;                amt = AMTInstanceFactory.CreateEX(ci);&lt;/P&gt;&lt;P&gt;                if (amt != null)&lt;/P&gt;&lt;P&gt;                  Console.WriteLine("First connection ok");&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;                amt.Dispose();&lt;/P&gt;&lt;P&gt;                amt = null;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;                ConnectionInfoEX ci2 = new ConnectionInfoEX("ro-nrc-vpro.anita.local", "lkk", "fg", true,     // incorrect user and password&lt;/P&gt;&lt;P&gt;                                               "", ConnectionInfoEX.AuthMethod.Digest, null, null, null);&lt;/P&gt;&lt;P&gt;                &lt;B&gt;amt2 = AMTInstanceFactory.CreateEX(ci2);          // this also succeeds!!&lt;/B&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;                if (amt2 != null)&lt;/P&gt;&lt;P&gt;                  Console.WriteLine("Second connection ok");&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;                amt2.Dispose();&lt;/P&gt;&lt;P&gt;                amt2 = null;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;            }&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any ideas?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Note: I could only  reproduce the issue with digest and server TLS, doesn't happen if server TLS is not enabled, and I did not try yet with Kerberos or with mutual TLS.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Note 2: if I stay in a break point long enough before the &lt;B&gt;amt2 = AMTInstanceFactory.CreateEX(ci2)&lt;/B&gt; command (this "long enough" varies from attempt to attempt), the CreateEX fails, like expected. So it seems to have something to do with cleaning up the old connection..&lt;/P&gt;</description>
    <pubDate>Wed, 12 Apr 2017 15:26:24 GMT</pubDate>
    <dc:creator>idata</dc:creator>
    <dc:date>2017-04-12T15:26:24Z</dc:date>
    <item>
      <title>HLAPI: bug when making 2 consecutive connections</title>
      <link>https://community.intel.com/t5/Intel-vPro-Platform/HLAPI-bug-when-making-2-consecutive-connections/m-p/332450#M3894</link>
      <description>&lt;P&gt;Hi everyone,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've been working with the HLAPI library, and came across the following issue:&lt;/P&gt;&lt;P&gt;when connecting to an AMT11 machine with &lt;B&gt;digest authentication and server TLS&lt;/B&gt;, if the 1st connection uses the correct credentials, &lt;B&gt;the 2nd connection works even if the credentials are wrong&lt;/B&gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;See below sample code:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;            IAMTInstance amt;&lt;/P&gt;&lt;P&gt;            IAMTInstance amt2;&lt;/P&gt;&lt;P&gt;            try&lt;/P&gt;&lt;P&gt;            {&lt;/P&gt;&lt;P&gt;              ConnectionInfoEX ci = new ConnectionInfoEX("ro-nrc-vpro.anita.local", "admin", "Abcd1234!", true, // correct user and password&lt;/P&gt;&lt;P&gt;                                             "", ConnectionInfoEX.AuthMethod.Digest, null, null, null);&lt;/P&gt;&lt;P&gt;                amt = AMTInstanceFactory.CreateEX(ci);&lt;/P&gt;&lt;P&gt;                if (amt != null)&lt;/P&gt;&lt;P&gt;                  Console.WriteLine("First connection ok");&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;                amt.Dispose();&lt;/P&gt;&lt;P&gt;                amt = null;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;                ConnectionInfoEX ci2 = new ConnectionInfoEX("ro-nrc-vpro.anita.local", "lkk", "fg", true,     // incorrect user and password&lt;/P&gt;&lt;P&gt;                                               "", ConnectionInfoEX.AuthMethod.Digest, null, null, null);&lt;/P&gt;&lt;P&gt;                &lt;B&gt;amt2 = AMTInstanceFactory.CreateEX(ci2);          // this also succeeds!!&lt;/B&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;                if (amt2 != null)&lt;/P&gt;&lt;P&gt;                  Console.WriteLine("Second connection ok");&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;                amt2.Dispose();&lt;/P&gt;&lt;P&gt;                amt2 = null;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;            }&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any ideas?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Note: I could only  reproduce the issue with digest and server TLS, doesn't happen if server TLS is not enabled, and I did not try yet with Kerberos or with mutual TLS.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Note 2: if I stay in a break point long enough before the &lt;B&gt;amt2 = AMTInstanceFactory.CreateEX(ci2)&lt;/B&gt; command (this "long enough" varies from attempt to attempt), the CreateEX fails, like expected. So it seems to have something to do with cleaning up the old connection..&lt;/P&gt;</description>
      <pubDate>Wed, 12 Apr 2017 15:26:24 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-vPro-Platform/HLAPI-bug-when-making-2-consecutive-connections/m-p/332450#M3894</guid>
      <dc:creator>idata</dc:creator>
      <dc:date>2017-04-12T15:26:24Z</dc:date>
    </item>
  </channel>
</rss>

