form authentication with AD

R

raghu

I have a simple logon control and I use form/AD authentication using a
service account. I still get the above error on testing. I am testing in:
vs2005/ XP/localhost, asp.net 2.0

The web.config is:

<?xml version="1.0"?>
<configuration>
<appSettings/>

<connectionStrings>
<add name="ADConnectionString" connectionString="LDAP://myDomain/DC=..." />
</connectionStrings>



<system.web>
<compilation debug="false"/>

<authentication mode="Forms">
<forms
name=".ADAuthCookie"
timeout="10" />
</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="ADConnectionString"
connectionUsername="Domain\ServiceAcct"
connectionPassword="password"/>
</providers>
</membership>

</system.web>
</configuration>

I am new to .NET 2.0 and login controls. What am I missing. For giggles, I
change the service account to my domain account,it allows only my credentials
:

What am I missing ??

thanks
 
R

raghu

for testing, I am running this locally on my PC: here is the event log:

Event code: 3008
Event message: A configuration error has occurred.
Event time: 9/21/2007 2:47:28 PM
Event time (UTC): 9/21/2007 6:47:28 PM
Event ID: 4cfdd63f9d7f473d8382a48c875a9bb9
Event sequence: 24
Event occurrence: 1
Event detail code: 0

Application information:
Application domain: /LM/w3svc/1/ROOT/nl-1-128348740341952023
Trust level: Full
Application Virtual Path: /myweb
Application Path: C:\Web_sites\myweb\
Machine name: MYWORKSTATION

Process information:
Process ID: 2744
Process name: aspnet_wp.exe
Account name: MYWORKSTATION\ASPNET

Exception information:
Exception type: ConfigurationErrorsException
Exception message: Unable to establish secure connection with the server
(C:\Web_sites\myweb\web.config line 25)

Request information:
Request URL:
http://localhost/myweb/login.aspx?ReturnUrl=/myweb/Default.aspx
Request path: /myweb/login.aspx
User host address: 127.0.0.1
User:
Is authenticated: False
Authentication Type:
Thread account name: MYWORKSTATION\ASPNET

Thread information:
Thread ID: 1
Thread account name: MYWORKSTATION\ASPNET
Is impersonating: False
Stack trace: at
System.Web.Configuration.ProvidersHelper.InstantiateProvider(ProviderSettings
providerSettings, Type providerType)
at
System.Web.Configuration.ProvidersHelper.InstantiateProviders(ProviderSettingsCollection configProviders, ProviderCollection providers, Type providerType)
at System.Web.Security.Membership.Initialize()
at System.Web.UI.WebControls.LoginUtil.GetProvider(String providerName)
at System.Web.UI.WebControls.Login.OnAuthenticate(AuthenticateEventArgs e)
at System.Web.UI.WebControls.Login.AttemptLogin()
at System.Web.UI.WebControls.Login.OnBubbleEvent(Object source, EventArgs
e)
at System.Web.UI.Control.RaiseBubbleEvent(Object source, EventArgs args)
at System.Web.UI.WebControls.Button.OnCommand(CommandEventArgs e)
at System.Web.UI.WebControls.Button.RaisePostBackEvent(String
eventArgument)
at
System.Web.UI.WebControls.Button.System.Web.UI.IPostBackEventHandler.RaisePostBackEvent(String eventArgument)
at System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler
sourceControl, String eventArgument)
at System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData)
at System.Web.UI.Page.ProcessRequestMain(Boolean
includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
at System.Web.UI.Page.ProcessRequest(Boolean
includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
at System.Web.UI.Page.ProcessRequest()
at System.Web.UI.Page.ProcessRequestWithNoAssert(HttpContext context)
at System.Web.UI.Page.ProcessRequest(HttpContext context)
at ASP.login_aspx.ProcessRequest(HttpContext context) in
c:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET
Files\myweb\a133376d\a8f8690b\App_Web_jtd7ezbp.2.cs:line 0
at
System.Web.HttpApplication.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()
at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean&
completedSynchronously)

--?
 

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

Forum statistics

Threads
473,766
Messages
2,569,569
Members
45,042
Latest member
icassiem

Latest Threads

Top