Resetting a Lost Administrator Password

By default, when using oCIS with the builtin IDM an ad 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.

[Note]: 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.