After I set up WSE2, I ran the sample of "Kerberos" in the folder
QuickStart. I got an exception System.Security.SecurityException: The
Kerberos credential handle could not be
acquired. The AcquireCredentialsHandle call returned the following error
I use Win2k professinal system under WORKGROUP mode.
I debug the program step by step, and got the value of each
variable(displayed at the end of each line use //)
string remoteHost =
ConfigurationSettings.AppSettings["remoteHost"]; // null
string remoteDomain =
string remoteHostName = System.Net.Dns.GetHostName(); //
remoteHostName is "znmaster"
if ( remoteHost != null && remoteHost.Length > 0 )
remoteHostName = (new Uri(remoteHost)).Host;
string targetPrincipalName = null;
if ( remoteDomain == null || remoteDomain.Length == 0 )
targetPrincipalName = "host/" + remoteHostName; //
targetPrincipal Name is host/znmaster
targetPrincipalName = "host/" + remoteHostName + "@" +
KerberosToken securityToken = new
KerberosToken(targetPrincipalName); // error occured here
how can I connect to a domain? I use Win2k professinal system. Please give
me some details about it. Many thanks !