Membership credential verification failed With ActiveDirectoryMembershipProvider

Discussion in 'ASP .Net' started by moi, Apr 21, 2006.

  1. moi

    moi Guest

    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>
    moi, Apr 21, 2006
    #1
    1. Advertising

  2. moi

    moi Guest

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

    Thanks !
    "moi" <> a écrit dans le message de news: ...
    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>
    moi, Apr 21, 2006
    #2
    1. Advertising

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

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Ken Dopierala Jr.

    Re: How to get Windows logon user credential?

    Ken Dopierala Jr., Aug 28, 2003, in forum: ASP .Net
    Replies:
    1
    Views:
    4,398
    cindy liu
    Aug 28, 2003
  2. Martin
    Replies:
    3
    Views:
    760
    Hermit Dave
    Jan 10, 2004
  3. Bob T
    Replies:
    0
    Views:
    264
    Bob T
    Sep 19, 2007
  4. lerameur

    net:scp Host key verification failed

    lerameur, Oct 12, 2007, in forum: Perl Misc
    Replies:
    0
    Views:
    79
    lerameur
    Oct 12, 2007
  5. lerameur

    net:scp Host key verification failed

    lerameur, Oct 12, 2007, in forum: Perl Misc
    Replies:
    5
    Views:
    579
    lerameur
    Oct 12, 2007
Loading...

Share This Page