Databases Reference
In-Depth Information
This recipe will provide the steps to recover the username and password from the boot.
properties file of the PROD_DOMAIN domain.
Getting ready
The recovery will use WLST to decrypt the boot.properties file.
How to do it...
Carry out the following steps to recover the WebLogic Admin password:
1. Log in as the wls user to shell and set the domain environment variables for the
domain you want to recover:
[wls@prod01]$ cd $DOMAIN_HOME/bin
[wls@prod01]$ . ./setDomainEnv.sh
2. Start WLST:
[wls@prod01]$ $WL_HOME/common/bin/wlst.sh
3. Run the following WLST commands to display the username and password:
from weblogic.security.internal import BootProperties
BootProperties.load("/oracle/Middleware/user_projects/domains/
PROD_DOMAIN/servers/PROD_AdminServer/security/boot.properties",
false)
prop = BootProperties.getBootProperties()
print "username: " + prop.getOneClient()
print "password: " + prop.getTwoClient()
The username and password will be displayed on the screen.
How it works...
The script reads the boot.properties file, decrypts it, and displays the username and
password provided.
The script points to the boot.properties file located in the security folder of the PROD_
AdminServer . You can point to any security folder that contains the boot.properties
file of the other Managed Servers.
It is important to set the domain environments first, otherwise the script will not be able to
find the SerializedSystemIni.dat file, which is the seed used by the domain to encrypt
and decrypt.
 
Search WWH ::




Custom Search