I've tried to implement the kerberosSecurity turnkey scenario on my apps, and
I'm getting the following exception when I try to set the policy.
Description: The application attempted to perform an operation not allowed
by the security policy. To grant this application the required permission
please contact your system administrator or change the application's trust
level in the configuration file.
Exception Details: System.Security.SecurityException:
InitializeSecurityContext call failed with the following error message: A
specified logon session does not exist. It may already have been terminated.
This is running on XP SP2, and I have granted ASPNET the right to Act as
part of the OS (and subsequently rebooted). I have integrated authentication
turned on for the web app (the client of my web service).
What I am trying to achieve is flowing the integrated auth security token to
my web service. My client policy (on my web app) is below.
<policies>
<extensions>
<extension name="kerberosSecurity"
type="Microsoft.Web.Services3.Design.KerberosAssertion,
Microsoft.Web.Services3, Version=3.0.0.0, Culture=neutral,
PublicKeyToken=31bf3856ad364e35" />
</extensions>
<policy name="KerberosClientPolicy">
<kerberosSecurity establishSecurityContext="false"
renewExpiredSecurityContext="true" signatureConfirmation="false"
protectionOrder="SignBeforeEncrypting" deriveKeys="false" actor="">
<token>
<kerberos targetPrincipal="host/DGP1FR51"
impersonationLevel="Identification" />
</token>
<protection>
<request signatureOptions="IncludeAddressing, IncludeTimestamp,
IncludeSoapBody" encryptBody="true" />
<response signatureOptions="IncludeAddressing, IncludeTimestamp,
IncludeSoapBody" encryptBody="true" />
<fault signatureOptions="IncludeAddressing, IncludeTimestamp,
IncludeSoapBody" encryptBody="false" />
</protection>
</kerberosSecurity>
</policy>
</policies>
The target machine is local and is hosting a simple web service (this is
just a proof of concept app).
What else am I missing, or will the kerberos turnkey assertion not work with
a web app client?
--
J. Ambrose Little
ASP.NET MVP/ASPInsider
-----