G
Guest
I'm unable to authenticate a username\password using Active Directory, when
I run the aspx code below,
even though I can login to the domain controller with username\password.
When I run the following code, I receive the message
"System.Exception: Error authenticating user. Unknown error (0x80005000)"
private void Page_Load(object sender, System.EventArgs e)\
{
String adPath = "ldap://coname.com/dc=coname,dc=com";
DirectoryEntry entry = new
DirectoryEntry(adPath,"coname\administrator","pwd1");
try
{
//Bind to the native AdsObject to force authentication.
Object obj = entry.NativeObject;
}
catch (Exception ex)
{
throw new Exception("Error authenticating user. " + ex.Message);
}
}
I run the aspx code below,
even though I can login to the domain controller with username\password.
When I run the following code, I receive the message
"System.Exception: Error authenticating user. Unknown error (0x80005000)"
private void Page_Load(object sender, System.EventArgs e)\
{
String adPath = "ldap://coname.com/dc=coname,dc=com";
DirectoryEntry entry = new
DirectoryEntry(adPath,"coname\administrator","pwd1");
try
{
//Bind to the native AdsObject to force authentication.
Object obj = entry.NativeObject;
}
catch (Exception ex)
{
throw new Exception("Error authenticating user. " + ex.Message);
}
}