A
Amit Saxena
Hi,
i am trying to use Login control to check the credential of the user. i
want to validate credential against active directory in the
organization. i followed the steps suggested as in
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnpag2/html/paght000026.asp
I am not able to make this control work. i would like to know how can i
debug the login control or get some messages .
below is my web.config
<?xml version="1.0"?>
<configuration xmlns="http://schemas.microsoft.com/.NetConfiguration/v2.0">
<connectionStrings>
<add name="ADConnectionString"
connectionString="LDAP://MYORG_Area.ad.Myorg.com/CN=Users,DC=MYORG_Area,DC=ad,DC=Myorg,DC=com"/>
</connectionStrings>
<system.web>
<membership defaultProvider="MyADMembershipProvider" />
<authentication mode="Forms">
<forms name=".ADAuthCookie" timeout="10"/>
</authentication>
<authorization>
<deny users="?"/>
<allow users="*"/>
</authorization>
<add name="MyADMembershipProvider"
type="System.Web.Security.ActiveDirectoryMembershipProvider, System.Web,
Version=2.0.0.0,Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"
connectionStringName="ADConnectionString"
connectionUsername="MYORG_Area\dtsadmin" connectionPassword="password"
attributeMapUsername="sAMAccountName"/>
<compilation debug="true"/></system.web>
</configuration>
Any pointers will be appreciated.
Thanks
Amit
i am trying to use Login control to check the credential of the user. i
want to validate credential against active directory in the
organization. i followed the steps suggested as in
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnpag2/html/paght000026.asp
I am not able to make this control work. i would like to know how can i
debug the login control or get some messages .
below is my web.config
<?xml version="1.0"?>
<configuration xmlns="http://schemas.microsoft.com/.NetConfiguration/v2.0">
<connectionStrings>
<add name="ADConnectionString"
connectionString="LDAP://MYORG_Area.ad.Myorg.com/CN=Users,DC=MYORG_Area,DC=ad,DC=Myorg,DC=com"/>
</connectionStrings>
<system.web>
<membership defaultProvider="MyADMembershipProvider" />
<authentication mode="Forms">
<forms name=".ADAuthCookie" timeout="10"/>
</authentication>
<authorization>
<deny users="?"/>
<allow users="*"/>
</authorization>
<add name="MyADMembershipProvider"
type="System.Web.Security.ActiveDirectoryMembershipProvider, System.Web,
Version=2.0.0.0,Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"
connectionStringName="ADConnectionString"
connectionUsername="MYORG_Area\dtsadmin" connectionPassword="password"
attributeMapUsername="sAMAccountName"/>
<compilation debug="true"/></system.web>
</configuration>
Any pointers will be appreciated.
Thanks
Amit