UniFi - Lost password and username recovery

by Ubiquiti Employee on ‎03-11-2013 09:11 AM - edited 4 weeks ago (40,286 Views)

Problem


Username and / or password are not working for UniFi controller.

 

Possible causes / recommended actions 


  • Use MongoDB to retrieve username / password.

    1. Open the UniFI controller.
    2. Download mongoDB file and place it on your desktop.
    3. Open the mongoDB Folder.
    4. Open Terminal (Mac OS X, Linux) or the Command Prompt (Windows) then drag the "/bin" folder contained inside the mongoDB directory to the Command prompt / Terminal to get to the correct path.

      Note: The path should look something like this: /Users/yourname/Desktop/mongodb-osx-x86_64-2.2.3/bin

    5. Before completing Step 4, type the following after "/bin":

      /mongo --port 27117
    6.  Then type:

      1. use ace
    7.  Then type:

      db.admin.find()
      Note: The username / password will be appear, see the following sample output:

      Screen Shot 2014-09-27 at 2.45.59 AM.png
FCC Compliance Information
For information on compliance with FCC rules and requirements, please read this: FCC Compliance Information
Disclaimer
The articles in the knowledge base are voluntarily provided by community members, and Ubiquiti Networks makes no guarantee of the validity of this content.