JustinGrote / SecretManagement.KeePass

MIT License
116 stars 22 forks source link

UNC path to the vault database does not work. #52

Closed manojpotluri closed 3 years ago

manojpotluri commented 3 years ago

I created a Vault database file on a windows share and tried to register the vault with a unc path and it fails to register.

JustinGrote commented 3 years ago

Hi @manojpotluri,

can you please provide more information, such as the logs or a specific screenshot of the message when it fails to register?

In general UNC paths are not supported currently but they may work in some circumstances, I'd recommend you map a drive and see if that works.

manojpotluri commented 3 years ago

Hello @JustinGrote

Here is the error i am seeing when i try to register a test vault database created on a share location.

image

I tried the Mapped Drive suggestion as well and it errors out too image

appreciate you taking time looking into this.

Thanks, Manoj.

JustinGrote commented 3 years ago

This looks like something that would be deeper into SecretManagement itself, not my extension. Can you provide the output of $error | export-clixml $home\desktop\error.clixml after running the command and attach the clixml to this issue?

manojpotluri commented 3 years ago

Attaching the Zipped error.clixml file here. please let me know if you need more information. error.zip

JustinGrote commented 3 years ago

I don't think your system is fully loading the module correctly, your second error is: image and the details are: Could not load file or assembly 'netstandard, Version=2.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' or one of its dependencies. The system cannot find the file specified.

It looks like you're doing this on Powershell 5.1, have you tried it in Powershell 7?

manojpotluri commented 3 years ago

Hello @JustinGrote
yes i am using powershell 5.1 on a windows 2016 datacenter server, i will try to install PowerShell 7 and see if works.

Thanks, Manoj.

manojpotluri commented 3 years ago

Hello @JustinGrote I installed PowerShell version 7 and tried to register a vault with a shared location and it worked :) .

Screenshot:

image

image

Thanks for your help in resolving this issue.

Thanks, Manoj.