Sunday, May 3, 2020

How to reset Weblogic Security

 There will a situation that the admin account is locked or no back up id to unlock or reset the admin id or completely forget the password then we may need to reset Weblogic Admin security.

WindowsLinux/AIX/Solaris
Assuming Domain path : cd D:\ABC\ABCDomain\Assuming Domain path : /u01/ABC/ABCDomain/bin
cd D:\ABC\ABCDomain\bin and run below commandcd /u01/ABC/ABCDomain/bin and run below command
setDomainEnv.cmd. ./setDomainEnv.cmd [ dot then space ]
cd D:\ABC\ABCDomain\security\cd /u01/ABC/ABCDomain/security
move DefaultAuthenticatorInit.ldift [ Rename the file ]mv DefaultAuthenticatorInit.ldift DefaultAuthenticatorInit.ldift_old
java weblogic.security.utils.AdminAccount weblogic welcome1 .java weblogic.security.utils.AdminAccount weblogic welcome1 .
cd D:\ABC\ABCDomain\servers\AdminServer\security\cd /u01/ABC/ABCDomain/servers/AdminServer/security
Move boot.properties and create new boot.properties with below username and passwordMove boot.properties and create new boot.properties with below username and password
username=weblogic
password=welcome1
username=weblogic
password=welcome1
got to D:\ABC\ABCDomain
move servers\AdminServer\data\ldap servers\AdminServer\data\ldap_bkp
go to /u01/ABC/ABCDomain/
mv servers/AdminServer/data/ldap servers/AdminServer/data/ldap_old
Now restart the Admin server and verify logs and Admin login with new credentials.. it will create fresh ldap directory .Now restart the Admin server and verify logs and Admin login with new credentials.. it will create fresh ldap directory .
Once AdminServer is started successfully you can see the boot.properties file userid and password is encryptedOnce AdminServer is started successfully you can see the boot.properties file userid and password is encrypted
copy boot.protperites file to all the other managed server's under this domain and restartcopy boot.protperites file to all the other managed server's under this domain and restart
Good Luck!!!Good Luck!!!

If there are any local additional id's created before just recreate them all the local id's are lost due to resetting of admin security.

No comments:

Post a Comment

Featured

Weblogic Domain Migration

 In this blog we will see domain re-configuration which will be done as part of Weblogic migration from lower version to higher version [ Ex...