Resetting a Lost Administrator Password

By default, when using oCIS with the built-in IDM, idm generates the user admin (DN uid=admin,ou=users,o=libregraph-idm). If, for any reason, the password of that user is lost, it can be reset using the resetpassword sub-command:

ocis idm resetpassword

It will prompt for a new password and set the password of that user accordingly.

As this command accesses the IDM database directly, it will only work when ocis is not running and no other processes are accessing the database.