LDAP-UX Client Services B.05.00 Administrator's Guide
• Uses the existing ldapux(5) configuration, requiring only a minimal number of command-line
options to discover where to search for host information, such as what directory server(s)
to contact and proper search filters for finding accounts and groups. Provides command
options to let you change these configuration parameters.
• Uses the existing ldapux(5) authentication configuration to determine how to bind to the
LDAP directory server.
• Supports attribute mapping as configured by ldapux(5). 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.
7.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] [...]]
7.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 pre-defined 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, and assuming the same conditions as above, 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.
When the -L option is specified, the -m option is ignored, and the
attr parameter list is invalid.
278 Command and tool reference