Avatar of Niranjan Chandrasekhar
Niranjan Chandrasekhar
 asked on

Passing windows credential into wsadmin scripting

Hi,
I have taken a jython script which checks for the Application server, Node status and mails it to the admin if anything is stopped.
The only issue I am having is that for running the jython script, I have to pass the username and password either through command line or through prompt, when running the script through wsadmin.
I would like to get this automated such that, the script automatically picks the windows credentials.

Any help would be highly appreciated.

Thank you.
* IBM* WebSpherePython

Avatar of undefined
Last Comment
Suhas .

8/22/2022 - Mon
HonorGod

There might be ways to programmatically obtain / use the windows credentials, but I am not aware of them.
One problem that comes to mind in doing so would be that ... if a script could extract the username and password of the active user, then this would be an enormous security exposure...  Imagine of that code were inserted into a malicious application that obtained this information and communicated it to some remote server...  very nasty indeed.

I would consider having the information in some kind of external storage, or even have the script prompt for the user and save it in memory until it was needed.  

Hopefully that makes sense, and is of use to you.

Good luck.
Niranjan Chandrasekhar

ASKER
Instead of extracting the windows username/password, what I meant was, probably running a batch process which automatically executes this jython script (taking the credentials from the service) and goes on to run this.
The reason we need this is we plan to automate this script and run it on a scheduled way. We don't want the password to be present in plain text anywhere in the system.
ASKER CERTIFIED SOLUTION
HonorGod

THIS SOLUTION ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
GET A PERSONALIZED SOLUTION
Ask your own question & get feedback from real experts
Find out why thousands trust the EE community with their toughest problems.
Suhas .

No comment has been added to this question in more than 21 days, so it is now classified as abandoned.

I have recommended this question be closed as follows:

Accept: HonorGod (https:#a42364334)

If you feel this question should be closed differently, post an objection and the moderators will review all objections and close it as they feel fit. If no one objects, this question will be closed automatically the way described above.

suhasbharadwaj
Experts-Exchange Cleanup Volunteer
I started with Experts Exchange in 2004 and it's been a mainstay of my professional computing life since. It helped me launch a career as a programmer / Oracle data analyst
William Peck