-
Notifications
You must be signed in to change notification settings - Fork 37
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
KeePassRPC port issue on terminal servers #104
Comments
This is indeed a problem and not only for terminal servers. Fast user switching exhibits the same behaviour. |
Native messaging looks nice. It requires some more setup and preferably an installer, which would not be so bad anyway, because the KeePass plugin install manually is anyway rather difficult. If I understood right, it requires an executable the browser will launch and communicate with through stdin/stdout. This executable needs to find the per session KeePass. On Windows KeePassRPC plugin could expose endpoint named after the Logon SID. Unfortunately I do not think the browser plugin has direct access to Logon SID, so the native client is needed. The endpoint could be via Named Pipe (or RPC). The KeePassRPC should protect the named pipe using Logon SID in ACL and maybe also deny access to NT AUTHORITY\NETWORK to further enforce no remote access. I don't think any of this reduces the need for each end to authenticate the other end of the link. |
As already mentioned, I don't think there is any way to avoid these limitations of TCP port communications so a switch to using native messaging may be the only possible way forward (even then, I don't know enough about terminal servers to be certain it would solve all the configuration challenges). A switch to using native messaging is already being tracked in the browser addon repo - kee-org/browser-addon#23 . Although changes to the KeePassRPC plugin are likely required, I think it will be the needs of the browser extension that will drive the development and determine what we need to do here. I'll keep this issue open as a reminder to consider the information you've all supplied when I next investigate the feasibility of using native messaging in Kee but note that in future, using the community forum will likely result in a faster response (I've just added a GitHub issue template to make that clearer for people arriving at this repo from routes that don't already mention that). |
Hi,
when using KeePass with KeePassRPC on a terminal server with multiple users, it's quite a hassle to change the KeePassRPC port for every user in:
By default (using KeePassRPC Port 12546), user A (with KeePass opened) could get quickly irritated and annoyed by "authorise a new connection" popups triggered repeatedly by user B (with browser and Kee Plugin opened).
Normally, I'd suggest choosing a random port from a port range (for example 29170-29998) on the first KeePassRPC startup, but I believe there's no easy way for the Kee browser plugin to get to know this user specific port automatically, right?
Cheers,
Wolfram
The text was updated successfully, but these errors were encountered: