|
Hello, I need to be able to get the ProfileTokenCredential for the current user so I can use them on a remote system connecting back to the 400 they originated on. Basically, I need this so I can copy files from a remote system back to the 400 and have them created on the 400 with the owner being the user that signed into the 400. For clarification: 1) user signs in to 400. 2) user submits a job that makes an RMI call to a Windows PC. 3) the Java on the PC copies files from it's local drive or a network share to the 400 using the Toolbox IFSFile and related classes. 4) I need to files created on the IFS to have the owner set to the user that initiated the process. NOTE: Currently, the file copy from the PC is done using a pre-defined user to which I know the password. However, I need it to be done in this case using the current user from the 400. Eventually the process returns to the Java on the 400. I tried going through the directory the files are copied to and setting all the owners on the files to the current user. However, the user that I typically use to do copy the files to the 400 does not have *USE authority to the user profile that I need to change the file ownership too. I cannot give the user I typically use *USE authority to the profile. So, my next idea was to create a ProfileTokenCredential that I could pass to the PC so that the PC could use it to create the files on the IFS so they would end up with the correct owner. However, since I don't know the current users password on the 400, I can't create credentials for them. I know they have authenticated since they are the user running the program, and I can create an AS400 object using *CURRENT, but it won't let me get credentials from that AS400 system object (as documented). Is there a way to get the credentials using *CURRENT that I am overlooking? Is this question clear enough, or would more information be helpful. Thanks for all your help! Dan Feather dfeather@xxxxxxxxxxxxx NOTICE: This electronic mail message and any files transmitted with it are intended exclusively for the individual or entity to which it is addressed. The message, together with any attachment, may contain confidential and/or privileged information. Any unauthorized review, use, print, save, copy, disclosure or distribution is strictly prohibited. If you have received this message in error, please immediately advise the sender by reply email and delete all copies.
As an Amazon Associate we earn from qualifying purchases.
This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].
Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.