NIS/LDAP Gateway Administrator's Guide

Install the NIS/LDAP Gateway on Your Server
Use swinstall(1M) to install the NIS/LDAP Gateway software and the Client Administration
Tools. See the NIS/LDAP Gateway Release Notes for any last-minute changes to this procedure.
You can install the NIS/LDAP Gateway server and the LDAP-UX Client Administration Tools.
Import NIS Data into Your Directory
The next step is to import your NIS data into your LDAP Directory. How you do this depends
on several factors. Here are some considerations when planning this:
The migration scripts take your NIS information and generate LDIF files. These scripts can
then import the LDIF files into your directory, creating new entries in the directory. This
only works if you are starting with an empty directory or creating an entirely new subtree
in your directory for your NIS data.
Your directory architect needs to decide where in your directory to place your NIS
information. Here are some possibilities:
Create a separate subtree for NIS data - The migration scripts can import all your NIS
data into the separate subtree.
Integrate the NIS information into your directory - The migration scripts may be helpful
depending on where you put the NIS data in your directory. You could use them just
to generate LDIF, edit the LDIF, then import the LDIF into your directory.
Steps to Importing Your NIS Data into Your Directory
Here are the steps to importing your NIS data into your directory. Modify them as needed
depending on your directory.
1. Determine which of your NIS maps you will migrate to your directory. ypwhich -m gives
a list of maps and their master server. The maps are typically in /var/yp/<domainname>.
On your client systems, the file /etc/nsswitch.conf determines which NIS files the client is
using.
2. Decide which migration method and scripts you will use. See “NIS to LDAP Migration
Scripts” for a complete description of the scripts, what they do, and how to use them. Modify
the migration scripts, if needed.
3. Back up your directory, if needed.
4. Run the migration scripts.
5. If the method you used above did not already do so, import the LDIF file into your directory.
Configure the NIS/LDAP Gateway
Use the following steps to configure your NIS/LDAP Gateway to work with your directory server
and your NIS domain.
1. Edit the configuration file, /opt/ldapux/ypldapd/etc/ypldapd.conf, and set the appropriate
values. Use the comments in the file as a guide. See also “Configuration Parameters” for
details on all the parameters. Provide values at least for the following:
ypdomain The NIS domain name.
binddn The directory user the NIS/LDAP Gateway will bind to the directory as. You
created a proxy user for this purpose in step 7 under "Create a proxy user,"
on page 22.
bindcred The password for the proxy user.
Install the NIS/LDAP Gateway on Your Server 23