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.
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.