lastpass / lastpass-cli

LastPass command line interface tool
GNU General Public License v2.0
2.86k stars 290 forks source link

Login doesn't work #6

Closed joffotron closed 9 years ago

joffotron commented 10 years ago

Just keeps giving me 'incorrect password' messages. I'm certain I've typed in the master password correctly.

Tried using both personal account and enterprise account. I have 2FA enabled on both.

Env: OSX Lion, both with and without pinentry installed. Built from 2b9b756

Is there any way to debug this?

ejcx commented 10 years ago

Is there anything in your vault or is it empty?

joffotron commented 10 years ago

A few hundred entries. My Enterprise account is linked to my personal one (but not the other way around :p)

boblastpass commented 10 years ago

First thing I would recommend is type your password into textedit and copy and paste it both into the lastpass.com web form and the terminal.

If it works in the web form but not in the terminal and it contains non-ascii characters, then it might be an issue with your terminal's environment. You might want to make sure you have the lang setup for UTF-8.

Finally, if it is still a problem, we should look at what you are sending to the server. In the http.c file, try adding a printf("%s", args); at the bottom of the http_post_lastpass_v function (right before the return) and recompile.

Then you can compare the login hash to https://lastpass.com/js/enc.php to see if it matches. If not, we will have to inspect username, password and iterations in the cmdline tool.

Thanks

joffotron commented 9 years ago

Installed latest version on my new Yosemite machine using brew. Working correctly now.