Hi, The question:
Is it possible to have two differents ActiveDirectory Membership Provider in web.config and change at run-time from the default provider to the second provider if the first one fail? Context:
We are using the ActiveDirectory Membership Provider as part of our authentication solution. It is working great most of the time, but every now and then the AD process on the main server fail.
With Windows this is not a problem as the authentication is done by the domain and whichever of our two AD servers is up process the request.
In the web.config file however, I think that we must specify which server to use :
<add name="ADConnect ionString" connectionStrin g="LDAP://server01.sub.co rp.domain.com/DC=SUB,DC=CORP, DC=DOMAIN,DC=CO M"/>
With this kind of connection string, if the AD process on server01 fails, we are screwed.
I tried to add a second ADMembershipPro vider roughly like this in web.config:
<membership defaultProvider ="MyADMembershi pProvider">
<providers>
<add name="MyADMembe rshipProvider" type="System.We b.Security.Acti veDirectoryMemb ershipProvider .... connectionStrin gName="ADConnec tionString01"/>
<add name="MyADMembe rshipProvider" type="System.We b.Security.Acti veDirectoryMemb ershipProvider .... connectionStrin gName="ADConnec tionString01"/>
</providers>
</membership>
With that, I thought that I could put the authentication code inside a Try / Catch and if the first provider fail then use the second one but it didn't work. The errors I get when doing this makes me think that the compiler consider one and only one ADMembership provider.
Does anyone know a way I could switch from server01 to server02? Or could I write the connection string without explicitly specifing which server to use (let's say: add name="ADConnect ionString" connectionStrin g="LDAP://DC=SUB,DC=CORP, DC=DOMAIN,DC=CO M") ?
Thank you very much!!
0 1635 Sign in to post your reply or Sign up for a free account.
Similar topics |
by: Martin Eyles |
last post by:
Hi,
I have a page that contains the following
<div runat="server" id="Pikea">
<object runat="server" id="PiTV" style="width:560px; height:560px"
classid="clsid:{3DF152A5-521D-4330-A8DC-1424CEB66BAA}" VIEWASTEXT>
</object>
</div>
|
by: martin leer |
last post by:
Hi all.
I got the following error:
OLE DB provider "MSDAORA" for linked server "infonet" returned message
"Oracle client and networking components were not found. These
components are supplied by Oracle Corporation and are part of the Oracle
Version 7.3.3 or later client software installation.
Provider is unable to function until these components are installed.".
|
by: Wes Groleau |
last post by:
I was doing update statements in SQL Server 2000.
I have a table with over 16 million rows.
It came from several hundred delimited text files,
and two of the columns are file ID (int) and Line # (int)
Structure is X12 (835). For those unfamiliar with that,
each file has one to many BPR lines; each BPR line has
zero to many CLP lines, each of those has zero to many
|
by: gunjan.mait |
last post by:
hi,
i wanted to know the exact use of runat="server" which is being used
is ASP.NET
why we every time need to use it, even when i want to do the work at
client side? How to do simple processings like displaying some message
at client side only without hitting server?
what is the use of onclick, as we have to use onserverclick always?
why it is not possible to do the things without using runat="server"
in script?
|
by: Robertf987 |
last post by:
Well, I think I've described what I want to do in the title here.
In the database, I have two main tables that contain the main data for the database. One for group expenditures, another for application details. I have a query for each of them to copy all the contents of the table into a new table, then delete all the data from the main table. I need to do this becasue once a year the data needs to be removed, ready for putting in new data. I...
| |
by: JamesB |
last post by:
I have a config screen in my app that updates a dictionary<key,value>.
I want to store a copy of this before going into the config screen so if the
user wants to cancel all their changes I can simply set the working copies
to be the backup.
So, in my code, before the config screen is shown, I do this:
Dictionary<string, myClassTempDic = MainDic;
|
by: Chuck.Dieterle |
last post by:
I have a very frustrating problem. I have a situation that works fine
on some computers, but not on others. I have SQL Server Express 2005
and Access 2003 loaded on 4 computers. I have set up a "Linked
Server" in SQL Server linked to my Access database. I am running
queries on t-SQL against the Access tables through the linked server.
On all of the computers, I can do select queries and they all work
great but what I need to do is run...
|
by: johnyjj2 |
last post by:
Hello!
I'd like to run mssql script (file with extension sql). I installed Microsoft SQL Server 2008 and run in Command Prompt:
C:\Documents and Settings\useruser>osql -Usa -Ppassword -i "F:\Data\MyApplication\Scripts\CreateDb.sql"
Named Pipes Provider: Could not open a connection to SQL Server .
Login timeout expired
A network-related or instance-specific error has occured while establishing a connection to SQL Server. Server is not...
|
by: marktang |
last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look !
Part I. Meaning of...
|
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 synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
|
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.
Here is my compilation command:
g++-12 -std=c++20 -Wnarrowing bit_field.cpp
Here is the code in...
| |
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 choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
|
by: agi2029 |
last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own....
Now, this would greatly impact the work of software developers. The idea...
|
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 instead of User Defined Types (UDT). For example, to manage the data in unbound forms.
Adolph will...
|
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 into image.
Globals.ThisAddIn.Application.ActiveDocument.Select();...
|
by: TSSRALBI |
last post by:
Hello
I'm a network technician in training and I need your help.
I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs.
The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols.
I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
|
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| |