AD Membership Connection

M

Mick Walker

I am having a problem connecting using the ActiveDirectory Membership
provider.

I define my Connection string as follows:
<add name="ADConn" connectionString="LDAP://BEL-ADC-01.UTVi.local"/>

And then add:

<authentication mode="Forms">
<forms name=".ADAuthCookie" timeout="10" />
</authentication>
<authorization>
<deny users="?" />
<allow users="*"/>
</authorization>
<!--- Active Directory Membership Provider -->
<membership defaultProvider="MyADMembershipProvider">
<providers>
<remove name="AspNetSqlMembershipProvider" />
<add
name="MyAdMembershipProvider"

type="System.Web.Security.ActiveDirectoryMembershipProvider, System.Web,
Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"
connectionStringName="ADConn"
connectionUsername="UTVi\Administrator"
connectionPassword="*********"
applicationName="/ControlPanel"
/>
</providers>

</membership>

However when I try to login to my web app using a simply login form, I
always get the error message:
Your login attempt was not successful. Please try again.

Does any one know where I am going wrong?
 
M

Mick Walker

Mick said:
I am having a problem connecting using the ActiveDirectory Membership
provider.

I define my Connection string as follows:
<add name="ADConn" connectionString="LDAP://BEL-ADC-01.UTVi.local"/>

And then add:

<authentication mode="Forms">
<forms name=".ADAuthCookie" timeout="10" />
</authentication>
<authorization>
<deny users="?" />
<allow users="*"/>
</authorization>
<!--- Active Directory Membership Provider -->
<membership defaultProvider="MyADMembershipProvider">
<providers>
<remove name="AspNetSqlMembershipProvider" />
<add
name="MyAdMembershipProvider"

type="System.Web.Security.ActiveDirectoryMembershipProvider, System.Web,
Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"
connectionStringName="ADConn"
connectionUsername="UTVi\Administrator"
connectionPassword="*********"
applicationName="/ControlPanel"
/>
</providers>

</membership>

However when I try to login to my web app using a simply login form, I
always get the error message:
Your login attempt was not successful. Please try again.

Does any one know where I am going wrong?
I didnt mention, I am connection to a Windows 2008 Domain. So I think
this rules out using ADAM
 

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,968
Messages
2,570,154
Members
46,701
Latest member
XavierQ83

Latest Threads

Top