473,804 Members | 3,705 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Forms Authentication with Active Directory LDAP Problem

Sorry for the dup post but looking for a response and this is being posted
under my MSDN
managed newsgroups handle and in a different newsgroup

Hi,
As I said in the past post I am using this Article
http://msdn.microsoft.com/security/d...aght000026.asp

I belive i have everthing all set but I get this error when trying to log
into the site.

How do I correct this problem:

Server Error in '/' Application.
--------------------------------------------------------------------------------
Configuration Error
Description: An error occurred during the processing of a configuration file
required to service this request. Please review the specific error details
below and modify your configuration file appropriately.
Parser Error Message: The container specified in the connection string does
not exist.
Source Error:
Line 40: <membership defaultProvider ="MyADMembershi pProvider">
Line 41: <providers>
Line 42: <add name="MyADMembe rshipProvider"
type="System.We b.Security.Acti veDirectoryMemb ershipProvider, System.Web,
Version=2.0.0.0 , culture=neutral , PublicKeyToken= b03f5f7f11d50a3 a"
connectionStrin gName="ADConnec tionString"
connectionUsern ame="silver1\ad ministrator"
connectionPassw ord="THEPASSWOR D"/>
Line 43: </providers>
Line 44: </membership>

Source File: E:\Webs\Silverq ueen\WWW\web.co nfig Line: 42
--------------------------------------------------------------------------------
Version Information: Microsoft .NET Framework Version:2.0.502 15.44; ASP.NET
Version:2.0.502 15.44


Nov 19 '05 #1
2 2548
Hi Tdar,

Welcome to ASPNET newsgroup.
From your description ,you're trying to use the
ActiveDirectory MembershipProvi der to do formsauthentica tion through
Activedirectory . Howevere you're getting errro at the runtime.

As for the exception, are you getting it when you call the

System.Web.Secu rity.Membership .ValidateUser method ? If so that did be
something incorrect with ADMembership Provider's configuration. Anyway,
please confirm that you're using the latest ASP.NET 2.0(.NET FRAMEWORK 2.0)
environement, at least beta2 or Auguest CTP ?

Then, from the error info you provided, it seems that the problem is focus
on the conneciton string attribute of the
<add name="MyADMembe rshipProvider"

element. Have you checked that your connectionStrin g "ADConnectionSt ring"
is set correctly in the web.config?
Also, you can change it to another name then run again to see whether the
problem is with the incorrect name or the connectionStrin g itself.

If it is related to the connectionStrin g itself, you can try checking
whether the ADSI conneciton string is correct. You can try do some adsi
querty in an console app to see whether it works.

Thanks,

Steven Cheng
Microsoft Online Support

Get Secure! www.microsoft.com/security
(This posting is provided "AS IS", with no warranties, and confers no
rights.)

--------------------
| Reply-To: "Tdar" <Td**@noemail.n ospam>
| From: "Tdar" <Td**@noemail.n ospam>
| Subject: Forms Authentication with Active Directory LDAP Problem
| Date: Thu, 29 Sep 2005 22:02:04 -0400
| Lines: 43
| X-Priority: 3
| X-MSMail-Priority: Normal
| X-Newsreader: Microsoft Outlook Express 6.00.2900.2670
| X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2670
| X-RFC2646: Format=Flowed; Original
| X-Antivirus: avast! (VPS 0539-2, 09/29/2005), Outbound message
| X-Antivirus-Status: Clean
| Message-ID: <Os************ **@TK2MSFTNGP14 .phx.gbl>
| Newsgroups:
microsoft.publi c.dotnet.framew ork.aspnet,micr osoft.public.do tnet.framework. a
spnet.security
| NNTP-Posting-Host: 11-95.35-65.tampabay.res .rr.com 65.35.95.11
| Path: TK2MSFTNGXA01.p hx.gbl!TK2MSFTN GP08.phx.gbl!TK 2MSFTNGP14.phx. gbl
| Xref: TK2MSFTNGXA01.p hx.gbl
microsoft.publi c.dotnet.framew ork.aspnet.secu rity:6714
microsoft.publi c.dotnet.framew ork.aspnet:1281 53
| X-Tomcat-NG: microsoft.publi c.dotnet.framew ork.aspnet
|
| Sorry for the dup post but looking for a response and this is being
posted
| under my MSDN
| managed newsgroups handle and in a different newsgroup
|
| Hi,
| As I said in the past post I am using this Article
|
http://msdn.microsoft.com/security/d...en-us/dnpag2/h
tml/paght000026.asp
|
| I belive i have everthing all set but I get this error when trying to log
| into the site.
|
| How do I correct this problem:
|
| Server Error in '/' Application.
|
----------------------------------------------------------------------------
----
| Configuration Error
| Description: An error occurred during the processing of a configuration
file
| required to service this request. Please review the specific error details
| below and modify your configuration file appropriately.
| Parser Error Message: The container specified in the connection string
does
| not exist.
| Source Error:
|
|
| Line 40: <membership defaultProvider ="MyADMembershi pProvider">
| Line 41: <providers>
| Line 42: <add name="MyADMembe rshipProvider"
| type="System.We b.Security.Acti veDirectoryMemb ershipProvider, System.Web,
| Version=2.0.0.0 , culture=neutral , PublicKeyToken= b03f5f7f11d50a3 a"
| connectionStrin gName="ADConnec tionString"
| connectionUsern ame="silver1\ad ministrator"
| connectionPassw ord="THEPASSWOR D"/>
| Line 43: </providers>
| Line 44: </membership>
|
| Source File: E:\Webs\Silverq ueen\WWW\web.co nfig Line: 42
|
----------------------------------------------------------------------------
----
| Version Information: Microsoft .NET Framework Version:2.0.502 15.44;
ASP.NET
| Version:2.0.502 15.44
|
|
|
|
|

