Click here to Skip to main content
15,943,103 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:

I have a web application ( c#) with authentication page (login page), I want if the user (client computer) is connected to domain get the userName (login name) and bypass the login page (store in session), and if he is not in the domain show him the login page.

I dont want to use activex.

What to do??

Thanks in advance
bbirajdar 27-Nov-12 8:45am    
Question is not clear...

1 solution

Typically you choose one or the other. Either you enable forms-based authentication and you always prompt for a password or you have Windows-based authentication and you have the site use single-sign-on. Mixing the two (which is basically what you are doing) is tricky but it is possible. Here is a link that will get you started:[^]

Like I said, tricky. You will need to set that up in your environment to get started. On the single-sign-on side, you should be all set. Then on the forms-based authentication side, you can follow the directions on this site to set up authenticating against Active Directory:[^]
Share this answer

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900