467,915 Members | 1,162 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 467,915 developers. It's quick & easy.

Accessing another domain file system in C#

If i log into my computer as domain A and user X and password Y but then I
need to give C# application access to domain B as user F and password G. Is
this possible? or do i have to log into the computer as domain B, user F and
password G in order for the application to have permissions to domain B? I
would like to stay logged in as domain A but just give my C# application
access to domain B. In my application I need file system access that users
of domain B have but from domain A. Is this possible to do programaticaly if
I have the user name and password to a domain B account?

Nov 22 '05 #1
  • viewed: 1406
Share:
1 Reply
"Daniel" <so*******************@yahoo.com> wrote in message
news:%2****************@TK2MSFTNGP10.phx.gbl...
If i log into my computer as domain A and user X and password Y but then I
need to give C# application access to domain B as user F and password G. Is this possible? or do i have to log into the computer as domain B, user F and password G in order for the application to have permissions to domain B? I
would like to stay logged in as domain A but just give my C# application
access to domain B. In my application I need file system access that users
of domain B have but from domain A. Is this possible to do programaticaly if I have the user name and password to a domain B account?


You may be able to use the LogonUser Windows API but you would have to go
through P/Invoke, you could easily write a small test program to proof this.

Nov 22 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

6 posts views Thread by Serge calderara | last post: by
23 posts views Thread by Lamberti Fabrizio | last post: by
2 posts views Thread by Jon L. Lovesky | last post: by
3 posts views Thread by Gerhard | last post: by
2 posts views Thread by Gerhard | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.