NIS/LDAP Gateway Administrator's Guide
4 Command and Tool Reference
This chapter describes all the commands and tools associated with the NIS/LDAP Gateway:
• “The ypldapd Command” describes the NIS/LDAP Gateway daemon and command and
its parameters.
• “The ldappasswd Command” describes the command that changes passwords in your
directory.
• “LDAP Directory Tools” briefly describes the tools ldapsearch, ldapmodify, and ldapdelete.
• “NIS to LDAP Migration Scripts” describes the shell and perl scripts that migrate your NIS
data to your LDAP directory.
• “Configuration Parameters” describes the various parameters for configuring ypldapd in
the file ypldapd.conf.
The ypldapd Command
This section describes the ypldapd command and its parameters. See also the ypldapd(1) man
page.
ypldapd is the command you use to start the NIS/LDAP Gateway daemon. It is a server process
that provides information to any process that makes rpc calls to the NIS client routines. This
includes any process that calls the standard UNIX naming service routines, such as getpwent(3C),
gethostent(3C) and so forth, as well as the special tools ypcat(1) and ypmatch(1) provided as part
of the NIS product.
ypldapd emulates the equivalent process ypserv by providing an RPC call-compatible interface.
Rather than consulting NIS map files as ypserv does, however, ypldapd gets its data from LDAP
directories. Communication to and from ypldapd is by means of RPC calls. Lookup functions
are described in ypclnt(3N), and are supplied as C-callable functions in /lib/libc.
You can configure ypldapd to cache the information it gets from the LDAP directory to improve
performance and reduce network traffic. For more information on caching, see “Improving
Performance”.
Syntax
ypldapd [-v] [-c configfile]
where
-v
displays the version number of the software. Include this number when
reporting problems.
-c configfile
allows you to specify an alternate configuration file. The default
configuration file is /opt/ldapux/ypldapd/etc/ypldapd.conf.
You must execute this command logged in as root. See also “Starting and Stopping the NIS/LDAP
Gateway”.
Examples
The following command starts the NIS/LDAP Gateway daemon:
/opt/ldapux/ypldapd/sbin/ypldapd
The following command starts the NIS/LDAP Gateway daemon using /tmp/ypldapd.conf as its
configuration file:
/opt/ldapux/ypldapd/sbin/ypldapd -c /tmp/ypldapd.conf
The ypldapd Command 33