marius-wieschollek / passwords

A simple, yet feature rich password manager for Nextcloud
GNU Affero General Public License v3.0
215 stars 45 forks source link

Support import from Keepass XML #467

Open monperrus opened 2 years ago

monperrus commented 2 years ago

Current Status We cannot restore / import entries when they contain a "notes" field with newlines

Feature Description XML is a more appropriate than CSV for handling field with newlines. A solution would be to add support for Keepass XML file (aka Keepass xml (2.x)), also supported by keepassxc

Reference documentation: https://keepass.info/help/base/importexport.html

Thanks!

monperrus commented 2 years ago

FTR, a workaround is to translate a KeePass KDBX database to a bitwarden JSON file, see https://gist.github.com/monperrus/578395c30667581677d1ec20b7d445de

This does not properly restore the folder structure though, see https://github.com/marius-wieschollek/passwords/issues/468

monperrus commented 2 years ago

Better workaround, here is a Python script to export KeePass folders and passwords directly to the Nextcloud Passwords backup JSON format.

https://gist.github.com/monperrus/5f3ca5ac9aa59159b33770701c0d5dc7

stondino00 commented 1 year ago

How can one do this conversion with Windows? Can this python script be used at the import and built into the passwords app in nextcloud?

marius-wieschollek commented 1 year ago

How can one do this conversion with Windows?

probably if you have python installed

Can this python script be used at the import and built into the passwords app in nextcloud?

no

stondino00 commented 1 year ago

Would be nice if the keepass import worked better. I get a lot of errors when trying to import a keepass database. I would imagine a lot of users of nextcloud would be coming from keepass.

stondino00 commented 1 year ago

Seems like the keepass import needs some sort of adjustment. I get this same message about tons of lines missing a training quote. What can I provide to help get this keepass import working reliably?

image

marius-wieschollek commented 1 year ago

@stondino00 In that case please make a bug report including the Keepass app, version and OS you're using