473,549 Members | 2,731 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Multiple Authentication Modes

Hi,

How can I accomplish multiple authentication modes in one application?

I have the following scenario:

- A company, X, has some employees
- Those on rolls have an AD account
- Those not, have an account that's managed in a separate DB

- I want AD (NTLM/Windows) authentication as well as Forms
authentication. How can I accomplish this?

Is it possible to create an httpModule and then... based on some
conditions, delegate the requests to the NTLM / Forms login-handlers?

I would like to expand this to allow multiple modes -- which may get
complex later (with a few more custom modes added in) ...
--

Happy Hacking,
Gaurav Vaish
http://www.mastergaurav.org/gallery
-----------------------------------

Nov 16 '05 #1
2 1471
Hi Gaurav,

I have just written an article that describes exactly how to do what you
want.

Its still awaiting publishing approval before being made public, but I'd be
happy to forward it to you to help you out. If interested, contact me at
gl**@aspallianc e.com-NOSPAM. Obviously remove the "-NOSPAM" from my email
address.

--
- Paul Glavich
Microsoft MVP - ASP.NET
"Gaurav Vaish" <mD************ *************** **@nospam.lycos .com> wrote in
message news:e8******** ******@tk2msftn gp13.phx.gbl...
Hi,

How can I accomplish multiple authentication modes in one application?

I have the following scenario:

- A company, X, has some employees
- Those on rolls have an AD account
- Those not, have an account that's managed in a separate DB

- I want AD (NTLM/Windows) authentication as well as Forms
authentication. How can I accomplish this?

Is it possible to create an httpModule and then... based on some
conditions, delegate the requests to the NTLM / Forms login-handlers?

I would like to expand this to allow multiple modes -- which may get
complex later (with a few more custom modes added in) ...
--

Happy Hacking,
Gaurav Vaish
http://www.mastergaurav.org/gallery
-----------------------------------

Nov 16 '05 #2
Thanks, Paul, for your reply.

Kindly check your mail.

--

Happy Hacking,
Gaurav Vaish
http://www.mastergaurav.org
-----------------------------------
"Paul Glavich [MVP - ASP.NET]" <gl**@aspallian ce.com-NOSPAM> wrote in
message news:OG******** ******@TK2MSFTN GP11.phx.gbl...
Hi Gaurav,

I have just written an article that describes exactly how to do what you
want.

Its still awaiting publishing approval before being made public, but I'd be happy to forward it to you to help you out. If interested, contact me at
gl**@aspallianc e.com-NOSPAM. Obviously remove the "-NOSPAM" from my email
address.

--
- Paul Glavich
Microsoft MVP - ASP.NET
"Gaurav Vaish" <mD************ *************** **@nospam.lycos .com> wrote in
message news:e8******** ******@tk2msftn gp13.phx.gbl...
Hi,

How can I accomplish multiple authentication modes in one application?
I have the following scenario:

- A company, X, has some employees
- Those on rolls have an AD account
- Those not, have an account that's managed in a separate DB

- I want AD (NTLM/Windows) authentication as well as Forms
authentication. How can I accomplish this?

Is it possible to create an httpModule and then... based on some
conditions, delegate the requests to the NTLM / Forms login-handlers?

I would like to expand this to allow multiple modes -- which may get
complex later (with a few more custom modes added in) ...
--

Happy Hacking,
Gaurav Vaish
http://www.mastergaurav.org/gallery
-----------------------------------


Nov 16 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
1060
by: mkoleno346 | last post by:
If I want to change autentication modes for an instance of MSDE that I already installed, what is the best way to go about this? I don't think you can change authentication modes using any of the SQL command line utilities. I read a Microsoft article explaining that the way to go about this was to change the LoginMode registry key for my...
4
5557
by: Jay | last post by:
I have authentication set for my site but I need one page to be an exception case. Namely my forgot password page. How do I tell the webconfig file to authenciate all pages except one page? Thank You for any input on this matter!
0
889
by: Jason | last post by:
Hi wondering if it's possible to switch between two authentication modes? for example switch to Cookie authentication when a windows authentication is not found. Thanks Jason
6
539
by: mark | last post by:
I have an asp.net ecommerce web application on a remote web server. I'm using an Access database on the back end. I've notice a few strange things. When I mimic an multiple user environment by surfin it in multiple browsers simultaneously the site generates a generic runtime error after awhile. I'm thinking this has something to do with my...
3
4845
by: Kris van der Mast | last post by:
Hi, I've created a little site for my sports club. In the root folder there are pages that are viewable by every anonymous user but at a certain subfolder my administration pages should be protected by forms authentication. When I create forms authentication at root level it works but when I move my code up to the subfolder I get this...
4
1555
by: Anthony P. Mancini | last post by:
Does anyone know how to make the MSDE do SQL authentication ? It appears to authenticate using Windows at all times. Thanks, Anthony
1
3485
by: Rob | last post by:
I have an ASP.NET application that uses forms-based authentication. A user wishes to be able to run multiple sessions of this application simultaneously from the user's client machine. The web.config file is configured as such: <authentication mode="Forms"> <forms loginUrl="Login.aspx" protection="All" name="myApplication"/>...
0
871
by: Eidolon | last post by:
I remember reading about how you can change the allowed users or not for any given resource in a web app using a LOCATION key in the web.config. I was wondering, is there any way to also have individual resources each have their own authentication modes? Heres the situation... We have an app on our website, which users can sign up for, they...
2
1174
by: Gaurav Vaish | last post by:
Hi, How can I accomplish multiple authentication modes in one application? I have the following scenario: - A company, X, has some employees - Those on rolls have an AD account - Those not, have an account that's managed in a separate DB
0
7446
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language...
0
7715
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. ...
0
7956
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that...
1
7469
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For...
0
7808
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the...
1
5368
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes...
0
5087
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert...
1
1935
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
0
757
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.