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.
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.