Nov 19 '05 #2
Your problem is with your LDAP path in your connection string. A
container you identify does not exist within your AD database. You can
encompass the entire domain by using a simple path such as:

LDAP://mydomain.com

in your connection string. Feel free to email me if you still have
problems.

Nov 19 '05 #3

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

Similar topics

0
1748
by: Srinivas | last post by:
Hi, I've one system in which Active directory is installed. That system is the domain controller as well as web server - A test machine. Trying all following to Authenticate Users using VB as well as ASP. I need ASP solution (and no component required etcc..). Things seems to work fine but stuck badly from past two days.
4
662
by: David Moore | last post by:
Hello I am using the System.DirectoryServices namespace classes to access Active Directory. We connect using the LDAP://DOMAIN method. The code works on local dev boxes, and in staging, but doesn't work on a particular box in our production environment. When we try to connect and do a search, we get a "The authentication mechanism is unknown" error. I have searched on Google, Microsoft Support Knowledge Base and Yahoo etc, and found this...
0
9028
by: David Moore | last post by:
Hello I posted a thread about this a while back, but I can't actually find it again so I can reply to it with the solution I found, so I'm making a new thread and hoping it goes to the top of the Google search results for the error like the previous thread. This is actually a solution to a problem, not a call for help, so you can stop reading now unless you're actually interested in the solution :)
6
2471
by: varkey.mathew | last post by:
Dear all, Bear with me, a poor newbie(atleast in AD).. I have to authenticate a user ID and password for a user as a valid Active Directory user or not. I have created the IsAuthenticated function exactly as outlined in the below link. http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnnetsec/html/SecNetHT02.asp
0
434
by: Hriday | last post by:
Hi there, Please help me..It is urgent This is Hriday, working on windows authentication with Active Directory... My requirment is when a user sends a request to my web Applicatoin I want to Pop up windows Authentication box so that user will give his userId, Password & domain name for authenticaion. After that I want to take these three info of user and make a search in Active Directory.
2
4700
by: P Webster | last post by:
We recently moved a web site that validated user credentials in Active Directory from IIS 5.1 to IIS 6, and the validation code no longer works. The web.config file is set to Windows authentication because all we do is verify the user on the login form so we can redirect them to the appropriate page based on their group. The code to authenticate is: Public Function IsAuthenticated(ByVal domain As String, ByVal username As String, ByVal...
2
3256
by: duncan beaumont | last post by:
Hi, - SQLserver 2000 - Yellowfin 2.4 - Windows 2003 server I have been asked to investigate seting up LDAP authentication to access our Yellowfin reporting.
7
15545
by: D | last post by:
Is it possible to have Python authenticate with Active Directory? Specifically what I'd like to do is have a user enter a username/password, then have Python check the credentials with AD - if what they entered is valid, for example, it returns a 1, otherwise a 0.. Thanks!
18
3420
by: troywalker | last post by:
I am new to LDAP and Directory Services, and I have a project that requires me to authenticate users against a Sun Java System Directory Server in order to access the application. I have found dozens of examples of how to authenticate users against Active Directory, but AD seems to be a different animal than Sun Java System Directory Server. Could someone provide me with an example of how to authenticate a user against a Directory...
0
9576
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,...
0
10568
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. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10323
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 captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
10074
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 choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
7613
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 instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5516
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...
0
5647
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
3813
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2988
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 effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.