Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / .NET Framework / New Users / February 2007

Tip: Looking for answers? Try searching our database.

remote registry authentication

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Darren Mar-Elia - 21 Feb 2007 22:19 GMT
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

Signature

Darren Mar-Elia

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

>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
[quoted text clipped - 3 lines]
>
> Thanks

Rate this thread:







Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.