I have an OCIS installation. The initial admin user has been renamed to other name ex. NewAdmin
However, we lost the password for the NewAdmin.
I have try to run the idm resetpassword command but it gives an error
./ocis idm resetpassword Resetting password for user ‘uid=admin,ou=users,o=libregraph-idm’. Enter new password: Re-enter new password: Failed to update admin password: entry does not exist Password for user ‘uid=admin,ou=users,o=libregraph-idm’ updated.
After running the above command, it seems that the admin password was not updated.
Is there any possibility to generate back the admin user with initial password ?
i have tried to login after the idm resetpassword but it does not recognize probably because it tries to find the ‘admin’ user but couldn’t find it. my guess if the logic program is to find the ‘admin’ and not the user identifier. since i have already rename the admin to another name, the program couldn’t find the ‘admin’ anymore thus the whole change password process does not complete properly.
if the program uses the admin_user_id identifier it might be able to change the password eventhouh the name is no longer ‘admin’ as the idenfier is still the same. This is my guess.