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.
Niranjan ChandrasekharAsked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

HonorGodSoftware EngineerCommented:
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.
0
Niranjan ChandrasekharAuthor Commented:
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.
0
HonorGodSoftware EngineerCommented:
Is the application is going to run as a Windows service, then have the service log in using the appropriate credentials (i.e., username & password) on the service panel.

That's how I would do it.
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Suhas .Senior QA ManagerCommented:
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
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
IBM

From novice to tech pro — start learning today.