The sample of Kerberos can't run:The Kerberos credential handle could not be acquired.
From: znmaster (zengniu2001_at_hotmail.com)
Date: 01/22/05
- Next message: Martin Kulov: "Re: WSE Site 30 times Slower now"
- Previous message: znmaster: "inputTrace.config can't be read because it is being used by the process of aspnet_wp after it's generated by wse2."
- Next in thread: Sidd: "Re: The sample of Kerberos can't run:The Kerberos credential handle could not be acquired."
- Reply: Sidd: "Re: The sample of Kerberos can't run:The Kerberos credential handle could not be acquired."
- Messages sorted by: [ date ] [ thread ]
Date: Sat, 22 Jan 2005 20:28:16 +0800
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
code....
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 //)
KerberosToken GetSecurityToken()
{
string remoteHost =
ConfigurationSettings.AppSettings["remoteHost"]; // null
string remoteDomain =
ConfigurationSettings.AppSettings["remoteDomain"]; //null
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
}
else
{
targetPrincipalName = "host/" + remoteHostName + "@" +
remoteDomain;
}
KerberosToken securityToken = new
KerberosToken(targetPrincipalName); // error occured here
return securityToken;
}
Please help me. How can I run this sample! Thank you!
- Next message: Martin Kulov: "Re: WSE Site 30 times Slower now"
- Previous message: znmaster: "inputTrace.config can't be read because it is being used by the process of aspnet_wp after it's generated by wse2."
- Next in thread: Sidd: "Re: The sample of Kerberos can't run:The Kerberos credential handle could not be acquired."
- Reply: Sidd: "Re: The sample of Kerberos can't run:The Kerberos credential handle could not be acquired."
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|