<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://forums.asp.net/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>Security</title><link>http://forums.asp.net/25.aspx</link><description>All about ASP.NET security (authentication, authorization, membership, roles, etc.) and the Login controls. &lt;a href="http://aspadvice.com/SignUp/list.aspx?l=24&amp;c=17" target="_blank"&gt;Email List&lt;/a&gt;</description><dc:language>en</dc:language><generator>CommunityServer 2007 SP1 (Build: 20510.895)</generator><item><title>Re: authentication for both intranet and internet users ?</title><link>http://forums.asp.net/thread/1938427.aspx</link><pubDate>Wed, 03 Oct 2007 11:55:54 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:1938427</guid><dc:creator>danadanny</dc:creator><author>danadanny</author><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/1938427.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=25&amp;PostID=1938427</wfw:commentRss><description>&lt;p&gt;Hi all.&lt;/p&gt;
&lt;p&gt;I have a similar requirement, except that all users are from external sources. There are 2 groups of users with different access rights. High and low. &lt;/p&gt;
&lt;p&gt;The web application is based on forms authentication. &lt;strong&gt;&lt;u&gt;All&lt;/u&gt;&lt;/strong&gt; users will logon to the web application via &amp;quot;Login.aspx&amp;quot; (1st login) and it authenticates against SQL Server 2000.&amp;nbsp;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;High access group can access additional services (via a url link)&amp;nbsp;which require logging on&amp;nbsp; (2nd login) to the web server (Windows Server 2003) and is authenticated against the Active Directory. &lt;/p&gt;
&lt;p&gt;Currently, when the high access users click on the url link, a&amp;nbsp;Windows login&amp;nbsp;pops up, prompting the user to enter&amp;nbsp;user name and password.&amp;nbsp;I would like to automate this process, ie, the 2nd login process done &amp;quot;behind the scenes&amp;quot;, so that&amp;nbsp;from the view point of&amp;nbsp;high&amp;nbsp;access group users, they only need to login once.&amp;nbsp;How can&amp;nbsp;I go about&amp;nbsp;doing this?&lt;/p&gt;
&lt;p&gt;&amp;nbsp;Any advice and help is deeply appreciated.&lt;/p&gt;
&lt;p&gt;Thank you&lt;/p&gt;
&lt;p&gt;Danny.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item><item><title>Re: authentication for both intranet and internet users ?</title><link>http://forums.asp.net/thread/1773068.aspx</link><pubDate>Tue, 26 Jun 2007 13:11:46 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:1773068</guid><dc:creator>BitShift</dc:creator><author>BitShift</author><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/1773068.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=25&amp;PostID=1773068</wfw:commentRss><description>&lt;p&gt;dvallaone - check your email please&amp;nbsp;&lt;/p&gt;</description></item><item><title>Re: authentication for both intranet and internet users ?</title><link>http://forums.asp.net/thread/1771540.aspx</link><pubDate>Mon, 25 Jun 2007 17:30:20 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:1771540</guid><dc:creator>dvallone</dc:creator><author>dvallone</author><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/1771540.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=25&amp;PostID=1771540</wfw:commentRss><description>&lt;p&gt;I had a similar requirement and did the following:&lt;/p&gt;
&lt;p&gt;&amp;nbsp;I check the IP address of users who hit the login page to determine if they are Intranet (192.168.*.*) users or not.&amp;nbsp; If they are not Intranet users, they go through the conventional forms authentication login routine.&amp;nbsp; If they are Intranet users, I pull their login user name (&amp;quot;domain\username&amp;quot;) and log them in with forms authentication using that name.&amp;nbsp; (I have a website application account for each user in our active directory). The catch is this:&amp;nbsp; When an anonymous user accesses your site, they have no login name until they attempt to access a page that requires integrated windows authentication and restricts anonymous access.&amp;nbsp; I have a special directory on our server called &amp;quot;intranet&amp;quot; which has IIS security set to &amp;quot;Integrated Authentication&amp;quot; and Anonymous access is unchecked (it is also set to allow all users in my web.config file).&amp;nbsp; My ASP.NET login page, when it detects that a user is accessing the site from the Internal lan, will&amp;nbsp;access a page in that directory using javascript.&amp;nbsp; If successful, the user now has an identity, which is their Active Directory login name.&amp;nbsp;I use that name to log them in programatically using forms authentication. &amp;nbsp;If not successful, no javascript error is displayed, the user receives the standard login error message and is unable to login.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item><item><title>Re: authentication for both intranet and internet users ?</title><link>http://forums.asp.net/thread/1770915.aspx</link><pubDate>Mon, 25 Jun 2007 13:04:43 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:1770915</guid><dc:creator>BitShift</dc:creator><author>BitShift</author><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/1770915.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=25&amp;PostID=1770915</wfw:commentRss><description>&lt;p&gt;Ok, so how do you set this up in IIS ?&amp;nbsp; You cant mix authentication types, and if for the virtual directory, if you have windows auth selected, everyone will get prompted for a domain login.&amp;nbsp; If &amp;quot;allow anonymous&amp;quot; is checked, then your users who are signed on to the domain, will have the user.identity value empty.&lt;/p&gt;&lt;p&gt;comments ?&amp;nbsp;&lt;/p&gt;</description></item><item><title>Re: authentication for both intranet and internet users ?</title><link>http://forums.asp.net/thread/1761527.aspx</link><pubDate>Tue, 19 Jun 2007 13:15:44 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:1761527</guid><dc:creator>silasjohn</dc:creator><author>silasjohn</author><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/1761527.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=25&amp;PostID=1761527</wfw:commentRss><description>&lt;p&gt;&lt;b&gt;&amp;nbsp;txtUserName.InnerText = User.Identity.Name;&lt;/b&gt;&lt;/p&gt;&lt;p&gt;this will have the output as&lt;/p&gt;&lt;p&gt;&lt;b&gt;&lt;span id="spnUserName"&gt;DomainName\Username&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;&lt;p&gt;So the string before the &amp;#39;\&amp;#39; gives you the domain name. Split the string by &amp;#39;\&amp;#39; and then compare the dervied domain name with yours.&lt;/p&gt;</description></item><item><title>Re: authentication for both intranet and internet users ?</title><link>http://forums.asp.net/thread/1761503.aspx</link><pubDate>Tue, 19 Jun 2007 13:04:18 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:1761503</guid><dc:creator>BitShift</dc:creator><author>BitShift</author><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/1761503.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=25&amp;PostID=1761503</wfw:commentRss><description>&lt;p&gt;&amp;nbsp;Ok, that sounds reasonable.&amp;nbsp; How are you checking if they are a domain user ?&amp;nbsp; In my case, I would need to check the user&amp;#39;s ACL to verify a certain domain group membership, otherwise require a form login for external users.&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item><item><title>Re: authentication for both intranet and internet users ?</title><link>http://forums.asp.net/thread/1760863.aspx</link><pubDate>Tue, 19 Jun 2007 05:54:44 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:1760863</guid><dc:creator>silasjohn</dc:creator><author>silasjohn</author><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/1760863.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=25&amp;PostID=1760863</wfw:commentRss><description>&lt;p&gt;Hi BitShift,&lt;/p&gt;&lt;p&gt;I had a similar situation. What i did was when a user comes to my website, I checked whether he was from within my company domain. If he was i would automatically log him into the site using the following statement. Here i give his browser the authentication ticket &lt;br /&gt;&lt;/p&gt;&lt;pre class="coloredcode"&gt;FormsAuthentication.SetAuthCookie(&amp;quot;Username&amp;quot;,true)&lt;/pre&gt;&lt;p&gt;If its an external user, then they go through the normal process of forms authentication.&lt;/p&gt;&lt;p&gt;This way my problem was completely solved.&lt;br /&gt;&amp;nbsp;&lt;/p&gt;</description></item><item><title>authentication for both intranet and internet users ?</title><link>http://forums.asp.net/thread/1760558.aspx</link><pubDate>Tue, 19 Jun 2007 01:22:57 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:1760558</guid><dc:creator>BitShift</dc:creator><author>BitShift</author><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/1760558.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=25&amp;PostID=1760558</wfw:commentRss><description>&lt;p&gt;&amp;nbsp;Im tasked with rebuilding a website and part of it is now to be made
secure.&amp;nbsp; The problem is that both internal (domain account users) and
external users will need access to this content.&amp;nbsp; We have a forms based
authentication setup that i want to use to handle the external users,
but its been mentioned that it would be better if domain users didnt
have to login (using the forms authentication).&amp;nbsp; So, my question is -
can I handle both with the same web app ?&lt;/p&gt;</description></item></channel></rss>