- Shut down nexus, and backup your <Nexus Data Directory>
- Access the OrientDB console using these instructions.
- Run the following command:
nexus3/db/security admin admin
You may need to adjust the path used in the connect statement depending on the location of your nexus data directory. It should be the path to the "db/security" directory in your data directory. An absolute path may be used.
- After the connect command succeeds, issue this command in the console to update the admin user password to the default value:
update user SET password="$shiro1$SHA-512$The query language is sql-like , but it is not SQL. See the OrientDB Command Reference.
1024$NE+wqQq/TmjZMvfI7ENh/g==$ V4yPw8T64UQ6GfJfxYq2hLsVrBY8D1 v+bktfOxGdt4b/9BthpWPNUy/ CBk6V9iA0nHpzYzJFWO8v/ tZFtES8CA==" UPSERT WHERE id="admin"
At this point, the admin user should be able to authenticate if the default security realms are in still in place. Verify you can login as the admin user using your web browser.
- Optional, if the admin user still fails to authenticate: If the default security realms were removed from the active list, the default admin user will still not be able to authenticate, despite resetting the password.
To reset the default security realms, enter this command at the karaf prompt:
delete from realm
After this command succeeds and Nexus is restarted, the default security realms will be activated and any custom activated realms will have been removed.
An admin user will then have to add back in any other security realms they had previously ( such as LDAP) using the Realms UI, to allow other users to authenticate.
To end the console session gracefully type "exit".
- Start Nexus again using
./bin/nexus startor your regular service control command.
Have more questions? Submit a request