-
-
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
xrdp compiled with PAM support and default Unix configuration won't work on Slackware #1558
Comments
The default PAM configuration provided by the source package does not work, because it tries to include system-auth, so replace it with a simple standalone configuration. See neutrinolabs/xrdp#1558
Hi @gdsotirov You're right in that when I was looking in to #1546 recently the logging completely foxed me, and that added to the time it took to find a solution. So there's definitely room for improvement there. As regards the PAM configuration itself, it's a tricky area. I agree there's room for improvement in the default config however, even if it's only improved commenting. Just a quick note about your simple config above. You haven't got any PAM
I'll happily admit it's not an area I'm personally very knowledgeable about, so feel free to come back to me on that. |
I'm not sure I understand you on "here's room for improvement in the default config however, even if it's only improved commenting" @matt335672. What you mean by this? For
But my point was that even with the minimal I'm not quite sure about "auto-creation of home directories on login" either as I never needed nor used it, but of course this could be additionally configured. My aim is only to provide a package for xrdp with PAM support and basic configuration that works, so I opened this task, because the default configuration included in xrdp does not work for me. |
Hi @gdsotirov Please ignore my remark on improved commenting - you were right to challenge it. I was simply going to suggest that a comment was added to I've produced a branch I've not tackled the duff logging yet, but I hope this is what you're looking for. Could you have a look at it, and if it's OK for you I'll submit the PR. |
Thank you very much @matt335672! :-) Yes, it seems OK to me. I checked your branch and I think the changes would work properly on Slackware (PAM modules are in |
Closing by #1560. |
I have managed to compile xrdp 0.9.13 for Slackware 14.2 with PAM support enabled. The configuration command is:
However, I wasn't able to start any session, because login was always failing. Here's an excerpt from
xrdp.log
:And in xrdp-sesman.log there was just:
I found the error message strange, because it shows "display 0" while by default xrdp is configured to start from display number 10. And this is the first problem, which I think is also reported in other issues (e.g. #1359 or #1546). I was able to relate the problem with PAM after compiling without PAM support (i.e. by adding
--disable-pam
to the command above), so I looked further into the issue.Apparently, the default PAM configuration for other distributions have changed with commit 63472bb in January 2017. However, this configuration with includes leads nowhere on Slackware. I had no such problem with older xrdp versions (e.g. 0.5 and 0.6) on older Slackware, because the old configuration is independent. Should this really be the default Unix configuration? The old default configuration or something even simpler (e.g. see below) works just fine.
So to summarize the two problems I faced:
The text was updated successfully, but these errors were encountered: