Home All Groups Group Topic Archive Search About

remote registry authentication

Author
21 Feb 2007 10:19 PM
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

--
Darren Mar-Elia

Author
22 Feb 2007 10:15 PM
Henning Krause [MVP - Exchange]
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


Show quote
"Darren Mar-Elia" <dmanonym***@microsoft.com> wrote in message
news:169DB4C8-B63E-432F-9A3E-4E318EDBF887@microsoft.com...
>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
>
> --
> Darren Mar-Elia
>
>

AddThis Social Bookmark Button