Oracle WebLogic

How to create new weblogic username and password

How to create new weblogic username and password

Please find below the steps to create new weblogic username and password:

  1. set the setDomainEnv.sh file
  2. take a backup of DefaultAuthenticatorInit.ldift or whole folder of security under domain home
  3. 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

  1. 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

  1. 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

  1. create new boot.properties

boot.properties— domain–servers-Adminserver–security

  1. restart the admin server
  2. 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.

For more such weblogic issues and resolution click here.

Latest Weblogic Interview Questions and Answers