Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

pass credentials for file copy

Status
Not open for further replies.

woyler

Programmer
Jun 20, 2001
678
US
Hello,

In my quest to find a workaround for the lack of support for FTP to an AS400 in CF 2.0, I have set up a hidden share on my AS400. My thought behind this is to do a simple file copy from a Windows based machine to an AS400. Problem is the AS400 is going to require credentials to allow the connection. How can I pass a user/password or change my current credetials to allow the connection? I have looked into the System.Threading.Thread.CurrentPrincipal, but I cant seem to get it right. Anyone have any ideas on this?

regards,

Bill
 
Have you tried remote copy - when I was working on HP-UX stuff I used rcp to move data between servers. I think it has arguments for the username and password.

We also used Samba to display unix folders in windows explorer from a network share. Samba worked very well and made a lot of the routine stuff much easier.

Having said all this, I know nothing about AS400 so this may all be irrelevant.
 
I also dont know anything about AS400 but I do know that the System.Management namespace (WMI) allows you to send in credentials to connect to a remote machine.

Hope this helps
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top