<?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>Search results matching tag 'authentication'</title><link>http://forums.asp.net/search/SearchResults.aspx?q=&amp;tag=authentication&amp;orTags=0&amp;o=DateDescending</link><description>Search results matching tag 'authentication'</description><dc:language>en-US</dc:language><generator>CommunityServer 2007 SP1 (Build: 20510.895)</generator><item><title>Re: Web Site .NET C# for mobile - Error in session ?</title><link>http://forums.asp.net/thread/3563662.aspx</link><pubDate>Mon, 14 Dec 2009 05:00:00 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:3563662</guid><dc:creator>meliweb</dc:creator><description>&lt;p&gt;Thanks for your answer, but I&amp;#39;m a bit surprised. Why would Microsoft add &amp;quot;Mobile Page&amp;quot; in their templates in Visual Studio if it&amp;#39;s working better with usual .aspx pages ?&lt;/p&gt;
&lt;p&gt;Except for the sessions variables, the application is working fine. I might send variables threw pages instead of sessions variables if really I can&amp;#39;t to anything else. The login page with an autentification cookie is working fine, the variable is not lost when using the mode &amp;quot;StateServer&amp;quot;.&lt;/p&gt;</description></item><item><title>Re: delete and edit confirmation</title><link>http://forums.asp.net/thread/3549487.aspx</link><pubDate>Sat, 05 Dec 2009 05:00:00 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:3549487</guid><dc:creator>aquaren</dc:creator><description>&lt;p&gt;The best way to implement this is to authenticate the user before they get to the page that contains the grid view. If the user is not authorized to edit or delete, either conditionally hide the column that contains those buttons, or do not allow them access to the page. This will improve the use experience dramatically. The last thing a user wants is to be repeatedly prompted for credentials.&lt;/p&gt;</description></item><item><title>Re: Authorising Customer Access</title><link>http://forums.asp.net/thread/3549482.aspx</link><pubDate>Sat, 05 Dec 2009 05:00:00 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:3549482</guid><dc:creator>aquaren</dc:creator><description>&lt;p&gt;This is one of those situations where you are going to have to politely and diplomatically explain to your client that this is just not possible. They are expecting you, as a professional, to provide solutions. That solution may not always be what they envision, but it still provides the functionality they need to satisfy their business goals.&lt;/p&gt;</description></item><item><title>Re: Login Failed with Windows Authentication</title><link>http://forums.asp.net/thread/3543778.aspx</link><pubDate>Wed, 02 Dec 2009 05:00:00 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:3543778</guid><dc:creator>aquaren</dc:creator><description>&lt;p&gt;Is the error an problem with authentication to the SQL Server or authentication to the web application? I have seen issues like this in the past with users who&amp;#39;ve checked the &amp;quot;save my password&amp;quot; box in the login dialog box and later changed their passwords, not realizing the dialog box was using their old saved password.&lt;/p&gt;</description></item><item><title>Moving to AD in existing .NET site?</title><link>http://forums.asp.net/thread/3520173.aspx</link><pubDate>Wed, 18 Nov 2009 05:00:00 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:3520173</guid><dc:creator>robt1</dc:creator><description>&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;div style="position:absolute;left:-10000px;top:0px;width:1px;height:1px;overflow-x:hidden;overflow-y:hidden;" id="_mcePaste"&gt;AD Question (Moving to AD in existing .NET site?):&lt;/div&gt;
&lt;div style="position:absolute;left:-10000px;top:0px;width:1px;height:1px;overflow-x:hidden;overflow-y:hidden;" id="_mcePaste"&gt;&lt;/div&gt;
&lt;div style="position:absolute;left:-10000px;top:0px;width:1px;height:1px;overflow-x:hidden;overflow-y:hidden;" id="_mcePaste"&gt;I am working on an intranet/extranet site that is currently using forms authentication and the .NET membership database. We are&amp;nbsp;&lt;/div&gt;
&lt;div style="position:absolute;left:-10000px;top:0px;width:1px;height:1px;overflow-x:hidden;overflow-y:hidden;" id="_mcePaste"&gt;&lt;/div&gt;
&lt;div style="position:absolute;left:-10000px;top:0px;width:1px;height:1px;overflow-x:hidden;overflow-y:hidden;" id="_mcePaste"&gt;considering making the shift to AD for the internal (intranet) users but would like to keep the external (extranet) users in the&amp;nbsp;&lt;/div&gt;
&lt;div style="position:absolute;left:-10000px;top:0px;width:1px;height:1px;overflow-x:hidden;overflow-y:hidden;" id="_mcePaste"&gt;&lt;/div&gt;
&lt;div style="position:absolute;left:-10000px;top:0px;width:1px;height:1px;overflow-x:hidden;overflow-y:hidden;" id="_mcePaste"&gt;membership database. The intranet and extranet are sub domains on the same server.&amp;nbsp;&lt;/div&gt;
&lt;div style="position:absolute;left:-10000px;top:0px;width:1px;height:1px;overflow-x:hidden;overflow-y:hidden;" id="_mcePaste"&gt;&lt;/div&gt;
&lt;div style="position:absolute;left:-10000px;top:0px;width:1px;height:1px;overflow-x:hidden;overflow-y:hidden;" id="_mcePaste"&gt;1. Are there any issues with the basic configuration described above?&amp;nbsp;&lt;/div&gt;
&lt;div style="position:absolute;left:-10000px;top:0px;width:1px;height:1px;overflow-x:hidden;overflow-y:hidden;" id="_mcePaste"&gt;&lt;/div&gt;
&lt;div style="position:absolute;left:-10000px;top:0px;width:1px;height:1px;overflow-x:hidden;overflow-y:hidden;" id="_mcePaste"&gt;2. We would like to continue using forms authentication for the extranet users. Any issues with running windows authentication for the&amp;nbsp;&lt;/div&gt;
&lt;div style="position:absolute;left:-10000px;top:0px;width:1px;height:1px;overflow-x:hidden;overflow-y:hidden;" id="_mcePaste"&gt;&lt;/div&gt;
&lt;div style="position:absolute;left:-10000px;top:0px;width:1px;height:1px;overflow-x:hidden;overflow-y:hidden;" id="_mcePaste"&gt;intranet and forms authentication for the extranet site on the same server? Or, are we better off using forms authentication for both?&lt;/div&gt;
&lt;div style="position:absolute;left:-10000px;top:0px;width:1px;height:1px;overflow-x:hidden;overflow-y:hidden;" id="_mcePaste"&gt;&lt;/div&gt;
&lt;div style="position:absolute;left:-10000px;top:0px;width:1px;height:1px;overflow-x:hidden;overflow-y:hidden;" id="_mcePaste"&gt;3. I&amp;#39;m struggling a bit with how best to add new users and keep AD in sync with our intranet/extranet SQL Server db. We are storing&amp;nbsp;&lt;/div&gt;
&lt;div style="position:absolute;left:-10000px;top:0px;width:1px;height:1px;overflow-x:hidden;overflow-y:hidden;" id="_mcePaste"&gt;&lt;/div&gt;
&lt;div style="position:absolute;left:-10000px;top:0px;width:1px;height:1px;overflow-x:hidden;overflow-y:hidden;" id="_mcePaste"&gt;quite a bit of our user data in our SQL server intranet/extranet db as opposed to the membership db. Currently we store the&amp;nbsp;&lt;/div&gt;
&lt;div style="position:absolute;left:-10000px;top:0px;width:1px;height:1px;overflow-x:hidden;overflow-y:hidden;" id="_mcePaste"&gt;&lt;/div&gt;
&lt;div style="position:absolute;left:-10000px;top:0px;width:1px;height:1px;overflow-x:hidden;overflow-y:hidden;" id="_mcePaste"&gt;&amp;quot;userproviderkey&amp;quot;, generated by .net membership provider, in our intranet/extranet db to sync to 2 databases. How are sites typically&amp;nbsp;&lt;/div&gt;
&lt;div style="position:absolute;left:-10000px;top:0px;width:1px;height:1px;overflow-x:hidden;overflow-y:hidden;" id="_mcePaste"&gt;&lt;/div&gt;
&lt;div style="position:absolute;left:-10000px;top:0px;width:1px;height:1px;overflow-x:hidden;overflow-y:hidden;" id="_mcePaste"&gt;handling this when using AD? &amp;nbsp;And, I assume we&amp;#39;d add a new user to AD first, then from the intranet find the user in AD and create a&amp;nbsp;&lt;/div&gt;
&lt;div style="position:absolute;left:-10000px;top:0px;width:1px;height:1px;overflow-x:hidden;overflow-y:hidden;" id="_mcePaste"&gt;&lt;/div&gt;
&lt;div style="position:absolute;left:-10000px;top:0px;width:1px;height:1px;overflow-x:hidden;overflow-y:hidden;" id="_mcePaste"&gt;&amp;quot;sync&amp;#39;d&amp;quot; record in our sql db?&lt;/div&gt;
&lt;div style="position:absolute;left:-10000px;top:0px;width:1px;height:1px;overflow-x:hidden;overflow-y:hidden;" id="_mcePaste"&gt;&lt;/div&gt;
&lt;div style="position:absolute;left:-10000px;top:0px;width:1px;height:1px;overflow-x:hidden;overflow-y:hidden;" id="_mcePaste"&gt;4. We would administer roles in AD and only touch them in the intranet to authorize. Any issues here?&lt;/div&gt;
&lt;div style="position:absolute;left:-10000px;top:0px;width:1px;height:1px;overflow-x:hidden;overflow-y:hidden;" id="_mcePaste"&gt;&lt;/div&gt;
&lt;div style="position:absolute;left:-10000px;top:0px;width:1px;height:1px;overflow-x:hidden;overflow-y:hidden;" id="_mcePaste"&gt;Thanks for your help!&lt;/div&gt;
&lt;div&gt;&lt;/div&gt;&lt;p&gt;I am working on an intranet/extranet site that is currently using forms authentication and the .NET membership database. We are considering making the shift to AD for the internal (intranet) users but would like to keep the external (extranet) users in the membership database. The intranet and extranet are sub domains on the same server.&amp;nbsp;&lt;/p&gt;&lt;p&gt;1. Are there any issues with the basic configuration described above?&amp;nbsp;&lt;/p&gt;&lt;p&gt;2. We would like to continue using forms authentication for the extranet users. Any issues with running windows authentication for the intranet and forms authentication for the extranet site on the same server? Or, are we better off using forms authentication for both?&lt;/p&gt;&lt;p&gt;3. I&amp;#39;m struggling a bit with how best to add new users and keep AD in sync with our intranet/extranet SQL Server db. We are storing quite a bit of our user data in our SQL server intranet/extranet db as opposed to the membership db. Currently we store the &amp;quot;userproviderkey&amp;quot;, generated by .net membership provider, in our intranet/extranet db to sync to 2 databases. How are sites typically handling this when using AD? &amp;nbsp;And, I assume we&amp;#39;d add a new user to AD first, then from the intranet find the user in AD and create a &amp;quot;sync&amp;#39;d&amp;quot; record in our sql db?&lt;/p&gt;&lt;p&gt;4. We would administer roles in AD and only touch them in the intranet to authorize. Any issues here?&lt;/p&gt;&lt;p&gt;Thanks for your help!&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;</description></item><item><title>Binding with trusted user credetials via LDAP protocol</title><link>http://forums.asp.net/thread/3520243.aspx</link><pubDate>Wed, 18 Nov 2009 05:00:00 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:3520243</guid><dc:creator>egp_qumu</dc:creator><description>&lt;p&gt;&amp;nbsp;I am wondering, if I have a trust set up bewteen domains, is it possible to do a bind (for authentication purposes) of a user from the the trusted domain to the trusting domain?&amp;nbsp; That is I have domaina/user1 and they are logging into our application, which is configured to work with domainb -- there is a two way trust between domaina and domainb -- so I would like to take the credentials given to me by domaina\user1 and bind to domainb to authenticate them.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Also, when I do a search of domainb through the global catalog and I get a referal to domaina, I would like to be able to follow those referrals with credentials I originally used to bind to domainb (which are credentails from a user in domainb -- i.e. &lt;a href="mailto:user2@domainb.com"&gt;user2@domainb.com&lt;/a&gt;)&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;So are these scenarios possible (I am binding via the Java&amp;#39;s JNDI API)?&amp;nbsp; What configuration do I have to do to enable such binding to take place?&lt;/p&gt;</description></item><item><title>The request failed with HTTP status 401: Unauthorized while calling CRM Dynamics web service</title><link>http://forums.asp.net/thread/3520569.aspx</link><pubDate>Wed, 18 Nov 2009 05:00:00 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:3520569</guid><dc:creator>Kbergeron</dc:creator><description>&lt;p&gt;We got a little very tricky probleme while calling the CRM Dynamics web service. There the code we try to run :&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;(Got some probleme to provide the code please see this post to to it : http://social.microsoft.com/Forums/en-US/crm/thread/5bf62780-cb26-41d5-9f4a-1f41d593e6a2)&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;The point is that this code work perfectly in a consol app but when we do the call in our WCF web service application an 401 exception occure. Pleae not that the test are made on the same machine with exactly the same code and with the same crn address (the one from the crm dynamic discovery service) and the same WSDL reference.&lt;/p&gt;&lt;p&gt;&lt;span&gt;&lt;pre style="white-space:pre-wrap;" id="MTCS_main_ctl15_code"&gt;&lt;br /&gt;Please help!&lt;br /&gt;&lt;/pre&gt;
&lt;/span&gt;&lt;/p&gt;</description></item><item><title>Auditable SQL Transaction using Windows Authentication</title><link>http://forums.asp.net/thread/3518241.aspx</link><pubDate>Tue, 17 Nov 2009 05:00:00 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:3518241</guid><dc:creator>lookitstony</dc:creator><description>&lt;p&gt;This is the ticket I just submitted to Microsoft, I figured I would post here maybe one of you awesome people can help me :) &lt;/p&gt;&lt;p&gt;I have been requested to create an ASP.NET webpage that
authenticates from Active Directory. This website will also be accessing SQL
Server databases that have security groups from Active Directory setup for
their permissions. We need to be able to authenticate a user from Active
Directory, check the groups they are in to determine their access, and then
have any database interaction be executed from the logged in user.&lt;/p&gt;

