Hello, I found out today, that a user can login with its email. (which was new for me, btw)
Now I have this user with a very long E-Mail (32+chars) - But after he logins, the RHEL9 system truncates the valid login E-Mail to a 32 char invalid one. I haven't found a way to get the numerical userid, by the truncated name, if its a long email and my script fails with the error below. Is it possible to disable this E-Mail based login option? best regards, The setup is: - IPA, version: 4.12.2 (server) - RHEL 9 client - login via gdm (system default) For example, if I do a login with my E-Mail address (stored on the IPA server) and I have a long domainname like - [email protected] the tools on the client (like users,who,ps,w) truncates the name to 32 chars: - [email protected] I have a python script which checks if a logged in users is not a system account, and the works on the uids, example code: import psutil from pwd import getpwnam users=psutil.users() for user in users: login=user.name print(login) if getpwnam(login).pw_uid > 1000: print("user") KeyError: "getpwnam(): name not found: ' [email protected]" -- _______________________________________________ FreeIPA-users mailing list -- [email protected] To unsubscribe send an email to [email protected] Fedora Code of Conduct: https://docs.fedoraproject.org/en-US/project/code-of-conduct/ List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines List Archives: https://lists.fedorahosted.org/archives/list/[email protected] Do not reply to spam, report it: https://pagure.io/fedora-infrastructure/new_issue
