Summary: | Active sssd user almost never shown in GDM user list when account also exists locally (in /etc/passwd) with no 'comment' field | ||
---|---|---|---|
Product: | accountsservice | Reporter: | Adam Williamson <adamw> |
Component: | general | Assignee: | Matthias Clasen <mclasen> |
Status: | RESOLVED MOVED | QA Contact: | |
Severity: | major | ||
Priority: | medium | CC: | marius.vollmer, rstrode, stefw |
Version: | unspecified | ||
Hardware: | Other | ||
OS: | All | ||
Whiteboard: | |||
i915 platform: | i915 features: |
Description
Adam Williamson
2014-03-21 01:02:45 UTC
Hum. This may be related to the account existing locally as well as on the FreeIPA server. I just removed the local 'copy' of the account on a couple of the affected systems, and the account showed up in the user list on the next cycle. Yeah...so after removing the local 'copy' of the same account on all three systems, it seems to be working, at least at first. So this bug seems to affect cases where the account exists both locally and in FreeIPA. can you show me: $ grep adamw /etc/passwd $ getent passwd adamw Well, that's what I meant with the follow-up comments. When I say 'exists locally', I mean 'is in /etc/passwd'. If the account exists both on the FreeIPA server and on the local system - with the same UID, 1001 - it is not shown on the login screen. If it only exists on the FreeIPA server - i.e. I ran 'userdel adamw' locally - it does show on the login screen. I fixed all three systems now so I don't have a 'broken' case to show you. I guess I can try and recreate one in a test VM later. i understood you, I just wanted to see the password column from each entry. (and the shell etc) Hah, so, this is interesting. Re-created in a VM. I think it's actually to do with the *user comment* field in /etc/passwd, bizarre as that sounds. A 'broken' /etc/passwd entry looks like this (in /etc/passwd, and in getent): adamw:x:1001:1001::/home/adamw:/bin/bash if there is both a FreeIPA user account named 'adamw' with uid '1001', and that /etc/passwd entry, the account won't show up in GDM. If I delete the 'local' copy of the account, 'getent passwd adamw' shows: adamw:*:1001:1001:Adam Williamson:/home/adamw:/bin/bash and 'Adam Williamson' shows up in the list. But, it's not the 'password' field, because I have another account, 'test'. That account also exists both locally and in FreeIPA, but it *does* show up in the list. That account looks like this in /etc/passwd: test:x:1000:1000:test:/home/test:/bin/bash note that one has an entry in the 'comment' field, "test", while the adamw account has an empty 'comment' field. It seems like the problem happens when you have both a local and remote copy of the account, and the local copy has nothing in the 'comment' field of its /etc/passwd entry. -- GitLab Migration Automatic Message -- This bug has been migrated to freedesktop.org's GitLab instance and has been closed from further activity. You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.freedesktop.org/accountsservice/accountsservice/issues/26. |
Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.