<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://blogs.msdn.com/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>The dot before the Net : SSO</title><link>http://blogs.msdn.com/sanket/archive/tags/SSO/default.aspx</link><description>Tags: SSO</description><dc:language>en</dc:language><generator>CommunityServer 2.1 SP1 (Build: 61025.2)</generator><item><title>External App Credentials Mapping with Enterprise SSO</title><link>http://blogs.msdn.com/sanket/archive/2006/07/11/External-App-Credentials-Mapping-with-Enterprise-SSO.aspx</link><pubDate>Tue, 11 Jul 2006 17:03:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:662333</guid><dc:creator>Sanket Bakshi</dc:creator><slash:comments>1</slash:comments><comments>http://blogs.msdn.com/sanket/comments/662333.aspx</comments><wfw:commentRss>http://blogs.msdn.com/sanket/commentrss.aspx?PostID=662333</wfw:commentRss><wfw:comment>http://blogs.msdn.com/sanket/rsscomments.aspx?PostID=662333</wfw:comment><description>&lt;P&gt;&lt;FONT face=Arial size=2&gt;Biztalk 2004 installs with itself the Enterprise SSO (Single Sign-on)&amp;nbsp;utility. However, in order to harness it for your apps, you need to use the &lt;EM&gt;ssomanage &lt;/EM&gt;utility that comes with it. &lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face=Arial size=2&gt;Using the utility is again not&amp;nbsp;simple either.&amp;nbsp;The first parameter of the &lt;EM&gt;ssomanage&lt;/EM&gt; utility&amp;nbsp;actually tells the utility about the action that has to be performed. &lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face=Arial size=2&gt;To create an&amp;nbsp;Application &amp;amp; map its credential to a windows login involves a series of steps -&lt;BR&gt;1. Creating&amp;nbsp;the application with SSO that maps to the external application&lt;BR&gt;2.&amp;nbsp;Mapping the username of the external&amp;nbsp;application to that of the windows user&lt;BR&gt;3. Setting the password for the external username created&amp;nbsp;in the above step&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face=Arial size=2&gt;The &lt;EM&gt;-createapps&lt;/EM&gt; parameter of the&amp;nbsp;&lt;EM&gt;ssomanage&lt;/EM&gt; allows you to create the external application in SSO. However, to do this, you need an XML file that specifies the details of the application to be created. The format for this XML file is - &lt;/FONT&gt;&lt;/P&gt;&lt;PRE&gt;&lt;FONT size=2&gt;&amp;lt;sso&amp;gt;
&amp;lt;application name="AppNameGoesHere"&amp;gt;
&amp;lt;description&amp;gt;App Description Goes Here&amp;lt;/description&amp;gt;
&amp;lt;contact&amp;gt;someone@example.com&amp;lt;/contact&amp;gt;
&amp;lt;appuserAccount&amp;gt;domain\AppUserAccount&amp;lt;/appuserAccount&amp;gt;
&amp;lt;appAdminAccount&amp;gt;domain\AppAdminAccount&amp;lt;/appAdminAccount&amp;gt;
&amp;lt;field ordinal="0" label="User Id" masked="no" /&amp;gt;
&amp;lt;field ordinal="1" label="Password" masked="yes" /&amp;gt;
&amp;lt;flags groupApp="no" &lt;BR&gt;       &lt;/FONT&gt;&lt;FONT size=2&gt;configStoreApp="no" &lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;allowTickets="no"
       validateTickets="yes" &lt;BR&gt;       allowLocalAccounts="no" &lt;BR&gt;       &lt;/FONT&gt;&lt;FONT size=2&gt;timeoutTickets="yes"
       adminAccountSame="no" &lt;BR&gt;       enableApp="no" /&amp;gt;
&amp;lt;/application&amp;gt;
&amp;lt;/sso&amp;gt;&lt;/FONT&gt;&lt;/PRE&gt;
&lt;P&gt;&lt;FONT face=Arial size=2&gt;Some important parameters that require attention include - &lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face=Arial size=2&gt;The &lt;EM&gt;appuserAccount&lt;/EM&gt; parameter determines user account that can modify the credentials. This is usually the SSO Affiliate Administrators Group. The &lt;EM&gt;appAdminAccount&lt;/EM&gt; determines the admin account for SSO and is generally the SSO Administrators Group.&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face=Arial size=2&gt;The &lt;EM&gt;field tags&lt;/EM&gt; define the username, password and any other fields that can be required by the external system to take care of the authentication. The &lt;EM&gt;masked attribute&lt;/EM&gt; of the field determines if the field is masked or not when it is being set. &lt;BR&gt;The flags contain any settings that you might want to set for the app. The &lt;EM&gt;enableApp attribute&lt;/EM&gt; determines if the application is enabled or not when it is created. If this is set to "no" you will &lt;/FONT&gt;&lt;FONT face=Arial size=2&gt;have to explicitly enable the app by using the -&lt;EM&gt;enableApp&lt;/EM&gt; switch with &lt;EM&gt;ssomanage&lt;/EM&gt;.&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face=Arial size=2&gt;Multiple applications can be added in a single go by using multiple "&lt;EM&gt;application&lt;/EM&gt;" tags.&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face=Arial size=2&gt;Once the application is created, the second step, comprises of specifying the username for the external application that corresponds to the Windows user. To take care of this, you need to use the &lt;EM&gt;-createmappings&lt;/EM&gt; switch with ssomanage. The CreateMappings parameter needs you to specify a mapping xml which should be as below - &lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face=Arial size=2&gt;&lt;/FONT&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT face=Arial size=2&gt;&lt;FONT face="Courier New"&gt;&amp;lt;sso&amp;gt;&lt;BR&gt;&amp;lt;mapping&amp;gt;&lt;BR&gt;&amp;lt;windowsDomain&amp;gt;domain&amp;lt;/windowsDomain&amp;gt;&lt;BR&gt;&amp;lt;windowsUserId&amp;gt;WindowsUserName&amp;lt;/windowsUserId&amp;gt;&lt;BR&gt;&amp;lt;externalApplication&amp;gt;Application name1&amp;lt;/externalApplication&amp;gt;&lt;BR&gt;&amp;lt;externalUserId&amp;gt;App1UserName&amp;lt;/externalUserId&amp;gt;&lt;BR&gt;&amp;lt;/mapping&amp;gt;&lt;BR&gt;&amp;lt;/sso&amp;gt;&lt;/FONT&gt;&lt;BR&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face=Arial size=2&gt;The mapping xml as such is quite simple to understand. The externalApplication tag links the application created in the step 1 to this user. &lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face=Arial size=2&gt;Once this is done, simply use the -setcredentials parameter with the ssomanage. This will help set the password for the external username that you created in step 2. &lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face=Arial size=2&gt;The entire process would create the external app in the SSO, add its username and password and map it to an existing windows user. &lt;BR&gt;&lt;/FONT&gt;&lt;FONT face=Arial size=2&gt;Biztalk 2006 goes a step ahead and actually provides you a MMC based console for handling these tasks. Definitely a smart enhancement than having to go through all the trouble. &lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face=Arial size=2&gt;--Sanket Bakshi&lt;/FONT&gt;&lt;/P&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=662333" width="1" height="1"&gt;</description><category domain="http://blogs.msdn.com/sanket/archive/tags/Biztalk/default.aspx">Biztalk</category><category domain="http://blogs.msdn.com/sanket/archive/tags/SSO/default.aspx">SSO</category></item></channel></rss>