HOW TO RESET PASSWORD TO KANBANIK ?

11 views
Skip to first unread message

gus....@gmail.com

unread,
Mar 22, 2016, 2:16:22 PM3/22/16
to kanbanik
I have an installation of Kanbanik here in my office, the old admin left the job and didn´t leave the password.

How can I reset the password ?

Thanks


Tomas Jelinek

unread,
Mar 22, 2016, 2:54:47 PM3/22/16
to gus....@gmail.com, kanbanik
Hi,

well, there is no straightforward way, you will need to hack the DB a bit, it goes like this:

1: you will need to connect to the database. If you are using the kanbanik-runtime than in shell go to kanbanik-runtime/mongodb/bin and type:
./mongo
(considering linux, on windows something similar). Assuming you either have access to DB or have the password
This will move you to the mongo shell. The rest of the commands assume you are in the mongo shell.

2: you will need to go to the correct kanbanik DB (the default is kanbanikdb. If some different is used than we can find what are there by typing
show dbs

Find the proper DB (kanbanikdb by default) and type:
use kanbanikdb

3: find the user you want to reset the password. The users are stored in the users collection, so list the user names by:
db.users.find({}, {_id: 1})

4: now the tricky part, you need to change the password and the salt. This are for the password "a". So, if you want to change the password of the "admin" user to "a", use this command:

db.users.update({"_id": "admin"}, {$set: {"password" : "OUo2vqRvwsBHNjSOlvZEiFM7tnJuBJwja/QSa8kFwIAcRabhELOC37Eq61BVlmaFxoq4MqlIs7pHmC4KTNO60A==", "salt" : "mFw1kxwJDWXuGmr5ac4lWQ=="}})

Now you should be able to login properly.

And btw, not sure what version are you using but if older than 1.0 (currently RC3) than you may want to update - this release adds the whole permission system (e.g. you can say what user can see exactly what entities and what can do with them etc.) It is here: https://sourceforge.net/projects/kanbanik/files/kanbanik-application-1.0.0-RC3.zip/download

Good luck,
Tomas

--
You received this message because you are subscribed to the Google Groups "kanbanik" group.
To unsubscribe from this group and stop receiving emails from it, send an email to kanbanik+u...@googlegroups.com.
To post to this group, send email to kanb...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/kanbanik/f8324b89-5f55-49dd-a75f-1abbf4df72ae%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Gustavo Leig

unread,
Mar 22, 2016, 3:11:48 PM3/22/16
to Tomas Jelinek, kanbanik
Thanks, works like a charm ;)
Gustavo Leig
Mobile: +55 21 981160777
Office: +55 21 21049592
www.gusleig.com
Reply all
Reply to author
Forward
0 new messages