windows integrated security instead Forms authentication

Rate It (1)

Last post 06-02-2008 11:26 PM by chetan.sarode. 4 replies.

Sort Posts:

  • Idea [Idea] windows integrated security instead Forms authentication

    05-13-2008, 12:24 PM
    • Loading...
    • hunter2006
    • Joined on 05-13-2008, 4:09 PM
    • Posts 15

    Dear all ,Confused

    I would like to able to change the way user able to log into  windows integrated security instead Forms authentication, so  do i have to  to disable  membership provider ?

    or i need only to change in webconfig file and the website will handel and ignore the membership? ,,i just new to mempership provider model.

    Filed under: ,
  • Re: windows integrated security instead Forms authentication

    05-13-2008, 1:06 PM
    • Loading...
    • SrDhUS
    • Joined on 12-28-2004, 10:17 AM
    • IL,Chicago
    • Posts 108
    Once you change the web.config  file to use Windows Integrated security, users will have to log in using a valid Windows account on the network. Changing the web.config  file disables the forms authentication.Check this article from ScottGu: 

    http://weblogs.asp.net/scottgu/archive/2006/07/12/Recipe_3A00_-Enabling-Windows-Authentication-within-an-Intranet-ASP.NET-Web-application.aspx

    http://msdn.microsoft.com/en-us/library/ms998358.aspx also got all the info you need.

    Please remember to click “Mark as Answer” on the post that helps you
  • Re: windows integrated security instead Forms authentication

    05-13-2008, 11:39 PM

    To enable Windows Authentication within an ASP.NET Application, you should make sure that you have “Integrated Windows Authentication” (formerly called NTLM authentication) enabled within IIS for the application you are building. 
     
    You should then add a web.config file to the root directory of your ASP.NET application that contains an <authentication> section which sets the mode to “Windows”.

    The below web.config file demonstrates how to configure both steps described above:

     <configuration>

        <system.web>

            <authentication mode="Windows" />

             <authorization>
                 <deny users="?"/>
              </authorization>
         
        </system.web>
     
    </configuration>

    Note that the <deny users=”?”/> directive within the <authorization> section above is what tells ASP.NET to deny access to the application to all “anonymous” users to the site (the “?” character means anonymous user).  This forces Windows to authenticate the user, and ensures that the username is always available from code on the server.

    Chetan Sarode
    Software Engineer,
    Approva Systems Pvt Ltd,
    Pune, India.
  • Re: windows integrated security instead Forms authentication

    05-14-2008, 2:34 AM
    • Loading...
    • hunter2006
    • Joined on 05-13-2008, 4:09 PM
    • Posts 15

    well but i still need to add these user to roles right ?

    the website administration tool dosn't  work with me it give error like :

    "An error was encountered. Please return to the previous page and try again".

    later i did created this manually from user and roles tables and i have noticed that every new user created from withen the tracker website add with 3 roles :

    Consultant,ProjectAdministrator,ProjectManager . that is not true case

    so is there is now way other WAT tool to creat new roles and it dosnt work to me !!

    finaly for membership tables how it going to work with integrated security  same as forms based?

    plz try to answer every qestion separately guys Smile

     

  • Re: windows integrated security instead Forms authentication

    06-02-2008, 11:26 PM

    Yes, you need to add these user to roles, because it defines the rigthts to particular users

    Chetan Sarode
    Software Engineer,
    Approva Systems Pvt Ltd,
    Pune, India.
Page 1 of 1 (5 items)