<?xml version="1.0" encoding="utf-8" ?>
<?xml-stylesheet type="text/xsl" href="RSS_xslt_style.asp" version="1.0" ?>
<rss version="2.0" xmlns:WebWizForums="http://syndication.webwiz.co.uk/rss_namespace/">
 <channel>
  <title>DevForce Community Forum : Authenticating against Active Directory</title>
  <link>http://www.ideablade.com/forum/</link>
  <description>This is an XML content feed of; DevForce Community Forum : DevForce 2009 : Authenticating against Active Directory</description>
  <pubDate>Tue, 28 Apr 2026 22:58:34 -700</pubDate>
  <lastBuildDate>Fri, 06 Nov 2009 15:10:05 -700</lastBuildDate>
  <docs>http://blogs.law.harvard.edu/tech/rss</docs>
  <generator>Web Wiz Forums 9.69</generator>
  <ttl>360</ttl>
  <WebWizForums:feedURL>www.ideablade.com/forum/RSS_post_feed.asp?TID=1545</WebWizForums:feedURL>
  <image>
   <title>DevForce Community Forum</title>
   <url>http://www.ideablade.com/forum/forum_images/IdeaBlade_logo_tm.png</url>
   <link>http://www.ideablade.com/forum/</link>
  </image>
  <item>
   <title>Authenticating against Active Directory : Thanks for posting that, btitular....</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=1545&amp;PID=5757#5757</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=4" rel="nofollow">GregD</a><br /><strong>Subject:</strong> 1545<br /><strong>Posted:</strong> 06-Nov-2009 at 3:10pm<br /><br />Thanks for posting that, btitular.&nbsp; That should be helpful to other users trying to do the same.]]>
   </description>
   <pubDate>Fri, 06 Nov 2009 15:10:05 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=1545&amp;PID=5757#5757</guid>
  </item> 
  <item>
   <title>Authenticating against Active Directory : I was able to get the authentication...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=1545&amp;PID=5752#5752</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=599" rel="nofollow">btitular</a><br /><strong>Subject:</strong> 1545<br /><strong>Posted:</strong> 05-Nov-2009 at 5:33pm<br /><br /><P>I was able to get the authentication working with active directory.</P><P>Here were the references that I used:</P><P><a href="http://msdn.microsoft.com/en-us/library/ms998360.aspx" target="_blank">http://msdn.microsoft.com/en-us/library/ms998360.aspx</A><BR><a href="http://blog.jumptree.com/2008/active-directory-and-aspnet-&#102;orms-authenticati&#111;n" target="_blank">http://blog.jumptree.com/2008/active-directory-and-aspnet-forms-authentication</A></P><DIV>In the web.config file, the following modifications were made:</DIV><DIV><BR>1. In the connectionStrings element, I added:</DIV><P>&nbsp;&nbsp;&nbsp; &lt;add name ="ADConnectionString"<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; connectionString="<a href="ldap://mydomain.com/DC=mydomain,DC=com/" target="_blank">LDAP://mydomain.com/DC=mydomain,DC=com"/</A>&gt;</P><DIV>&nbsp;&nbsp;&nbsp; where mydomain would be your own domain name.</DIV><DIV>&nbsp;</DIV><DIV>2. In the system.web element, the following were added:</DIV><P>&nbsp;&lt;authentication mode="Forms"&gt;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;forms name=".ADAuthCookie"<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; timeout="10"/&gt;<BR>&nbsp;&lt;/authentication&gt;</P><P>&nbsp;&nbsp;<BR>&nbsp;&lt;membership defaultProvider="MyADMembershipProvider"&gt;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;providers&gt;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;add name="MyADMembershipProvider"<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; type="System.Web.Security.ActiveDirectoryMembershipProvider, <BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; System.Web, Version=2.0.0.0,<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Culture=neutral, <BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp; PublicKeyToken=b03f5f7f11d50a3a"<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; connectionStringName="ADConnectionString"<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; connectionUsername="<FONT color=#ff0000>yourusername</FONT>"<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; connectionPassword="<FONT color=#ff0000>yourpassword</FONT>"<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; attributeMapUsername="sAMAccountName"/&gt;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;/providers&gt;<BR>&nbsp;&lt;/membership&gt;</P><DIV>where <FONT color=#ff3300>yourusername </FONT>is a valid user that can access the active directory and <FONT color=#ff0000>yourpassword </FONT>is the corresponding password for that user.</DIV><DIV><BR>The key item for me to get it working correctly was that my user's don't have to enter a domain name. In order for the authentication to work, I had to add the:</DIV><P>&nbsp;attributeMapUsername="sAMAccountName"</P><P>to the providers element.<BR></P>]]>
   </description>
   <pubDate>Thu, 05 Nov 2009 17:33:44 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=1545&amp;PID=5752#5752</guid>
  </item> 
  <item>
   <title>Authenticating against Active Directory : Does anyone have a sample of a...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=1545&amp;PID=5746#5746</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=599" rel="nofollow">btitular</a><br /><strong>Subject:</strong> 1545<br /><strong>Posted:</strong> 05-Nov-2009 at 3:09pm<br /><br /><P>Does anyone have a sample of a silverlight client app authenticating against an active directory? I've found a few articles on MSDN that demonstrate that it's possible, but I'm a little lost as to how to accomplish this with the DevForce LoginAsync() method.</P>]]>
   </description>
   <pubDate>Thu, 05 Nov 2009 15:09:47 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=1545&amp;PID=5746#5746</guid>
  </item> 
 </channel>
</rss>