This family of functions allows you to retrieve passwd database
information using Hesiod. To perform lookups, you need an initialized
Hesiod context; see hesiod(3) for details. You may look up passwd
information by name or by uid; information is returned in the same
format as by
It is the caller's responsibility to call
with the returned passwd entry to free the resources used by the
Hesiod queries for passwd information are made using the ``passwd'' or
``uid'' Hesiod type, using either the username or the decimal
representation of the uid as the Hesiod name. The corresponding
records should be a colon-separated list of fields giving the
username, encrypted password, uid, gid, GECOS information, home
directory, and shell of the user.
return NULL and set the global variable
to indicate the error.
These calls may fail for any of the reasons the routine