Note that there are some explanatory texts on larger screens.

plurals
  1. POBizTalk: Clearing password from send port for custom adapter when exporting binding for application
    primarykey
    data
    text
    <p>I have problems clearing a password, when exporting an application containing a send port using an adapter I've made for BizTalk Server 2010.</p> <p>The send port uses an adapter I've made, based upon the Microsoft.Samples.BizTalk.Adapter.Common BaseAdapter (v.1.0.2).</p> <p>Both the TransmitLocation.xsd and TransmitHandler.xsd schema uses the AdapterFramework password specific field, and both are defined as:</p> <pre><code> &lt;xs:element minOccurs="1" default="" name="passwordField"&gt; &lt;xs:simpleType&gt; &lt;xs:annotation&gt; &lt;xs:appinfo&gt; &lt;baf:designer xmlns:baf="BiztalkAdapterFramework.xsd"&gt; &lt;baf:category _locID="mailAuthIndstillingerKategori"&gt;Password related category&lt;/baf:category&gt; &lt;baf:displayname _locID="passwordName"&gt;Password:&lt;/baf:displayname&gt; &lt;baf:description _locID="passwordDescription"&gt;Password description.&lt;/baf:description&gt; &lt;baf:editor assembly="%BTSROOT%\\Developer Tools\\Microsoft.BizTalk.Adapter.Framework.dll"&gt;Microsoft.BizTalk.Adapter.Framework.ComponentModel.PasswordUITypeEditor&lt;/baf:editor&gt; &lt;baf:converter assembly="%BTSROOT%\\Developer Tools\\Microsoft.BizTalk.Adapter.Framework.dll"&gt;Microsoft.BizTalk.Adapter.Framework.ComponentModel.PasswordTypeConverter&lt;/baf:converter&gt; &lt;/baf:designer&gt; &lt;/xs:appinfo&gt; &lt;/xs:annotation&gt; &lt;xs:restriction base="xs:string"&gt; &lt;xs:maxLength value="50" /&gt; &lt;/xs:restriction&gt; &lt;/xs:simpleType&gt; &lt;/xs:element&gt; </code></pre> <p>Some google-hits mention that setting the '<strong>vt="1"</strong>' attribute, on the element which should be cleared, should do the trick. I've tried setting / adding this attribute when the <strong>ValidateConfiguration()</strong> is called. But the configuration-XML is returned as a string which is then escaped before inserted into the <strong>&lt;CustomProps></strong> xml, being exported in the binding file. </p> <p>I've tried specifying that the <strong>SendHandlerPropertiesXML</strong> and <strong>SendLocationPropertiesXML</strong>'s <strong>AdapterConfig</strong>, in the registry entry, should use the following <strong>&lt;CustomProps></strong>, with the <strong>vt="1"</strong> attribute, in hope that it would blank out the entire binding properties for the port (not optimal, but a better solution than letting someone export the password):</p> <pre><code>SendHandlerPropertiesXML : &lt;CustomProps&gt;&lt;AdapterConfig vt="1"/&gt;&lt;/CustomProps&gt; SendLocationPropertiesXML : &lt;CustomProps&gt;&lt;AdapterConfig vt="1"/&gt;&lt;/CustomProps&gt; </code></pre> <p>When the application with the configured send port is exported, the specific XML looks like the following: </p> <pre><code>&lt;TransportTypeData&gt;&amp;lt;CustomProps&amp;gt;&amp;lt;AdapterConfig vt="1"&amp;gt;&amp;amp;lt;Config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema"&amp;amp;gt;&amp;amp;lt;passwordField vt="1"&amp;amp;gt;CLEARTEXTPASSWORD;lt;/passwordField&amp;amp;gt;&amp;amp;lt;uri&amp;amp;gt;SMTP://NOT-USED&amp;amp;lt;/uri&amp;amp;gt;&amp;amp;lt;/Config&amp;amp;gt;&amp;lt;/AdapterConfig&amp;gt;&amp;lt;/CustomProps&amp;gt;&lt;/TransportTypeData&gt; </code></pre> <p>Everytime the binding is exported, the adapter's overloaded method: <strong>ValidateConfiguration()</strong> is called, but there's no way to tell if this is when the adapter has been configured, or when the bindings are being exported, meaning: you can't mangle the password in the xml-string being returned, as it will also mangle the password when being configured.</p> <p>There are other built-in adapters that do this (E.G.: SMTP adapter), and I'm sure it's something basic that I'm misunderstanding. But any help or pointers would be very helpfull.</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload