Oracle Analytics Cloud and Server

Welcome to the Oracle Analytics Community: Please complete your User Profile and upload your Profile Picture

what is the right way to reset weblogic admin password via backend?

Received Response
773
Views
4
Comments
Karthik-Oracle
Karthik-Oracle Rank 5 - Community Champion

Tried many support documents to reset weblogic admin password via backend, but nothing working completely.

we have clusters, and OAS deployments are fully automated, and as per security enforcement, weblogic admin password should also be reset.

Following this is doing reset, but after restart, additional server is not starting.

. $DOMAIN_HOME/bin/setDomainEnv.sh
java weblogic.security.utils.AdminAccount <user> <password> $DOMAIN_HOME/security


${ORACLE_HOME}/oracle_common/common/bin/wlst.sh
connect('<user>','<password>','t3://bip:9500')
cd('/SecurityConfiguration/bi/Realms/myrealm/AuthenticationProviders/DefaultAuthenticator')
cmo.resetUserPassword('<user>','<password>')
disconnect()
exit()

${ORACLE_HOME}/oracle_common/common/bin/wlst.sh
readDomain('/u01/oracle/user_projects/domains/bi')
cd("/SecurityConfiguration/bi")
cmo.setNodeManagerPasswordEncrypted('<password>')
updateDomain()
nmConnect('<user>','<password>','bip','9506','bi','/u01/oracle/user_projects/domains/bi')
storeUserConfig(userConfigFile='/u01/oracle/user_projects/domains/bi/nodemanager/nmUserConfig.properties',userKeyFile='/u01/oracle/user_projects/domains/bi/nodemanager/nmUserKey.properties',nm='true')
nmDisconnect()
exit()


echo "username=<user>
password=<password>" > $DOMAIN_HOME/servers/AdminServer/security/boot.properties
cat $DOMAIN_HOME/servers/AdminServer/security/boot.properties
cp $DOMAIN_HOME/servers/AdminServer/security/boot.properties $DOMAIN_HOME/servers/bi_server1/security/

mkdir -p /u01/oracle/user_projects/domains/bi/servers/AdminServer/data/nodemanager
cp $DOMAIN_HOME/servers/AdminServer/security/boot.properties $DOMAIN_HOME/servers/AdminServer/data/nodemanager/boot.properties
mkdir -p /u01/oracle/user_projects/domains/bi/servers/bi_server1/data/nodemanager
cp $DOMAIN_HOME/servers/AdminServer/security/boot.properties $DOMAIN_HOME/servers/bi_server1/data/nodemanager/boot.properties

export ADMIN_USER="<user>"
export ADMIN_PWD="<password>"
sed -i -E \
   -e "s|(password=)(.*)$|\1${ADMIN_PWD}|g" \
   -e "s|(username=)(.*)$|\1${ADMIN_USER}|g" \
   $DOMAIN_HOME/servers/AdminServer/security/adminServerUserConfig.properties

rm -rf $DOMAIN_HOME/servers/AdminServer/data/ldap/*
rm -rf $DOMAIN_HOME/servers/bi_server1/data/ldap/*
rm -f $DOMAIN_HOME/edit.lok

logs showing this issue,

(AdminServer-diagnostic.log) [2023-12-18T09:19:05.352+00:00] [AdminServer] [ERROR] [] [oracle.wsm.resources.policymanager] [tid: [ACTIVE].ExecuteThread: '10' for queue: 'weblogic.kteThre
ad: '10' for queue: 'weblogic.kernel.Default (self-tuning)'> <> <> <54f7728d-7deb-4125-a3a4-edb0ca434478-0000017f> <1702891025261> <[severity-value: 8] [rid: 0] [partition-id:
 0] [partition-name: DOMAIN] >  
ied user failed to log in. The issue could be because of an incorrect password in boot.properties file or a corrupted boot.properties file. javax.security.auth.login.FailedLoginException
: [Security:090302]Authentication Failed: User specified user denied"., Failed due to : [Security:090938]Authentication failure: The specified user failed to log in. The issue could be b
ecause of an incorrect password in boot.properties file or a corrupted boot.properties file. javax.security.auth.login.FailedLoginException: [Security:090302]Authentication Failed: User 
specified user denied.>  


bi.log) ####     <[ACTIVE] ExecuteThread: '10' for queue: 'weblogic.kernel.Default (self-tu
ning)'> <> <> <54f7728d-7deb-4125-a3a4-edb0ca434478-00000185> <1702891085304> <[severity-value: 8] [rid: 0] [partition-id: 0] [partition-name: DOMAIN] >  
o get the Action Executor due to "javax.security.auth.login.FailedLoginException: [Security:090938]Authentication failure: The specified user failed to log in. The issue could be because
 of an incorrect password in boot.properties file or a corrupted boot.properties file. javax.security.auth.login.FailedLoginException: [Security:090302]Authentication Failed: User specif
ied user denied"., Failed due to : [Security:090938]Authentication failure: The specified user failed to log in. The issue could be because of an incorrect password in boot.properties fi
le or a corrupted boot.properties file. javax.security.auth.login.FailedLoginException: [Security:090302]Authentication Failed: User specified user denied.>                              

kindly direct me if any right support document or steps available to reset .

Answers