HP-UX Reference (11i v3 07/02) - 1 User Commands A-M (vol 1)

l
ldapentry(1) ldapentry(1)
NAME
ldapentry - simple add, modify, and delete entries in an LDAP directory
SYNOPSIS
ldapentry {-a | -d | -m}[
-D login][-b base][-h host][-p port][
-s scope][-f][-v]
{service key | dn}
DESCRIPTION
ldapentry is a script that allows administrators to add, modify, and delete entries in an LDAP directory.
The add and modify functions open an entry into an editor so knowledge of the LDIF (RFC2849) syntax
is required.
This manpage describes the use of ldapentry , including the command line, environment variables,
profile support, and resource files.
Arguments
ldapentry requires these arguments:
{-a | -d | -m}
Specifies the ldapentry operation to be performed. One of these operations must be specified:
-a Adds a new entry to the directory. An LDIF template will be read into an editor for the entry
to be added. The new entry’s location in the directory will be determined by the
LDAP_BASEDN variable (if defined), by the template, or the location described in the service
descriptors in the LDAP configuration profile.
See Templates section below for information about the templates.
-d Deletes an entry from the directory.
-m Modifies an existing the directory entry. The entry will be sent into a
vi editor in the LDIF
format for the user to modify.
{service key | dn}
ldapentry requires either service key or dn, where
service Name of the service set that will determine the type of entry to edit, where service can be one
of the following:
{
passwd | group | hosts | rpc | services | printers }
key Entry’s common name or UID.
dn Full distinguished name of the entry.
Options
ldapentry supports the following options. These options are not required because some of them may be
defaulted to the profile and configuration files or prompted for by
ldapentry.
-b base Specifies the DN of the search/insert base which defines where
ldapentry starts the
search/insert for the entry.
This option is optional if the
LDAP_BASEDN variable is set. If specified, this option overwrites
the LDAP_BASEDN variable setting.
-D login Specifies the distinguished name (DN) of an administrator who has the authority to add, modify,
or delete entries in the LDAP directory.
This option is optional if the LDAP_BINDDN environment variable has been set. If specified,
this option overwrites the LDAP_BINDDN variable setting.
-f Forces command execution, with warning override.
-h host Specifies the host name of the LDAP directory. If not specified, ldapentry uses the local host.
-p port Specifies the TCP port number that the LDAP directory uses. If not specified, dapentry
defaults to port 389.
-s scope Specify scope of the search, where scope can be one of the following:
base Search only the entry specified in the -b option or defined by the LDAP_BASEDN
environment variable.
560 Hewlett-Packard Company 1 HP-UX 11i Version 3: February 2007