<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://myitforum.com/cs2/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>Forefront Security at myITForum : Forefront UAG</title><link>http://myitforum.com/cs2/blogs/forefrontsecurity/archive/tags/Forefront+UAG/default.aspx</link><description>Tags: Forefront UAG</description><dc:language>en</dc:language><generator>CommunityServer 2007.1 SP2 (Build: 31113.47)</generator><item><title>Provide access to your Partner on your UAG Portal with ADFS 2.0</title><link>http://myitforum.com/cs2/blogs/forefrontsecurity/archive/2011/08/16/provide-access-to-your-partner-on-your-uag-portal-with-adfs-2-0.aspx</link><pubDate>Tue, 16 Aug 2011 07:58:00 GMT</pubDate><guid isPermaLink="false">8e8f7986-475c-475d-bdc9-a1b3a63b955b:158861</guid><dc:creator>forefrontsecurity</dc:creator><slash:comments>0</slash:comments><wfw:commentRss xmlns:wfw="http://wellformedweb.org/CommentAPI/">http://myitforum.com/cs2/blogs/forefrontsecurity/rsscomments.aspx?PostID=158861</wfw:commentRss><comments>http://myitforum.com/cs2/blogs/forefrontsecurity/archive/2011/08/16/provide-access-to-your-partner-on-your-uag-portal-with-adfs-2-0.aspx#comments</comments><description>&lt;p&gt;Hi,&lt;/p&gt;  &lt;p&gt;As Hicham already demonstrate, you can add Claims Provider Trust on your Federation Server. His example is a Federation with Azure services, but you can do the same with a Federation Partner. Have a look at this article : &lt;a title="http://myitforum.com/cs2/blogs/forefrontsecurity/archive/2011/08/05/authenticating-to-your-network-through-your-online-credentials.aspx" href="http://myitforum.com/cs2/blogs/forefrontsecurity/archive/2011/08/05/authenticating-to-your-network-through-your-online-credentials.aspx"&gt;http://myitforum.com/cs2/blogs/forefrontsecurity/archive/2011/08/05/authenticating-to-your-network-through-your-online-credentials.aspx&lt;/a&gt;&lt;/p&gt;  &lt;p&gt;Let’s assume that the Labiam Corporation wants to allow access on his UAG Portal to the UAG.com company. Both have a Federation Service.&lt;/p&gt;  &lt;p&gt;&lt;a href="http://myitforum.com/cs2/blogs/forefrontsecurity/image_22D2B05E.png"&gt;&lt;img style="background-image:none;border-bottom:0px;border-left:0px;margin:0px;padding-left:0px;padding-right:0px;display:inline;border-top:0px;border-right:0px;padding-top:0px;" title="image" border="0" alt="image" src="http://myitforum.com/cs2/blogs/forefrontsecurity/image_thumb_485C2DBF.png" width="244" height="161" /&gt;&lt;/a&gt;&lt;/p&gt;  &lt;p&gt;As you can see on the above schema, we have to create a Claims Provider Trust on the LABIAM Federation Server, and add this Federation Server as a Trusted relying Party on the UAG.com Federation Server.&lt;/p&gt;  &lt;p&gt;&lt;a href="http://myitforum.com/cs2/blogs/forefrontsecurity/image_6732A19D.png"&gt;&lt;img style="background-image:none;border-bottom:0px;border-left:0px;margin:0px;padding-left:0px;padding-right:0px;display:inline;border-top:0px;border-right:0px;padding-top:0px;" title="image" border="0" alt="image" src="http://myitforum.com/cs2/blogs/forefrontsecurity/image_thumb_4A497CC8.png" width="244" height="48" /&gt;&lt;/a&gt;&lt;/p&gt;  &lt;p&gt;With the FederationMetadata URL, it is easy to add this provider&lt;/p&gt;  &lt;p&gt;&lt;a href="http://myitforum.com/cs2/blogs/forefrontsecurity/image_5E629951.png"&gt;&lt;img style="background-image:none;border-bottom:0px;border-left:0px;margin:0px;padding-left:0px;padding-right:0px;display:inline;border-top:0px;border-right:0px;padding-top:0px;" title="image" border="0" alt="image" src="http://myitforum.com/cs2/blogs/forefrontsecurity/image_thumb_68478ABC.png" width="213" height="244" /&gt;&lt;/a&gt;&lt;/p&gt;  &lt;p&gt;Add the necessary claims to the Provider (Windows Account Name, Role …)&lt;/p&gt;  &lt;p&gt;On the other side, create the Relying Party Trust, and accept the required claims.&lt;/p&gt;  &lt;p&gt;&lt;a href="http://myitforum.com/cs2/blogs/forefrontsecurity/image_54BA2B1B.png"&gt;&lt;img style="background-image:none;border-bottom:0px;border-left:0px;margin:0px;padding-left:0px;padding-right:0px;display:inline;border-top:0px;border-right:0px;padding-top:0px;" title="image" border="0" alt="image" src="http://myitforum.com/cs2/blogs/forefrontsecurity/image_thumb_7AAFDB71.png" width="244" height="49" /&gt;&lt;/a&gt;&lt;/p&gt;  &lt;p&gt;Now, when a user access the UAG Portal, he can choose his repository, and your Partner can access your publications.&amp;#160; &lt;/p&gt;  &lt;p&gt;&lt;a href="http://myitforum.com/cs2/blogs/forefrontsecurity/image_59BC68CA.png"&gt;&lt;img style="background-image:none;border-bottom:0px;border-left:0px;margin:0px;padding-left:0px;padding-right:0px;display:inline;border-top:0px;border-right:0px;padding-top:0px;" title="image" border="0" alt="image" src="http://myitforum.com/cs2/blogs/forefrontsecurity/image_thumb_1841B671.png" width="244" height="74" /&gt;&lt;/a&gt;&lt;/p&gt;        &lt;p&gt;Then you can filter the access to specific application, using the Role Type of Claims (developed in a previous article : &lt;a title="http://myitforum.com/cs2/blogs/forefrontsecurity/archive/2011/08/16/ad-fs-2-0-and-uag-set-authorization-on-application-in-uag-based-on-claims-roles.aspx" href="http://myitforum.com/cs2/blogs/forefrontsecurity/archive/2011/08/16/ad-fs-2-0-and-uag-set-authorization-on-application-in-uag-based-on-claims-roles.aspx"&gt;http://myitforum.com/cs2/blogs/forefrontsecurity/archive/2011/08/16/ad-fs-2-0-and-uag-set-authorization-on-application-in-uag-based-on-claims-roles.aspx&lt;/a&gt;)&lt;/p&gt;  &lt;p&gt;AD FS is a very great feature. No matter Network considerations, Active Directory Trust Relationships, just use HTTP(s) Exchange to Federate your Business Partners.&lt;/p&gt;  &lt;p align="right"&gt;&lt;strong&gt;Published by Olivier DETILLEUX&lt;/strong&gt;&lt;/p&gt;&lt;img src="http://myitforum.com/cs2/aggbug.aspx?PostID=158861" width="1" height="1"&gt;</description><category domain="http://myitforum.com/cs2/blogs/forefrontsecurity/archive/tags/Forefront+UAG/default.aspx">Forefront UAG</category><category domain="http://myitforum.com/cs2/blogs/forefrontsecurity/archive/tags/UAG/default.aspx">UAG</category><category domain="http://myitforum.com/cs2/blogs/forefrontsecurity/archive/tags/UAG+SP1/default.aspx">UAG SP1</category><category domain="http://myitforum.com/cs2/blogs/forefrontsecurity/archive/tags/Forefront+UAG+SP1/default.aspx">Forefront UAG SP1</category><category domain="http://myitforum.com/cs2/blogs/forefrontsecurity/archive/tags/ADFS/default.aspx">ADFS</category><category domain="http://myitforum.com/cs2/blogs/forefrontsecurity/archive/tags/ADFS+V2/default.aspx">ADFS V2</category><category domain="http://myitforum.com/cs2/blogs/forefrontsecurity/archive/tags/claims/default.aspx">claims</category><category domain="http://myitforum.com/cs2/blogs/forefrontsecurity/archive/tags/Federation/default.aspx">Federation</category><category domain="http://myitforum.com/cs2/blogs/forefrontsecurity/archive/tags/partner/default.aspx">partner</category></item><item><title>AD FS 2.0 and UAG : Set authorization on application in UAG based on Claims Roles</title><link>http://myitforum.com/cs2/blogs/forefrontsecurity/archive/2011/08/16/ad-fs-2-0-and-uag-set-authorization-on-application-in-uag-based-on-claims-roles.aspx</link><pubDate>Tue, 16 Aug 2011 07:12:57 GMT</pubDate><guid isPermaLink="false">8e8f7986-475c-475d-bdc9-a1b3a63b955b:158860</guid><dc:creator>forefrontsecurity</dc:creator><slash:comments>0</slash:comments><wfw:commentRss xmlns:wfw="http://wellformedweb.org/CommentAPI/">http://myitforum.com/cs2/blogs/forefrontsecurity/rsscomments.aspx?PostID=158860</wfw:commentRss><comments>http://myitforum.com/cs2/blogs/forefrontsecurity/archive/2011/08/16/ad-fs-2-0-and-uag-set-authorization-on-application-in-uag-based-on-claims-roles.aspx#comments</comments><description>&lt;p&gt;Hi all,&lt;/p&gt;  &lt;p&gt;AD FS 2.0 provide transparent authentication on the UAG Portal. Hicham and I have already deal with this great feature. Today, I will show how we can set authorization, based on claims, on the application published through UAG.&lt;/p&gt;  &lt;p&gt;With the regular Form Based Authentication against an Active Directory, it is easy to set authorization for an application : &lt;/p&gt;  &lt;p&gt;&lt;a href="http://myitforum.com/cs2/blogs/forefrontsecurity/image_0C4119AB.png"&gt;&lt;img style="background-image:none;border-bottom:0px;border-left:0px;margin:0px;padding-left:0px;padding-right:0px;display:inline;border-top:0px;border-right:0px;padding-top:0px;" title="image" border="0" alt="image" src="http://myitforum.com/cs2/blogs/forefrontsecurity/image_thumb_63C23796.png" width="197" height="244" /&gt;&lt;/a&gt;&lt;/p&gt;  &lt;p&gt;But with an ADFS authentication, how can we query Active Directory groups ? We have to enrich (add additional claims value) the SAML2 ticket with this information.&lt;/p&gt;  &lt;p&gt;To achieve that, it is pretty simple.&lt;/p&gt;  &lt;p&gt;Let’s assume that only the GGS_Director group can access the web application “Application”, and that James Kirk, as the Enterprise Director, is a member of this Active Directory group : &lt;/p&gt;  &lt;p&gt;&lt;a href="http://myitforum.com/cs2/blogs/forefrontsecurity/image_373907B0.png"&gt;&lt;img style="background-image:none;border-bottom:0px;border-left:0px;margin:0px;padding-left:0px;padding-right:0px;display:inline;border-top:0px;border-right:0px;padding-top:0px;" title="image" border="0" alt="image" src="http://myitforum.com/cs2/blogs/forefrontsecurity/image_thumb_6F0B4BD3.png" width="184" height="244" /&gt;&lt;/a&gt;&lt;/p&gt;  &lt;p&gt;To add claims value in a SAML ticket, we must ask the Claims Provider to search the value in Active Directory, and send this value to the Relying Party. &lt;/p&gt;  &lt;p&gt;On the Claims Provider (Active Directory), add a claims as a Role. In our case : If the user is a member of the GGS_Director group, then a GGS_Director as Role : &lt;/p&gt;  &lt;p&gt;&lt;a href="http://myitforum.com/cs2/blogs/forefrontsecurity/image_7479BC77.png"&gt;&lt;img style="background-image:none;border-bottom:0px;border-left:0px;margin:0px;padding-left:0px;padding-right:0px;display:inline;border-top:0px;border-right:0px;padding-top:0px;" title="image" border="0" alt="image" src="http://myitforum.com/cs2/blogs/forefrontsecurity/image_thumb_175A7E28.png" width="231" height="244" /&gt;&lt;/a&gt;&lt;/p&gt;  &lt;p&gt;For the relying party, just pass through this value&lt;/p&gt;  &lt;p&gt;&lt;a href="http://myitforum.com/cs2/blogs/forefrontsecurity/image_1615E549.png"&gt;&lt;img style="background-image:none;border-bottom:0px;border-left:0px;margin:0px;padding-left:0px;padding-right:0px;display:inline;border-top:0px;border-right:0px;padding-top:0px;" title="image" border="0" alt="image" src="http://myitforum.com/cs2/blogs/forefrontsecurity/image_thumb_29C2CEDD.png" width="231" height="244" /&gt;&lt;/a&gt;&lt;/p&gt;  &lt;p&gt;On the UAG Side, specify that only Owner of the GGS_Director Role can access the application.&lt;/p&gt;  &lt;p&gt;&lt;a href="http://myitforum.com/cs2/blogs/forefrontsecurity/image_3A5AC9CB.png"&gt;&lt;img style="background-image:none;border-bottom:0px;border-left:0px;margin:0px;padding-left:0px;padding-right:0px;display:inline;border-top:0px;border-right:0px;padding-top:0px;" title="image" border="0" alt="image" src="http://myitforum.com/cs2/blogs/forefrontsecurity/image_thumb_794C4A66.png" width="196" height="244" /&gt;&lt;/a&gt;&lt;/p&gt;      &lt;p&gt;Now, when James open the portal, he can see the application, as Janice Rand cannot.&lt;/p&gt;  &lt;p&gt;Easy, isn’t it ? &lt;/p&gt;  &lt;p&gt;But you can say that it is not very convenient, if we must define a rule for each group. &lt;/p&gt;  &lt;p&gt;You can also create a custom rule that query the Active Directory to return all groups that a user is directly member of.&lt;/p&gt;  &lt;p align="right"&gt;&lt;strong&gt;Published by Olivier DETILLEUX&lt;/strong&gt;&lt;/p&gt;&lt;img src="http://myitforum.com/cs2/aggbug.aspx?PostID=158860" width="1" height="1"&gt;</description><category domain="http://myitforum.com/cs2/blogs/forefrontsecurity/archive/tags/Forefront+UAG/default.aspx">Forefront UAG</category><category domain="http://myitforum.com/cs2/blogs/forefrontsecurity/archive/tags/UAG/default.aspx">UAG</category><category domain="http://myitforum.com/cs2/blogs/forefrontsecurity/archive/tags/UAG+SP1/default.aspx">UAG SP1</category><category domain="http://myitforum.com/cs2/blogs/forefrontsecurity/archive/tags/Forefront+UAG+SP1/default.aspx">Forefront UAG SP1</category><category domain="http://myitforum.com/cs2/blogs/forefrontsecurity/archive/tags/ADFS/default.aspx">ADFS</category><category domain="http://myitforum.com/cs2/blogs/forefrontsecurity/archive/tags/ADFS+V2/default.aspx">ADFS V2</category><category domain="http://myitforum.com/cs2/blogs/forefrontsecurity/archive/tags/Active+Diretory/default.aspx">Active Diretory</category><category domain="http://myitforum.com/cs2/blogs/forefrontsecurity/archive/tags/group/default.aspx">group</category><category domain="http://myitforum.com/cs2/blogs/forefrontsecurity/archive/tags/claims/default.aspx">claims</category></item><item><title>Authenticating to your network through your online Credentials</title><link>http://myitforum.com/cs2/blogs/forefrontsecurity/archive/2011/08/05/authenticating-to-your-network-through-your-online-credentials.aspx</link><pubDate>Fri, 05 Aug 2011 13:54:31 GMT</pubDate><guid isPermaLink="false">8e8f7986-475c-475d-bdc9-a1b3a63b955b:158746</guid><dc:creator>forefrontsecurity</dc:creator><slash:comments>0</slash:comments><wfw:commentRss xmlns:wfw="http://wellformedweb.org/CommentAPI/">http://myitforum.com/cs2/blogs/forefrontsecurity/rsscomments.aspx?PostID=158746</wfw:commentRss><comments>http://myitforum.com/cs2/blogs/forefrontsecurity/archive/2011/08/05/authenticating-to-your-network-through-your-online-credentials.aspx#comments</comments><description>&lt;p&gt;Now off to another subject: ADFS!&lt;/p&gt;  &lt;p&gt;Active Directory Federation service v2.0 is the newest trend. Using your Live ID or Google ID to Log into your domain, and access your domain resources is a great new topic that very exciting to work with.&lt;/p&gt;  &lt;p&gt;&lt;a href="http://myitforum.com/cs2/blogs/forefrontsecurity/clip_image002_71DECD69.jpg"&gt;&lt;img style="background-image:none;border-bottom:0px;border-left:0px;margin:0px;padding-left:0px;padding-right:0px;display:inline;border-top:0px;border-right:0px;padding-top:0px;" title="clip_image002" border="0" alt="clip_image002" src="http://myitforum.com/cs2/blogs/forefrontsecurity/clip_image002_thumb_346E68E2.jpg" width="244" height="161" /&gt;&lt;/a&gt;&lt;/p&gt;  &lt;p&gt;In this example I will show you how to use your Live ID to logon to your UAG server and then access your resources and application that way. I’ll add to that a small ADFS custom Store so that you can see the possibilities lying behind all of that.&lt;/p&gt;  &lt;p&gt;What you need to do that:&lt;/p&gt;  &lt;p&gt;· UAG 2010 SP1&lt;/p&gt;  &lt;p&gt;· ADFS 2.0&lt;/p&gt;  &lt;p&gt;· Domain Controller&lt;/p&gt;  &lt;p&gt;· Windows Azure Account&lt;/p&gt;  &lt;p&gt;· SQL DB&lt;/p&gt;  &lt;p&gt;Here is a small architecture design of what you could have:&lt;/p&gt;  &lt;p&gt;&lt;a href="http://myitforum.com/cs2/blogs/forefrontsecurity/clip_image004_68365F33.jpg"&gt;&lt;img style="background-image:none;border-bottom:0px;border-left:0px;margin:0px;padding-left:0px;padding-right:0px;display:inline;border-top:0px;border-right:0px;padding-top:0px;" title="clip_image004" border="0" alt="clip_image004" src="http://myitforum.com/cs2/blogs/forefrontsecurity/clip_image004_thumb_1F303D6D.jpg" width="244" height="197" /&gt;&lt;/a&gt;&lt;/p&gt;  &lt;p&gt;Let me explain what going on here:&lt;/p&gt;  &lt;p&gt;A user wants to access his corporate application; he goes to his UAG portal URL. UAG was configured with ADFS as an authentication method and redirects all users to the ADFS home page which asks the users about what authentication method they want to use.&lt;/p&gt;  &lt;p&gt;The user chooses Live ID and authentication to the UAG portal through his Hotmail or MSN account.&lt;/p&gt;  &lt;p&gt;Once on the portal he needs to access his resource, some technical stuff go on, ADFS turns the LiveID into something your domain might understand and UAG will map this info to a shadow account and through KCD will log you into your application ! Cool ain’t it?&lt;/p&gt;  &lt;p&gt;Now let’s see how to do that:&lt;/p&gt;  &lt;p&gt;First you need to have an ADFS server configured &lt;/p&gt;  &lt;p&gt;This is how I configured mine but you could have anything here&lt;/p&gt;  &lt;p&gt;&lt;a href="http://myitforum.com/cs2/blogs/forefrontsecurity/clip_image006_10195E93.jpg"&gt;&lt;img style="background-image:none;border-bottom:0px;border-left:0px;margin:0px;padding-left:0px;padding-right:0px;display:inline;border-top:0px;border-right:0px;padding-top:0px;" title="clip_image006" border="0" alt="clip_image006" src="http://myitforum.com/cs2/blogs/forefrontsecurity/clip_image006_thumb_0ACA77E2.jpg" width="222" height="244" /&gt;&lt;/a&gt;&lt;/p&gt;  &lt;p&gt;Next is to configure the ADFS trust with UAG as per my previous article: &lt;a href="http://myitforum.com/cs2/blogs/forefrontsecurity/archive/2011/01/07/uag-sp1-transparent-logon-with-adfs-v2.aspx"&gt;http://myitforum.com/cs2/blogs/forefrontsecurity/archive/2011/01/07/uag-sp1-transparent-logon-with-adfs-v2.aspx&lt;/a&gt;&lt;/p&gt;  &lt;p&gt;This first step will get you to the first milestone where you can logon to your UAG with ADFS.&lt;/p&gt;  &lt;p&gt;However until now ADFS was configured to get your SAML ticket info from Active Directory only.&lt;/p&gt;  &lt;p&gt;Let’s set up the link with other services such as Microsoft’s Live ID authentication.&lt;/p&gt;  &lt;p&gt;In ADFS it’s basically a new Claim provider trust that you’re adding:&lt;/p&gt;  &lt;p&gt;&lt;a href="http://myitforum.com/cs2/blogs/forefrontsecurity/clip_image008_429CBC05.jpg"&gt;&lt;img style="background-image:none;border-bottom:0px;border-left:0px;margin:0px;padding-left:0px;padding-right:0px;display:inline;border-top:0px;border-right:0px;padding-top:0px;" title="clip_image008" border="0" alt="clip_image008" src="http://myitforum.com/cs2/blogs/forefrontsecurity/clip_image008_thumb_3A38E6AE.jpg" width="244" height="61" /&gt;&lt;/a&gt;&lt;/p&gt;  &lt;p&gt;You then need to tell your claim rule to transmit the information that it gets from the claim provider as let’s say an account name.&lt;/p&gt;  &lt;p&gt;Technically this means that the SAML ticket will have the Live ID or Google ID you logon in as an account name attribute.&lt;/p&gt;  &lt;p&gt;&lt;a href="http://myitforum.com/cs2/blogs/forefrontsecurity/clip_image010_674DD37C.jpg"&gt;&lt;img style="background-image:none;border-bottom:0px;border-left:0px;margin:0px;padding-left:0px;padding-right:0px;display:inline;border-top:0px;border-right:0px;padding-top:0px;" title="clip_image010" border="0" alt="clip_image010" src="http://myitforum.com/cs2/blogs/forefrontsecurity/clip_image010_thumb_1EB3E4AB.jpg" width="244" height="152" /&gt;&lt;/a&gt;&lt;/p&gt;  &lt;p&gt;Now that the link is set between your UAG ADFS and Azure you need to tell the relaying party trust you created between your UAG and your ADFS server to transmit to UAG the information it got form the provider to the relying party (in that case it’s UAG).&lt;/p&gt;  &lt;p&gt;That can be done by editing the relying party claim rule and telling it to transmit to UAG an account name, or in that case create a custom rule like I did : &lt;/p&gt;  &lt;p&gt;In my ADFS console I had added an SQL Database to which I added each user’s Live ID and mapped it to an Active Directory account (or group).this can of course be any data storage system (Active Directory, Oracle DB).&lt;/p&gt;  &lt;p&gt;&lt;a href="http://myitforum.com/cs2/blogs/forefrontsecurity/clip_image012_6F81F913.jpg"&gt;&lt;img style="background-image:none;border-bottom:0px;border-left:0px;margin:0px;padding-left:0px;padding-right:0px;display:inline;border-top:0px;border-right:0px;padding-top:0px;" title="clip_image012" border="0" alt="clip_image012" src="http://myitforum.com/cs2/blogs/forefrontsecurity/clip_image012_thumb_7C0FA62F.jpg" width="244" height="147" /&gt;&lt;/a&gt;&lt;/p&gt;  &lt;p&gt;What we’ll do here is access the relaying party trust we created between ADFS and UAG and write down a custom rule that will give us the AD account to which the live ID is mapped!&lt;/p&gt;  &lt;p&gt;Check it out:&lt;/p&gt;  &lt;p&gt;Edit your claim rule and create a new Custom claims rule:&lt;/p&gt;  &lt;p&gt;&lt;a href="http://myitforum.com/cs2/blogs/forefrontsecurity/clip_image014_741803CD.jpg"&gt;&lt;img style="background-image:none;border-bottom:0px;border-left:0px;margin:0px;padding-left:0px;padding-right:0px;display:inline;border-top:0px;border-right:0px;padding-top:0px;" title="clip_image014" border="0" alt="clip_image014" src="http://myitforum.com/cs2/blogs/forefrontsecurity/clip_image014_thumb_45524B2B.jpg" width="244" height="29" /&gt;&lt;/a&gt;&lt;/p&gt;  &lt;p&gt;This rule will look like that:&lt;/p&gt;  &lt;p&gt;c:[Type == &amp;quot;http://schemas.xmlsoap.org/ws/2005/05/identity/claims/upn&amp;quot;] =&amp;gt; issue(store = &amp;quot;SQL Attribute Store&amp;quot;, types = (&amp;quot;http://schemas.microsoft.com/ws/2008/06/identity/claims/role&amp;quot;), query = &amp;quot;SELECT Role FROM URT WHERE UserName={0}&amp;quot;, param = c.Value);&lt;/p&gt;  &lt;p&gt;This rule will access the SQL DB store you created and get the role from the table where username = you live ID account.&lt;/p&gt;  &lt;p&gt;When you access your UAG portal you will be given the choice to logon with your usual Active Directory ADFS SAML ticket or with your windows Azure à live ID account!&lt;/p&gt;  &lt;p&gt;Here is what it looks like (note that this page is completely customizable)&lt;/p&gt;  &lt;p&gt;You first get a choice between your usual active directory Provider and now you have a new one: AZURE!&lt;/p&gt;  &lt;p&gt;&lt;a href="http://myitforum.com/cs2/blogs/forefrontsecurity/clip_image016_726737F9.jpg"&gt;&lt;img style="background-image:none;border-bottom:0px;border-left:0px;margin:0px;padding-left:0px;padding-right:0px;display:inline;border-top:0px;border-right:0px;padding-top:0px;" title="clip_image016" border="0" alt="clip_image016" src="http://myitforum.com/cs2/blogs/forefrontsecurity/clip_image016_thumb_3F2AFE90.jpg" width="244" height="107" /&gt;&lt;/a&gt;&lt;/p&gt;  &lt;p&gt;And once you select azure:&lt;/p&gt;  &lt;p&gt;&lt;a href="http://myitforum.com/cs2/blogs/forefrontsecurity/clip_image018_106545EE.jpg"&gt;&lt;img style="background-image:none;border-bottom:0px;border-left:0px;margin:0px;padding-left:0px;padding-right:0px;display:inline;border-top:0px;border-right:0px;padding-top:0px;" title="clip_image018" border="0" alt="clip_image018" src="http://myitforum.com/cs2/blogs/forefrontsecurity/clip_image018_thumb_4F56C689.jpg" width="240" height="244" /&gt;&lt;/a&gt;&lt;/p&gt;  &lt;p&gt;Once you enter your Live ID credentials ADFS will process the information and send it to the UAG portal and you will be logged in as anything you set in your rule J in my case the group it retrieved from my sql database !&lt;/p&gt;  &lt;p&gt;However this account will allow you to access the portal only and unless your application is claims aware, you will need to map this account to an active directory shadow account to be able to access non claims aware applications.&lt;/p&gt;  &lt;p&gt;And now let’s configure your application to turn your SAML information intro a Kerberos Ticket:&lt;/p&gt;  &lt;p&gt;Access the application you to give access to and go the authentication TAB:&lt;/p&gt;  &lt;p&gt;&lt;a href="http://myitforum.com/cs2/blogs/forefrontsecurity/clip_image020_0E484725.jpg"&gt;&lt;img style="background-image:none;border-bottom:0px;border-left:0px;margin:0px;padding-left:0px;padding-right:0px;display:inline;border-top:0px;border-right:0px;padding-top:0px;" title="clip_image020" border="0" alt="clip_image020" src="http://myitforum.com/cs2/blogs/forefrontsecurity/clip_image020_thumb_3EFB4ED0.jpg" width="163" height="244" /&gt;&lt;/a&gt;&lt;/p&gt;  &lt;p&gt;Choose the KCD option and choose the claim type value to turn into a Kerberos ticket: I chose the name since this is where my info is stored in my SAML ticket.&lt;/p&gt;  &lt;p&gt;The last part is to enable KCD on the application:&lt;/p&gt;  &lt;p&gt;UAG will create an LDIF file for you through this menu&lt;/p&gt;  &lt;p&gt;&lt;a href="http://myitforum.com/cs2/blogs/forefrontsecurity/clip_image022_7DECCF6B.jpg"&gt;&lt;img style="background-image:none;border-bottom:0px;border-left:0px;padding-left:0px;padding-right:0px;display:inline;border-top:0px;border-right:0px;padding-top:0px;" title="clip_image022" border="0" alt="clip_image022" src="http://myitforum.com/cs2/blogs/forefrontsecurity/clip_image022_thumb_6B37D5B4.jpg" width="244" height="26" /&gt;&lt;/a&gt;&lt;/p&gt;  &lt;p&gt;Apply this file to your UAG computer domain and you will have enabled KCD.&lt;/p&gt;  &lt;p&gt;And now you can access you application by using your windows Live ID account !&lt;/p&gt;  &lt;p&gt;Very cool!&lt;/p&gt;  &lt;p&gt;Cheers &lt;/p&gt;  &lt;p&gt;&lt;b&gt;Published by Hicham Bardawil&lt;/b&gt;&lt;/p&gt;&lt;img src="http://myitforum.com/cs2/aggbug.aspx?PostID=158746" width="1" height="1"&gt;</description><category domain="http://myitforum.com/cs2/blogs/forefrontsecurity/archive/tags/Forefront/default.aspx">Forefront</category><category domain="http://myitforum.com/cs2/blogs/forefrontsecurity/archive/tags/Forefront+UAG/default.aspx">Forefront UAG</category><category domain="http://myitforum.com/cs2/blogs/forefrontsecurity/archive/tags/UAG/default.aspx">UAG</category><category domain="http://myitforum.com/cs2/blogs/forefrontsecurity/archive/tags/ADFS/default.aspx">ADFS</category><category domain="http://myitforum.com/cs2/blogs/forefrontsecurity/archive/tags/Unified+Access+Gateway/default.aspx">Unified Access Gateway</category><category domain="http://myitforum.com/cs2/blogs/forefrontsecurity/archive/tags/ADFS+V2/default.aspx">ADFS V2</category><category domain="http://myitforum.com/cs2/blogs/forefrontsecurity/archive/tags/Active+Diretory/default.aspx">Active Diretory</category><category domain="http://myitforum.com/cs2/blogs/forefrontsecurity/archive/tags/SQL/default.aspx">SQL</category></item><item><title>Want to display a disclaimer when accessing your UAG Portal Home Page ?</title><link>http://myitforum.com/cs2/blogs/forefrontsecurity/archive/2011/06/15/want-to-display-a-disclaimer-when-accessing-your-uag-portal-home-page.aspx</link><pubDate>Wed, 15 Jun 2011 15:08:10 GMT</pubDate><guid isPermaLink="false">8e8f7986-475c-475d-bdc9-a1b3a63b955b:158031</guid><dc:creator>forefrontsecurity</dc:creator><slash:comments>0</slash:comments><wfw:commentRss xmlns:wfw="http://wellformedweb.org/CommentAPI/">http://myitforum.com/cs2/blogs/forefrontsecurity/rsscomments.aspx?PostID=158031</wfw:commentRss><comments>http://myitforum.com/cs2/blogs/forefrontsecurity/archive/2011/06/15/want-to-display-a-disclaimer-when-accessing-your-uag-portal-home-page.aspx#comments</comments><description>&lt;p&gt;This is a request of one of my customer. Can I show a popup containing a disclaimer after the authentication on the UAG Portal ? The answer is yes of course, because you can do whatever you want with UAG &lt;img style="border-bottom-style:none;border-left-style:none;border-top-style:none;border-right-style:none;" class="wlEmoticon wlEmoticon-winkingsmile" alt="Clignement d&amp;#39;œil" src="http://myitforum.com/cs2/blogs/forefrontsecurity/wlEmoticon-winkingsmile_6343DE5C.png" /&gt;. Here is the way I have solved this request.&lt;/p&gt;  &lt;p&gt;My idea is to show the popup during the access to the portal HomePage. To add some content to the portal homepage, you need to customize the standard.master file.&lt;/p&gt;  &lt;ul&gt;   &lt;li&gt;Create a dedicated html page (for example disclaimer.html) in the von\PortalHomePage\CustomUpdate directory. This file will contain the text of your disclaimer. &lt;em&gt;“The information contained in this Portal is the property of …”.&lt;/em&gt; You can also add an “OK” button or other feature. &lt;/li&gt; &lt;/ul&gt;  &lt;p&gt;&lt;a href="http://myitforum.com/cs2/blogs/forefrontsecurity/image_29C0CE65.png"&gt;&lt;img style="background-image:none;border-right-width:0px;margin:0px;padding-left:0px;padding-right:0px;display:inline;border-top-width:0px;border-bottom-width:0px;border-left-width:0px;padding-top:0px;" title="image" border="0" alt="image" src="http://myitforum.com/cs2/blogs/forefrontsecurity/image_thumb_08CD5BBE.png" width="244" height="195" /&gt;&lt;/a&gt;&lt;/p&gt;  &lt;ul&gt;   &lt;li&gt;Copy the &lt;strong&gt;standard.master&lt;/strong&gt; file from the von\PortalHomePage to the von\PortalHomePage\CustomUpdate directory. &lt;/li&gt;    &lt;li&gt;At the end of the file, in the ResizeContent() function, add the following line : &lt;/li&gt; &lt;/ul&gt;  &lt;blockquote&gt;   &lt;p&gt;&lt;em&gt;window.open(‘CustomUpdate/disclaimer.html’, ‘disclaimer’)&lt;/em&gt;&lt;/p&gt; &lt;/blockquote&gt;  &lt;p&gt;&lt;a href="http://myitforum.com/cs2/blogs/forefrontsecurity/image_4EDE18D1.png"&gt;&lt;img style="background-image:none;border-right-width:0px;margin:0px;padding-left:0px;padding-right:0px;display:inline;border-top-width:0px;border-bottom-width:0px;border-left-width:0px;padding-top:0px;" title="image" border="0" alt="image" src="http://myitforum.com/cs2/blogs/forefrontsecurity/image_thumb_4D997FF2.png" width="244" height="127" /&gt;&lt;/a&gt;&lt;/p&gt;  &lt;p&gt;Don’t forget to add a specific URL Set for your disclaimer.html page : &lt;/p&gt;  &lt;p&gt;&lt;a href="http://myitforum.com/cs2/blogs/forefrontsecurity/image_702C502C.png"&gt;&lt;img style="background-image:none;border-bottom:0px;border-left:0px;margin:0px;padding-left:0px;padding-right:0px;display:inline;border-top:0px;border-right:0px;padding-top:0px;" title="image" border="0" alt="image" src="http://myitforum.com/cs2/blogs/forefrontsecurity/image_thumb_11C878FE.png" width="244" height="212" /&gt;&lt;/a&gt;&lt;/p&gt;  &lt;p&gt;The regular expression is something like that, depending of your URL : &lt;/p&gt;  &lt;blockquote&gt;   &lt;p&gt;/(secure)?[^/]+portalhomepage/(customupdate/)?(disclaimer\.html)&lt;/p&gt; &lt;/blockquote&gt;  &lt;p align="right"&gt;&lt;strong&gt;Published by Olivier DETILLEUX&lt;/strong&gt;&lt;/p&gt;&lt;img src="http://myitforum.com/cs2/aggbug.aspx?PostID=158031" width="1" height="1"&gt;</description><category domain="http://myitforum.com/cs2/blogs/forefrontsecurity/archive/tags/Forefront/default.aspx">Forefront</category><category domain="http://myitforum.com/cs2/blogs/forefrontsecurity/archive/tags/Forefront+UAG/default.aspx">Forefront UAG</category><category domain="http://myitforum.com/cs2/blogs/forefrontsecurity/archive/tags/UAG/default.aspx">UAG</category><category domain="http://myitforum.com/cs2/blogs/forefrontsecurity/archive/tags/Disclaimer/default.aspx">Disclaimer</category></item><item><title>UAG and ADFS v2.0 : Transparent authentication inside and outside of your corporate network</title><link>http://myitforum.com/cs2/blogs/forefrontsecurity/archive/2011/06/15/uag-and-adfs-v2-0-transparent-authentication-inside-and-outside-of-your-corporate-network.aspx</link><pubDate>Wed, 15 Jun 2011 12:08:33 GMT</pubDate><guid isPermaLink="false">8e8f7986-475c-475d-bdc9-a1b3a63b955b:158024</guid><dc:creator>forefrontsecurity</dc:creator><slash:comments>0</slash:comments><wfw:commentRss xmlns:wfw="http://wellformedweb.org/CommentAPI/">http://myitforum.com/cs2/blogs/forefrontsecurity/rsscomments.aspx?PostID=158024</wfw:commentRss><comments>http://myitforum.com/cs2/blogs/forefrontsecurity/archive/2011/06/15/uag-and-adfs-v2-0-transparent-authentication-inside-and-outside-of-your-corporate-network.aspx#comments</comments><description>&lt;p&gt;My colleague Hicham has already write about the implementation of the transparent logon against the UAG portal using ADFS v2.0 and UAG SP1. Have a look here : &lt;a title="http://myitforum.com/cs2/blogs/forefrontsecurity/archive/2011/01/07/uag-sp1-transparent-logon-with-adfs-v2.aspx" href="http://myitforum.com/cs2/blogs/forefrontsecurity/archive/2011/01/07/uag-sp1-transparent-logon-with-adfs-v2.aspx"&gt;http://myitforum.com/cs2/blogs/forefrontsecurity/archive/2011/01/07/uag-sp1-transparent-logon-with-adfs-v2.aspx&lt;/a&gt;&lt;/p&gt;  &lt;p&gt;This scenario is well when your are inside the intranet. But what happened when you are outside your corporate network ? Does this transparent authentication always work ? And what happens if I try to connect from a non corporate computer (home workstation for example) ? &lt;/p&gt;  &lt;p&gt;By design, it is not working. You can only have a transparent logon from the inside of your corporate network, when you are using a corporate workstation. To do that, you have to &lt;strong&gt;add the URL of your ADFS logon page to the local intranet security zone&lt;/strong&gt;.&lt;/p&gt;  &lt;p&gt;&lt;a href="http://myitforum.com/cs2/blogs/forefrontsecurity/image_58F24638.png"&gt;&lt;img style="background-image:none;border-bottom:0px;border-left:0px;margin:0px;padding-left:0px;padding-right:0px;display:inline;border-top:0px;border-right:0px;padding-top:0px;" title="image" border="0" alt="image" src="http://myitforum.com/cs2/blogs/forefrontsecurity/image_thumb_3EB1DD14.png" width="244" height="243" /&gt;&lt;/a&gt;&lt;/p&gt;  &lt;p&gt;When you are outside with your workstation, you are experiencing this issue : Nothing happens, but a blank page. If you make a trace with httpWatch, you can see the 401 request, but no response from the web browser.&lt;/p&gt;  &lt;p&gt;&lt;a href="http://myitforum.com/cs2/blogs/forefrontsecurity/image_32AFECE0.png"&gt;&lt;img style="background-image:none;border-bottom:0px;border-left:0px;padding-left:0px;padding-right:0px;display:inline;border-top:0px;border-right:0px;padding-top:0px;" title="image" border="0" alt="image" src="http://myitforum.com/cs2/blogs/forefrontsecurity/image_thumb_4347E7CE.png" width="244" height="94" /&gt;&lt;/a&gt;&lt;/p&gt;  &lt;p&gt;The way to solve this problem is to &lt;strong&gt;change the order of the providers on the LS site of the ADFS server&lt;/strong&gt; : &lt;/p&gt;  &lt;p&gt;&lt;a href="http://myitforum.com/cs2/blogs/forefrontsecurity/image_0958A4E2.png"&gt;&lt;img style="background-image:none;border-bottom:0px;border-left:0px;margin:0px;padding-left:0px;padding-right:0px;display:inline;border-top:0px;border-right:0px;padding-top:0px;" title="image" border="0" alt="image" src="http://myitforum.com/cs2/blogs/forefrontsecurity/image_thumb_67F8FF45.png" width="244" height="162" /&gt;&lt;/a&gt;&lt;/p&gt;      &lt;p&gt;&lt;u&gt;To summary :&lt;/u&gt; &lt;/p&gt;  &lt;ul&gt;   &lt;li&gt;Add your adfs url to the local intranet zone&lt;/li&gt;    &lt;li&gt;Change the order of the providers to set NTLM as first provider&lt;/li&gt; &lt;/ul&gt;  &lt;p&gt;You can now authenticate transparently inside and outside your network with a corporate workstation. During logon from a non corporate workstation, you will be prompted to authenticate.&lt;/p&gt;  &lt;p align="right"&gt;&lt;strong&gt;Published by Olivier DETILLEUX&lt;/strong&gt;&lt;/p&gt;&lt;img src="http://myitforum.com/cs2/aggbug.aspx?PostID=158024" width="1" height="1"&gt;</description><category domain="http://myitforum.com/cs2/blogs/forefrontsecurity/archive/tags/Forefront+UAG/default.aspx">Forefront UAG</category><category domain="http://myitforum.com/cs2/blogs/forefrontsecurity/archive/tags/Single+Sign-in/default.aspx">Single Sign-in</category><category domain="http://myitforum.com/cs2/blogs/forefrontsecurity/archive/tags/SSO/default.aspx">SSO</category><category domain="http://myitforum.com/cs2/blogs/forefrontsecurity/archive/tags/UAG/default.aspx">UAG</category><category domain="http://myitforum.com/cs2/blogs/forefrontsecurity/archive/tags/UAG+SP1/default.aspx">UAG SP1</category><category domain="http://myitforum.com/cs2/blogs/forefrontsecurity/archive/tags/Forefront+UAG+SP1/default.aspx">Forefront UAG SP1</category><category domain="http://myitforum.com/cs2/blogs/forefrontsecurity/archive/tags/ADFS/default.aspx">ADFS</category><category domain="http://myitforum.com/cs2/blogs/forefrontsecurity/archive/tags/ADFS+V2/default.aspx">ADFS V2</category><category domain="http://myitforum.com/cs2/blogs/forefrontsecurity/archive/tags/transparent+logon/default.aspx">transparent logon</category></item><item><title>Global Out-Of-The-Box Rules Troubleshooting</title><link>http://myitforum.com/cs2/blogs/forefrontsecurity/archive/2011/04/08/global-out-of-the-box-rules-troubleshooting.aspx</link><pubDate>Fri, 08 Apr 2011 08:13:46 GMT</pubDate><guid isPermaLink="false">8e8f7986-475c-475d-bdc9-a1b3a63b955b:156467</guid><dc:creator>forefrontsecurity</dc:creator><slash:comments>0</slash:comments><wfw:commentRss xmlns:wfw="http://wellformedweb.org/CommentAPI/">http://myitforum.com/cs2/blogs/forefrontsecurity/rsscomments.aspx?PostID=156467</wfw:commentRss><comments>http://myitforum.com/cs2/blogs/forefrontsecurity/archive/2011/04/08/global-out-of-the-box-rules-troubleshooting.aspx#comments</comments><description>&lt;p&gt;Hi all,&lt;/p&gt;  &lt;p&gt;This morning, I wanted to download a pdf file from our website, published with Forefront UAG. The link to the pdf is the following : &lt;/p&gt;  &lt;p&gt;&lt;a href="http://www.vnext.fr/vapps/ci/Documents/UAG%20Mobile%20Portal/[vNext]%20UAG%20Mobile%20Portal.pdf"&gt;http://www.vnext.fr/vapps/ci/Documents/UAG%20Mobile%20Portal/[vNext]%20UAG%20Mobile%20Portal.pdf&lt;/a&gt;&lt;/p&gt;  &lt;p&gt;I was very disappointing to get an error like “&lt;font color="#ff0000"&gt;You have attempted to access a restricted. The URL is blocked by on or more Forefront UAG out-of-the-box rules&lt;/font&gt;”.&lt;/p&gt;  &lt;p&gt;I check the event monitor of the UAG Server, and I see this message : &lt;/p&gt;  &lt;p&gt;&lt;font color="#ff0000"&gt;Global Out-Of-The-Box Rules - The error code is illegal character – ([).&lt;/font&gt;&lt;/p&gt;  &lt;p&gt;It seems that the “[“ character is not allowed. To fix this issue, you have to add this character to the list of the “legal character” for your website using the URL Inspection tab of the Trunk Configuration panel.&lt;/p&gt;  &lt;p&gt;&lt;a href="http://myitforum.com/cs2/blogs/forefrontsecurity/image_18D4988C.png"&gt;&lt;img style="background-image:none;border-bottom:0px;border-left:0px;padding-left:0px;padding-right:0px;display:inline;border-top:0px;border-right:0px;padding-top:0px;" title="image" border="0" alt="image" src="http://myitforum.com/cs2/blogs/forefrontsecurity/image_thumb_5E7922AA.png" width="244" height="212" /&gt;&lt;/a&gt;&lt;/p&gt;  &lt;p align="right"&gt;&lt;strong&gt;Published by Olivier DETILLEUX&lt;/strong&gt;&lt;/p&gt;&lt;img src="http://myitforum.com/cs2/aggbug.aspx?PostID=156467" width="1" height="1"&gt;</description><category domain="http://myitforum.com/cs2/blogs/forefrontsecurity/archive/tags/Forefront+UAG/default.aspx">Forefront UAG</category><category domain="http://myitforum.com/cs2/blogs/forefrontsecurity/archive/tags/Troubleshooting/default.aspx">Troubleshooting</category><category domain="http://myitforum.com/cs2/blogs/forefrontsecurity/archive/tags/UAG/default.aspx">UAG</category><category domain="http://myitforum.com/cs2/blogs/forefrontsecurity/archive/tags/URL+Inspection/default.aspx">URL Inspection</category><category domain="http://myitforum.com/cs2/blogs/forefrontsecurity/archive/tags/Out-Of-The-Box+rules/default.aspx">Out-Of-The-Box rules</category></item><item><title>How to use your corporate proxy when you are connected with DirectAccess ?</title><link>http://myitforum.com/cs2/blogs/forefrontsecurity/archive/2011/03/16/how-to-use-your-corporate-proxy-when-you-are-connected-with-directaccess.aspx</link><pubDate>Tue, 15 Mar 2011 22:53:15 GMT</pubDate><guid isPermaLink="false">8e8f7986-475c-475d-bdc9-a1b3a63b955b:155718</guid><dc:creator>forefrontsecurity</dc:creator><slash:comments>0</slash:comments><wfw:commentRss xmlns:wfw="http://wellformedweb.org/CommentAPI/">http://myitforum.com/cs2/blogs/forefrontsecurity/rsscomments.aspx?PostID=155718</wfw:commentRss><comments>http://myitforum.com/cs2/blogs/forefrontsecurity/archive/2011/03/16/how-to-use-your-corporate-proxy-when-you-are-connected-with-directaccess.aspx#comments</comments><description>&lt;p&gt;Most of our customers wants to force their users to use the internal proxy when they are connected to the corporate network through DirectAccess.&lt;/p&gt;  &lt;h3&gt;Force Tunneling&lt;/h3&gt;  &lt;p&gt;There are different ways to provide this service. The first one is the “force tunneling” option. With this option activate, all the traffic is routed inside the corporate network (excepted local ip addresses). This UAG SP1, configuring Force Tunneling is very easy, as you can see with the following print screens.&lt;/p&gt;  &lt;p&gt;Activate the force tunneling option : &lt;/p&gt;  &lt;p&gt;&lt;a href="http://myitforum.com/cs2/blogs/forefrontsecurity/image_7F9EB144.png"&gt;&lt;img style="background-image:none;border-right-width:0px;margin:0px;padding-left:0px;padding-right:0px;display:inline;border-top-width:0px;border-bottom-width:0px;border-left-width:0px;padding-top:0px;" title="image" border="0" alt="image" src="http://myitforum.com/cs2/blogs/forefrontsecurity/image_thumb_0AE7C582.png" width="244" height="154" /&gt;&lt;/a&gt;&lt;/p&gt;  &lt;p&gt;Specify the proxy server : &lt;/p&gt;  &lt;p&gt;&lt;a href="http://myitforum.com/cs2/blogs/forefrontsecurity/image_508C4FA0.png"&gt;&lt;img style="background-image:none;border-right-width:0px;margin:0px;padding-left:0px;padding-right:0px;display:inline;border-top-width:0px;border-bottom-width:0px;border-left-width:0px;padding-top:0px;" title="image" border="0" alt="image" src="http://myitforum.com/cs2/blogs/forefrontsecurity/image_thumb_5998DB21.png" width="244" height="155" /&gt;&lt;/a&gt;&lt;/p&gt;  &lt;p&gt;An that’s it. There are benefits and disadvantage to activate force tunneling. Have a look on this article by the Edge Man (Tom Shinder) : &lt;a href="http://blogs.technet.com/b/tomshinder/archive/2010/03/30/more-on-directaccess-split-tunneling-and-force-tunneling.aspx" target="_blank"&gt;More on DirectAccess Split Tunneling and Force Tunneling&lt;/a&gt;&lt;/p&gt;  &lt;p&gt;What we can retain is : &lt;/p&gt;  &lt;ul&gt;   &lt;li&gt;When Force Tunneling is enabled, all traffic is sent over the DA client tunnel using the IP-HTTPS protocol, but IP-HTTPS is the slowest transition technology protocol for DA &lt;/li&gt;    &lt;li&gt;When Force Tunneling is enabled, user cannot use the “local name resolution” option. &lt;/li&gt; &lt;/ul&gt;  &lt;p&gt;So, I found that this not the right think to do if you only want to route web traffic through the corporate proxy.&lt;/p&gt;  &lt;h3&gt;Automatic Proxy Configuration Script&lt;/h3&gt;  &lt;p&gt;Let’s say that your corporate has a Forefront TMG proxy. You can use the automatic proxy configuration script provided by TMG to configure your clients when they are inside the company. This script is automatically created during TMG configuration. The default URL is : &lt;a href="http://proxy.vnext.lab:8080/array.dll?Get.Routing.Script"&gt;http://proxy.vnext.lab:8080/array.dll?Get.Routing.Script&lt;/a&gt;.&lt;/p&gt;  &lt;p&gt;In order to configure your clients, you use a Group Policy to force the proxy configuration. But when the users come back home, they say that internet isn’t working. The reason is that this script return the static ipv4 address of the proxy to the browser when there is a request. You can that see in the following capture. The ipv4 address of my proxy is 192.168.1.10, and the local ipv4 address of my DA client 192.168.100.101. Of course, the remote ipv4 address is unreachable.&lt;/p&gt;  &lt;p&gt;&lt;a href="http://myitforum.com/cs2/blogs/forefrontsecurity/image_1F3D6540.png"&gt;&lt;img style="background-image:none;border-right-width:0px;margin:0px;padding-left:0px;padding-right:0px;display:inline;border-top-width:0px;border-bottom-width:0px;border-left-width:0px;padding-top:0px;" title="image" border="0" alt="image" src="http://myitforum.com/cs2/blogs/forefrontsecurity/image_thumb_3A460E81.png" width="244" height="64" /&gt;&lt;/a&gt;&lt;/p&gt;  &lt;p&gt;Have a look inside the script. Proxy list is build with the ipv4 address : &lt;/p&gt;  &lt;p&gt;&lt;a href="http://myitforum.com/cs2/blogs/forefrontsecurity/image_46D3BB9D.png"&gt;&lt;img style="background-image:none;border-right-width:0px;margin:0px;padding-left:0px;padding-right:0px;display:inline;border-top-width:0px;border-bottom-width:0px;border-left-width:0px;padding-top:0px;" title="image" border="0" alt="image" src="http://myitforum.com/cs2/blogs/forefrontsecurity/image_thumb_2F59076C.png" width="244" height="110" /&gt;&lt;/a&gt;&lt;/p&gt;  &lt;p&gt;A workaround is to create you own proxy.pac. In this script, put the proxy dns name instead of the ipv4 address. Forefront TMG doesn&amp;#39;t support ipv6 for the moment. But if the internal network card as an ipv6 address, you can also return this ipv6 address. You can add some conditions (for example the source Ip) to return different addresses. But my advise is : When you are using DirectAccess, always use full qualified domain name. UAG will translate this dns name into an ipv6 address.&lt;/p&gt;  &lt;p&gt;With the automatic configuration script you can : &lt;/p&gt;  &lt;ul&gt;   &lt;li&gt;Force the configuration of the proxy with a proxy.pac for DirectAccess users. Whatever they are inside or outside the network, it will be working. &lt;/li&gt;    &lt;li&gt;DA Clients are still using teredo or 6to4 when it’s possible &lt;/li&gt;    &lt;li&gt;Users can use “local name resolution” if the DA server is down. Therefore, the proxy is unreachable. If the proxy is unreachable, the browser switch to direct connection (no proxy). &lt;/li&gt; &lt;/ul&gt;  &lt;h3&gt;The WPAD entry and wpad.dat file&lt;/h3&gt;  &lt;p&gt;You can also use your DNS to store the address of the proxy as a WPAD entry. Don’t forget to unblock this kind of entry in dns (dnscmd /config /globalqueryblocklist), and remember that you can only request the wpad server which publish the wpad.dat file on tcp port 80. You cannot set the 8080 port for example with the dns entry.&lt;/p&gt;  &lt;p&gt;Be careful, have a look inside the wpad.dat file. You can also find some ipv4 entry : &lt;/p&gt;  &lt;p&gt;&lt;a href="http://myitforum.com/cs2/blogs/forefrontsecurity/image_1DB820C7.png"&gt;&lt;img style="background-image:none;border-bottom:0px;border-left:0px;margin:0px;padding-left:0px;padding-right:0px;display:inline;border-top:0px;border-right:0px;padding-top:0px;" title="image" border="0" alt="image" src="http://myitforum.com/cs2/blogs/forefrontsecurity/image_thumb_454E7724.png" width="244" height="219" /&gt;&lt;/a&gt;&lt;/p&gt;  &lt;h3&gt;And if you don’t want to force the proxy ?&lt;/h3&gt;  &lt;p&gt;Let’s assume that you want to force the use of the proxy for the users when they are inside the network, but not when they are outside, connected with DirectAccess. I think that the best way is to use WPAD entry within DHCP. &lt;/p&gt;  &lt;p&gt;An other way is to use the WPAD entry in the DNS, and add an exception in the NRPT for wpad.vnext.lab. Thanks to Tom Shinder for this nice idea &lt;img style="border-bottom-style:none;border-left-style:none;border-top-style:none;border-right-style:none;" class="wlEmoticon wlEmoticon-smile" alt="Sourire" src="http://myitforum.com/cs2/blogs/forefrontsecurity/wlEmoticon-smile_7D20BB47.png" /&gt;&lt;/p&gt;  &lt;p align="right"&gt;&lt;strong&gt;Published by Olivier DETILLEUX&lt;/strong&gt;&lt;/p&gt;&lt;img src="http://myitforum.com/cs2/aggbug.aspx?PostID=155718" width="1" height="1"&gt;</description><category domain="http://myitforum.com/cs2/blogs/forefrontsecurity/archive/tags/Forefront+UAG/default.aspx">Forefront UAG</category><category domain="http://myitforum.com/cs2/blogs/forefrontsecurity/archive/tags/Forefront+TMG/default.aspx">Forefront TMG</category><category domain="http://myitforum.com/cs2/blogs/forefrontsecurity/archive/tags/DirectAccess/default.aspx">DirectAccess</category></item><item><title>UAG, FIM and an encrypted SQL repository–part 2</title><link>http://myitforum.com/cs2/blogs/forefrontsecurity/archive/2011/02/23/uag-fim-and-an-encrypted-sql-repository-part-2.aspx</link><pubDate>Wed, 23 Feb 2011 10:39:56 GMT</pubDate><guid isPermaLink="false">8e8f7986-475c-475d-bdc9-a1b3a63b955b:154639</guid><dc:creator>forefrontsecurity</dc:creator><slash:comments>0</slash:comments><wfw:commentRss xmlns:wfw="http://wellformedweb.org/CommentAPI/">http://myitforum.com/cs2/blogs/forefrontsecurity/rsscomments.aspx?PostID=154639</wfw:commentRss><comments>http://myitforum.com/cs2/blogs/forefrontsecurity/archive/2011/02/23/uag-fim-and-an-encrypted-sql-repository-part-2.aspx#comments</comments><description>&lt;p&gt;Hi all,&lt;/p&gt;  &lt;p&gt;In the previous post, we have seen how put an encrypted value in an SQL database with FIM Password Management. &lt;/p&gt;  &lt;p&gt;We now want to :&lt;/p&gt;  &lt;ul&gt;   &lt;li&gt;Connect to the SQL database with UAG&lt;/li&gt;    &lt;li&gt;Secure this connection&lt;/li&gt;    &lt;li&gt;Get the encrypted password&lt;/li&gt;    &lt;li&gt;Decrypt the password&lt;/li&gt;    &lt;li&gt;Add the password to the user session&lt;/li&gt; &lt;/ul&gt;  &lt;h3&gt;Securing the SQL connection&lt;/h3&gt;  &lt;p&gt;It is necessary to encrypt the sql connection, otherwise we can find the password in the TCP frame. Below is the details of a captured frame : &lt;/p&gt;  &lt;p&gt;&lt;a href="http://myitforum.com/cs2/blogs/forefrontsecurity/image_10D0152C.png"&gt;&lt;img style="background-image:none;border-bottom:0px;border-left:0px;padding-left:0px;padding-right:0px;display:inline;border-top:0px;border-right:0px;padding-top:0px;" title="image" border="0" alt="image" src="http://myitforum.com/cs2/blogs/forefrontsecurity/image_thumb_46192791.png" width="244" height="174" /&gt;&lt;/a&gt;&lt;/p&gt;  &lt;p&gt;We can clearly view the password of jkirk user.&lt;/p&gt;  &lt;p&gt;To secure the connection, the easiest way is : &lt;/p&gt;  &lt;ol&gt;   &lt;li&gt;Create a server certificate for the SQL server&lt;/li&gt;    &lt;li&gt;Put the certification authority certificate in the Trusted Root Certification Container of the UAG server&lt;/li&gt;    &lt;li&gt;Activate the Secure Only connection&lt;/li&gt; &lt;/ol&gt;  &lt;h5&gt;Create the certificate&lt;/h5&gt;  &lt;p&gt;Create a server certificate with you private certification authority :&lt;/p&gt;  &lt;ul&gt;   &lt;li&gt;type : server authentication&lt;/li&gt;    &lt;li&gt;name : sql server name (or fqdn, depends of what you set in the connection string)&lt;/li&gt; &lt;/ul&gt;  &lt;p&gt;&lt;a href="http://myitforum.com/cs2/blogs/forefrontsecurity/image_0AE54BC6.png"&gt;&lt;img style="background-image:none;border-bottom:0px;border-left:0px;padding-left:0px;padding-right:0px;display:inline;border-top:0px;border-right:0px;padding-top:0px;" title="image" border="0" alt="image" src="http://myitforum.com/cs2/blogs/forefrontsecurity/image_thumb_56D0AC72.png" width="244" height="190" /&gt;&lt;/a&gt;&lt;/p&gt;  &lt;h5&gt;Activate the Secure Only connection&lt;/h5&gt;  &lt;p&gt;On the SQL server, open the SQL Server Configuration Manager. Edit the Protocols Properties, and set the ForceEncryption to Yes&lt;/p&gt;  &lt;p&gt;&lt;a href="http://myitforum.com/cs2/blogs/forefrontsecurity/image_006477A6.png"&gt;&lt;img style="background-image:none;border-bottom:0px;border-left:0px;padding-left:0px;padding-right:0px;display:inline;border-top:0px;border-right:0px;padding-top:0px;" title="image" border="0" alt="image" src="http://myitforum.com/cs2/blogs/forefrontsecurity/image_thumb_64070FB8.png" width="244" height="199" /&gt;&lt;/a&gt;&lt;/p&gt;  &lt;p&gt;Restart the SQL connection&lt;/p&gt;  &lt;p&gt;Now, you can see that all frame are encrypted.&lt;/p&gt;  &lt;p&gt;&lt;a href="http://myitforum.com/cs2/blogs/forefrontsecurity/image_1B6D20E7.png"&gt;&lt;img style="background-image:none;border-bottom:0px;border-left:0px;padding-left:0px;padding-right:0px;display:inline;border-top:0px;border-right:0px;padding-top:0px;" title="image" border="0" alt="image" src="http://myitforum.com/cs2/blogs/forefrontsecurity/image_thumb_745261A4.png" width="244" height="180" /&gt;&lt;/a&gt;&lt;/p&gt;    &lt;h3&gt;Getting and decrypting the password with UAG&lt;/h3&gt;  &lt;p&gt;If you don’t have read the previous post (&lt;a href="http://myitforum.com/cs2/blogs/forefrontsecurity/archive/2010/12/30/publishing-internet-web-site-through-uag-part-3.aspx" target="_blank"&gt;Publishing internet web site through UAG – part 3&lt;/a&gt;), here is the actual postpostvalidate.inc file : &lt;/p&gt;  &lt;blockquote&gt;   &lt;p&gt;&lt;font face="Courier New"&gt;&amp;#39; get lead user&lt;/font&gt;&lt;/p&gt;    &lt;p&gt;&lt;font face="Courier New"&gt;set user_vec = getsessionuservec(g_cookie)&lt;/font&gt;&lt;/p&gt;    &lt;p&gt;&lt;font face="Courier New"&gt;for each user in user_vec.uservec&lt;/font&gt;&lt;/p&gt;    &lt;p&gt;&lt;font face="Courier New"&gt;user_name = user.User&lt;/font&gt;&lt;/p&gt;    &lt;p&gt;&lt;font face="Courier New"&gt;Next&lt;/font&gt;&lt;/p&gt;    &lt;p&gt;&lt;font face="Courier New"&gt;&amp;#39; sql connection&lt;/font&gt;&lt;/p&gt;    &lt;p&gt;&lt;font face="Courier New"&gt;&amp;#39; variable initialization&lt;/font&gt;&lt;/p&gt;    &lt;p&gt;&lt;font face="Courier New"&gt;dim oconn, oRecordSet, scommandText, sconnectionstring&lt;/font&gt;&lt;/p&gt;    &lt;p&gt;&lt;font face="Courier New"&gt;scommandText = “select * from &amp;lt;your database/table name&amp;gt; where leaduser=’” &amp;amp; user_name &amp;amp; “’”&lt;/font&gt;&lt;/p&gt;    &lt;p&gt;&lt;font face="Courier New"&gt;&lt;font face="Courier New"&gt;&amp;#39; &lt;/font&gt;setting up SQL-connection-string&lt;/font&gt;&lt;/p&gt;    &lt;p&gt;&lt;font face="Courier New"&gt;sconnectionString = “Provider=SQLoLEDB; Data Source=&amp;lt;SQL server Name&amp;gt;\&amp;lt;instance&amp;gt;;Initial catalog=&amp;lt;table&amp;gt;;user ID=&amp;lt;sql user&amp;gt;;Password=&amp;lt;user password&amp;gt;’&lt;/font&gt;&lt;/p&gt;    &lt;p&gt;&lt;font face="Courier New"&gt;&amp;#39; Setting up SQL-connection object&lt;/font&gt;&lt;/p&gt;    &lt;p&gt;&lt;font face="Courier New"&gt;set oConn=Server . createobj ect ( ADODB.connection”)&lt;/font&gt;&lt;/p&gt;    &lt;p&gt;&lt;font face="Courier New"&gt;oconn. connectionString=sconnectionString&lt;/font&gt;&lt;/p&gt;    &lt;p&gt;&lt;font face="Courier New"&gt;&amp;#39; open SQL—connection&lt;/font&gt;&lt;/p&gt;    &lt;p&gt;&lt;font face="Courier New"&gt;oconn. Open&lt;/font&gt;&lt;/p&gt;    &lt;p&gt;&lt;font face="Courier New"&gt;&amp;#39; Send the query to SQL&lt;/font&gt;&lt;/p&gt;    &lt;p&gt;&lt;font face="Courier New"&gt;set oRecordSet = Server, createobject (“ADoDB.recordset”)&lt;/font&gt;&lt;/p&gt;    &lt;p&gt;&lt;font face="Courier New"&gt;oRecordSet. open scommandText, oconn&lt;/font&gt;&lt;/p&gt;    &lt;p&gt;&lt;font face="Courier New"&gt;&amp;#39; add secondary session to the user&lt;/font&gt;&lt;/p&gt;    &lt;p&gt;&lt;font face="Courier New"&gt;if not oRecordSet.EOF then&lt;/font&gt;&lt;/p&gt;    &lt;p&gt;&lt;font face="Courier New"&gt;do while not oRecordSet.EOF&lt;/font&gt;&lt;/p&gt;    &lt;p&gt;&lt;font face="Courier New"&gt;addsessionuser g_cookie,oRecordSet(”appLogon”) ,oRecordSet(”appPassword”) ,oRecordSet(”application”)&lt;/font&gt;&lt;/p&gt;    &lt;p&gt;&lt;font face="Courier New"&gt;oRecordSet. moveNext&lt;/font&gt;&lt;/p&gt;    &lt;p&gt;&lt;font face="Courier New"&gt;loop&lt;/font&gt;&lt;/p&gt;    &lt;p&gt;&lt;font face="Courier New"&gt;end if&lt;/font&gt;&lt;/p&gt; &lt;/blockquote&gt;  &lt;p&gt;Previously, the SQL Database was on the UAG Server. We now want to connect to a remote database. The SQL Connection String is not different, just use your remote server name.&lt;/p&gt;  &lt;p&gt;In order to decrypt the encrypted password, it is necessary to open the key. Add the following line in the postpostvalidate.inc file : &lt;/p&gt;  &lt;blockquote&gt;   &lt;p&gt;&lt;font face="Courier New"&gt;‘ open the symmetric key&lt;/font&gt;&lt;/p&gt;    &lt;p&gt;&lt;font face="Courier New"&gt;scommandText = “open symmetric key SSN_KEY_01 decryption by certificate UserRepositoryCertificate”&lt;/font&gt;&lt;/p&gt;    &lt;p&gt;&lt;font face="Courier New"&gt;oRecordSet.open sCommandText, oConn&lt;/font&gt;&lt;/p&gt; &lt;/blockquote&gt;  &lt;p&gt;To get and decrypt the password, change the commandText line : &lt;/p&gt;  &lt;p&gt;&lt;font face="Courier New"&gt;scommandText = “select appLogon, application, convert(&amp;#39;varchar, DecryptByKey(appPasswordEncrypt)) appPasswordDecrypted from &amp;lt;your table name&amp;gt; where leaduser=’” &amp;amp; user_name &amp;amp; “’”&lt;/font&gt;&lt;/p&gt;  &lt;p&gt;And the addsessionuser is now : &lt;/p&gt;  &lt;blockquote&gt;   &lt;p&gt;&lt;font face="Courier New"&gt;addsessionuser g_cookie, oRecordSet(“appLogon”), oRecordSet(“appPasswordDecrypted”), oRecordSet(“application”)&lt;/font&gt;&lt;/p&gt; &lt;/blockquote&gt;  &lt;p&gt;You can make the same changes in the CustomRepository.inc file.&lt;/p&gt;  &lt;p align="right"&gt;&lt;strong&gt;Published by Olivier DETILLEUX&lt;/strong&gt;&lt;/p&gt;&lt;img src="http://myitforum.com/cs2/aggbug.aspx?PostID=154639" width="1" height="1"&gt;</description><category domain="http://myitforum.com/cs2/blogs/forefrontsecurity/archive/tags/Forefront/default.aspx">Forefront</category><category domain="http://myitforum.com/cs2/blogs/forefrontsecurity/archive/tags/Forefront+UAG/default.aspx">Forefront UAG</category><category domain="http://myitforum.com/cs2/blogs/forefrontsecurity/archive/tags/SSO/default.aspx">SSO</category><category domain="http://myitforum.com/cs2/blogs/forefrontsecurity/archive/tags/UAG/default.aspx">UAG</category><category domain="http://myitforum.com/cs2/blogs/forefrontsecurity/archive/tags/UAG+SP1/default.aspx">UAG SP1</category><category domain="http://myitforum.com/cs2/blogs/forefrontsecurity/archive/tags/FIM/default.aspx">FIM</category><category domain="http://myitforum.com/cs2/blogs/forefrontsecurity/archive/tags/FIM+2010/default.aspx">FIM 2010</category><category domain="http://myitforum.com/cs2/blogs/forefrontsecurity/archive/tags/Forefront+Identity+Manager/default.aspx">Forefront Identity Manager</category><category domain="http://myitforum.com/cs2/blogs/forefrontsecurity/archive/tags/Custom+Repository/default.aspx">Custom Repository</category><category domain="http://myitforum.com/cs2/blogs/forefrontsecurity/archive/tags/UAG+User-Defined+Repository/default.aspx">UAG User-Defined Repository</category><category domain="http://myitforum.com/cs2/blogs/forefrontsecurity/archive/tags/Unified+Access+Gateway/default.aspx">Unified Access Gateway</category><category domain="http://myitforum.com/cs2/blogs/forefrontsecurity/archive/tags/SQL/default.aspx">SQL</category><category domain="http://myitforum.com/cs2/blogs/forefrontsecurity/archive/tags/PCNS/default.aspx">PCNS</category><category domain="http://myitforum.com/cs2/blogs/forefrontsecurity/archive/tags/Customization/default.aspx">Customization</category></item><item><title>UAG, FIM and an encrypted SQL repository–part 1</title><link>http://myitforum.com/cs2/blogs/forefrontsecurity/archive/2011/02/20/uag-fim-and-an-encrypt-sql-repository-part-1.aspx</link><pubDate>Sun, 20 Feb 2011 21:32:31 GMT</pubDate><guid isPermaLink="false">8e8f7986-475c-475d-bdc9-a1b3a63b955b:154492</guid><dc:creator>forefrontsecurity</dc:creator><slash:comments>0</slash:comments><wfw:commentRss xmlns:wfw="http://wellformedweb.org/CommentAPI/">http://myitforum.com/cs2/blogs/forefrontsecurity/rsscomments.aspx?PostID=154492</wfw:commentRss><comments>http://myitforum.com/cs2/blogs/forefrontsecurity/archive/2011/02/20/uag-fim-and-an-encrypt-sql-repository-part-1.aspx#comments</comments><description>&lt;p&gt;Here is the deal : &lt;/p&gt;  &lt;ul&gt;   &lt;li&gt;I have a web application that doesn’t support Active Directory authentication. &lt;/li&gt;    &lt;li&gt;I want to use the active directory password to authenticate the user in this application&lt;/li&gt;    &lt;li&gt;I want to publish this application with Forefront Unified Access Gateway&lt;/li&gt;    &lt;li&gt;I want to secure all the connections and data&lt;/li&gt; &lt;/ul&gt;  &lt;h3&gt;Enable security within the SQL repository&lt;/h3&gt;  &lt;p&gt;Previously, we have seen how : &lt;/p&gt;  &lt;ul&gt;   &lt;li&gt;Synchronize password between Active Directory and SQL with PCNS : &lt;a title="Synchronize Active Directory Password to an SQL database with FIM and PCNS" href="http://myitforum.com/cs2/blogs/forefrontsecurity/archive/2011/02/08/synchronize-active-directory-password-to-an-sql-database-with-fim-and-pcns.aspx"&gt;Synchronize Active Directory Password to an SQL database with FIM and PCNS&lt;/a&gt;&lt;/li&gt;    &lt;li&gt;Create a custom SQL repository and use advanced sso mechanism : &lt;a title="Publishing internet web site through UAG – part 3" href="http://myitforum.com/cs2/blogs/forefrontsecurity/archive/2010/12/30/publishing-internet-web-site-through-uag-part-3.aspx"&gt;Publishing internet web site through UAG – part 3&lt;/a&gt;&lt;/li&gt; &lt;/ul&gt;  &lt;p&gt;Here is the schema of my infrastructure&lt;/p&gt;  &lt;p&gt;&lt;a href="http://myitforum.com/cs2/blogs/forefrontsecurity/image_4A6DDD9F.png"&gt;&lt;img style="background-image:none;border-bottom:0px;border-left:0px;padding-left:0px;padding-right:0px;display:inline;border-top:0px;border-right:0px;padding-top:0px;" title="image" border="0" alt="image" src="http://myitforum.com/cs2/blogs/forefrontsecurity/image_thumb_4416E144.png" width="244" height="180" /&gt;&lt;/a&gt;&lt;/p&gt;  &lt;p&gt;We have to :&lt;/p&gt;  &lt;ul&gt;   &lt;li&gt;Encrypt the password in the User Repository&lt;/li&gt;    &lt;li&gt;Secure the connection between UAG and the UserRepository Database&lt;/li&gt; &lt;/ul&gt;  &lt;h4&gt;Database encryption&lt;/h4&gt;  &lt;p&gt;I have added a new column in my table to store the encrypted password : &lt;em&gt;appPasswordEncrypt. &lt;/em&gt;The format of this column is varbinary(256)&lt;/p&gt;  &lt;p&gt;&lt;a href="http://myitforum.com/cs2/blogs/forefrontsecurity/image_42D24865.png"&gt;&lt;img style="background-image:none;border-bottom:0px;border-left:0px;padding-left:0px;padding-right:0px;display:inline;border-top:0px;border-right:0px;padding-top:0px;" title="image" border="0" alt="image" src="http://myitforum.com/cs2/blogs/forefrontsecurity/image_thumb_68C7F8BB.png" width="244" height="150" /&gt;&lt;/a&gt;&lt;/p&gt;  &lt;p&gt;Now, we have to create the keys. For the purpose of this article, I use symmetric key.&lt;/p&gt;  &lt;blockquote&gt;   &lt;p&gt;&lt;font face="Courier New"&gt;create master key encryption by password = ‘password’;&lt;/font&gt;&lt;/p&gt;    &lt;p&gt;&lt;font face="Courier New"&gt;create certificate UserRepositoryCertificate with subject = ‘User Repository Password Encryption Certificate’;&lt;/font&gt;&lt;/p&gt;    &lt;p&gt;&lt;font face="Courier New"&gt;&lt;/font&gt;&lt;/p&gt;    &lt;p&gt;&lt;font face="Courier New"&gt;&lt;/font&gt;&lt;/p&gt;    &lt;p&gt;&lt;font face="Courier New"&gt;create symmetric key SSN_Key_01 with algorithm = AES_256 encryption by certificate UserRepositoryCertificate;&lt;/font&gt;&lt;/p&gt; &lt;/blockquote&gt;  &lt;p&gt;Symmetric key is created. Have a test : &lt;/p&gt;  &lt;blockquote&gt;   &lt;p&gt;&lt;font face="Courier New"&gt;open symmetric key SSN_Key_01 decryption by certificate UserRepositoryCertificate&lt;/font&gt;&lt;/p&gt; &lt;/blockquote&gt;  &lt;blockquote&gt;   &lt;p&gt;&lt;font face="Courier New"&gt;Update repositoryTable set appPasswordEncrypt = ENCRYPTEDKEY(Key_GUID(‘SSN_Key_01’), ‘toto’) where OBJECTID = 17;&lt;/font&gt;&lt;/p&gt;    &lt;p&gt;&lt;font face="Courier New"&gt;select * from userRepositoryTable where ObjectID = 17;&lt;/font&gt;&lt;/p&gt;    &lt;p&gt;&lt;a href="http://myitforum.com/cs2/blogs/forefrontsecurity/image_1570B295.png"&gt;&lt;img style="background-image:none;border-bottom:0px;border-left:0px;padding-left:0px;padding-right:0px;display:inline;border-top:0px;border-right:0px;padding-top:0px;" title="image" border="0" alt="image" src="http://myitforum.com/cs2/blogs/forefrontsecurity/image_thumb_6D5E0375.png" width="244" height="58" /&gt;&lt;/a&gt;&lt;/p&gt; &lt;/blockquote&gt;  &lt;p&gt;And now, let’s try to decrypt the data : &lt;/p&gt;  &lt;blockquote&gt;   &lt;p&gt;&lt;font face="Courier New"&gt;open symmetric key SSN_Key_01 decryption by certificate UserRepositoryCertificate&lt;/font&gt;&lt;/p&gt;    &lt;p&gt;&lt;font face="Courier New"&gt;select *, convert(varchar, DecryptByKey(appPasswordEncrypt)) from userRepositoryTable &lt;/font&gt;&lt;/p&gt;    &lt;p&gt;&lt;a href="http://myitforum.com/cs2/blogs/forefrontsecurity/image_1353B3CC.png"&gt;&lt;img style="background-image:none;border-bottom:0px;border-left:0px;padding-left:0px;padding-right:0px;display:inline;border-top:0px;border-right:0px;padding-top:0px;" title="image" border="0" alt="image" src="http://myitforum.com/cs2/blogs/forefrontsecurity/image_thumb_6AD4D1B7.png" width="244" height="98" /&gt;&lt;/a&gt;&lt;/p&gt; &lt;/blockquote&gt;    &lt;h4&gt;Encrypt password within the FIM Password Extension dll&lt;/h4&gt;  &lt;p&gt;Back to the SQLPwdChange.dll. We have to add the encryption sequence in our code : &lt;/p&gt;  &lt;p&gt;First, open the symmetric key : &lt;/p&gt;  &lt;blockquote&gt;   &lt;p&gt;&lt;font face="Courier New"&gt;String SQLEncryptionString = “open symmetric key SSN_Key_01 decryption by certificate UserRepositoryCertificate&lt;/font&gt;&lt;/p&gt; &lt;/blockquote&gt;  &lt;p&gt;Then, encrypt the NewPassword&lt;/p&gt;  &lt;blockquote&gt;   &lt;p&gt;&lt;font face="Courier New"&gt;String SQLString = “UPDATE UserRepositoryTable set appPasswordEncrypt = EncryptedByKey(&amp;quot;Key_GUID(‘SSN_Key_01’),&amp;#160; ‘” + NewPassword + “’) where ObjectID = ‘” + DN + “’”;&lt;/font&gt;&lt;/p&gt;    &lt;p&gt;And now, when an user changes his password in Active Directory (for example tmosby) : &lt;/p&gt;    &lt;p&gt;&lt;a href="http://myitforum.com/cs2/blogs/forefrontsecurity/image_42C22298.png"&gt;&lt;img style="background-image:none;border-bottom:0px;border-left:0px;padding-left:0px;padding-right:0px;display:inline;border-top:0px;border-right:0px;padding-top:0px;" title="image" border="0" alt="image" src="http://myitforum.com/cs2/blogs/forefrontsecurity/image_thumb_1AAF7379.png" width="244" height="57" /&gt;&lt;/a&gt;&lt;/p&gt;    &lt;p&gt;&lt;a href="http://myitforum.com/cs2/blogs/forefrontsecurity/image_40A523CF.png"&gt;&lt;img style="background-image:none;border-bottom:0px;border-left:0px;padding-left:0px;padding-right:0px;display:inline;border-top:0px;border-right:0px;padding-top:0px;" title="image" border="0" alt="image" src="http://myitforum.com/cs2/blogs/forefrontsecurity/image_thumb_182641BB.png" width="244" height="180" /&gt;&lt;/a&gt;&lt;/p&gt;    &lt;p&gt;&lt;a href="http://myitforum.com/cs2/blogs/forefrontsecurity/image_6B9D11D4.png"&gt;&lt;img style="background-image:none;border-bottom:0px;border-left:0px;padding-left:0px;padding-right:0px;display:inline;border-top:0px;border-right:0px;padding-top:0px;" title="image" border="0" alt="image" src="http://myitforum.com/cs2/blogs/forefrontsecurity/image_thumb_159D0FFD.png" width="244" height="54" /&gt;&lt;/a&gt;&lt;/p&gt; &lt;/blockquote&gt;      &lt;p&gt;Next episode : Encrypt the connection between UAG and the SQL Database, and read the encrypted password.&lt;/p&gt;  &lt;p align="right"&gt;&lt;strong&gt;Published by Olivier DETILLEUX&lt;/strong&gt;&lt;/p&gt;&lt;img src="http://myitforum.com/cs2/aggbug.aspx?PostID=154492" width="1" height="1"&gt;</description><category domain="http://myitforum.com/cs2/blogs/forefrontsecurity/archive/tags/Forefront/default.aspx">Forefront</category><category domain="http://myitforum.com/cs2/blogs/forefrontsecurity/archive/tags/Forefront+UAG/default.aspx">Forefront UAG</category><category domain="http://myitforum.com/cs2/blogs/forefrontsecurity/archive/tags/SSO/default.aspx">SSO</category><category domain="http://myitforum.com/cs2/blogs/forefrontsecurity/archive/tags/Publishing/default.aspx">Publishing</category><category domain="http://myitforum.com/cs2/blogs/forefrontsecurity/archive/tags/UAG/default.aspx">UAG</category><category domain="http://myitforum.com/cs2/blogs/forefrontsecurity/archive/tags/FIM/default.aspx">FIM</category><category domain="http://myitforum.com/cs2/blogs/forefrontsecurity/archive/tags/Forefront+Identity+Manager/default.aspx">Forefront Identity Manager</category><category domain="http://myitforum.com/cs2/blogs/forefrontsecurity/archive/tags/BPOS/default.aspx">BPOS</category><category domain="http://myitforum.com/cs2/blogs/forefrontsecurity/archive/tags/UAG+User-Defined+Repository/default.aspx">UAG User-Defined Repository</category><category domain="http://myitforum.com/cs2/blogs/forefrontsecurity/archive/tags/SQL/default.aspx">SQL</category><category domain="http://myitforum.com/cs2/blogs/forefrontsecurity/archive/tags/PCNS/default.aspx">PCNS</category><category domain="http://myitforum.com/cs2/blogs/forefrontsecurity/archive/tags/microsoft+online+services/default.aspx">microsoft online services</category><category domain="http://myitforum.com/cs2/blogs/forefrontsecurity/archive/tags/certificate/default.aspx">certificate</category></item><item><title>Why my logo customization is broken after UAG SP1 ?</title><link>http://myitforum.com/cs2/blogs/forefrontsecurity/archive/2011/02/16/why-my-logo-customization-is-broken-after-uag-sp1.aspx</link><pubDate>Wed, 16 Feb 2011 08:56:59 GMT</pubDate><guid isPermaLink="false">8e8f7986-475c-475d-bdc9-a1b3a63b955b:154329</guid><dc:creator>forefrontsecurity</dc:creator><slash:comments>0</slash:comments><wfw:commentRss xmlns:wfw="http://wellformedweb.org/CommentAPI/">http://myitforum.com/cs2/blogs/forefrontsecurity/rsscomments.aspx?PostID=154329</wfw:commentRss><comments>http://myitforum.com/cs2/blogs/forefrontsecurity/archive/2011/02/16/why-my-logo-customization-is-broken-after-uag-sp1.aspx#comments</comments><description>&lt;p&gt;Forefront UAG 2010 is an amazing software that allow lot of customization. For example you can change the icon of the PortalHomePage, change the banner of the InternalSite and so on. &lt;/p&gt;  &lt;p&gt;When you apply hotfix or update, customizations are not deleted. But some times, update includes changes in some configuration files, and your customization is broken. An example is the InternalSite customization.&lt;/p&gt;  &lt;h3&gt;Before UAG SP1&lt;/h3&gt;  &lt;p&gt;If you want to change the internalSite design, you have to create your own templace.css file. For example, here is our custom Login Page :&lt;/p&gt;  &lt;p&gt;&lt;a href="http://myitforum.com/cs2/blogs/forefrontsecurity/image_0E3DF05D.png"&gt;&lt;img style="background-image:none;border-right-width:0px;padding-left:0px;padding-right:0px;display:inline;border-top-width:0px;border-bottom-width:0px;border-left-width:0px;padding-top:0px;" title="image" border="0" alt="image" src="http://myitforum.com/cs2/blogs/forefrontsecurity/image_thumb_642DCC67.png" width="244" height="163" /&gt;&lt;/a&gt;&lt;/p&gt;  &lt;p&gt;As you can see, I have changed the colors and the banners. To do that : &lt;/p&gt;  &lt;ul&gt;   &lt;li&gt;In internalSite\ccs, copy the template.css in the CustomUpdate folder &lt;/li&gt;    &lt;li&gt;In order to change the top header, create your own InternalSite\Images\HeaderTopBG.gif in InternalSite\Images\CustomUpdate &lt;/li&gt;    &lt;li&gt;Modify your custom HeaderTopBG.gif file &lt;/li&gt;    &lt;li&gt;Edit the custom template.css and change the location of the HeaderTopBG.gif file &lt;/li&gt; &lt;/ul&gt;  &lt;blockquote&gt;   &lt;p&gt;&lt;font face="Courier New"&gt;.headerTop        &lt;br /&gt;{         &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160; BACKGROUND:url(&amp;quot;/InternalSite/images/CustomUpdate/HeaderTopBG.gif&amp;quot;) center;         &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160; BACKGROUND-REPEAT: no-repeat;         &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160; BACKGROUND-POSITION: top;         &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160; WIDTH: 100%;         &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160; HEIGHT: 125px;         &lt;br /&gt;}&lt;/font&gt;&lt;/p&gt;    &lt;p&gt;You can do that for all the css parts.&lt;/p&gt;    &lt;h3&gt;After UAG SP1&lt;/h3&gt;    &lt;p&gt;After the SP1 update, the banner has changed. Is not only a .gif image, but the concatenation of : &lt;/p&gt;    &lt;ul&gt;     &lt;li&gt;A left image : headertopl.gif &lt;/li&gt;      &lt;li&gt;A repeated middle image : headertopm.gif &lt;/li&gt;      &lt;li&gt;A right image : headertopr.gif &lt;/li&gt;   &lt;/ul&gt;    &lt;p&gt;You can see this in the login.asp file&lt;/p&gt;    &lt;p&gt;&lt;a href="http://myitforum.com/cs2/blogs/forefrontsecurity/image_4E63E40A.png"&gt;&lt;img style="background-image:none;border-right-width:0px;padding-left:0px;padding-right:0px;display:inline;border-top-width:0px;border-bottom-width:0px;border-left-width:0px;padding-top:0px;" title="image" border="0" alt="image" src="http://myitforum.com/cs2/blogs/forefrontsecurity/image_thumb_73812E76.png" width="244" height="63" /&gt;&lt;/a&gt;&lt;/p&gt; &lt;/blockquote&gt;  &lt;p&gt;What you see here means that Header images are not defined in the template.css file. &lt;/p&gt;  &lt;p&gt;If you look in the inc folder, you can find a logo.inc file. Here is the content of that file :&lt;/p&gt;  &lt;p&gt;&lt;a href="http://myitforum.com/cs2/blogs/forefrontsecurity/image_6542B586.png"&gt;&lt;img style="background-image:none;border-right-width:0px;padding-left:0px;padding-right:0px;display:inline;border-top-width:0px;border-bottom-width:0px;border-left-width:0px;padding-top:0px;" title="image" border="0" alt="image" src="http://myitforum.com/cs2/blogs/forefrontsecurity/image_thumb_429E770B.png" width="244" height="176" /&gt;&lt;/a&gt;&lt;/p&gt;  &lt;ul&gt;   &lt;li&gt;Red : here are the content of the login.asp. Smells good &lt;/li&gt;    &lt;li&gt;Green :&amp;#160; Check if a custom logo.inc file exist &lt;/li&gt; &lt;/ul&gt;  &lt;p&gt;So, what you have to do :&lt;/p&gt;  &lt;ul&gt;   &lt;li&gt;Create your own headertopr.gif in the InternalSite\Images\CustomUpdate folder &lt;/li&gt;    &lt;li&gt;In the internalSite\inc\CustomUpdate, copy the logo.inc file. &lt;/li&gt;    &lt;li&gt;Named the new logo.inc file as usual : &amp;lt;trunkname&amp;gt;&amp;lt;issecure 0 / 1&amp;gt;logo.inc &lt;/li&gt;    &lt;li&gt;Add your own definition. For example : &lt;/li&gt; &lt;/ul&gt;  &lt;blockquote&gt;   &lt;p&gt;&lt;font face="Courier New"&gt;&amp;lt;tr &amp;gt;        &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160; &amp;lt;td id=&amp;quot;companyTD&amp;quot; width=&amp;quot;100%&amp;quot; colspan=&amp;quot;3&amp;quot; style=&amp;quot;position:relative;&amp;quot;&amp;gt;         &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160; &amp;lt;span&amp;#160; class=&amp;quot;header1 header1pos&amp;quot;&amp;gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &amp;lt;%=GetString(2, &amp;quot;Application and Network Access Portal&amp;quot;)%&amp;gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160; &amp;lt;/span&amp;gt;         &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &amp;lt;table width=&amp;quot;100%&amp;quot; cellpadding=&amp;quot;0&amp;quot; cellspacing=&amp;quot;0&amp;quot;&amp;gt;         &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &amp;lt;tr&amp;gt;         &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &amp;lt;td width=&amp;quot;32px&amp;quot;&amp;gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &amp;lt;img src=&amp;quot;/InternalSite/images/headertopl.gif&amp;quot; align=&amp;quot;absmiddle&amp;quot;&amp;gt;         &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &amp;lt;/td&amp;gt;         &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &amp;lt;td&amp;#160; style=&amp;quot;background-image: url(&amp;#39;/InternalSite/images/headertopm.gif&amp;#39;); background-repeat: repeat-x&amp;quot;&amp;gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &amp;amp;nbsp;         &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &amp;lt;/td&amp;gt;         &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &amp;lt;td width=&amp;quot;520px&amp;quot;&amp;#160; style=&amp;quot;background-image: url(&lt;font style="background-color:#ffff00;"&gt;&amp;#39;/InternalSite/images/CustomUpdate/headertopr.gif&amp;#39;&lt;/font&gt;);&amp;quot;&amp;gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &amp;lt;/td&amp;gt;         &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &amp;lt;/tr&amp;gt;         &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &amp;lt;/table&amp;gt;         &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160; &amp;lt;/td&amp;gt;         &lt;br /&gt;&amp;lt;/tr&amp;gt;         &lt;br /&gt;&amp;lt;tr&amp;gt;         &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160; &amp;lt;td width=&amp;quot;100%&amp;quot;&amp;#160; colspan=&amp;quot;3&amp;quot; style=&amp;quot;position:relative;&amp;quot;&amp;gt;&amp;#160;&amp;#160;&amp;#160; &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160; &amp;lt;span&amp;#160;&amp;#160; style=&amp;quot;position:absolute;margin-left:20px;&amp;quot;&amp;gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &amp;lt;%=g_logo_header_text%&amp;gt;         &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160; &amp;lt;/span&amp;gt;         &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &amp;lt;table width=&amp;quot;100%&amp;quot; cellpadding=&amp;quot;0&amp;quot; cellspacing=&amp;quot;0&amp;quot;&amp;gt;         &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &amp;lt;tr&amp;gt;         &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &amp;lt;td width=&amp;quot;30px&amp;quot;&amp;gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &amp;lt;img src=&amp;quot;/InternalSite/images/headerbottoml.gif&amp;quot; align=&amp;quot;absmiddle&amp;quot;&amp;gt;         &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &amp;lt;/td&amp;gt;         &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &amp;lt;td&amp;#160; style=&amp;quot;background-image: url(&amp;#39;/InternalSite/images/headerbottomm.gif&amp;#39;); background-repeat: repeat-x&amp;quot;&amp;gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &amp;amp;nbsp;         &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &amp;lt;/td&amp;gt;         &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &amp;lt;td width=&amp;quot;30px&amp;quot;&amp;#160; style=&amp;quot;background-image: url(&amp;#39;/InternalSite/images/headerbottomr.gif&amp;#39;);&amp;quot;&amp;gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &amp;lt;/td&amp;gt;         &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &amp;lt;/tr&amp;gt;         &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &amp;lt;/table&amp;gt;&amp;#160;&amp;#160;&amp;#160; &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160; &amp;lt;/td&amp;gt;         &lt;br /&gt;&amp;lt;/tr&amp;gt;&lt;/font&gt;&lt;/p&gt;    &lt;p&gt;That’s it !&lt;/p&gt;    &lt;p align="right"&gt;&lt;strong&gt;Published by Olivier DETILLEUX&lt;/strong&gt;&lt;/p&gt;&lt;/blockquote&gt;&lt;img src="http://myitforum.com/cs2/aggbug.aspx?PostID=154329" width="1" height="1"&gt;</description><category domain="http://myitforum.com/cs2/blogs/forefrontsecurity/archive/tags/Forefront+UAG/default.aspx">Forefront UAG</category><category domain="http://myitforum.com/cs2/blogs/forefrontsecurity/archive/tags/UAG/default.aspx">UAG</category><category domain="http://myitforum.com/cs2/blogs/forefrontsecurity/archive/tags/UAG+SP1/default.aspx">UAG SP1</category><category domain="http://myitforum.com/cs2/blogs/forefrontsecurity/archive/tags/Forefront+UAG+SP1/default.aspx">Forefront UAG SP1</category><category domain="http://myitforum.com/cs2/blogs/forefrontsecurity/archive/tags/InternalSite/default.aspx">InternalSite</category><category domain="http://myitforum.com/cs2/blogs/forefrontsecurity/archive/tags/Customization/default.aspx">Customization</category><category domain="http://myitforum.com/cs2/blogs/forefrontsecurity/archive/tags/template.css/default.aspx">template.css</category><category domain="http://myitforum.com/cs2/blogs/forefrontsecurity/archive/tags/logo.inc/default.aspx">logo.inc</category></item><item><title>UAG SP1 Transparent Logon with ADFS V2</title><link>http://myitforum.com/cs2/blogs/forefrontsecurity/archive/2011/01/07/uag-sp1-transparent-logon-with-adfs-v2.aspx</link><pubDate>Fri, 07 Jan 2011 15:40:49 GMT</pubDate><guid isPermaLink="false">8e8f7986-475c-475d-bdc9-a1b3a63b955b:153442</guid><dc:creator>forefrontsecurity</dc:creator><slash:comments>0</slash:comments><wfw:commentRss xmlns:wfw="http://wellformedweb.org/CommentAPI/">http://myitforum.com/cs2/blogs/forefrontsecurity/rsscomments.aspx?PostID=153442</wfw:commentRss><comments>http://myitforum.com/cs2/blogs/forefrontsecurity/archive/2011/01/07/uag-sp1-transparent-logon-with-adfs-v2.aspx#comments</comments><description>&lt;p&gt;Forefront UAG’s Service pack 1 was recently released and with it the ability to automatically login to your UAG portal without the need to manually authenticate. This feature is activated when configuring ADFS V2 as an authentication repository.&lt;/p&gt;  &lt;p&gt;Pretty exciting since those two technologies are pretty recent and fun to work with.&lt;/p&gt;  &lt;p&gt;I’ll show in this post how to configure ADFS to work with UAG.&lt;/p&gt;  &lt;p&gt;Begin by installing and configuring ADFS on a server in you LAN, I used my domain controller and installed the ADFS V2 package I found here: &lt;a href="http://www.microsoft.com/downloads/en/details.aspx?FamilyID=118c3588-9070-426a-b655-6cec0a92c10b&amp;amp;displaylang=en"&gt;http://www.microsoft.com/downloads/en/details.aspx?FamilyID=118c3588-9070-426a-b655-6cec0a92c10b&amp;amp;displaylang=en&lt;/a&gt;&lt;/p&gt;  &lt;p&gt;The integrated ADFS Role doesn’t work as well for some reason…&lt;/p&gt;  &lt;p&gt;I’ll let you install and do the basic ADFS configuration on you own, it’s pretty simple and there are lots of resources on the net.here’s one that should help :&lt;/p&gt;  &lt;p&gt;&lt;a href="http://technet.microsoft.com/en-us/library/adfs2-how-to-setup-lab-environment-for-federated-collaboration-07(WS.10).aspx"&gt;http://technet.microsoft.com/en-us/library/adfs2-how-to-setup-lab-environment-for-federated-collaboration-07(WS.10).aspx&lt;/a&gt;&lt;/p&gt;  &lt;p&gt;Once the installation is complete you’ll have a federation service web address of the type &lt;a href="https://adfs2_server/FederationMetadata/2007-06/federationmetadata.xml"&gt;https://adfs2_server/FederationMetadata/2007-06/federationmetadata.xml&lt;/a&gt; that you will need to use when configuring UAG.&lt;/p&gt;  &lt;p&gt;In the ADFS 2.0 MMC go to the certificates folder and import the token encryption into the ADFS Server and the UAG’s local Certificate store.&lt;/p&gt;  &lt;p&gt;.&lt;a href="http://myitforum.com/cs2/blogs/forefrontsecurity/clip_image002_7F2886E5.jpg"&gt;&lt;img style="background-image:none;border-bottom:0px;border-left:0px;margin:0px;padding-left:0px;padding-right:0px;display:inline;border-top:0px;border-right:0px;padding-top:0px;" title="clip_image002" border="0" alt="clip_image002" src="http://myitforum.com/cs2/blogs/forefrontsecurity/clip_image002_thumb_59526082.jpg" width="244" height="103" /&gt;&lt;/a&gt;&lt;/p&gt;  &lt;p&gt;&lt;b&gt;1- &lt;/b&gt;&lt;b&gt;UAG Configuration:&lt;/b&gt;&lt;/p&gt;  &lt;p&gt;Create a new Trunk &lt;/p&gt;  &lt;p&gt;&lt;a href="http://myitforum.com/cs2/blogs/forefrontsecurity/clip_image004_0A719B23.jpg"&gt;&lt;img style="background-image:none;border-bottom:0px;border-left:0px;margin:0px;padding-left:0px;padding-right:0px;display:inline;border-top:0px;border-right:0px;padding-top:0px;" title="clip_image004" border="0" alt="clip_image004" src="http://myitforum.com/cs2/blogs/forefrontsecurity/clip_image004_thumb_50825836.jpg" width="196" height="244" /&gt;&lt;/a&gt;&lt;/p&gt;  &lt;p&gt;Choose to create a portal trunk and not an active directory federation service as you might be inclined to do. (The latter is for the old ADFS V1).&lt;/p&gt;  &lt;p&gt;&lt;a href="http://myitforum.com/cs2/blogs/forefrontsecurity/clip_image006_1693154A.jpg"&gt;&lt;img style="background-image:none;border-bottom:0px;border-left:0px;margin:0px;padding-left:0px;padding-right:0px;display:inline;border-top:0px;border-right:0px;padding-top:0px;" title="clip_image006" border="0" alt="clip_image006" src="http://myitforum.com/cs2/blogs/forefrontsecurity/clip_image006_thumb_6041ED3A.jpg" width="197" height="244" /&gt;&lt;/a&gt;&lt;/p&gt;  &lt;p&gt;Set up the trunk as you usually do&lt;/p&gt;  &lt;p&gt;&lt;a href="http://myitforum.com/cs2/blogs/forefrontsecurity/clip_image008_2D05B3D1.jpg"&gt;&lt;img style="background-image:none;border-bottom:0px;border-left:0px;margin:0px;padding-left:0px;padding-right:0px;display:inline;border-top:0px;border-right:0px;padding-top:0px;" title="clip_image008" border="0" alt="clip_image008" src="http://myitforum.com/cs2/blogs/forefrontsecurity/clip_image008_thumb_32E0576A.jpg" width="197" height="244" /&gt;&lt;/a&gt;&lt;/p&gt;  &lt;p&gt;When choosing the authentication repository&lt;/p&gt;  &lt;p&gt;&lt;a href="http://myitforum.com/cs2/blogs/forefrontsecurity/clip_image010_15F73295.jpg"&gt;&lt;img style="background-image:none;border-bottom:0px;border-left:0px;margin:0px;padding-left:0px;padding-right:0px;display:inline;border-top:0px;border-right:0px;padding-top:0px;" title="clip_image010" border="0" alt="clip_image010" src="http://myitforum.com/cs2/blogs/forefrontsecurity/clip_image010_thumb_50723269.jpg" width="196" height="244" /&gt;&lt;/a&gt;&lt;/p&gt;  &lt;p&gt;Select ADFS V2, &lt;/p&gt;  &lt;p&gt;The URL of the federation metadata file will be the one you created when installing ADFS V2:&lt;/p&gt;  &lt;p&gt;&lt;a href="https://adfs2_server/FederationMetadata/2007-06/federationmetadata.xml"&gt;https://adfs2_server/FederationMetadata/2007-06/federationmetadata.xml&lt;/a&gt;&lt;/p&gt;  &lt;p&gt;click Retrieve Metadata and select Name in as a claim value to be used as a lead value.&lt;/p&gt;  &lt;p&gt;&lt;a href="http://myitforum.com/cs2/blogs/forefrontsecurity/clip_image012_5A5723D4.jpg"&gt;&lt;img style="background-image:none;border-bottom:0px;border-left:0px;margin:0px;padding-left:0px;padding-right:0px;display:inline;border-top:0px;border-right:0px;padding-top:0px;" title="clip_image012" border="0" alt="clip_image012" src="http://myitforum.com/cs2/blogs/forefrontsecurity/clip_image012_thumb_78C164BD.jpg" width="134" height="244" /&gt;&lt;/a&gt;&lt;/p&gt;  &lt;p&gt;Complete the &lt;b&gt;“create trunk wizard”&lt;/b&gt; and copy the federation metadata link displayed at the bottom of the page. &lt;/p&gt;  &lt;p&gt;&lt;a href="http://myitforum.com/cs2/blogs/forefrontsecurity/clip_image014_65A03811.jpg"&gt;&lt;img style="background-image:none;border-bottom:0px;border-left:0px;margin:0px;padding-left:0px;padding-right:0px;display:inline;border-top:0px;border-right:0px;padding-top:0px;" title="clip_image014" border="0" alt="clip_image014" src="http://myitforum.com/cs2/blogs/forefrontsecurity/clip_image014_thumb_242585B8.jpg" width="197" height="244" /&gt;&lt;/a&gt;&lt;/p&gt;  &lt;p&gt;Finish and activate the configuration.&lt;/p&gt;  &lt;p&gt;To make my configuration easier what I did was copy this file directly to the ADFS Server:&lt;/p&gt;  &lt;p&gt;The file is called federationmetadata.xml and is in here: &lt;/p&gt;  &lt;p&gt;“C:\Program Files\Microsoft Forefront Unified Access Gateway\von\InternalSite\ADFSv2Sites\extranet\FederationMetadata\2007-06”&lt;/p&gt;  &lt;p&gt;&lt;b&gt;2- &lt;/b&gt;&lt;b&gt;ADFS configuration&lt;/b&gt;&lt;/p&gt;  &lt;p&gt;Next step is to configure ADFS to allow active directory users to authenticate to the UAG portal.&lt;/p&gt;  &lt;p&gt;In the ADFS V2 console, add a relying party trust:&lt;/p&gt;  &lt;p&gt;&lt;a href="http://myitforum.com/cs2/blogs/forefrontsecurity/clip_image016_5BF7C9DB.jpg"&gt;&lt;img style="background-image:none;border-bottom:0px;border-left:0px;margin:0px;padding-left:0px;padding-right:0px;display:inline;border-top:0px;border-right:0px;padding-top:0px;" title="clip_image016" border="0" alt="clip_image016" src="http://myitforum.com/cs2/blogs/forefrontsecurity/clip_image016_thumb_219C53FA.jpg" width="244" height="196" /&gt;&lt;/a&gt;&lt;/p&gt;  &lt;p&gt;In the select data source window, either paste the link you got form the UAG trunk creation wizard or point to the federation metadata file you copied to the server as I did below.&lt;/p&gt;  &lt;p&gt;&lt;a href="http://myitforum.com/cs2/blogs/forefrontsecurity/clip_image018_7989A4DA.jpg"&gt;&lt;img style="background-image:none;border-bottom:0px;border-left:0px;margin:0px;padding-left:0px;padding-right:0px;display:inline;border-top:0px;border-right:0px;padding-top:0px;" title="clip_image018" border="0" alt="clip_image018" src="http://myitforum.com/cs2/blogs/forefrontsecurity/clip_image018_thumb_5EDD08C1.jpg" width="244" height="196" /&gt;&lt;/a&gt;&lt;/p&gt;  &lt;p&gt;Proceed with the default remaining settings and finish.&lt;/p&gt;  &lt;p&gt;Finally you need to configure the rule template you would like to apply to your trust.&lt;/p&gt;  &lt;p&gt;Basically here you are telling you ADFS which value to get from your active directory users and to send to the UAG portal.&lt;/p&gt;  &lt;p&gt;You select to send LDAP attributes as claims.&lt;/p&gt;  &lt;p&gt;&lt;a href="http://myitforum.com/cs2/blogs/forefrontsecurity/clip_image020_7DB37C9F.jpg"&gt;&lt;img style="background-image:none;border-bottom:0px;border-left:0px;margin:0px;padding-left:0px;padding-right:0px;display:inline;border-top:0px;border-right:0px;padding-top:0px;" title="clip_image020" border="0" alt="clip_image020" src="http://myitforum.com/cs2/blogs/forefrontsecurity/clip_image020_thumb_35198DCE.jpg" width="244" height="196" /&gt;&lt;/a&gt;&lt;/p&gt;  &lt;p&gt;You choose active directory as your attribute store and select the attributes you would like to put in your outgoing claim.&lt;/p&gt;  &lt;p&gt;&lt;a href="http://myitforum.com/cs2/blogs/forefrontsecurity/clip_image022_1AD924AA.jpg"&gt;&lt;img style="background-image:none;border-bottom:0px;border-left:0px;padding-left:0px;padding-right:0px;display:inline;border-top:0px;border-right:0px;padding-top:0px;" title="clip_image022" border="0" alt="clip_image022" src="http://myitforum.com/cs2/blogs/forefrontsecurity/clip_image022_thumb_0436D663.jpg" width="231" height="244" /&gt;&lt;/a&gt;&lt;/p&gt;  &lt;p&gt;Once you are done, the transparent authentication should work perfectly.&lt;/p&gt;  &lt;p&gt;&lt;b&gt;3- &lt;/b&gt;&lt;b&gt;Troubleshooting:&lt;/b&gt;&lt;/p&gt;  &lt;p&gt;ADFS troubleshooting is not straight forward, you will need to monitor you web traffic using a software such as fiddler or http watch and see what is being transmitted.&lt;/p&gt;  &lt;p&gt;&amp;#160;&lt;/p&gt;  &lt;p&gt;&lt;strong&gt;Published by Hicham Bardawil&lt;/strong&gt;&lt;/p&gt;&lt;img src="http://myitforum.com/cs2/aggbug.aspx?PostID=153442" width="1" height="1"&gt;</description><category domain="http://myitforum.com/cs2/blogs/forefrontsecurity/archive/tags/Forefront/default.aspx">Forefront</category><category domain="http://myitforum.com/cs2/blogs/forefrontsecurity/archive/tags/Forefront+UAG/default.aspx">Forefront UAG</category><category domain="http://myitforum.com/cs2/blogs/forefrontsecurity/archive/tags/UAG+SP1/default.aspx">UAG SP1</category><category domain="http://myitforum.com/cs2/blogs/forefrontsecurity/archive/tags/Guide/default.aspx">Guide</category><category domain="http://myitforum.com/cs2/blogs/forefrontsecurity/archive/tags/step+by+step/default.aspx">step by step</category><category domain="http://myitforum.com/cs2/blogs/forefrontsecurity/archive/tags/ADFS/default.aspx">ADFS</category><category domain="http://myitforum.com/cs2/blogs/forefrontsecurity/archive/tags/Unified+Access+Gateway/default.aspx">Unified Access Gateway</category><category domain="http://myitforum.com/cs2/blogs/forefrontsecurity/archive/tags/ADFS+V2/default.aspx">ADFS V2</category></item><item><title>Forefront UAG SP1</title><link>http://myitforum.com/cs2/blogs/forefrontsecurity/archive/2010/12/05/forefront-uag-sp1.aspx</link><pubDate>Sun, 05 Dec 2010 12:09:04 GMT</pubDate><guid isPermaLink="false">8e8f7986-475c-475d-bdc9-a1b3a63b955b:153010</guid><dc:creator>forefrontsecurity</dc:creator><slash:comments>0</slash:comments><wfw:commentRss xmlns:wfw="http://wellformedweb.org/CommentAPI/">http://myitforum.com/cs2/blogs/forefrontsecurity/rsscomments.aspx?PostID=153010</wfw:commentRss><comments>http://myitforum.com/cs2/blogs/forefrontsecurity/archive/2010/12/05/forefront-uag-sp1.aspx#comments</comments><description>&lt;p&gt;Je relaie l’information déjà publiée sur pas mal de blogs concernant la mise à disposition de la version finale du SP1 de Forefront UAG.&lt;/p&gt;  &lt;p&gt;Vous trouverez les liens pour le téléchargement du SP1 seul ici : &lt;a title="http://www.microsoft.com/downloads/en/details.aspx?FamilyID=980ff09f-2d5e-4299-9218-8b3cab8ef77a" href="http://www.microsoft.com/downloads/en/details.aspx?FamilyID=980ff09f-2d5e-4299-9218-8b3cab8ef77a"&gt;http://www.microsoft.com/downloads/en/details.aspx?FamilyID=980ff09f-2d5e-4299-9218-8b3cab8ef77a&lt;/a&gt;&lt;/p&gt;  &lt;p&gt;Toutes les nouveautés sont présentées ici : &lt;a title="http://technet.microsoft.com/en-us/library/gg295322.aspx" href="http://technet.microsoft.com/en-us/library/gg295322.aspx"&gt;http://technet.microsoft.com/en-us/library/gg295322.aspx&lt;/a&gt;&lt;/p&gt;  &lt;p&gt;Si comme moi , vous aviez une installation de test avec UAG SP1 RC, vous pouvez installer le SP1 seul “in place”.&lt;/p&gt;  &lt;p align="right"&gt;Publié par Olivier DETILLEUX&lt;/p&gt;&lt;img src="http://myitforum.com/cs2/aggbug.aspx?PostID=153010" width="1" height="1"&gt;</description><category domain="http://myitforum.com/cs2/blogs/forefrontsecurity/archive/tags/Forefront+UAG/default.aspx">Forefront UAG</category><category domain="http://myitforum.com/cs2/blogs/forefrontsecurity/archive/tags/UAG+SP1/default.aspx">UAG SP1</category><category domain="http://myitforum.com/cs2/blogs/forefrontsecurity/archive/tags/Forefront+UAG+SP1/default.aspx">Forefront UAG SP1</category></item><item><title>Uninstalling a UAG Update</title><link>http://myitforum.com/cs2/blogs/forefrontsecurity/archive/2010/11/17/uninstalling-a-uag-update.aspx</link><pubDate>Wed, 17 Nov 2010 14:48:14 GMT</pubDate><guid isPermaLink="false">8e8f7986-475c-475d-bdc9-a1b3a63b955b:152677</guid><dc:creator>forefrontsecurity</dc:creator><slash:comments>0</slash:comments><wfw:commentRss xmlns:wfw="http://wellformedweb.org/CommentAPI/">http://myitforum.com/cs2/blogs/forefrontsecurity/rsscomments.aspx?PostID=152677</wfw:commentRss><comments>http://myitforum.com/cs2/blogs/forefrontsecurity/archive/2010/11/17/uninstalling-a-uag-update.aspx#comments</comments><description>&lt;p&gt;Ever Wondered how to uninstall a newly installed UAG update ?&lt;/p&gt;  &lt;p&gt;here’s the simple way to do that:&lt;/p&gt;  &lt;p&gt;&lt;em&gt;&lt;strong&gt;go to C:\Program Files\Microsoft Forefront Unified Access Gateway\common\bin &lt;/strong&gt;&lt;/em&gt;and run the &amp;quot;&lt;em&gt;&lt;strong&gt;UninstallUagUpdate.exe&lt;/strong&gt;&lt;/em&gt;&amp;quot;&lt;/p&gt;  &lt;p&gt;&amp;#160;&lt;/p&gt;  &lt;p&gt;published by Hicham Bardawil&lt;/p&gt;&lt;img src="http://myitforum.com/cs2/aggbug.aspx?PostID=152677" width="1" height="1"&gt;</description><category domain="http://myitforum.com/cs2/blogs/forefrontsecurity/archive/tags/Forefront/default.aspx">Forefront</category><category domain="http://myitforum.com/cs2/blogs/forefrontsecurity/archive/tags/Forefront+UAG/default.aspx">Forefront UAG</category><category domain="http://myitforum.com/cs2/blogs/forefrontsecurity/archive/tags/Troubleshooting/default.aspx">Troubleshooting</category></item><item><title>Upgrade your Forefront UAG installation to UAG SP1 RC</title><link>http://myitforum.com/cs2/blogs/forefrontsecurity/archive/2010/10/25/update-your-forefront-uag-installation-to-uag-sp1-rc.aspx</link><pubDate>Mon, 25 Oct 2010 15:54:33 GMT</pubDate><guid isPermaLink="false">8e8f7986-475c-475d-bdc9-a1b3a63b955b:152056</guid><dc:creator>forefrontsecurity</dc:creator><slash:comments>0</slash:comments><wfw:commentRss xmlns:wfw="http://wellformedweb.org/CommentAPI/">http://myitforum.com/cs2/blogs/forefrontsecurity/rsscomments.aspx?PostID=152056</wfw:commentRss><comments>http://myitforum.com/cs2/blogs/forefrontsecurity/archive/2010/10/25/update-your-forefront-uag-installation-to-uag-sp1-rc.aspx#comments</comments><description>&lt;p&gt;I have got a Direct Access lab environment with an UAG RTM, and I want to upgrade to UAG SP1.&lt;/p&gt;  &lt;p&gt;So I have downloaded the upgrade package (&lt;a title="http://www.microsoft.com/downloads/en/details.aspx?FamilyID=980ff09f-2d5e-4299-9218-8b3cab8ef77a" href="http://www.microsoft.com/downloads/en/details.aspx?FamilyID=980ff09f-2d5e-4299-9218-8b3cab8ef77a"&gt;http://www.microsoft.com/downloads/en/details.aspx?FamilyID=980ff09f-2d5e-4299-9218-8b3cab8ef77a&lt;/a&gt;) and launch it on my platform. During the prerequisite installation, there was an error : &lt;/p&gt;  &lt;p&gt;“Setup failed UAG during Prerequisites installation”&lt;/p&gt;  &lt;p&gt;&lt;a href="http://myitforum.com/cs2/blogs/forefrontsecurity/image_350F1903.png"&gt;&lt;img style="background-image:none;border-right-width:0px;padding-left:0px;padding-right:0px;display:block;float:none;border-top-width:0px;border-bottom-width:0px;margin-left:auto;border-left-width:0px;margin-right:auto;padding-top:0px;" title="image" border="0" alt="image" src="http://myitforum.com/cs2/blogs/forefrontsecurity/image_thumb_19F649F5.png" width="333" height="307" /&gt;&lt;/a&gt;&lt;/p&gt;  &lt;p&gt;After a manual installation of Forefront TMG SP1, installation was successfull.&lt;/p&gt;  &lt;p&gt;A restart later, here is the new management console : &lt;/p&gt;  &lt;p&gt;&lt;a href="http://myitforum.com/cs2/blogs/forefrontsecurity/image_1F60C8BA.png"&gt;&lt;img style="background-image:none;border-right-width:0px;padding-left:0px;padding-right:0px;display:block;float:none;border-top-width:0px;border-bottom-width:0px;margin-left:auto;border-left-width:0px;margin-right:auto;padding-top:0px;" title="image" border="0" alt="image" src="http://myitforum.com/cs2/blogs/forefrontsecurity/image_thumb_411C7B7E.png" width="441" height="221" /&gt;&lt;/a&gt;&lt;/p&gt;  &lt;p&gt;You cannot generate and activate the configuration right now, because some features needs some configuration.&lt;/p&gt;  &lt;p&gt;There are an other issue : If you allready have an HRA server in your organisation, he’s automatically added to a custom servers groups : “NAP”. I recommand to move this server into the HRA predefined group. The connectivity was KO until I move the server.&lt;/p&gt;  &lt;p align="right"&gt;Published by Olivier DETILLEUX&lt;/p&gt;&lt;img src="http://myitforum.com/cs2/aggbug.aspx?PostID=152056" width="1" height="1"&gt;</description><category domain="http://myitforum.com/cs2/blogs/forefrontsecurity/archive/tags/Forefront/default.aspx">Forefront</category><category domain="http://myitforum.com/cs2/blogs/forefrontsecurity/archive/tags/Forefront+UAG/default.aspx">Forefront UAG</category><category domain="http://myitforum.com/cs2/blogs/forefrontsecurity/archive/tags/UAG/default.aspx">UAG</category><category domain="http://myitforum.com/cs2/blogs/forefrontsecurity/archive/tags/UAG+SP1/default.aspx">UAG SP1</category><category domain="http://myitforum.com/cs2/blogs/forefrontsecurity/archive/tags/Forefront+UAG+SP1+RC/default.aspx">Forefront UAG SP1 RC</category></item><item><title>Implementing SSO for the SCOM Login Page through UAG</title><link>http://myitforum.com/cs2/blogs/forefrontsecurity/archive/2010/10/05/implementing-sso-for-the-scom-login-page-through-uag.aspx</link><pubDate>Tue, 05 Oct 2010 08:48:00 GMT</pubDate><guid isPermaLink="false">8e8f7986-475c-475d-bdc9-a1b3a63b955b:151643</guid><dc:creator>forefrontsecurity</dc:creator><slash:comments>0</slash:comments><wfw:commentRss xmlns:wfw="http://wellformedweb.org/CommentAPI/">http://myitforum.com/cs2/blogs/forefrontsecurity/rsscomments.aspx?PostID=151643</wfw:commentRss><comments>http://myitforum.com/cs2/blogs/forefrontsecurity/archive/2010/10/05/implementing-sso-for-the-scom-login-page-through-uag.aspx#comments</comments><description>&lt;p&gt;&lt;br /&gt;&lt;/p&gt;  &lt;p&gt;I’d like to mention that this article was co-Written with Frederic Esnouf whom i thank for his help.he also published it on his blog: &lt;a href="http://blogs.technet.com/b/fesnouf/archive/2010/10/01/implementing-uag-sso-with-scom.aspx"&gt;http://blogs.technet.com/b/fesnouf/archive/2010/10/01/implementing-uag-sso-with-scom.aspx&lt;/a&gt;.&lt;/p&gt;  &lt;p&gt;I decided to write this article after trying to follow a small post that he’d made earlier and encountering few problems.&amp;nbsp; &lt;/p&gt;  &lt;p&gt;We’ve seen in previous articles how to implement SSO through UAG for non-default websites. Those solutions however do not apply for all encountered form login website and you might encounter some issues implementing this solution for some forms.    &lt;br /&gt;We will go through the implementation of the SSO solution for the SCOM Form login website and walkthrough the troubleshooting process that could be followed in case of problems.&lt;/p&gt;  &lt;p&gt;1- Web publishing&lt;/p&gt;  &lt;p&gt;Below is the SCOM forms login page that we need to avoid manually login on to.&lt;/p&gt;  &lt;p&gt;&lt;a href="http://myitforum.com/cs2/blogs/forefrontsecurity/clip_image0027_61F3EA56.jpg"&gt;&lt;img style="border-right-width:0px;display:inline;border-top-width:0px;border-bottom-width:0px;border-left-width:0px;" title="clip_image002[7]" border="0" alt="clip_image002[7]" src="http://myitforum.com/cs2/blogs/forefrontsecurity/clip_image0027_thumb_59FC47F4.jpg" width="244" height="191" /&gt;&lt;/a&gt;&lt;/p&gt;  &lt;p&gt;We will start by creating a new “Other Web Application (application specific hostname)” publishing&lt;/p&gt;  &lt;p&gt;&lt;a href="http://myitforum.com/cs2/blogs/forefrontsecurity/clip_image0047_5204A592.jpg"&gt;&lt;img style="border-right-width:0px;display:inline;border-top-width:0px;border-bottom-width:0px;border-left-width:0px;" title="clip_image004[7]" border="0" alt="clip_image004[7]" src="http://myitforum.com/cs2/blogs/forefrontsecurity/clip_image0047_thumb_1EC86C29.jpg" width="197" height="244" /&gt;&lt;/a&gt;&lt;/p&gt;  &lt;p&gt;Follow the wizard’s steps and note the «Application type » specified.&lt;/p&gt;  &lt;p&gt;&lt;a href="http://myitforum.com/cs2/blogs/forefrontsecurity/clip_image006_569AB04C.jpg"&gt;&lt;img style="border-right-width:0px;display:inline;border-top-width:0px;border-bottom-width:0px;border-left-width:0px;" title="clip_image006" border="0" alt="clip_image006" src="http://myitforum.com/cs2/blogs/forefrontsecurity/clip_image006_thumb_7571242A.jpg" width="198" height="244" /&gt;&lt;/a&gt;&lt;/p&gt;  &lt;p&gt;On the authentication step, activate the single sign-on checkbox, select an authentication server and choose “HTML form” as the authentication method.&lt;/p&gt;  &lt;p&gt;&lt;a href="http://myitforum.com/cs2/blogs/forefrontsecurity/clip_image008_026B043C.jpg"&gt;&lt;img style="border-right-width:0px;display:inline;border-top-width:0px;border-bottom-width:0px;border-left-width:0px;" title="clip_image008" border="0" alt="clip_image008" src="http://myitforum.com/cs2/blogs/forefrontsecurity/clip_image008_thumb_4C19DC2C.jpg" width="197" height="244" /&gt;&lt;/a&gt;&lt;/p&gt;  &lt;p&gt;Once the configuration is done and activated, the SCOM form login website will be accessible on this address: &lt;a href="https://scom.xxx.fr/"&gt;https://scom.xxx.fr/&lt;/a&gt;, you will have to authenticate and login manually though.&lt;/p&gt;  &lt;p&gt;Next step is to create the Custom XML file that will enable the SSO access to the SCOM page, &lt;/p&gt;  &lt;p&gt;The file should be called formlogin.xml and stored in the following folder: &lt;/p&gt;  &lt;p&gt;&lt;strong&gt;« C:\Program Files\Microsoft Forefront Unified Access Gateway\von\Conf\WizardDefaults\FormLogin\CustomUpdate\ »&lt;/strong&gt;&lt;/p&gt;  &lt;p&gt;Below is the custom formlogin.xml file that was created for the SCOM page SSO:&lt;/p&gt;  &lt;table cellspacing="0" cellpadding="2"&gt;&lt;tbody&gt;     &lt;tr&gt;       &lt;td&gt;         &lt;p&gt;&amp;lt;WHLFILTFORMLOGIN ver=&amp;quot;1.0&amp;quot;&amp;gt; &lt;/p&gt;          &lt;p&gt;&amp;lt;APPLICATION&amp;gt; &lt;/p&gt;          &lt;p&gt;&amp;lt;APPLICATION_TYPE&amp;gt;ScomWI&amp;lt;/APPLICATION_TYPE&amp;gt; &lt;/p&gt;          &lt;p&gt;&amp;lt;USAGE description=&amp;quot;form_login&amp;quot;&amp;gt; &lt;/p&gt;          &lt;p&gt;&amp;lt;PRIMARY_HOST_URL&amp;gt;.*login\.aspx.*&amp;lt;/PRIMARY_HOST_URL&amp;gt; &lt;/p&gt;          &lt;p&gt;&amp;lt;SCRIPT_NAME source=&amp;quot;file&amp;quot;&amp;gt;Autosubmit_Scom.js&amp;lt;/SCRIPT_NAME&amp;gt; &lt;/p&gt;          &lt;p&gt;&amp;lt;USER_AGENT&amp;gt; &lt;/p&gt;          &lt;p&gt;&amp;lt;AGENT_TYPE search=&amp;quot;group&amp;quot;&amp;gt;all_supported&amp;lt;/AGENT_TYPE&amp;gt; &lt;/p&gt;          &lt;p&gt;&amp;lt;POLICY&amp;gt;multiplatform&amp;lt;/POLICY&amp;gt; &lt;/p&gt;          &lt;p&gt;&amp;lt;SCRIPT_NAME source=&amp;quot;data_definition&amp;quot;&amp;gt;FormLoginHandler&amp;lt;/SCRIPT_NAME&amp;gt; &lt;/p&gt;          &lt;p&gt;&amp;lt;/USER_AGENT&amp;gt; &lt;/p&gt;          &lt;p&gt;&amp;lt;LOGIN_FORM&amp;gt; &lt;/p&gt;          &lt;p&gt;&amp;lt;NAME&amp;gt;form1&amp;lt;/NAME&amp;gt; &lt;/p&gt;          &lt;p&gt;&amp;lt;METHOD&amp;gt;POST&amp;lt;/METHOD&amp;gt; &lt;/p&gt;          &lt;p&gt;&amp;lt;CONTROL handling=&amp;quot;real_value&amp;quot;&amp;gt; &lt;/p&gt;          &lt;p&gt;&amp;lt;TYPE&amp;gt;USER_NAME&amp;lt;/TYPE&amp;gt; &lt;/p&gt;          &lt;p&gt;&amp;lt;NAME&amp;gt;Login1$UserName&amp;lt;/NAME&amp;gt; &lt;/p&gt;          &lt;p&gt;&amp;lt;DEF_VALUE&amp;gt;siteuser&amp;lt;/DEF_VALUE&amp;gt; &lt;/p&gt;          &lt;p&gt;&amp;lt;/CONTROL&amp;gt; &lt;/p&gt;          &lt;p&gt;&amp;lt;CONTROL handling=&amp;quot;real_value&amp;quot;&amp;gt; &lt;/p&gt;          &lt;p&gt;&amp;lt;TYPE&amp;gt;PASSWORD&amp;lt;/TYPE&amp;gt; &lt;/p&gt;          &lt;p&gt;&amp;lt;NAME&amp;gt;Login1$Password&amp;lt;/NAME&amp;gt; &lt;/p&gt;          &lt;p&gt;&amp;lt;DEF_VALUE&amp;gt;sitepass&amp;lt;/DEF_VALUE&amp;gt; &lt;/p&gt;          &lt;p&gt;&amp;lt;/CONTROL&amp;gt; &lt;/p&gt;          &lt;p&gt;&amp;lt;CONTROL handling=&amp;quot;real_value&amp;quot;&amp;gt; &lt;/p&gt;          &lt;p&gt;&amp;lt;TYPE&amp;gt;submit&amp;lt;/TYPE&amp;gt; &lt;/p&gt;          &lt;p&gt;&amp;lt;NAME&amp;gt;Login1$LoginButton&amp;lt;/NAME&amp;gt; &lt;/p&gt;          &lt;p&gt;&amp;lt;DEF_VALUE&amp;gt;Log In&amp;lt;/DEF_VALUE&amp;gt; &lt;/p&gt;          &lt;p&gt;&amp;lt;/CONTROL&amp;gt; &lt;/p&gt;          &lt;p&gt;&amp;lt;/LOGIN_FORM&amp;gt; &lt;/p&gt;          &lt;p&gt;&amp;lt;/USAGE&amp;gt; &lt;/p&gt;          &lt;p&gt;&amp;lt;/APPLICATION&amp;gt; &lt;/p&gt;          &lt;p&gt;&amp;lt;/WHLFILTFORMLOGIN&amp;gt;&lt;/p&gt;       &lt;/td&gt;     &lt;/tr&gt;   &lt;/tbody&gt;&lt;/table&gt;  &lt;p&gt;&lt;b&gt;&lt;/b&gt;&lt;/p&gt;  &lt;p&gt;&lt;b&gt;&amp;lt;APPLICATION_TYPE&amp;gt;&lt;/b&gt; must be the same as the application type entered during the Publishing.&lt;/p&gt;  &lt;p&gt;&lt;b&gt;&lt;/b&gt;&lt;/p&gt;  &lt;p&gt;&lt;b&gt;&amp;lt;PRIMARY_HOST_URL&amp;gt;&lt;/b&gt; must be equal to the Forms’ web address to which you would like to apply the script.in our case the address is &lt;a href="https://scom.xxx.fr/login.aspx?ReturnUrl=%2fdefault.aspx"&gt;https://scom.xxx.fr/login.aspx?ReturnUrl=%2fdefault.aspx&lt;/a&gt;, through REGEX syntax the address can be reduced to .*login\.aspx.*&lt;/p&gt;  &lt;p&gt;&lt;b&gt;&lt;/b&gt;&lt;/p&gt;  &lt;p&gt;&lt;b&gt;&amp;lt;SCRIPT_NAME source=&amp;quot;file&amp;quot;&amp;gt;&lt;/b&gt;Autosubmit_Scom.js&lt;b&gt;&amp;lt;/SCRIPT_NAME&amp;gt; i&lt;/b&gt;s the JavaScript file that will allow us to submit the filled out form and login. We will view it in more details later on.&lt;/p&gt;  &lt;p&gt;&lt;b&gt;&lt;/b&gt;&lt;/p&gt;  &lt;p&gt;&lt;b&gt;&amp;lt;NAME&amp;gt;&lt;/b&gt;form1&lt;b&gt;&amp;lt;/NAME&amp;gt; &lt;/b&gt;must be equal to the form’s name &lt;b&gt;&lt;/b&gt;&lt;/p&gt;  &lt;p&gt;This parameter can be found by browsing the web page’s source code for the following element:&lt;/p&gt;  &lt;table cellspacing="0" cellpadding="2"&gt;&lt;tbody&gt;     &lt;tr&gt;       &lt;td&gt;&amp;lt;form name=&amp;quot;form1&amp;quot; method=&amp;quot;post&amp;quot; action=&amp;quot;login.aspx?ReturnUrl=%2fdefault.aspx&amp;quot; onsubmit=&amp;quot;javascript:return WebForm_OnSubmit();&amp;quot; id=&amp;quot;form1&amp;quot;&amp;gt;&lt;/td&gt;     &lt;/tr&gt;   &lt;/tbody&gt;&lt;/table&gt;  &lt;p&gt;&lt;b&gt;&lt;/b&gt;&lt;/p&gt;  &lt;p&gt;&lt;b&gt;&amp;lt;NAME&amp;gt;&lt;/b&gt;Login1$UserName&lt;b&gt;&amp;lt;/NAME&amp;gt; &lt;/b&gt;must be equal to the form’s field that the script will fill with the Username. &lt;/p&gt;  &lt;p&gt;This parameter can be found by browsing the web page’s source code for the following element:&lt;/p&gt;  &lt;table cellspacing="0" cellpadding="2"&gt;&lt;tbody&gt;     &lt;tr&gt;       &lt;td&gt;&amp;lt;td align=&amp;quot;right&amp;quot;&amp;gt;&amp;lt;label for=&amp;quot;Login1_UserName&amp;quot;&amp;gt;Domain\User Name :&amp;lt;/label&amp;gt;&amp;lt;/td&amp;gt;&amp;lt;td&amp;gt;&amp;lt;input name=&amp;quot;Login1$UserName&amp;quot; type=&amp;quot;text&amp;quot;&lt;/td&gt;     &lt;/tr&gt;   &lt;/tbody&gt;&lt;/table&gt;  &lt;p&gt;&lt;b&gt;&amp;lt;DEF_VALUE&amp;gt;&lt;/b&gt;siteuser&lt;b&gt;&amp;lt;/DEF_VALUE&amp;gt; &lt;/b&gt;this value is a constant and will automatically fill the above field with the correct info.&lt;/p&gt;  &lt;p&gt;&lt;b&gt;&lt;/b&gt;&lt;/p&gt;  &lt;p&gt;&lt;b&gt;&amp;lt;NAME&amp;gt;&lt;/b&gt;Login1$Password&lt;b&gt;&amp;lt;/NAME&amp;gt; &lt;/b&gt;must be equal to the form’s field that the script will fill with the Password. &lt;/p&gt;  &lt;p&gt;This parameter can be found by browsing the web page’s source code for the following element:&lt;/p&gt;  &lt;p&gt;&lt;b&gt;&lt;/b&gt;&lt;/p&gt;  &lt;table cellspacing="0" cellpadding="2"&gt;&lt;tbody&gt;     &lt;tr&gt;       &lt;td&gt;&amp;lt;td align=&amp;quot;right&amp;quot;&amp;gt;&amp;lt;label for=&amp;quot;Login1_Password&amp;quot;&amp;gt;Password :&amp;lt;/label&amp;gt;&amp;lt;/td&amp;gt;&amp;lt;td&amp;gt;&amp;lt;input name=&amp;quot;Login1$Password&amp;quot; type=&amp;quot;password&amp;quot;&lt;/td&gt;     &lt;/tr&gt;   &lt;/tbody&gt;&lt;/table&gt;  &lt;p&gt;&lt;b&gt;&amp;lt;DEF_VALUE&amp;gt;&lt;/b&gt;siteuser&lt;b&gt;&amp;lt;/DEF_VALUE&amp;gt; &amp;gt; &lt;/b&gt;this value is a constant and will automatically fill the above field with the correct info.&lt;/p&gt;  &lt;p&gt;&lt;b&gt;&lt;/b&gt;&lt;/p&gt;  &lt;p&gt;&lt;b&gt;&lt;/b&gt;&lt;/p&gt;  &lt;p&gt;&lt;b&gt;&amp;lt;NAME&amp;gt;&lt;/b&gt;Login1$LoginButton&lt;b&gt;&amp;lt;/NAME&amp;gt; &lt;/b&gt;must be equal to the form’s login button name.&lt;/p&gt;  &lt;p&gt;This parameter can be found by browsing the web page’s source code for the following element:&lt;/p&gt;  &lt;p&gt;&amp;lt;&amp;lt;td align=&amp;quot;right&amp;quot; colspan=&amp;quot;2&amp;quot;&amp;gt;&amp;lt;input type=&amp;quot;submit&amp;quot; name=&amp;quot;Login1$LoginButton&amp;quot; value=&amp;quot;Log In&amp;quot;&lt;/p&gt;  &lt;p&gt;&lt;b&gt;&lt;/b&gt;&lt;/p&gt;  &lt;table cellspacing="0" cellpadding="2"&gt;&lt;tbody&gt;     &lt;tr&gt;       &lt;td&gt;&lt;b&gt;&amp;lt;DEF_VALUE&amp;gt;&lt;/b&gt;Log In&lt;b&gt;&amp;lt;/DEF_VALUE&amp;gt; &lt;/b&gt;must be equal to the value that the login button has.&lt;/td&gt;     &lt;/tr&gt;   &lt;/tbody&gt;&lt;/table&gt;  &lt;p&gt;&amp;nbsp;&lt;/p&gt;  &lt;p&gt;&amp;nbsp;&lt;/p&gt;  &lt;p&gt;Once those parameters filled correctly, the Autosubmit_Scom.js script must be edited and copied to the correct location.&lt;/p&gt;  &lt;p&gt;The default &lt;b&gt;Autosubmit.js&lt;/b&gt; provided by UAG usually submits the filled out form without any problem.&lt;/p&gt;  &lt;p&gt;&amp;nbsp;&lt;/p&gt;  &lt;p&gt;It is located in the following directory&lt;/p&gt;  &lt;p&gt;&lt;strong&gt;« C:\Program Files\Microsoft Forefront Unified Access Gateway\von\Conf\WizardDefaults\FormLogin\ »&lt;/strong&gt;&lt;/p&gt;  &lt;p&gt;It must be copied to &lt;strong&gt;« C:\Program Files\Microsoft Forefront Unified Access Gateway\von\Conf\WebSites\extranet\conf »&lt;/strong&gt; and renamed as &lt;strong&gt;autosubmit_Scom.js&lt;/strong&gt; as specified in the formlogin file.&lt;/p&gt;  &lt;p&gt;After activating the UAG configuration, accessing the &lt;a href="https://scom.xxx.com/"&gt;&lt;strong&gt;https://scom.xxx.com/&lt;/strong&gt;&lt;/a&gt; link, we fill out the UAG authentication form and submit the request.&lt;/p&gt;  &lt;h4&gt;&lt;/h4&gt;  &lt;h4&gt;&amp;nbsp;&lt;/h4&gt;  &lt;h4&gt;&lt;strong&gt;Troubleshooting :&lt;/strong&gt;&lt;/h4&gt;  &lt;p&gt;Implementing this solution requires a little knowledge of HTML and Javascript, there are however some tools that can help out troubleshoot problems you might encounter.&lt;/p&gt;  &lt;p&gt;Among the issues that might happen:&lt;/p&gt;  &lt;p&gt;&amp;nbsp;&lt;/p&gt;  &lt;p&gt;&lt;strong&gt;1- The Scom page is not filled with any login information:&lt;/strong&gt;&lt;/p&gt;  &lt;p&gt;The problem in this case is most probably with the formlogin.xml file that was not filled correctly.&lt;/p&gt;  &lt;p&gt;HTTPWatch is a browser plugin that can help you trace the script execution.&lt;/p&gt;  &lt;p&gt;By recording the ongoing events you can check and see if the script was executed or not.&lt;/p&gt;  &lt;p&gt;In the snapshot below, we located the post event and by looking at the post data noticed that the requested data is being sent to the Scom Form.&lt;/p&gt;  &lt;p&gt;&lt;a href="http://myitforum.com/cs2/blogs/forefrontsecurity/clip_image0107_51F47FC5.jpg"&gt;&lt;img style="border-right-width:0px;display:inline;border-top-width:0px;border-bottom-width:0px;border-left-width:0px;" title="clip_image010[7]" border="0" alt="clip_image010[7]" src="http://myitforum.com/cs2/blogs/forefrontsecurity/clip_image0107_thumb_08EE5DFF.jpg" width="244" height="96" /&gt;&lt;/a&gt;&lt;/p&gt;  &lt;p&gt;Additionally when looking at the Content tab you should see the « FormLoginOnLoad » function at the top and bottom of the HTML code.&lt;/p&gt;  &lt;table cellspacing="0" cellpadding="2"&gt;&lt;tbody&gt;     &lt;tr&gt;       &lt;td&gt;         &lt;p&gt;&amp;lt;SCRIPT language=&amp;quot;JavaScript&amp;quot;&amp;gt; &lt;/p&gt;          &lt;p&gt;var gSafeOnload = new Array(); &lt;/p&gt;          &lt;p&gt;function FormLoginOnload() &lt;/p&gt;          &lt;p&gt;{ &lt;/p&gt;          &lt;p&gt;for (var i=0; i &amp;lt; gSafeOnload.length; i ++) &lt;/p&gt;          &lt;p&gt;{ &lt;/p&gt;          &lt;p&gt;gSafeOnload&lt;img src="http://myitforum.com/cs2/emoticons/emotion-55.gif" alt="Idea" /&gt;(); &lt;/p&gt;          &lt;p&gt;}// for i &lt;/p&gt;          &lt;p&gt;}// FormLoginOnload &lt;/p&gt;          &lt;p&gt;if (window.onload) &lt;/p&gt;          &lt;p&gt;{ &lt;/p&gt;          &lt;p&gt;gSafeOnload[0] = window.onload; &lt;/p&gt;          &lt;p&gt;gSafeOnload[gSafeOnload.length] = FormLoginSubmit; &lt;/p&gt;          &lt;p&gt;window.onload = FormLoginOnload; &lt;/p&gt;          &lt;p&gt;} &lt;/p&gt;          &lt;p&gt;else &lt;/p&gt;          &lt;p&gt;{ &lt;/p&gt;          &lt;p&gt;window.onload = FormLoginSubmit; &lt;/p&gt;          &lt;p&gt;} // if window.onload &lt;/p&gt;          &lt;p&gt;&amp;lt;/SCRIPT&amp;gt;&lt;/p&gt;       &lt;/td&gt;     &lt;/tr&gt;   &lt;/tbody&gt;&lt;/table&gt;  &lt;p&gt;&amp;nbsp;&lt;/p&gt;  &lt;p&gt;If either one is missing, then the formlogin.xml was not detected by UAG because of some incorrect information.&lt;/p&gt;  &lt;p&gt;&amp;nbsp;&lt;/p&gt;  &lt;p&gt;&lt;strong&gt;2- The form was successfully filled but was not submitted:&lt;/strong&gt;&lt;/p&gt;  &lt;p&gt;The problem in this case lies in the autosubmit_Scom.js script&lt;/p&gt;  &lt;p&gt;The submit function can vary from an HTML page to another, meaning that the default submit code might not always work.&lt;/p&gt;  &lt;p&gt;In order to trace the behavior of the SCOM login page during the script’s execution we will use internet explorer’s Developer tools which are now integrated with IE 8.&lt;/p&gt;  &lt;p&gt;Enable the tools, access SCOM login page and ask the developer tools to monitor the login button’s behavior.&lt;/p&gt;  &lt;p&gt;The HTML code will be displayed and by selecting the script tab, you will be able to execute the autosubmit.js content and see the page’s reaction live.&lt;/p&gt;  &lt;p&gt;&lt;a href="http://myitforum.com/cs2/blogs/forefrontsecurity/clip_image012_15E83E10.jpg"&gt;&lt;img style="border-right-width:0px;display:inline;border-top-width:0px;border-bottom-width:0px;border-left-width:0px;" title="clip_image012" border="0" alt="clip_image012" src="http://myitforum.com/cs2/blogs/forefrontsecurity/clip_image012_thumb_33E64C04.jpg" width="244" height="187" /&gt;&lt;/a&gt;&lt;/p&gt;  &lt;p&gt;The following functions are but few of the possible functions that could make the HTML page execute a submit.&lt;/p&gt;  &lt;p&gt;In our case the example 2, simulating a click on the button was the one that worked, and executing the function in the developer tools script windows allowed us to identify that.    &lt;/p&gt;&lt;table cellspacing="0" cellpadding="0"&gt;&lt;tbody&gt;       &lt;tr&gt;         &lt;td&gt;           &lt;p&gt;Par default&lt;/p&gt;         &lt;/td&gt;          &lt;td&gt;           &lt;p&gt;Exemple 1&lt;/p&gt;         &lt;/td&gt;          &lt;td&gt;           &lt;p&gt;Exemple 2&lt;/p&gt;         &lt;/td&gt;       &lt;/tr&gt;        &lt;tr&gt;         &lt;td&gt;           &lt;p&gt;function FormLoginSubmit()&lt;/p&gt;            &lt;p&gt;{&amp;nbsp;&amp;nbsp; &lt;/p&gt;            &lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; document.forms[1].submit();&lt;/p&gt;            &lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; return false;&lt;/p&gt;            &lt;p&gt;}&lt;/p&gt;         &lt;/td&gt;          &lt;td&gt;           &lt;p&gt;function FormLoginSubmit()&lt;/p&gt;            &lt;p&gt;{&amp;nbsp;&amp;nbsp; &lt;/p&gt;            &lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; logon();&lt;/p&gt;            &lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; return false;&lt;/p&gt;            &lt;p&gt;}&lt;/p&gt;         &lt;/td&gt;          &lt;td&gt;           &lt;p&gt;function FormLoginSubmit()&lt;/p&gt;            &lt;p&gt;{&lt;/p&gt;            &lt;p&gt;document.form1.Login1$LoginButton.click();&lt;/p&gt;            &lt;p&gt;return false;&lt;/p&gt;            &lt;p&gt;}&lt;/p&gt;         &lt;/td&gt;       &lt;/tr&gt;     &lt;/tbody&gt;&lt;/table&gt; &lt;p&gt;&lt;br /&gt;&lt;/p&gt;  &lt;p&gt;&amp;nbsp;&lt;/p&gt;  &lt;p&gt;Published By Hicham Bardawil&lt;/p&gt;  &lt;p&gt;&lt;span class="Apple-style-span" style="font-size:large;"&gt;&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/span&gt;&lt;/p&gt;&lt;img src="http://myitforum.com/cs2/aggbug.aspx?PostID=151643" width="1" height="1"&gt;</description><category domain="http://myitforum.com/cs2/blogs/forefrontsecurity/archive/tags/Forefront/default.aspx">Forefront</category><category domain="http://myitforum.com/cs2/blogs/forefrontsecurity/archive/tags/Forefront+UAG/default.aspx">Forefront UAG</category><category domain="http://myitforum.com/cs2/blogs/forefrontsecurity/archive/tags/Forefront+TMG/default.aspx">Forefront TMG</category><category domain="http://myitforum.com/cs2/blogs/forefrontsecurity/archive/tags/Troubleshooting/default.aspx">Troubleshooting</category><category domain="http://myitforum.com/cs2/blogs/forefrontsecurity/archive/tags/Javascript/default.aspx">Javascript</category><category domain="http://myitforum.com/cs2/blogs/forefrontsecurity/archive/tags/SCOM/default.aspx">SCOM</category><category domain="http://myitforum.com/cs2/blogs/forefrontsecurity/archive/tags/Single+Sign-in/default.aspx">Single Sign-in</category><category domain="http://myitforum.com/cs2/blogs/forefrontsecurity/archive/tags/SSO/default.aspx">SSO</category></item></channel></rss>