How to create new weblogic username and password
Please find below the steps to create new weblogic username and password:
- set the setDomainEnv.sh file
- take a backup of DefaultAuthenticatorInit.ldift or whole folder of security under domain home
- Go to domain–> security and run below command
java weblogic.security.utils.AdminAccount <NewAdminUserName> <NewAdminPassword> .
example
java weblogic.security.utils.AdminAccount newAdmin newPassword .
. –> used for current directory
DefaultAuthenticatorInit.ldift will be created after running this command
- login to admin console–securityrealm–myrealm-migration-export to any location you want
after export you will get below files in given location:
DefaultAuthenticator.dat
DefaultCredentialMapper.dat
exportIndex.dat
XACMLAuthorizer.dat
XACMLRoleMapper.dat
- Backup od data and boot.properties for Admin server
mv data data_old from –domain–servers-Adminserver
mv boot.properties boot.properties_old— domain–servers-Adminserver–security
- create new boot.properties
boot.properties— domain–servers-Adminserver–security
- restart the admin server
- login to admin console–securityrealm–myrealm-migration-import to any location you want
Now provide the folder Name where u have all the above files.