This is the situation which we faced in our development server.
Our server setup is such as, we have an Admin Server and three managed server(osb,bam,soa) on it.
It is a single node setup. Domain name is admin_domain
Follow the below steps to change the weblogic password:
- Login to the Oracle 11g Adminintration Console with the weblogic username and password,
Navigate to Secuity Realms-->myRealms(realm name)-->Migration(tab)-->Export(tab)
Here please provide a Directory location for “Export Directory on Server:” TextBox (Example: /tmp)Click on “Save” button…you will find that in the Directory which you have specified you will get :DefaultAuthenticator.datDefaultCredentialMapper.datexportIndex.datXACMLAuthorizer.datXACMLRoleMapper.dat - Now Shut Down all the servers which are running.
- Take the backup of Domain Directory.
- Navigate to the bin folder in the domain directory. i.e $Middleware_Home/user_projects/domain/admin_domain/bin
- Execute setDomainEnv.sh file in the command prompt. Make sure weblogic.jar is present in ClassPath.
- Navigate to $Middleware_Home/user_projects/domain/admin_domain/security.
- Just for the safety take the backup of DefaultAuthenticatorInit.ldift file, because in the next step we are going to create new file "DefaultAuthenticatorInit.ldift"
mv DefaultAuthenticatorInit.ldift DefaultAuthenticatorInit.ldift.bkup - In the same directory give the following command :
java weblogic.security.utils.AdminAccount newAdminUser newAdminPassword .
(make sure to give the '.' at the end)
Here, newAdminUser -->the new user you want instead of weblogic
newAdminPassword-->the new Password which is required to authenticate the Admin user - Navigate to the following path $Middleware_Home/user_projects/domain/admin_domain/servers/AdminServer/security. Here update the boot.properties file with the new username and password.
- Repeat step 9 for all the managed servers.
- Take the backup of the following directory
$Middleware_Home/user_projects/domain/admin_domain/servers/AdminServer/data/
mv data data_bkup - Time to Start the Admin Server.As we have already made an entry in the boot.properteis file, it will not ask for user name and password.
- Login to Admin Console by giving the new user name and password.
- Import the users and groups back by navigating to :
Secuity Realms-->myRealms(realm name)-->Migration(tab)-->Import(tab)
Provide the folder name (/tmp) where we have stored the above files.DefaultAuthenticator.datDefaultCredentialMapper.datexportIndex.datXACMLAuthorizer.datXACMLRoleMapper.dat - Now Go To,
Home-->Domain-->Security(tab)
In the advance section, give the new node manager username and password.
After successfully completing these steps you should be able to change Weblogic Username's password. - If you have AIA also installed on SOA, you need to follow some additional steps for AIA to change AIA password.
Will cover that in separate POST.
Enjoy :)
No comments:
Post a Comment