473,588 Members | 2,582 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Membership credential verification failed With ActiveDirectory MembershipProvi der

moi
Hello,
I try to make a login.aspx page to login an Active directory's user and i have a 1315 Web event Error in Windows server 2003 application's log with this error : 4006 Membership credentiel verification failed.

Could you help me ?

here's my web.config :

<connectionStri ngs>

<add name="ADConnect ionString" connectionStrin g=LDAP://server.domain.c om/CN=Users,DC=dom ain,DC=com />

</connectionStrin gs>
<system.web>

<pages>

<namespaces>

<clear/>

<add namespace="Syst em"/>

<add namespace="Syst em.Collections"/>

<add namespace="Syst em.Collections. Specialized"/>

<add namespace="Syst em.Configuratio n"/>

<add namespace="Syst em.Text"/>

<add namespace="Syst em.Text.Regular Expressions"/>

<add namespace="Syst em.Web"/>

<add namespace="Syst em.Web.Caching"/>

<add namespace="Syst em.Web.SessionS tate"/>

<add namespace="Syst em.Web.Security "/>

<add namespace="Syst em.Web.Profile"/>

<add namespace="Syst em.Web.UI"/>

<add namespace="Syst em.Web.UI.WebCo ntrols"/>

<add namespace="Syst em.Web.UI.WebCo ntrols.WebParts "/>

<add namespace="Syst em.Web.UI.HtmlC ontrols"/>

</namespaces>

</pages>

<authenticati on mode="Forms">

<forms

name=".ADAuthCo okie"

timeout="10" />

</authentication>

<authorizatio n>

<deny users="?" />

<allow users="*" />

</authorization>
<membership defaultProvider ="MyADMembershi pProvider">

<providers>

<remove name="AspNetSql MembershipProvi der" />

<add connectionStrin gName="ADConnec tionString"

connectionUsern ame="domain\adm inistrateur"

connectionPassw ord="*****"

name="MyADMembe rshipProvider"

type="System.We b.Security.Acti veDirectoryMemb ershipProvider, System.Web, Version=2.0.0.0 , &#xD;&#xA; Culture=neutral , PublicKeyToken= b03f5f7f11d50a3 a" />

</providers>

</membership>

<customErrors mode="Off"/>

</system.web>

</configuration>

Apr 21 '06 #1
1 3202
moi
ok NOW !
I get a another code in Internet and it works ...; i don't know why ...

Thanks !
"moi" <mo*@moi.fr> a écrit dans le message de news: eL************* *@TK2MSFTNGP04. phx.gbl...
Hello,
I try to make a login.aspx page to login an Active directory's user and i have a 1315 Web event Error in Windows server 2003 application's log with this error : 4006 Membership credentiel verification failed.

Could you help me ?

here's my web.config :

<connectionStri ngs>

<add name="ADConnect ionString" connectionStrin g=LDAP://server.domain.c om/CN=Users,DC=dom ain,DC=com />

</connectionStrin gs>
<system.web>

<pages>

<namespaces>

<clear/>

<add namespace="Syst em"/>

<add namespace="Syst em.Collections"/>

<add namespace="Syst em.Collections. Specialized"/>

<add namespace="Syst em.Configuratio n"/>

<add namespace="Syst em.Text"/>

<add namespace="Syst em.Text.Regular Expressions"/>

<add namespace="Syst em.Web"/>

<add namespace="Syst em.Web.Caching"/>

<add namespace="Syst em.Web.SessionS tate"/>

<add namespace="Syst em.Web.Security "/>

<add namespace="Syst em.Web.Profile"/>

<add namespace="Syst em.Web.UI"/>

<add namespace="Syst em.Web.UI.WebCo ntrols"/>

<add namespace="Syst em.Web.UI.WebCo ntrols.WebParts "/>

<add namespace="Syst em.Web.UI.HtmlC ontrols"/>

</namespaces>

</pages>

<authenticati on mode="Forms">

