Wenn man für den UniFi Controller das Kennwort und den Benutzernamen vergessen hat, kann man diese auf folgende Weise wieder herstellen.
Update: 17.09.25
Download Robo3T (latest Version)
You only need the a mongo db client, I followed this and it worked PERFECTLY:
https://www.youtube.com/watch?v=kv0hZax87-c
1. install ROBO 3T client on the controller computer
2. connect localhost 27117
3. navigate to ace -> collections -> admin
4. go to quickhash.com and generate a temporary password with the :
selected
5. edit the admin x_shadow and put the quickhash.com value into the x_shadow and save
6. then you should be able to login with the admin and temporary password.
Update: 20.03.24
Update 09.06.2020
Windows
1) download the MongoDB from here.
2) Create a folder on the C drive ( passwordrecover )
3) Extract mongo.exe from the bin folder into the newly created C:\passwordrecover folder
4) WINDOWS + R and type cmd (ENTER )
5) Go to the folder you just created
cd C:/passwordrecover
6) Run the following commands, those commands will prompt you with all the admin account.
mongo --port 27117
use ace
db.admin.find()
7) Now run the next command and replace <UserName> with the admin account.
db.admin.update( { "name" : "<UserName>" }, { $set : { "x_shadow" : "$6$ybLXKYjTNj9vv$dgGRjoXYFkw33OFZtBsp1flbCpoFQR7ac8O0FrZixHG.sw2AQmA5PuUbQC/e5.Zu.f7pGuF7qBKAfT/JRZFk8/" } } )
8) You can now login with your admin account and password password
Quelle: https://community.ui.com
Quelle: How-to: Reset Unifi controller password hosted on Windows - C:\ServerThings.com
Quelle: restore access to unifi controller · GitHub
Alte Methode
System auf dem die UniFI controller Software installiert ist, starten bzw. einloggen.
Download mongoDB Datei auf dem Desktop abspeichern und anschließend entpacken.
In die Kommandozeile wechseln und in folgendes Verzeichnis wechseln:
/Users/Benutzername/Desktop/mongodb-win32-x86_64-2008plus-3.0.2/bin
mongo --port 27117
anschließend folgende Befehle eintippen:
use ace
db.admin.find()
... und schon sieht man den Benutzernamen und das vergebene Kennwort