Git Product home page Git Product logo

Comments (8)

stuartcryan avatar stuartcryan commented on July 22, 2024

I have found if I run export TERM=linux before the command, the backspace then works correctly but the login box looks kinda funky.
i.e. with the term set to linux:
lplogin_bad

and normally:
lplogin_good

from lastpass-cli.

bcopeland avatar bcopeland commented on July 22, 2024

Sounds like an issue with the terminal or with pinentry, really, not lastpass-cli. Can you reproduce if you just run pinentry by itself? (Run pinentry, and after it displays "OK Your orders please", type GETPIN followed by a newline. It will display the pin after you submit the dialog.)

from lastpass-cli.

stuartcryan avatar stuartcryan commented on July 22, 2024

Ahh you are correct it is with pinentry. Sorry for the hassle guess this can be closed (and learning new lessons every day) :)
Cheers,
Stuart

from lastpass-cli.

bcopeland avatar bcopeland commented on July 22, 2024

Ok - feel free to reopen if you find out there's something (portable) lpass should be doing with regards to setting terminal options when starting pinentry.

from lastpass-cli.

sethdmoore avatar sethdmoore commented on July 22, 2024

I also had this problem. OSX 10.10, tmux 2.0 on Terminal.App 2.5.3

$ echo $TERM
screen

The "solution" was to use ctrl-h as backspace. Terminal.App has "Delete sends Control-H" under Profiles -> Advanced. I've never had to do this before, so it seems kind of silly to turn it on for this one app.

from lastpass-cli.

bcopeland avatar bcopeland commented on July 22, 2024

So maybe we need stty erase setting or something for mac.

By the way, you can export LPASS_DISABLE_PINENTRY=1 to disable pinentry.

from lastpass-cli.

sethdmoore avatar sethdmoore commented on July 22, 2024

I have password reprompt enabled for a bunch of passcodes, so I'm not sure this is an option for me(?) - or perhaps I'm misunderstanding the functionality of askpass.

Is there a way to read obfuscated master password from STDIN a la ssh / login / read -s prompts?

I had to turn "delete sends control-h" back off as it was messing with the functionality of nc.

from lastpass-cli.

bcopeland avatar bcopeland commented on July 22, 2024

It will still prompt, it will just prompt with a built-in prompt instead of using an external program to do the prompting. (I mistyped, I meant "pinentry" not "askpass", corrected above.). I'm not sure what you mean regarding the obfuscated master password, can you describe what you need to accomplish? I guess 'expect' could do that. We've thought about adding an askpass type feature so you can have an external program supply the password, but it doesn't exist yet.

from lastpass-cli.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.