Monday, September 7, 2015

Bypass prompting username/password for OBIEE weblogic 11g

When starting/stopping the Managed Server or Admin Server (WebLogic), the user is prompted to enter username and password.


Both of these command will prompting the username and password.
./startManagedWebLogic.sh bi_server1 http://hostname:7001
./startWebLogic.sh


Instead, you can enable auto login using a boot identity file. A boot identity file contains user credentials for starting and stopping an instance of WebLogic  Server. An Administration Server can refer to this file for user credentials instead of prompting you to provide them. Because the credentials are encrypted, using a boot identity file is more secure than storing unencrypted credentials in a startup or shutdown script. If there is no boot identity file when
you start a server, the server instance prompts you to enter a username and password. The boot identity file can be different for each server instance in the domain.

To configure the boot.properties file for the Managed Server, perform the following steps:




Browse to
$MIDDLEWARE_HOME/user_projects/domains/bifoundation_domain/servers/bi_server1/security

Edit the boot.properties file.
$ vi boot.properties

Modify the file to reflect the following and save it:
username=your_admin_username
password=your_admin_password



Browse to
$MIDDLEWARE_HOME/user_projects/domains/bifoundation_domain/bin
and run this command
./startManagedWebLogic.sh bi_server1 http://your_hostname:7001/console

-----------------------------------------------------------------------------------------------------------

To configure the boot.properties file for the Admin Server (WebLogic), perform the following steps:

Browse to
$MIDDLEWARE_HOME/user_projects/domains/bifoundation_domain/servers/AdminServers/security 

Edit the boot.properties file.
$ vi boot.properties

Modify the file to reflect the following and save it:
username=your_admin_username
password=your_admin_password


Go to
$MIDDLEWARE_HOME/user_projects/domains/bifoundation_domain/bin

and run the command:
./startWebLogic.sh

Note that the boot.properties file is identified and you are not prompted for a username and password. The server is in the running mode. Navigate to boot.properties and notice that the content of the file is now encrypted.

No comments:

Post a Comment