LDAP-UX Client Services B.05.01 Administrator Guide for HP directory servers and Windows ADS

The ldaphostlist tool provides the following functions:
Uses the existing LDAP-UX configuration, requiring only a minimal number of command-line
options to discover where to search for host information, such as what directory servers to
contact and proper search filters for finding accounts and groups. Provides command options
to let you change these configuration parameters.
Uses the existing LDAP-UX authentication configuration to determine how to bind to the LDAP
directory server.
Supports attribute mapping as configured by LDAP-UX. Fields returned from ldaphostlist
use a consistent format, similar to that defined by RFC2307, even when different attributes
are actually used to store the information in the directory server. Note that although this format
is similar to LDIF, it is not LDIF. Major differences include:
Object classes are not displayed (unless specifically requested in the attr list)
By default ldaphostlist displays only POSIX-related attributes for a host, unless an
attribute list or option is specifically requested on the command line. This means only
ipHostNumber and cn are displayed by default.
Output lines are not broken after 80 columns.
9.3.9.1 Synopsis
ldaphostlist [-m] [-L] [-P] [-Z] [-ZZ] [-ZZZ] [-v]
[-h servername] [-p port] [-b base]
[-s scope] [-n hostname | [-g groupname][-f|F filter]
-N [maxcount] [-k [keyAge]] [attr] [...]]
9.3.9.2 Options and arguments
The ldaphostlist tool supports the following options and arguments:
-m Exposes the names of the mapped attributes when returning results.
Normally ldaphostlist returns results as:
fieldname: value
where fieldname is one of the predefined RFC2307 attribute
names, and value is the resulting value for that field, after attribute
mapping has been applied.
With -m, the actual attribute name is exposed as follows:
fieldname[attributename]: value
For example, if the RFC2307 attribute cn has been mapped to the
hostName attribute. Without the -m option, the output of the cn
field would appear as:
cn: value-of-hostName
When -m is used with the same conditions, the output representing
the gecos field would appear as:
cn[hostName]: value-of-hostName
The -m option does not apply if the -L option is specified.
-L Displays the host output in the following (/etc/host) format:
ipAddress hostname []
If a host entry contains more than one name, those names are
repeated on the same line, separated by spaces.
If a host entry contains more than one ipAddress, a separate line
for each IP address is displayed, using the same list of host names.
9.3 LDAP user and group management tools 341