Resetting Weblogic Admin 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.

Windows Linux/AIX/Solaris
Assuming Domain path : cd D:\ABC\ABCDomain\ Assuming Domain path : /u01/ABC/ABCDomain/bin
cd D:\ABC\ABCDomain\bin and run below command cd /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 password Move 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 encrypted Once 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 restart copy 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.

Related Posts

Leave a Reply

Your email address will not be published. Required fields are marked *