os/user: cannot pick up sss users in nocgo mode #27412
Labels
FrozenDueToAge
NeedsInvestigation
Someone must examine and confirm this is a valid issue and not a duplicate of an existing one.
Milestone
What version of Go are you using (
go version
)?go version go1.9.1 linux/amd64
Problem:
the
os/user
package has moved off of using cgo system commands to find users. On our system (and many others), there are several users that don't appear in/etc/passwd
, but on the system we can see them fine withgetent passwd <USER>
(because sssd handles this).So, as the
os/user
package uses only/etc/passwd
to look for users, go doesn't have a way (as far as i know) to get all the users without usinggetent
orid
directly.How can we make Go able to find all of the users like
getent
orid
can?The text was updated successfully, but these errors were encountered: