LDAP-UX Client Services B.05.00 Administrator's Guide

tree or base of the Windows domain. If you have an existing configuration profile that was not
set up using guided installation, the location where your hosts will be stored might be defined
to a different location, or might not be defined at all (using defaults). You can use the ldapcfinfo
tool to determine where LDAP-UX believes host information should be located. For example:
# /opt/ldapux/bin/ldapcfinfo -t hosts -b
ou=Hosts,dc=mydomain,dc=example,dc=com
Before adding any hosts to the directory server, verify that the base DN discovered in the previous
example is defined to the proper location in the directory server tree. If it is not, you can
reconfigure the LDAP-UX profile and modify the host serviceSearchDescriptor attribute
using the steps outlined in Section 5.12 (page 183).
Use the -a option of the ldaphostmgr command to add new hosts to the directory, as shown
in the following example. (In the examples that follow, assume the PATH environment variable
contains /opt/ldapux/bin.)
# ldaphostlist
dn: cn=brewer,ou=Hosts,dc=mydomain,dc=example,dc=com
cn: brewer
ipHostNumber: 16.92.96.116
# id
uid=1173(domadmin) gid=1136(DomainAdmins) groups=1411(HostAdmins)
# ldaphostmgr -a baker
bind-dn [uid=domadmin,ou=People,dc=mydomain,dc=example,dc=com]:
Password:
# ldaphostlist
dn: cn=brewer,ou=Hosts,dc=mydomain,dc=example,dc=com
cn: brewer
ipHostNumber: 16.92.96.116
dn: cn=baker,ou=Hosts,dc=mydomain,dc=example,dc=com
cn: baker
ipHostNumber: 16.89.146.146
In the previous example, one host (brewer) already existed in the directory server. Another
(baker) was added using the -a option. By default, the IP address for the host is discovered
and added. In addition, the owner is assigned by default. You can display the owner, or any
attribute, using ldaphostlist, as follows:
# ldaphostlist -n baker \*
dn: cn=baker,ou=Hosts,dc=mydomain,dc=example,dc=com
cn: baker
ipHostNumber: 16.89.146.146
objectClass: top
objectClass: device
objectClass: iphost
owner: uid=domadmin,ou=People,dc=mydomain,dc=example,dc=com
In this case, the owner was assigned to domadmin, which is the user that created the entry in
the preceding example. You can assign ownership to a different user or group using the -O
option:
# ldaphostmgr -a -O user:bobj chef
bind-dn [uid=domadmin,ou=People,dc=mydomain,dc=example,dc=com]:
Password:
# ldaphostlist -n chef owner
dn: cn=chef,ou=Hosts,dc=mydomain,dc=example,dc=com
cn: chef
ipHostNumber: 0.0.0.0
owner: uid=bobj,ou=People,dc=mydomain,dc=example,dc=com
If you used the guided installation to create your directory server, then by default, owners of
hosts have rights to manage information about the hosts. For additional information, see
Section 2.3.2 (page 27).
5.6 Managing hosts in an LDAP-UX domain 175