lastpass / lastpass-cli

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

Unable to login non-interactively on MacOS #607

Closed mjreed-wbd closed 3 years ago

mjreed-wbd commented 3 years ago

On Linux, logging in like this works fine:

lpass login "$username" <<<"$password"

But on MacOS, this always fails with "Failed to enter correct password." Tried unsetting TERM so it was forced to just read stdin instead of doing the full-screen prompt, but then it just didn't read anything before bailing.

Running LastPass CLI v1.3.3.GIT on MacOS 10.15.7.

mjreed-wbd commented 3 years ago

... (whups, needed LPASS_DISABLE_PINENTRY set on the Mac. Still weird that it works without that envar on Linux.)