Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 149935

Summary: dev-libs/openssl-0.9.8*, net-nds/openldap, sys-auth/nss_ldap: getpwuid_r(): failed due to unknown user id
Product: Gentoo Linux Reporter: Stefaan De Roeck (RETIRED) <stefaan>
Component: New packagesAssignee: Gentoo LDAP project <ldap-bugs>
Status: RESOLVED DUPLICATE    
Severity: major    
Priority: High    
Version: 2006.1   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Stefaan De Roeck (RETIRED) gentoo-dev 2006-10-03 04:03:17 UTC
in only some cases... The system authenticates users through LDAP on a secure connection. pam_ldap seems to work fine, always. nss_ldap seems to be having some problems though...
- "ls -l" etc. works, show the right username, I'm able to login, ...
- certain applications fail, like many gnome-applications, for example "gvim"
  the error is:
 (gvim:21837): GLib-WARNING **: getpwuid_r(): failed due to unknown user id (6726)
  while in the system logs the following will appear:
Oct  3 11:44:17 [gvim] nss_ldap: reconnecting to LDAP server (sleeping 4 seconds
)...
                - Last output repeated twice -
Oct  3 11:45:38 [gvim] nss_ldap: reconnecting to LDAP server (sleeping 8 seconds
)...
etc.

I have currently on my system (just for reference, I haven't currently the impression that these matter much):
- sys-auth/nss_ldap-249
- net-nds/openldap-2.3.21-r1

I've run several emerge commands to test the behaviour:
emerge -1 =dev-libs/openssl-0.9.7l && emerge -1 =net-nds/openldap-2.3.21-r1
--> working system
emerge -1 =dev-libs/openssl-0.9.8(tried all versions currently in portage) && emerge -1 =net-nds/openldap-2.3.21-r1
--> get the error
and this is perfectly repeatable

If any other information would be useful to debug this, I'd be happy to provide it...

olympia ~ # emerge --info
Portage 2.1.2_pre2 (default-linux/x86/2006.1/desktop, gcc-3.4.6, glibc-2.4-r3, 2
.6.17-gentoo-r4 i686)
=================================================================
System uname: 2.6.17-gentoo-r4 i686 Intel(R) Pentium(R) 4 CPU 2.80GHz
Gentoo Base System version 1.12.5
Last Sync: Unknown
distcc 2.18.3 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disable
d]
ccache version 2.4 [disabled]
app-admin/eselect-compiler: [Not Present]
dev-java/java-config: 1.3.7, 2.0.30
dev-lang/python:     2.4.3-r4
dev-python/pycrypto: 2.0.1-r5
dev-util/ccache:     2.4-r6
dev-util/confcache:  [Not Present]
sys-apps/sandbox:    1.2.18.1
sys-devel/autoconf:  2.13, 2.60
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2
sys-devel/binutils:  2.17
sys-devel/gcc-config: 1.3.13-r3
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.17-r1
ACCEPT_KEYWORDS="x86 ~x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O3 -march=pentium4 -fomit-frame-pointer -pipe -D_FILE_OFFSET_BITS=64 -D
_LARGEFILE_SOURCE"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shu
tdown /usr/share/X11/xkb /usr/share/config"
CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/gconf /etc/java-config/vms
/ /etc/revdep-rebuild /etc/terminfo /etc/texmf/web2c"
CXXFLAGS="-O3 -march=pentium4 -fomit-frame-pointer -pipe -D_FILE_OFFSET_BITS=64 
-D_LARGEFILE_SOURCE"
DISTDIR="/usr/portage/distfiles"
FEATURES="assume-digests autoconfig buildpkg cvs digest distlocks metadata-trans
fer sandbox sfperms strict userpriv usersandbox"
GENTOO_MIRRORS="ftp://ftp.belnet.be/mirror/rsync.gentoo.org/gentoo/"
LINGUAS="en en_US en_GB de fr nl zh_CN zh_TW"
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress 
--force --whole-file --delete --delete-after --stats --timeout=180 --exclude='/d
istfiles' --exclude='/local' --exclude='/packages'"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="cvs://stefaan@cvs.gentoo.org:/var/cvsroot"
USE="x86 X acl afs alsa apm arts audiofile bash_completion berkdb bitmap-fonts b
zip2 cairo cdr cjk cli crypt cups curl dbus dlloader dri dv dvd dvdr eds elibc_g
libc emboss encode esd exif expat f77 fam ffmpeg firefox flac fltk fortran gdbm 
gif gmp gnome gphoto2 gpm gstreamer gtk gtk2 hal idn imagemagick imlib input_dev
ices_keyboard input_devices_mouse ipv6 isdnlog jack java jpeg jpeg2k kde kerbero
s kernel_linux krb4 lcms ldap libg++ linguas_de linguas_en linguas_en_GB linguas
_en_US linguas_fr linguas_nl linguas_zh_CN linguas_zh_TW live mad mikmod mmx mng
 motif mozilla mp3 mpeg mysql ncurses nis nls nptl nptlonly nsplugin nvtv odbc o
ffensive ogg openal openexr opengl oss pam pcre perl png ppds pppd python qt qt3
 qt4 quicktime rdesktop readline realmedia reflection sdl session slang spell sp
l sse sse2 ssl svga tcl tcltk tcpd tetex threads tiff tk truetype truetype-fonts
 type1-fonts udev unicode userland_GNU video_cards_nv video_cards_nvidia vorbis 
win32codecs wmf xine xinerama xml xml2 xmms xorg xv xvid zlib"
Unset:  CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, LDFLAGS, MAKEO
PTS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 Robin Johnson archtester Gentoo Infrastructure gentoo-dev Security 2006-10-03 13:42:40 UTC
upgrade to 253 (or anything newer than 250-r1), and make sure you are using nscd.

*** This bug has been marked as a duplicate of 132550 ***