-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
[V0.10] Add utmp/wtmp support #3400
Conversation
Cherry-pick 28f175b9..2ff3edd0 See: * PR neutrinolabs#2745 "Add utmp/wtmp support" neutrinolabs#2745 * Discussion neutrinolabs#2744 "utmp/wtmp/btmp/lastlog" neutrinolabs#2744
Thanks for this @mlewissmith @metalefty - are you happy this to be backported? If so, I'll retest before merging. The changes look fine to me. |
@matt335672 The only thing I am concerned about is the known issue, the IP address updating issue. This may confuse users so I have negative (not strong, really) feelings about this option yet. On the other hand, the feature is opt-in so I'm in favor of this feature, as long as it's explicitly stated as experimental. |
OK - thanks. To be clear, about the issue, what we're saying is that when the user reconnects, the IP address isn't updated in the relevant files. Is that right? The feature is opt-in only in that it's a compile-time option. Do you want to add run-time control to that as well? Would that help? |
If it helps, I am aware of the IP updating issue. I don't think you're asking me, but if the feature were compiled in by default and controlled by a flag in xrdp.ini that would be good |
Hello, IIRC, there is another issue on updating the IP: the entry is set when the session start, but a reconnect on xrdp is handled differently, as sesman wasn't aware of the new IP. I didn't look further on the first implementation I've made, but it could be probably improved |
That's right.
compile-time opt-in is fine for me. If the IP updating issue can be resolved, let's improve it in the devel branch and then backport to v0.10. |
@moobyfr - we're aware of that, and I intend to start updating that area soon. Thanks for the reminder though. @mlewissmith - I've been a professional sysadmin too in the past, and I agree with your statement above. @metalefty - suggest we merge this and update NEWS-v0.10 accordingly with the experimental warning, so that it goes in the release note for v0.10. Does that work for you? |
Yes, that's fair enough. |
Thanks for your contribution @mlewissmith |
Following text added to the release note for v0.10.3 in the 'General Announcements' section:- Experimental support for utmp/wtmp file is provided in this release. If you use this, be aware that these files are only updated when an xrdp session is created or destroyed. Disconnections and reconnections to the same session are not tracked. In particular:-
|
Per commit 3b6c9bc neglected by PR neutrinolabs#3400
Cherry-pick 2849dce..8cea9b0
See:
Addresses issue #3399