remote registry authentication

  • Thread starter Thread starter Darren Mar-Elia
  • Start date Start date
D

Darren Mar-Elia

I have an app that uses the RegistryKey class to open and read keys on
remote systems in .Net 2.0. I want to give the user the ability to provide
alternate credentials to make the connection to untrusted systems but there
is no support for this in any of the remote registry access classes, that I
can see. How do folks do this normally?

Thanks
 
Hello,

have you tried Impersonation?

You can use the Win32 LogonUser function via P/Invoke and pass alternate
credentials to the function. Then, pass the authentication token returned by
that function to one of the WindowsIdentity constructors.
This should help to troubleshoot those authentication problems.

Best regards,
Henning Krause
 
Back
Top