ldaphostmgr.1m (2010 09)
l
ldaphostmgr(1M) ldaphostmgr(1M)
NAME
ldaphostmgr - add, modify, delete information about hosts (OS instances), using LDAP
SYNOPSIS
ldaphostmgr [-a | -d| -m]
[-f][-F][
-I][-P][-C][-S][-V][-X][-Z
][-ZZ][-ZZZ]
[
-h servername ][-p port ][
-B relbase ][-x domain ][-O owner ]...
[
-G group]... [-k [[!
|?|ˆ]keytype][-e days_to_expire]] [
-i ipAddr]... [-r role ]...
[
-A attrval ]... [-R attrval ]... [
-c comment][-E envfile]{(-D DN)|host_name }
[attr
=value]...
DESCRIPTION
ldaphostmgr allows HP-UX administrators to add, modify or delete information about hosts (OS
instances) that are part of the organization.
•
ldaphostmgr uses the existing ldapux (5) configuration, requiring minimal command-line
options to discover where to store or search for host information, such as which directory
server(s) to contact, proper search filters finding hosts and base DNs for storing hosts.
•
ldaphostmgr uses the existing ldapux (5) authentication configuration to determine how to
bind to the LDAP directory server.
•
ldaphostmgr supports attribute mapping for attributes defined by the ipHost objectclass.
Additional attributes used in a host entry (such as owner , entityRole ) are not mappable.
•
ldaphostmgr can be used to centrally manage ssh public keys for hosts.
Options and Arguments
ldaphostmgr supports the following options and arguments.
(
-D DN)|host_name
Specifies the host DN or POSIX host name to apply the operation. Specifying either
-D or host_name is required, even if the intent is to manage data for the local host.
The host’s true full or short name should be specified when using host_name .
localhost should not be specified when attempting to modify the local host.
If host_name is specified, it is positional dependent on the
ldaphostmgr
command-line and should be placed after all the command options (see
SYNOPSIS).
ldaphostmgr will construct the DN of the entry by using host search base as
parent DN. If the search-base for the hosts service as defined in the profile is the
same as the default search base, then by default, ldaphostmgr will add a host
container to the default search base. For example, if the default search base is
dc=myorg,dc=org then
ldaphostmgr will build the DN by adding both the
ou=hosts container (or cn=computers for ADS) and the host name to the DN
resulting in cn=hostname,ou=hosts,dc=myorg,dc=org
.
If
-D is specified, then the host_name will be extracted from the value defined in
the RDN component of the specified DN.
attr
=value Allows modification of arbitrary LDAP attributes and values. value may be an
empty string. However, this usage will not remove attributes and their values from
the directory server. Instead use the -R option to remove arbitrary attributes.
Note, refer to the WARNINGS section below for impacts when using this option.
-a Adds a new host to the directory server. The host will be added to the base specified
by the host service search descriptor in the LDAP-UX configuration profile (unless
the -D option is used to specify the fully qualified DN). When creating an entry,
the device and ipHost object classes will be used. Optionally, additional object
classes may be used to describe the host entry. See Object Classes below for more
information.
On ADS, the Computer object class will be used.
The
-a (add), -d (delete), and -m (modify) options are mutually exclusive. The -m
option is the default if none of these three options is specified.
HP-UX 11i v3: June 2010 Web Release − 1 − Hewlett-Packard Company 1