Ask a Question related to ASP.NET Security, Design and Development.
-
Rujuta Gandhi #1
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
-
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... -
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... -
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... -
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... -
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... -
Daniel Fisher\(lennybacon\) #2
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
-
Rujuta Gandhi #3
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...web> 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 myin.> > 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>> >
> > Thanking you all in advance. If there is some lack of information please
> > ask
> > for.
> >
> >
> >
> >
>
Rujuta Gandhi Guest
-
Daniel Fisher\(lennybacon\) #4
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...> web>> 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> in.>> > 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>>>>> >
>> > Thanking you all in advance. If there is some lack of information
>> > please
>> > ask
>> > for.
>> >
>> >
>> >
>> >
>>
>
Daniel Fisher\(lennybacon\) Guest



Reply With Quote

