Click here to Skip to main content
11,920,211 members (47,896 online)
Rate this:
Please Sign up or sign in to vote.
See more: C# VB Javascript

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
Posted 27-Nov-12 3:07am
aspnet_regiis -i 27-Nov-12 8:45am
Question is not clear...

1 solution

Rate this: bad
Please Sign up or sign in to vote.

Solution 1

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:[^]

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

  Print Answers RSS
0 OriginalGriff 455
1 phil.o 170
2 CPallini 150
4 F-ES Sitecore 130
0 OriginalGriff 6,778
1 KrunalRohit 4,495
2 Sergey Alexandrovich Kryukov 3,153
3 George Jonsson 2,810
4 Suvendu Shekhar Giri 2,181

Advertise | Privacy | Mobile
Web01 | 2.8.151120.1 | Last Updated 27 Nov 2012
Copyright © CodeProject, 1999-2015
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100