2017-12-11 15:02 UTC

View Issue Details Jump to Notes ]
IDProjectCategoryView StatusLast Update
0002192CentOS-44Suitepublic2007-07-05 21:34
Product Version4.5 - x86_64 
Target VersionFixed in Version 
Summary0002192: getpwuid_r() returns unknown user to application on LDAP client
DescriptionTrying to invoke Adobe Acrobat reader 7.0.9 results in the application not starting. Other applications terminate early when user is in LDAP, but not in /etc/passwd. Users otherwise can login fine, change LDAP passwords, query LDAP server and perform as users quite normally.

(acroread:32316): GLib-WARNING **: getpwuid_r(): failed due to unknown user id (230)
Additional Information[3]$ uname -a
Linux tmbcorp.flamcorp.com 2.6.9-55.ELsmp #1 SMP Wed May 2 14:04:42 EDT 2007 x86_64 x86_64 x86_64 GNU/Linux

[3]$ ls -lart /lib/libc.so*
lrwxrwxrwx 1 root root 13 Jun 12 16:32 /lib/libc.so.6 -> libc-2.3.4.so

[3]$ rpm -qa | grep glibc

[3]$ fgrep -v \# /etc/nsswitch.conf | grep -v ^$
passwd: files ldap
shadow: files ldap
group: files ldap
hosts: files dns
bootparams: files
ethers: files
netmasks: files
networks: files
protocols: files ldap
rpc: files
services: files ldap
netgroup: files ldap
publickey: files
automount: files ldap
aliases: files

TagsNo tags attached.
Attached Files




tblader (reporter)

Sorry, you can probably mark this bug as closed. I've compiled a routine that uses getpwuid_r() to obtain a username and it works correctly. This must be an Adobe problem.


#include <stdio.h>
#include <pwd.h>
#include <errno.h>
#include <string.h>
#include <sys/types.h>

#define MAXBUF 1024

int main (void)
   int id = 0;
   char buf [MAXBUF];
   struct passwd p;
   struct passwd *pp;
   uid_t uid = 1009;
   if ( (getpwuid_r (uid, &p, buf, sizeof (buf), &pp)) == 0)
       printf ("succes: name is %s\n", pp->pw_name);
       printf ("sorry, no biscuit\n");

return (0);

-Issue History
Date Modified Username Field Change
2007-07-05 21:09 tblader New Issue
2007-07-05 21:09 tblader Status new => assigned
2007-07-05 21:34 tblader Note Added: 0005528
+Issue History