We have a .net web application hosted at Rackspace. Some users need to be authenticated across an AD domain that is different from Rackspace.
My code looks like this
using (PrincipalContext pc = new PrincipalContext(ContextType.Domain, mydomain))
{
// validate the credentials
ValidUser = pc.ValidateCredentials(UserName, Password);
}//some code
I am getting the error : LDAP server is unavailable. The server could not be contacted.
Now I have tried the following versions for mydomain string with no luck:
mydomain
mydomain.org
domainIPaddress
What is the issue here?
Go to the complete details ...