Start Iplanet Without Password Prompt

August 7, 2007 – 8:14 pm

 Tip courtesy of Kyle Reynolds at http://www.camelrichard.org

If Iplanet (Sun One Webserver) has security turned on (in the magnus.conf) it will prompt for a password to start the webserver. In cases where you might script the starting of Iplanet, you might want to provide the password, but not be prompted every time.

create a file called “token” (or anything for that matter) and put your iplanet password in it. (Yes, this will be plain text, so take security measures…)

now, start Iplanet by redirecting that file into the start command:

/apps/iplanet/https-hostname.camelrichard.org/start < token

and you will not be prompted for a password.

This also works remotely, as long as the ‘token’ file exists locally on the server that you are running the start command from:

ssh iplanet@hostname /apps/iplanet/https-hostname.camelrichard.org/start < token

where ‘token’ does not have to exist on the Iplanet server, but it does have to exist on the server you run the ssh command from.

Post a Comment