ldaphostlist.1m (2010 09)

l
ldaphostlist(1M) ldaphostlist(1M)
NAME
ldaphostlist - displays and enumerates host entries (OS instances) residing in an LDAP-based directory
server
SYNOPSIS
ldaphostlist [options ][-h servername ][
-p port ][-b base][-s scope]
[
-n hostname | -g groupname][(
-f|F) filter][-N maxcount ][-k [[-]keyage]]] [attr ]...
DESCRIPTION
ldaphostlist is a command-line tool used to display and enumerate host entries that reside in an
LDAP-based directory server. Although ldaphostlist provides similar output as compared with the
ldapsearch command, it has been provided to meet a few specific feature requirements. These
features allow applications to discover and evaluate hosts stored in an LDAP directory server, without
requiring intimate knowledge of the methods used retrieve and evaluate that information in the LDAP
directory server.
In addition,
ldaphostlist can be used to discover expiration information about
ssh host keys if that
information is managed in the directory server.
Except for the optional trailing attr list, all parameters specified above are not positional dependent.
Unless the trailing attr list is provided, ldaphostlist only displays the cn (host name) and ipHostNumber
(IP Address) attributes.
ldaphostlist uses the existing ldapux (5) configuration, requiring minimal command-line
options to discover where to search for host information, such as which directory server(s) to con-
tact and proper search filters for finding accounts and groups. This tool provides command
options that alter these configuration parameters.
ldaphostlist uses the existing ldapux (5) authentication configuration to determine how to
bind to the LDAP directory server.
ldaphostlist supports attribute mapping as configured by ldapux (5). Fields returned from
ldaphostlist will 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 that format is similar to LDIF, it is not LDIF. Major differences include:
Object classes will not be displayed (unless specifically requested in the attr list).
By default only POSIX-related attributes for a host will be displayed by
ldaphostlist,
unless an attribute list or option is specifically requested on the command line. This means
only ipHostNumber and cn will be displayed by default.
Output lines will not be broken after 80 columns.
Options and Arguments
The optional attr , list should be the last parameter specified. All other options are not positional depen-
dent.
attr Specifies additional LDAP attributes to display aside from the pre-defined RFC2307 attri-
butes for hosts. Attributes specified in the attr list are assumed to not be part of
RFC2307 and thus will not be mapped.
When the
-m option is specified, the output format for a value specified by an attr will
always be in the form:
attributename [attributename]
:value
Note,
ldaphostlist limits the list of displayable attributes to RFC2307 attributes if
LDAP-UX has been configured to use proxy credentials and no other credentials have
been specified (using the -P option or the LDAP_BINDDN and LDAP_BINDCRED
environment variables). ldaphostlist may not display attributes requested in the
attr list in this situation unless the system administrator has attested that the proxy user
does not have permissions beyond that of a non-privileged user. This limitation prevents
regular HP-UX users from discovering LDAP data that was previously not displayed by
LDAP-UX. Refer to Security Considerations for additional information.
attr may not be used if the
-L option is specified.
-b base Overrides the search base as defined in the ldapux (5) configuration. base is a dis-
tinguished name (DN) that describes the lowest (with the tree branches facing up)
HP-UX 11i v3: June 2010 Web Release 1 Hewlett-Packard Company 1

Summary of content (8 pages)