Change Authentication to Windowshttp://forums.asp.net/t/1449102.aspx/1?Change+Authentication+to+WindowsSat, 08 Aug 2009 21:37:02 -040014491023303072http://forums.asp.net/p/1449102/3303072.aspx/1?Change+Authentication+to+WindowsChange Authentication to Windows <p style="font-size:11px">Hi Friends,</p> <p style="font-size:11px">I want to enable Windows authentication in my Time tracker application.&nbsp;</p> <p style="font-size:11px">Did the following settings in web.config.</p> <p style="font-size:11px">&lt;add key=&quot;UserAccountSource&quot; value=&quot;WindowsSAM&quot; /&gt;</p> <p style="font-size:11px">&lt;authentication mode=&quot;Windows&quot; /&gt;&nbsp;<br> <br> &lt;!-- IMPERSONATION&nbsp;<br> To gain access to an Active Directory, the ASPNET process must impersonate an dentity&nbsp;<br> that has sufficient access rights.&nbsp;<br> --&gt;&nbsp;<br> <br> &lt;identity impersonate=&quot;false&quot; userName=&quot;MyDomain\UserNameWithAccessToAD&quot;&nbsp;<br> password=&quot;&quot; /&gt;</p> <p style="font-size:11px">But, Authentication was not successful. Error message:</p> <p style="font-size:11px"><b>HTTP 401.1 - Unauthorized: Logon Failed<br> Internet Information Services</b></p> <p style="font-size:11px">Do I need to make any change to database table 'aspnet_users' or 'aspnet_membership' in order to make the windows auth work.</p> <p style="font-size:11px">Or&nbsp;</p> <p style="font-size:11px">Do I need to create a new class 'XYZUser' for the same purpose.</p> <p style="font-size:11px">please guide me to enable windows auth in Time Tracker application.</p> <p style="font-size:11px">Thanks,</p> <p style="font-size:11px">Anil Kumar</p> <p style="font-size:11px">eranil84@gmail.com</p> &lt;div&gt;<font size="3"><span><br> </span></font>&lt;/div&gt; 2009-07-20T07:28:52-04:003337233http://forums.asp.net/p/1449102/3337233.aspx/1?Re+Change+Authentication+to+WindowsRe: Change Authentication to Windows <p>&nbsp;Try this link - it could help: <a href="http://msdn.microsoft.com/en-us/library/ms998358.aspx"> http://msdn.microsoft.com/en-us/library/ms998358.aspx</a></p> <p>But it looks as if, after looking breifly at the link I've given you, that you need to set impersonate to true...</p> <p>Good luck!</p> 2009-08-08T21:37:02-04:00