By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
448,960 Members | 1,351 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 448,960 IT Pros & Developers. It's quick & easy.

Troubleshooting Login

P: n/a
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.ActiveDirectoryMembershi pProvider,
System.Web,
Version=2.0.0.0,
Culture=neutral,
PublicKeyToken=b03f5f7f11d50a3a"
connectionStringName="AD_ConnectionString"
/>
</providers>
</membership>

Aug 8 '07 #1
Share this question for a faster answer!
Share on Google+

This discussion thread is closed

Replies have been disabled for this discussion.