getlogin_r is performing NSS lookups when loginid isn't set

Bug #1760713 reported by Charles F. Stephens
This bug affects 2 people
Affects Status Importance Assigned to Milestone
glibc (Ubuntu)
Fix Released

Bug Description

For configurations that use networked naming services for passwd (in particular LDAP), processes that have no login UID, there are excessive delays when getlogin_r() is called.

For such processes, /proc/self/loginid is set to a sentinel value (-1), when files is the only backend, or if nscd is running this returns quickly. However if ldap is configured as a backend for passwd, and nscd isn't being used (which for various political and economic reasons is not always feasible) network requests to the configured LDAP servers will occur which can slow down process creation enough to cause timeouts in parent processes in certain contexts.

Good news, however, as this was recently fixed upstream by:;a=commit;h=cc8a1620eb97ccddd337d157263c13c57b39ab71

Adam Conrad (adconrad)
Changed in glibc (Ubuntu):
status: New → Fix Released
Revision history for this message
Charles F. Stephens (cfs) wrote :

Would it be possible to get a backport of this to xenial as well?

Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in glibc (Ubuntu Bionic):
status: New → Confirmed
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.