ActiveDirectoryMembershipProvider login always fail

  • Thread starter Thread starter Natan Vivo
  • Start date Start date
N

Natan Vivo

Hi. I'm tring to implement AD login with .net beta2 here.

I am using asp:Login control, but the Login always fails.

I tried to validate manually using
Membership.ValidateUser("domain\user", "pass") or ("user", "pass"), but
it always returns "False".

The credentials are right, and it seems to connect to AD because it
doesn't give me any error when trying to validate, but i can't be sure.

Here are the settings in my web.config:

<connectionStrings>
<add name="ADServer"
connectionString="LDAP://192.168.10.14/DC=COMPANY,DC=COM,DC=BR" />
</connectionStrings>

....

<membership defaultProvider="AD">
<providers>
<add
name="AD"
type="System.Web.Security.ActiveDirectoryMembershipProvider,
System.Web, Version=2.0.0.0, Culture=neutral,
PublicKeyToken=b03f5f7f11d50a3a"
connectionStringName="ADServer"
connectionUsername="COMPANY\Administrator"
connectionPassword="password"
/>
</providers>
</membership>


Any tips?

Thanks!
 
Try posting your questions to :- dotnet.framework.asp.net.security forum
Hope that helps
Patrick
 

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

Back
Top