Unauthorized (401): Unauthorized access to workbench. Please check your credentials in WorkbenchConfig.xml/OCS. If problem still persists, please contact your administrator.
Summary
Change the Administrator password in the Endeca Configuration Repository and the Oracle Credentials Wallet immediately after installing Oracle Commerce 11.2.
Do this before attempting to deploy and initialize an application for the first time.
Instruction
The new password must be updated first in the Endeca Configuration Repository, then in the Oracle Credentials Wallet.
Updating the Endeca Configuration Repository password
There are two mechanisms by which to update the password in the Endeca Configuration Repository:
- Log in to the Workbench, and a password change modal will appear.
- Submit a POST request tohttp://<WorkbenchHost>:8006/ifcr/system/userManager/user/admin.changePassword.json
- The following parameters are required within the POST request:
- oldPwd [The current password.]
- newPwd [The value for the new password.]
- newPwdConfirm [The value for the new password.]
- The following is an example using the curl command line tool:curl -FoldPwd=admin -FnewPwd=newpassword -FnewPwdConfirm=newpassword http://admin:admin@localhost:8006/ifcr/system/userManager/user/admin.changePassword.json
- The following parameters are required within the POST request:
Updating the Oracle Credentials Wallet
The administrator credentials that are stored within the Oracle Credentials Wallet are updated with the manage_credentials script, located in the ToolsAndFrameworks directory.
- Navigate to the %ENDECA_TOOLS_ROOT\credential_store\bin (Linux: $ENDECA_TOOLS_ROOT/credential_store/bin) directory.
- Run the manage_credentials script using this format (assuming the defaults were used during the installation process):Linux: manage_credentials.sh add --user admin --key ifcr --type password
- Since the credential for 'admin' already exists, you are prompted to replace it. Enter 'yes'.
- Enter the new password.
- Enter the new password again.
If the above methods not work - delete the folder named _ifcr (which contains all your workbench settings/applications etc…) – under /endeca/ToolsandFrameworks/11.1.0/server/workspace/state/sling.
Once deleted – restart Tools and frameworks service – it recreated the _ifcr folder (with a default of admin/admin) and was able to get back into the workbench.