Windows authentication for web application

R

Rujuta Gandhi

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.
 
D

Daniel Fisher\(lennybacon\)

Your web.config

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

and your aspx

<%=User.Identity.Name%>
 
R

Rujuta Gandhi

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.
 
D

Daniel Fisher\(lennybacon\)

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,141
Messages
2,570,817
Members
47,366
Latest member
IanCulpepp

Latest Threads

Top