Comment 7 for bug 120051

Revision history for this message
Jerome Haltom (wasabi) wrote :

Well, I want to make it clear that this bug is a bug regardless of Windows. The bug is simply that `adduser` does not reverse map the resolved uid back into a canonical username. The idea is this:

`getent passwd foo` returns the record for one or many users, searching based on the username "foo". The module that implements this search may or may not be case sensitive. In the case of Winbind and Windows, and most LDAP set ups I'm aware of, the search mechanism is not case sensitive. That is, searching for "foo" may result in a result for "Foo". Note the capital F. What`adduser` does it search for "foo", and if it exists, put "foo" into /etc/group. What it needs to do is use add the username returned in the getent query to insert into /etc/group. This way, if "foo" finds "Foo", "Foo" gets used.