Troubleshooting Login

B

Bob Weiner

I want to authenticate against Active Directory using an ASP.Net 2.0 login
control but am having a time getting that to work and am not sure how to
troubleshoot.

When I attempt to open Default.aspx I properly get redirected to Login.aspx.
Regardless of what I type in the Username/Password boxes, I get a "login
attempt was not successful."

There is nothing in my Machine.config that points to a FormsAuthentication
anything. Is this a problem?

My web.config is as follows:

<connectionStrings>
<add name="AD_ConnectionString"
connectionString="LDAP://my.domain.com/OU=myou,DC=my,DC=domain,DC=com"
/>
</connectionStrings>

<system.web>
<compilation debug="true" />
<authentication mode="Forms">
<forms name=".ADAuthCookie"
timeout="10"
loginUrl="Login.aspx"
domain="myDomain"
/>
</authentication>

<authorization>
<deny users="?" />
<allow users="*" />
</authorization>

<membership defaultProvider="MyADMembershipProvider">
<providers>
<add name="MyADMembershipProvider"
type="System.Web.Security.ActiveDirectoryMembershipProvider,
System.Web,
Version=2.0.0.0,
Culture=neutral,
PublicKeyToken=b03f5f7f11d50a3a"
connectionStringName="AD_ConnectionString"
/>
</providers>
</membership>
 

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

No members online now.

Forum statistics

Threads
473,744
Messages
2,569,484
Members
44,903
Latest member
orderPeak8CBDGummies

Latest Threads

Top