LDAP Error: The server is not operational.

Joined
Apr 3, 2009
Messages
1
Reaction score
0
Hi Guys, I am new in this forums.

I am trying to use the Active Directory Membership provider. I have updated the web.config with following details
<connectionStrings>
<add name="ADConnectionString" connectionString="LDAP://servername.domain.local/CN=Users,OU=Creator,DC=domain,DC=local" />
</connectionStrings>
and used the above connection string as below

<providers>
<add
name="MyADMembershipProvider"
type="System.Web.Security.ActiveDirectoryMembershipProvider, System.Web, Version=2.0.0.0,
Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"
attributeMapUsername = "sAMAccountName"
connectionProtection="None"
connectionStringName="ADConnectionString"
connectionUsername="domain.local\Administrator"
connectionPassword="passoword"/>
</providers>

And I am trying to access this provider as below:
MembershipProvider mp;
mp = Membership.Providers["MyADMembershipProvider"];

It give error on the second line of the above code. The error description as below:

The server is not operational.

Anyone can help me to out me from this problem.
Thanks in Advance.
 

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,968
Messages
2,570,153
Members
46,699
Latest member
AnneRosen

Latest Threads

Top