How to reset admin password

Good morning.

It seems that I messed up with my server and I don’t have the admin acces anymore (my admin password is not regonised).
As I installed yunohost on a debian I still have my ssh access to my machine but I cannot log myself as a yunohost admin.

Do you know what is the procedure to reset my yunohost admin password?

Many thanks :slight_smile:

Hey,

from what I found here, here and here, it might work to add the following lines to /etc/slapd/slapd.conf :

rootdn "cn=admin,dc=yunohost,dc=org"
rootpw {SSHA}O4kkm2OkgO2DPrrnYXXXXXXXXXXXXXXX  

where the hash in the last line comes from (or at least that’s my understanding)

slappasswd -h {SSHA}
# A password will be ask, and you'll get the corresponding hash

Once the lines are added, [here you might need to restart the ldap service ?], you should be able to connect to the admin interface, rechange the password properly, remove the lines you added in slapd.conf, and that should be all.

Hope it helps !

Thanks :smile:
Sorry for this lateeeeeeeeeee reply :disappointed_relieved:, I was kinda strugling with my exam and I didn’t had any time for Yunohost.
I’ll try all of your solution as soon as possible :smiley:

Take care :+1:

Kosen

@kosenhitatchi did it work for you?

Sorry it’s happened quite a while ago.
I don’t really remember, I think I reinstalled my system as it was a fresh install