https://github.com/osquery/osquery logo
#kolide
Title
# kolide
d

dz

08/02/2019, 6:42 PM
Hi All, sorry if this had been answered, yet failed to locate a way so perhaps asking again, is there a way to reset the only kolide DB user as the password seems to have been lost and rebuilding the DB is last option i guess, >kolide->users->username will be the DB path i guess
s

sundsta

08/02/2019, 10:08 PM
You can pull the salt from the database and then use
bcrypt.GenerateFromPassword()
to generate the correct value, and then insert that to the database. See https://github.com/kolide/fleet/blob/06832697d0e6ed6b2ca0220ef5434791db7b0a27/server/kolide/users.go#L160
d

dz

08/02/2019, 11:33 PM
Thanks, my workaround was pull the password reset request from the DB “password_reset_table” and manually manipulating the URL from the email reset password template , which leads to <server ip/hostname>/login/reset?token=<.Token>
m

Michael Bailey

08/04/2019, 10:26 PM
You don’t even have to respect the salt since bcrypt stores the salt in the same string as the hash. Can just generate a bcrypt. That’s how I did it previously.
👍 1
2 Views