Membership credential verification failed With ActiveDirectoryMembershipProvider

M

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.ActiveDirectoryMembershipProvider, System.Web, Version=2.0.0.0,
Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />

</providers>

</membership>

<customErrors mode="Off"/>

</system.web>

</configuration>
 
M

moi

ok NOW !
I get a another code in Internet and it works ...; i don't know why ...

Thanks !
"moi" <[email protected]> a écrit dans le message de news: (e-mail address removed)...
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.ActiveDirectoryMembershipProvider, System.Web, Version=2.0.0.0,
Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />

</providers>

</membership>

<customErrors mode="Off"/>

</system.web>

</configuration>
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,764
Messages
2,569,566
Members
45,041
Latest member
RomeoFarnh

Latest Threads

Top