[tpm] using getpwnam() on a system with LDAP

J. Bobby Lopez jbl at jbldata.com
Thu Jan 27 13:52:30 PST 2011


I've got a system that serves as an LDAP client, so there are many
files/dirs with uid/gid information retrieved from LDAP.

When I do a getpwnam() on a UID, it reports the username/group as 'file'.

Is there any way to do the translation from UID to LDAP username without
loading LDAP modules?  I'm guessing if 'ls' shows the correct name, there
must be some system call I can use to pull the same info.

Any insights?

Thanks,
Bobby
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.pm.org/pipermail/toronto-pm/attachments/20110127/83a06015/attachment.html>


More information about the toronto-pm mailing list