Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support for a "-recurse' Parameter in Get-KeePass[Entry|Group] #178

Open
KES48 opened this issue Feb 21, 2020 · 2 comments
Open

Support for a "-recurse' Parameter in Get-KeePass[Entry|Group] #178

KES48 opened this issue Feb 21, 2020 · 2 comments

Comments

@KES48
Copy link

KES48 commented Feb 21, 2020

Dear John,
thank you very much for making PoShKeePass public! It's really great to have it :-)

Would it be possible to add support for recursively getting results from the tree structure of KeePass entries and groups?
Or would it even be an option ( cool! ) to add a provider for KeePass like the registry or filesystem provider of Powershell?

Thanks again! Have a nice weekend!!
kind regards
Klaus

@jkdba
Copy link
Member

jkdba commented Feb 21, 2020

@Abrechnung1 it is possible for the Get-KeePassEntry function will get all entries regardless of depth matching your filter parameters passed.

For instance if you have a username called "user" in multiple groups and depths Get-KeePassEntry -UserName "user" will return all entries it finds with the username field equal to "user".

I suspect you are passing the -KeePassEntryGroupPath parameter which you are correct at its current implementation will scope, not recursively to the group path passed. This I can look into.

As far as the provider, that is something I have considered but would not be a quick solution as its a much more complicated solution.

@KES48
Copy link
Author

KES48 commented Feb 24, 2020

Hello John,
thank you very much for your quick reply!

Well .... YES, I thought of a function taking some parameters from the pipeline or an array of strings which are Group names or better Group Paths that returns an array of child entries of the Groups.
Maybe ... it makes sense to have a switch parameter, telling us if we want groups or entries back ( or both ). Another option might be to add a depth level parameter limiting the search-depth if present.

Our idea is to group all secret data for use in some partcular applications under a root group and get all needed information back from keepass with one "request". The tree structure in KP should not matter, but all entries below the root are needed for the application to work correctly.

We can alternatively wrap such a functionality over your existing functions, but I'm afraid that the performance will really be dramatically bad if I do so :-(

So: if you could offer that kind of extension to your module ... I would be very glad to use it :-)
Have a nice day
kind regards
Klaus

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants