JustinGrote / JustinGrote/SecretManagement.KeePass
Errors with databases linked to Windows Accounts
- Dominant language
- PowerShell
- Stars
- 123
- Forks
- 23
- PR merge metrics
- No merged PRs in 30d
Description
When I register a database with a Windows Account in addition to the Master password I get this output:
```powershell
PS> Register-KeepassSecretVault -Path 'C:\MyPath\MyKeepass.kdbx' -Name MyKeepass -UseWindowsAccount -UseMasterPassword
WARNING: [13:52:29][Test-SecretVault] Exception calling ".ctor" with "0" argument(s): "Operation is not supported on this platform."
WARNING: [13:52:29][Test-SecretVault] Unable to open connection to the database
Register-KeepassSecretVault : A parameter cannot be found that matches parameter name 'Name'.
At line:1 char:1
+ Register-KeepassSecretVault -Path 'C:\MyPath\ ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : InvalidArgument: (:) [Register-KeepassSecretVault], ParameterBindingException
+ FullyQualifiedErrorId : NamedParameterNotFound,Register-KeepassSecretVault
```
If I do the same with a database which does not need a Windows Account authentication, I get no error.
Furthermore, despite the error message the database seems to be registered anyway.
It appears in the list returned by `Get-SecretVault`.
```powershell
PS> Get-SecretVault
Name ModuleName IsDefaultVault
---- ---------- --------------
LocalComputer Microsoft.PowerShell.SecretStore True
MyKeepass SecretManagement.KeePass False
```
However, when I try to unlock the vault, I get this error:
```powershell
PS> Unlock-SecretVault -Name MyKeepass
cmdlet Unlock-SecretVault at command pipeline position 1
Supply values for the following parameters:
Password: ***********************
WARNING: [14:10:02][Test-SecretVault] Exception calling ".ctor" with "0" argument(s): "Operation is not supported on this platform."
WARNING: [14:10:02][Test-SecretVault] Unable to open connection to the database
WARNING: [14:10:02][Unlock-SecretVault] MyKeepass: Failed to unlock the vault
```
```powershell
PS> (Get-CimInstance -ClassName Win32_OperatingSystem).Caption
Microsoft Windows 10 Entreprise
PS> $PSVersionTable.PSVersion
Major Minor Build Revision
----- ----- ----- --------
5 1 19041 2364
PS> $PSVersionTable.PSVersion
Major Minor Patch PreReleaseLabel BuildLabel
----- ----- ----- --------------- ----------
7 3 3
```
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.