#1158 Opening database with composite key fails using --preselect and --pw-stdin on linux

KeePass_2.x
closed
nobody
None
5
2013-08-23
2013-08-23
Deathcrow
No

Reproducability: Always

  1. Create new database with composite key.
  2. Try to open database via shell:

    keepass testdatabase.kdbx --preselect:testdatabase.key --pw-stdin

  3. After entering the password returns error:

    Failed to load the specified file!
    The composite key is invalid!
    Make sure the composite key is correct and try again

Removing "--pw-stdin" from that line and entering the password into the GUI works as expected. Maybe the keyfile is ignored when using --pw-stdin?

System: Gentoo Linux
Mono 2.10.9-r2

Discussion

  • Deathcrow

    Deathcrow - 2013-08-23

    Forgot to mention my keepass version: 2.22

     
  • Dominik Reichl

    Dominik Reichl - 2013-08-23
    • status: open --> closed
     
  • Dominik Reichl

    Dominik Reichl - 2013-08-23

    '--preselect:' only preselects a key file in the GUI. However '--pw-stdin' works like '--pw:', i.e. it immediately causes an open attempt.

    Thus, use '--keyfile:' instead of '--preselect:' to specify the key file.

    Best regards,
    Dominik

     
  • Deathcrow

    Deathcrow - 2013-08-23

    Duh. Ok, that works. Didn't even try it with keyfile, maybe because the documentation on http://keepass.info/help/base/cmdline.html is a bit misleading. Makes it sound like you always have to preselect when dealing with composite keys. Probably just me misunderstanding things though.

    Thanks for the help. Cheers!

     

Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks