Placeholder: Database Name (Not the Filename)
A lightweight and easy-to-use password manager
Brought to you by:
dreichl
Placeholders {DB_NAME} and {DB_BASENAME} apply to Filename, accordingly with and without extension.
While there is also a Database name to set in File -> Database Settings -> Database name field.
cheers, Paul
Thanks Paul :-)
I actually trigger the "Export active database" Action on "Saved database file" Event as:
File/URL: {DB_DIR}{ENV_DIRSEP}{DB_BASENAME}-{DT_SIMPLE}.{DB_EXT}
File format: KeePass KDBX (2.x)
So more like this example with the same format on output (and on save, not on open action).
My question and/or request was to find a way to use the DB name declared in DB settings - we all can see that it's optional (no doubts about it) but is there any way to grab this name using triggers?
If you want to read details from the settings you need to use an external program (awk, VBS, etc) to read the config file.
cheers, Paul
If I understand your post correctly, you are requesting a placeholder that references the database name assigned in database settings primarily out of concern that the actual file name of the password database can be altered, or the database could be substituted, and this might pose a security threat. As far as I know database name and description in settings is a label for the user's convenience, and otherwise not used. For many other purpuses the filename and path are excellent identifiers.
KeePass is not vulnerable to threats caused by simple renaming or substitution of database files because:
An event such as unauthorized renaming of substitution is only an idicator that your computer is compromised (and your database might have been stolen). In that event one should not run most software (except e.g. anti-malware or restore software) until you have neutralized the threat.
Last edit: wellread1 2015-08-18
Ok, thank you for your answers.
Please close the ticket if you may, it seems I am unable to do so myself.