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!
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!