Windows authentication for web application

Ask a Question related to ASP.NET Security, Design and Development.

  1. #1

    Default Windows authentication for web application

    Hi All,

    I want to do authentication based on the windows user accounts for my web
    application.

    I want to confirm the windows user account existance from my web
    application. I am having user name and password in my application.

    Or If u suggest to use the automatic authentication IIS performs (after
    deselcting the windows integrated authentication from site's properties
    window) then how can I get the user name of the user currently logged in.

    Thanking you all in advance. If there is some lack of information please ask
    for.




    Rujuta Gandhi Guest

  2. Similar Questions and Discussions

    1. Windows authentication breaks after configuring application pool identity
      Hi group I run IIS 6.0 on W2k3 being an Active Directory Controller in a test lab. Create a virtual directory 'test' with Windows authentication...
    2. authentication not kept when deploying application
      I currently wrote a login application using asp.net. It works just great on my local computer, but I need to use it on the internet for the company...
    3. Sharing Forms Authentication between application and sub-application
      Hi, I'm succesfully using Forms Authentication on a site I'm working on (MyMainApp). In a subfolder of this site, I have a seperate ASP.NET...
    4. issues mixing integrated Windows authentication and anonymous on same application
      I'm having issues mixing integrated Windows authentication and anonymous access on same IIS app. Basically, any post back event fails (Forms...
    5. Forms authentication with Windows authentication
      Hi, I have an ASP.NET web site that uses IIS Basic Authentication and accesses an OLAP Server at various stages. The OLAP Server authentication...
  3. #2

    Default Re: Windows authentication for web application

    Your web.config

    <system.web>
    <authentication mode="Windows" />
    <authorization>
    <deny users="?" />
    </authorization>
    </system.web>

    and your aspx

    <%=User.Identity.Name%>

    --
    Daniel Fisher(lennybacon)
    MCP ASP.NET C#
    Blog: [url]http://www.lennybacon.com/[/url]


    "Rujuta Gandhi" <rujuta@intraactionsoftware.com> wrote in message
    news:OlImKXG$EHA.3592@TK2MSFTNGP09.phx.gbl...
    > Hi All,
    >
    > I want to do authentication based on the windows user accounts for my web
    > application.
    >
    > I want to confirm the windows user account existance from my web
    > application. I am having user name and password in my application.
    >
    > Or If u suggest to use the automatic authentication IIS performs (after
    > deselcting the windows integrated authentication from site's properties
    > window) then how can I get the user name of the user currently logged in.
    >
    > Thanking you all in advance. If there is some lack of information please
    > ask
    > for.
    >
    >
    >
    >

    Daniel Fisher\(lennybacon\) Guest

  4. #3

    Default Re: Windows authentication for web application

    Hi Daniel,

    Can u help in another one problem for the same. I was using the basic
    authentication provided by the IIS, but what if I want to perform this login
    with my own login page. I dont want that pop up dialogue of IIS. I want to
    do it programatically. Is it feasible?

    Your solution is working nice. Thanks again.



    "Daniel Fisher(lennybacon)" <info@(removethis)lennybacon.com> wrote in
    message news:eIBF8DK$EHA.4004@tk2msftngp13.phx.gbl...
    > Your web.config
    >
    > <system.web>
    > <authentication mode="Windows" />
    > <authorization>
    > <deny users="?" />
    > </authorization>
    > </system.web>
    >
    > and your aspx
    >
    > <%=User.Identity.Name%>
    >
    > --
    > Daniel Fisher(lennybacon)
    > MCP ASP.NET C#
    > Blog: [url]http://www.lennybacon.com/[/url]
    >
    >
    > "Rujuta Gandhi" <rujuta@intraactionsoftware.com> wrote in message
    > news:OlImKXG$EHA.3592@TK2MSFTNGP09.phx.gbl...
    > > Hi All,
    > >
    > > I want to do authentication based on the windows user accounts for my
    web
    > > application.
    > >
    > > I want to confirm the windows user account existance from my web
    > > application. I am having user name and password in my application.
    > >
    > > Or If u suggest to use the automatic authentication IIS performs (after
    > > deselcting the windows integrated authentication from site's properties
    > > window) then how can I get the user name of the user currently logged
    in.
    > >
    > > Thanking you all in advance. If there is some lack of information please
    > > ask
    > > for.
    > >
    > >
    > >
    > >
    >
    >

    Rujuta Gandhi Guest

  5. #4

    Default Re: Windows authentication for web application

    1. Enable Anonymous in IIS.
    2. Set WindowsAuth in Web.Config
    3. Define where it sould pup up using the location tag in the web.config

    --
    Daniel Fisher(lennybacon)
    MCP ASP.NET C#
    Blog: [url]http://www.lennybacon.com/[/url]


    "Rujuta Gandhi" <rujuta@intraactionsoftware.com> wrote in message
    news:O4CE3QU$EHA.1264@TK2MSFTNGP12.phx.gbl...
    > Hi Daniel,
    >
    > Can u help in another one problem for the same. I was using the basic
    > authentication provided by the IIS, but what if I want to perform this
    > login
    > with my own login page. I dont want that pop up dialogue of IIS. I want
    > to
    > do it programatically. Is it feasible?
    >
    > Your solution is working nice. Thanks again.
    >
    >
    >
    > "Daniel Fisher(lennybacon)" <info@(removethis)lennybacon.com> wrote in
    > message news:eIBF8DK$EHA.4004@tk2msftngp13.phx.gbl...
    >> Your web.config
    >>
    >> <system.web>
    >> <authentication mode="Windows" />
    >> <authorization>
    >> <deny users="?" />
    >> </authorization>
    >> </system.web>
    >>
    >> and your aspx
    >>
    >> <%=User.Identity.Name%>
    >>
    >> --
    >> Daniel Fisher(lennybacon)
    >> MCP ASP.NET C#
    >> Blog: [url]http://www.lennybacon.com/[/url]
    >>
    >>
    >> "Rujuta Gandhi" <rujuta@intraactionsoftware.com> wrote in message
    >> news:OlImKXG$EHA.3592@TK2MSFTNGP09.phx.gbl...
    >> > Hi All,
    >> >
    >> > I want to do authentication based on the windows user accounts for my
    > web
    >> > application.
    >> >
    >> > I want to confirm the windows user account existance from my web
    >> > application. I am having user name and password in my application.
    >> >
    >> > Or If u suggest to use the automatic authentication IIS performs
    >> > (after
    >> > deselcting the windows integrated authentication from site's properties
    >> > window) then how can I get the user name of the user currently logged
    > in.
    >> >
    >> > Thanking you all in advance. If there is some lack of information
    >> > please
    >> > ask
    >> > for.
    >> >
    >> >
    >> >
    >> >
    >>
    >>
    >
    >

    Daniel Fisher\(lennybacon\) Guest

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139