<forms

name=".ADAuthCo okie"

timeout="10" />

</authentication>

<authorizatio n>

<deny users="?" />

<allow users="*" />

</authorization>
<membership defaultProvider ="MyADMembershi pProvider">

<providers>

<remove name="AspNetSql MembershipProvi der" />

<add connectionStrin gName="ADConnec tionString"

connectionUsern ame="domain\adm inistrateur"

connectionPassw ord="*****"

name="MyADMembe rshipProvider"

type="System.We b.Security.Acti veDirectoryMemb ershipProvider, System.Web, Version=2.0.0.0 , &#xD;&#xA; Culture=neutral , PublicKeyToken= b03f5f7f11d50a3 a" />

</providers>

</membership>

<customErrors mode="Off"/>

</system.web>

</configuration>

Apr 21 '06 #2

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

Similar topics

0
1397
by: Rik Brooks | last post by:
I am trying to write a change password routine using the new ActiveDirectoryMembershipProvider. My code is below. I'm getting an exception saying that my ActiveDirectoryMembershipProvider has not been initialized. Can you guys point me to something that tells me what I'm doing wrong, please? bool checkItOut; string ls_retVal = ""; ActiveDirectoryMembershipProvider obj = new ActiveDirectoryMembershipProvider(); try
3
1567
by: clintonG | last post by:
What's with this software? Every day its a new surprise with some goofy bullsh!t. I finally make time to try to finish building out Membership logging and reporting and today its user data in the SQL Server 2005 aspnet_Membership table such as LastLockoutDate and FailedPassword with dates for all users entered as 1/1/1754. Not only is this goofy bullsh!t it is grossly incorrect goofy bullsh!t. I have used one of my three test users to...
2
1642
by: Jeppe Jespersen | last post by:
Hi folks, Been working on an site for a little while now, complete with login-functionality and all. (Yaaay!) However.... I created a site on our webserver, and copied the whole site up there. The site runs fine, but any attempt to login fails. Only error info in the event log is: Event code: 4006
13
5480
by: Kal | last post by:
I have a small console app that started out in dotnet 1.1 in VS 2003. That version can be copied to a W2K3 server where it runs fine. I set up a new project in VS 2005 and copied the code files from 2003 to 2005 where they compile and run, no problem. When I copy the two files (exe & dll) to the same W2K3 server they fail with the Strong Name Verification Failed error. After running the console contains: "Unhandled Exception:...
0
1199
by: Anjan | last post by:
Hi All, I am new to Membership feature in ASP.NET 2.0. I am trying the following scenario. Environment : WinXP SP2 Framework: .NET v2.0, VS.NET 2005. User Data Storage : ADAM. I have an Web Application. Web.Config file has Windows Authetication and added
0
2898
by: =?Utf-8?B?TmVpbF9C?= | last post by:
Hi all, I have a problem with a webservice using WSE 3.0. I have a web-service which pulls data from a database and a client which pulls the data from the webservice. I have created a user using the web admin tool and everything works fine. However, I need to run the client application as a windows service and this is where the fun begins. Whenever I run the windows service I am unable to log into the webservice and subsequent calls from...
3
1777
by: rroden | last post by:
C:\WINDOWS\assembly \WindowsSystem.Web.Security.ActiveDirectoryMembershipProvider isn't being installed with .net 2.0 or 3.0 on any of my systems. What am I doing wrong?
1
1947
by: Mick Walker | last post by:
I am having a problem connecting using the ActiveDirectory Membership provider. I define my Connection string as follows: <add name="ADConn" connectionString="LDAP://BEL-ADC-01.UTVi.local"/> And then add: <authentication mode="Forms"> <forms name=".ADAuthCookie" timeout="10" />
0
1633
by: myth0s | last post by:
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...
0
7927
marktang
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...
0
8220
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
8352
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
8222
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...
0
6632
agi2029
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...
0
5396
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();...
0
3846
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...
1
1457
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
1194
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.