RE: More questions about WSE 3 (Kerb policy) in a Web Farm



Hi Anthony,

I sounds like you may already have studied the technical suplement to the
Web Service Security Guide, but in case not, have a look here:
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnpag2/html/wss_ch7_kerbtechsupp.asp.
You should read about Service Princiapal Names pretty carefully or you are
likely to miss something important - at least that was my experience ;-)

In terms of delegation your service account running the Web site, should be
trusted for delegation if you use Kerberos or it won't be able to move your
users identity forward to the Web service. (Note that if you are at Windows
2003 functional level in your AD you may narrow down for which services
delegation is allowed.)

If you don't want to impersonate on your web client - which you must do, at
least when you set the Kerberos token - you may use a different WSE policy
assertion. I suggest using usernameForCertificateSecurity which out the box
will validate the username/password against you AD, and you're never need to
impersonate again. And it will work on both IIS 5 (XP) and IIS 6 without any
SPN magic!

Niels
http://blog.flensted-jensen.com

"Anthony Yott" wrote:

Folks, I need some help if anyone has any ideas.

Scenario
==========================
In my case, the server App is an ASP.NET 2.0 Web Service on Windows 2003
using WSE 3.0 and Kerberos policy. The client will be a ASP.NET 2.0 Web site
that will be located on either a Win 2000 or Win 2003 machine. The Web
Service and Web Sites will be located on a separate machine in the SAME
domain.

Questions
============================
1.) I know I'm supposed to create an SPN for a domain account and run the
web service under that account in the farm. The question is do I create a
"arbitrary" SPN or do I create a "host" SPN? Can I create both for a single
Domain account? Should I?

2.) Does the SPN Identity that the web services run under need delegation,
etc?

3.) What special considerations are needed on the client (ASP.NET 2.0 web)?
ie Do they need to run under the SPN account? Do they have to have
delegation? In testing on my machine (Win XP), if the client was ASP.NET I
had to impersonate (either in web config or in code) in order to make the
call work correctly.

Any help would be greatly appreciated

Thanks in advance,
Anthony Yott

--
Anthony Yott
.



Relevant Pages

  • RE: SharePoint
    ... Dim strSPSite As String = "http://xxxxxxxxx"; ... Subject: SharePoint ... Do you have access to the web service code to see how it is done there? ... a Windows 2003 server with an admin account running it, ...
    (microsoft.public.sharepoint.portalserver.development)
  • Re: Asp.Net and Webservice using Impersonation/App Pools
    ... the EXE to the user account that the web service will run as? ... > webservice everything goes smoothly. ...
    (microsoft.public.dotnet.framework.webservices)
  • RE: Using kerberosSecurity Throws Security Exception
    ... Account with a Custom Principal Name using SetSPN.exe utility. ... I tried turning on identity impersonation for my web app. ... >> turned on for the web app (the client of my web service). ... >> Non nobis Domine non nobis sed nomini Tuo da gloriam. ...
    (microsoft.public.dotnet.framework.webservices.enhancements)
  • Re: Windows Auth to SQL Server from ATL Web Service not working...
    ...  When I hit the web service with a simple test application, ... account I'm logged on as. ... could even be the one the application pool in iis is running under) to ... this impersonation token is not passed on to the SQL Server. ...
    (microsoft.public.vc.atl)
  • Re: Deploying .NET 2.0 Web App from WinXP Pro to Server 2003: 404!
    ... You CANNOT *select* the account from the account list...or Windows complains. ... the absence of ASP.NET 2.0 in the Web Service Extensions node suggests ... run the app on my local machine, using the built-in Web server, I have no ...
    (microsoft.public.dotnet.framework.aspnet)

Quantcast