
Signature
Joe Kaplan-MS MVP Directory Services Programming
Co-author of "The .NET Developer's Guide to Directory Services Programming"
http://www.directoryprogramming.net
--
My initial intention was to run everything in the SYSTEM context, but ran
into problems when my service required access to network files. My service
requires SYSTEM rights and cannot run as NetworkService.
I haven't found a way to access the network files using the delegated user
token while still running in SYSTEM context locally, but I'd be more than
happy to implement such a solution.
The idea of elevating the rights of the user token was my final(?) hope of
finding a solution to my network access problem.
> You can't do this in .NET, but might be able to do something like this with
> the low level token APIs by virtue of the fact that you are running as
[quoted text clipped - 23 lines]
> >
> > Is it in any way possible to do this?
Joe Kaplan - 16 Dec 2006 17:07 GMT
If you enable Kerberos delegation correctly, you should be able to
impersonate the authenticated user to access the remote network files with
the user's security context. You could also do your impersonation
programmatically so that some of your operations were conducted with the
SYSTEM account.
Do you know if you have Kerberos delegation enabled for the machine account?
That is the account that delegation will be applied to when the SYSTEM
account attempts to access network resources.
Joe K.

Signature
Joe Kaplan-MS MVP Directory Services Programming
Co-author of "The .NET Developer's Guide to Directory Services Programming"
http://www.directoryprogramming.net
--
> My initial intention was to run everything in the SYSTEM context, but ran
> into problems when my service required access to network files. My service
[quoted text clipped - 42 lines]
>> >
>> > Is it in any way possible to do this?