473,396 Members | 1,893 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

Membership credential verification failed With ActiveDirectoryMembershipProvider

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 :

<connectionStrings>

<add name="ADConnectionString" connectionString=LDAP://server.domain.com/CN=Users,DC=domain,DC=com />

</connectionStrings>
<system.web>

<pages>

<namespaces>

<clear/>

<add namespace="System"/>

<add namespace="System.Collections"/>

<add namespace="System.Collections.Specialized"/>

<add namespace="System.Configuration"/>

<add namespace="System.Text"/>

<add namespace="System.Text.RegularExpressions"/>

<add namespace="System.Web"/>

<add namespace="System.Web.Caching"/>

<add namespace="System.Web.SessionState"/>

<add namespace="System.Web.Security"/>

<add namespace="System.Web.Profile"/>

<add namespace="System.Web.UI"/>

<add namespace="System.Web.UI.WebControls"/>

<add namespace="System.Web.UI.WebControls.WebParts"/>

<add namespace="System.Web.UI.HtmlControls"/>

</namespaces>

</pages>

<authentication mode="Forms">

<forms

name=".ADAuthCookie"

timeout="10" />

</authentication>

<authorization>

<deny users="?" />

<allow users="*" />

</authorization>
<membership defaultProvider="MyADMembershipProvider">

<providers>

<remove name="AspNetSqlMembershipProvider" />

<add connectionStringName="ADConnectionString"

connectionUsername="domain\administrateur"

connectionPassword="*****"

name="MyADMembershipProvider"

type="System.Web.Security.ActiveDirectoryMembershi pProvider, System.Web, Version=2.0.0.0, &#xD;&#xA; Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />

</providers>

</membership>

<customErrors mode="Off"/>

</system.web>

</configuration>

Apr 21 '06 #1
1 3186
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 :

<connectionStrings>

<add name="ADConnectionString" connectionString=LDAP://server.domain.com/CN=Users,DC=domain,DC=com />

</connectionStrings>
<system.web>

<pages>

<namespaces>

<clear/>

<add namespace="System"/>

<add namespace="System.Collections"/>

<add namespace="System.Collections.Specialized"/>

<add namespace="System.Configuration"/>

<add namespace="System.Text"/>

<add namespace="System.Text.RegularExpressions"/>

<add namespace="System.Web"/>

<add namespace="System.Web.Caching"/>

<add namespace="System.Web.SessionState"/>

<add namespace="System.Web.Security"/>

<add namespace="System.Web.Profile"/>

<add namespace="System.Web.UI"/>

<add namespace="System.Web.UI.WebControls"/>

<add namespace="System.Web.UI.WebControls.WebParts"/>

<add namespace="System.Web.UI.HtmlControls"/>

</namespaces>

</pages>

<authentication mode="Forms">

<forms

name=".ADAuthCookie"

timeout="10" />

</authentication>

<authorization>

<deny users="?" />

<allow users="*" />

</authorization>
<membership defaultProvider="MyADMembershipProvider">

<providers>

<remove name="AspNetSqlMembershipProvider" />

<add connectionStringName="ADConnectionString"

connectionUsername="domain\administrateur"

connectionPassword="*****"

name="MyADMembershipProvider"

type="System.Web.Security.ActiveDirectoryMembershi pProvider, System.Web, Version=2.0.0.0, &#xD;&#xA; Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />

</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
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...
3
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...
2
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....
13
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...
0
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...
0
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...
3
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
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"/> ...
0
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...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
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,...
0
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...
0
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...
0
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...
0
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,...

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.