&lt;p&gt;I have created a user control using your Active Directory
login procedure from &amp;nbsp;&lt;a href="http://msdn.microsoft.com/en-us/library/ms180890%28VS.80%29.aspx"&gt;http://msdn.microsoft.com/en-us/library/ms180890%28VS.80%29.aspx&lt;/a&gt;
and they work well. I can authenticate the users credentials and groups and I
used the script from &amp;nbsp;&lt;a href="http://support.microsoft.com/kb/306158"&gt;http://support.microsoft.com/kb/306158&lt;/a&gt;
to perform impersonations with the credentials gathered from my login form.
This is doing exactly what I want as far as logging in and authenticating
through Active Directory, comparing groups, and impersonating the authenticated
user so SQL interactions are executed with their credentials.&lt;/p&gt;

&lt;p&gt;The problem I am having now is security, I had another user login
while I was logged in and I ended up running the site under his credentials.
When I went to the database portion of the site it denied me because it was
trying to operate under his credentials. I have since then added an impersonate
method to every “ING” (selecting, updating, deleting) event of the
SQLdatasource control and an unimpersonate to every “ED” (selected, updated,
deleted) event.&amp;nbsp; From my observations it seems as if the impersonation is
actually temporarily changing my IIS anonymous account for every user that
accesses the website. This is where I become concerned, I have added the
impersonations now so impersonation will happen only at the beginning of a SQL
transaction and will end at the end of the SQL transaction.&amp;nbsp; My concern is
that if more than 5 people are on the site at any one given time they run a
chance of trying to impersonate&amp;nbsp; while someone else is impersonating.&lt;/p&gt;
&lt;p&gt;I feel I am heading in the right direction but I cannot seem
to find any other way to do this that would be more secure. I have spent
countless hours researching and testing just to get this far and I feel it is
futile now with the recent security concern. &lt;/p&gt;
&lt;p&gt;
Please
explain to me a better more secure way of doing what I am trying to do. Help me
understand what I can do to accomplish this task. I know we are not the only
company out there who wants to implement auditable SQL tracks while
authenticating through Active Directory. Please point me on to the right path
to accomplish this.&lt;/p&gt;</description></item><item><title>Re: Windows authentification and Forms authentification with Active Directory = different results with User.Identity.Name</title><link>http://forums.asp.net/thread/3506790.aspx</link><pubDate>Wed, 11 Nov 2009 05:00:00 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:3506790</guid><dc:creator>skoub</dc:creator><description>&lt;p&gt;for now, my workaround is when im with Forms Authentification, i add &amp;quot;domain\&amp;quot; to my FormsAuth.SignIn. So when i use User.Identity.Name, i get &amp;quot;domain\username&amp;quot; and when i add a role to this user, it will be written the same way as if i was in Windows Authentification mode.&lt;/p&gt;&lt;p&gt;if people have other ideas, it would be great to know it. Maybe theres a better way to handle this.&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;public ActionResult LogOn(string userName, string password, bool rememberMe, string returnUrl)&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;br /&gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if (!ValidateLogOn(userName, password))&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; return View();&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;br /&gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;b&gt;FormsAuth.SignIn(&amp;quot;domain\&amp;quot; + userName, rememberMe);&lt;/b&gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if (!String.IsNullOrEmpty(returnUrl))&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; return Redirect(returnUrl);&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; else&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; return RedirectToAction(&amp;quot;Index&amp;quot;, &amp;quot;Home&amp;quot;);&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;/p&gt;</description></item><item><title>User Log In Authentication fails every time!</title><link>http://forums.asp.net/thread/3505335.aspx</link><pubDate>Tue, 10 Nov 2009 05:00:00 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:3505335</guid><dc:creator>immanuelx2</dc:creator><description>&lt;p&gt;Hello all.&lt;/p&gt;&lt;p&gt;Working on a project for class here in ASP.net through Visual Studio.&lt;/p&gt;&lt;p&gt;I have a Login control, through which I have two users added (through the website administration). However, when I go back in to the program and try to log them in it always fails!&lt;/p&gt;&lt;p&gt;What gives?&lt;br /&gt;&lt;/p&gt;</description></item></channel></rss>