Reputation: 11
I have lost the administration role for the default user "weblogic" in Oracle WebCenter content thus not able to login into the WebCenter console and Enterprise management.
screenshot when login with the
weblogic
user in managed server(/cs). The administration tab got lost.
screenshot when login with the
weblogic
user in the console and getting error 403 permission denied with the statement:
"User is not authorized to use this feature. To use this feature, you must have the administrator role. Please LOGIN again."
Please help out as this was strange that the administration access got lost. I can not take much risk with the restart of the server as if it is stopped(by killing the process id, since weblogic is not having admin access now so can't getting stop by normal procedure) it might not start and block people who are working with contributor role.
Upvotes: 1
Views: 3458
Reputation: 11
Upvotes: 0
Reputation: 1480
export MW_HOME=/u01/app/oracle/product/fmw
export DOMAIN_HOME=$MW_HOME/user_projects/domains/prod
export CLASSPATH=$CLASSPATH:$MW_HOME/wlserver_10.3/server/lib/weblogic.jar
. $DOMAIN_HOME/bin/setDomainEnv.sh
cd $DOMAIN_HOME/security/
mv DefaultAuthenticatorInit.ldift DefaultAuthenticatorInit.ldift.old
java weblogic.security.utils.AdminAccount <username> <password> .
cd $DOMAIN_HOME/servers/AdminServer/data/
mv ldap ldap_old
nano $DOMAIN_HOME/servers/AdminServer/security/boot.properties
nohup sh $DOMAIN_HOME/bin/startWebLogic.sh &
Upvotes: 0