Can't get UID for user xyz #3459
-
I am trying to upgrade my existing 0.9 installation to 0.10. So far it seems to be working fine for my already existing testuser. However, logging in as another user (who has not previously logged in using the 0.9 version) does not work, giving me the following error:
The reason this is happening seems to be, that the UID check is done before my custom PAM is started (which is confirmed by this statement). The thing is, it's actually my PAM that is communicating with an LDAP server, does the authentication, and creates the local user on the fly if not present on the system. What would be the correct approach to handle this problem? Essentially I don't want xrdp-sesexec to perform that kind of logic / checks, as PAM should be doing that. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 7 replies
-
An interesting problem @danielperna84 Addressing the problem as stated, you'll need to pick up on the initial call to The same check can be done on the command line with Taking a wider view (and I don't know your exact requirement) i's more usual to use sssd to do this kind of thing, but I imagine this doesn't for your use-case for various reasons. |
Beta Was this translation helpful? Give feedback.
FYI: I have created a script, which periodically syncs the users from LDAP with the local passwd. Not ideal, but it's good enough.