Thursday, May 14, 2015

Enabling Auto Login WebLogic and WebLogic Managed Servers

WebLogic and its managed server prompt to enter user name and password during server start up or shut down. Oracle provides options to skip this.  

A boot identity file contains the user credentials. An admin or managed server can refer this file for user credentials instead of prompting at command line to provide them. In addition, credentials encrypted.

Note:
  1. If choose Development mode when we creating domain, a boot identity file is automatically created by domain creation wizard.
  2. If we use Node Manager to start managed server instead of running script then, we do not need boot file because, Node manager creates its own boot identity file and store under each server directory “data/nodemanager”.

Steps to create boot identity file:
  1. Stop all admin server as well managed servers.
  2. Navigate to the domain directory MW_HOME/user_projects/domains/DOMAIN_NAME/servers
  3. Create subdirectory security if it does not exist under DOMAIN_NAME/servers.
  4. In the security directory, create a text file called boot.properties and edit it. In the file, add below lines and save it.
  5. Start the admin server and it will not prompt to enter user name and password.
  6. User name and password encrypted by the server when server started first time and added with timestamp when the encryption occurred.