Are you really distributing each service to a physical machine.
For local access (e.g. asp.net to service) it is impersonation. It is only
delegation if you flow credentials off box again.
-----
Dominick Baier (http://www.leastprivilege.com)
Developing More Secure Microsoft ASP.NET 2.0 Applications (http://www.microsoft.com/mspress/books/9989.asp)
Hi Dominick,
> Are you really distributing each service to a physical machine.
Yes, the setup is Machine1:Browser, Machine2:ASP.NET, Machine3:WebService,
Machine4: DB-Server.
> For local access (e.g. asp.net to service) it is impersonation. It is only
> delegation if you flow credentials off box again.
I am aware of that, but it rather seems to be a conceptual interpretation of
what is really happening.
For testing purposes I have set up ASP.NET and WebService together on one
machine. Now on Machine A: I get an ImpersonationLevel=Delegation, on another
Machine B: I get an ImpersonationLevel=Impersonation. I didn't find any
difference in AD settings so far.
And this is leading towards my original question: Can someone explain
her/his understanding of what makes the difference between delegation and
impersonation?
I am digging for the details, since there is a slight chance to deploy this
in loadbalanced webfarms and database clusters. I don't want to be looking
for answers, when this is productive.
Dominick Baier - 26 Mar 2008 15:21 GMT
impersonation means to impersonate the client to access local resources -
delegation only applies to remote resources. That's the easy distinction.
-----
Dominick Baier (http://www.leastprivilege.com)
Developing More Secure Microsoft ASP.NET 2.0 Applications (http://www.microsoft.com/mspress/books/9989.asp)
> Hi Dominick,
>
[quoted text clipped - 21 lines]
> this in loadbalanced webfarms and database clusters. I don't want to
> be looking for answers, when this is productive.
Ralf Steinstraesser - 26 Mar 2008 16:44 GMT
Thank you for your answers so far, Dominick.
I think I got it now. Somehow I failed to set up the SPNs for the
alternative middle-tier host properly. Therefor I saw Kerberos as
AuthenticationType, but not Delegation as ImpersonationLevel on that host.
Instead it showed only Impersonation, whereas it was Delegation for the
middletier with the proper SPN.
Another issue, which added to my confusion was, that when having ASP.NET and
WebService together on one machine, I am able to impersonate the Browser user
before querying the Database and I am getting properly applied user rights of
the database. I thought this is already the double hop, and would not work...

Signature
Dipl.-Ing. Ralf Steinstraesser
Software Architekt
Bissantz & Company GmbH
> impersonation means to impersonate the client to access local resources -
> delegation only applies to remote resources. That's the easy distinction.
[quoted text clipped - 29 lines]
> > this in loadbalanced webfarms and database clusters. I don't want to
> > be looking for answers, when this is productive.