Closed tsmarvin closed 3 years ago
Sure! Pull Requests are always accepted. As a workaround you can map a drive to the UNC path. If I have some time I'll investigate but it's probably something in how resolve-path handles UNC paths.
Hello! My pull request is ready for review whenever you have time. Thank you!
@tsmarvin I haven't forgotten about this, I hope to carve out time to review tomorrow.
Hello,
Thank you for the great module/extension! Unfortunately I believe I may have found a bug.
If you register a vault and use a UNC KeyPath you will receive an error when trying to unlock the vault. Move the key file to the local disk and the error goes away.
I am able to successfully open the database with a UNC key file using the regular keepass client. I'm running Microsoft.PowerShell.SecretManagement v0.9.1
Replication Steps:
Examples
UNC Path
Local Path
I believe I've narrowed down the issue to the [KcpKeyFile]::new() call on line 76 of Connect-KeePassDatabase but have not had time to research further tonight.
I would love to help contribute to the fix (if you need/want help).
Thank you