For some reason, ldap and directory services does not work when the computer is not joined to the domain. The error messages from .net is domain not available. Anyone know what needs to be done?
the basic...
domainAndUsername = domain + @"\" + username;
entry = new DirectoryEntry(_path, domainAndUsername, pwd);
entry.AuthenticationType = FindAuthTypeMicrosoft(authType);
... doesn't seem to work when logged in locally to the machine when trying to supply testdomain.com to the code above.
Even though I can ping testdomain.com without an issue. What is different or the problem?