I know some uid and gids that I don't know who they belong to and they are not in /etc/passwd (could be LDAP or from another system).  How do I get Id info from only uid or gid preferably without using ldapsearch or any LDAP commands outside of getent or id, or something easy.  Linux 2.6 Kernel, Red Hat variants.
Reverse id command, I want the User/Group Name from the uid or gid
linux;users;posix;passwd
You can use the getent command, which will perform the lookup based on /etc/nsswitch.conf. This means that if ldap is configured on the system, getent will attempt to lookup the user in ldap. Here is an example:$ getent passwd 33www-data:x:33:33:www-data:/var/www:/bin/sh