Note: you can also update the email or username, but that shouldn'tīe required as you will get that information in the dump from running db.admin.find() Sources used: Login to the UniFi controller with your email and new password Run: mkpasswd -method=sha-512 -salt=9Ter1EZ9$lSt6 your-new-passwordĪdd the following to the same text file and update the x_shadow with the data you just generated: db.admin.update()Ĭopy and paste the above into the cmd UniFi Controller
UNIFI CONTROLLER WINDOWS INSTALL
The salt for UniFi's mongo install is 9Ter1EZ9$lSt6 Use a WSL linux distro or you can alternately use Cygwin Utilities which has the required mkpasswd utility The Salt Next you will need the whois package installed in order to access the mkpasswd utility Navigate into the unziped mongo install folder's sub-folder 'bin' in CMD.Ĭopy the "x_shadow" key and value mkpasswd Linux/Mac: Select Package type of zip as unless you want to install this version of mongo, you only want to run the executable. OS should default to your current OS Windows/Mac/Linux On the MongoDB Community Server area, change the version to the closest match to your controller, in my case it was 3.4.24 The 3rd line of the mongo.log file will show the DB version number, my case it was: I CONTROL db version v3.4.15 Mongo Windows, Mac, and Linux:įind out what version of mongodb the UniFi controller installed: %UserProfile%/Ubiquiti UniFi/Logs Please let me know if these don't work on Mac or Linux as I only tested on Windows.
After hunting around and looking at various answers, I was able to put together a set of instructions that worked for me.