Open jmfrank63 opened 6 years ago
There is nothing related to puppet, puppet only apply configuration asked by the ssyadmin. I think that the user source isn't related too (/etc/passwd or ldap). There can be probably missing bits for systemd because opening sessions remotely isn't really prepared on systemd and xrdp doesn't implement any systemd hooks.
Hi @moobyfr, I installed the same exact version on a AWS machine and it worked seamlessly. Do you have any hints I could look for what the difference between the two system could be?
I am not a good c-programmer, however willing to learn. I have some python skills. If someone could point me into the right direction how to track this down (debugger etc), I'll do the work. Thank you
The bug has been reported here as well: https://bugs.centos.org/view.php?id=14485
polkit 0.112-12.el7_3 fails to register any agent when machine is puppeted and user is retrieved via ldap.Example agent (xfce but kde and mate fail the same)/usr/libexec/xfce-polkit (xfce-polkit:15429): CRITICAL : polkit_agent_listener_register_with_options: assertion 'POLKIT_IS_SUBJECT (subject)' failed(xfce-polkit:15429): GLib-GObject-CRITICAL **: g_object_unref: assertion 'G_IS_OBJECT (object)' failed
I have no idea why this could be failing. It looks like get peername correctly assumes a socket but gets a file. It can always be reproduced. However I do not exactly know how puppet and ldap works, so I cannot give instructions how to reproduce outside of my company.However I will supply any additional information that might help. I did the following troubleshooting: Checked with other desktops, polkit agents always fail.
User is not in /etc/passwd, nor are the groups. Access is via xrdp, no display manager, it isn't even installed. pamtester authorises fine against sshd, xrdp-sesman and polkit-1 Local installed user that is not retrieved via ldap fails as well, with exactly the same error. authconfig
System is puppeted with user as ldap user, not in /etc/passwd.
However a local installed user fails as well.
Source of polkit is here: https://github.com/wingo/polkit/blob/4c9a813f3fc1ada4fcce508d286e95f965a3002a/src/polkitagent/polkitagentlistener.c
/etc/pam.d/system-auth-ac:
strace:
Content of cgroup: