- What is a Gateway?
- Using the Gateway as a Transition Tool
- Configuring the Sun ONE Directory Server Software as a Configuration Server for rpc.nisd
- How NIS+ Data is Mapped to LDAP
- NIS+ to LDAP Migration Example
- Testing and Troubleshooting the NIS+ Gateway
- About the Authors
- Ordering Sun Documents
Configuring the Sun ONE Directory Server Software as a Configuration Server for rpc.nisd
The basic tasks for configuring the Sun ONE Directory Server software are:
Update the directory schema.
Create an LDAP entry that contains the nisplusLDAPconfig object class and associated parameters.
Modify the /etc/default/rpc.nisd file.
Each task is described in detail.
Task 1 To Update the Schema
Obtain the 99nisplusLDAPconfig.ldif file form the downloadable file called ldap-schemas.tar.gzip.
Copy the schema file to your directory server config directory.
Stop and restart the directory server.
See "Obtaining the Downloadable Files for This Book" on page vii.
# cp 99nisplusLDAPconfig.ldif /var/mps/serveroot/instance/config/schema
# directoryserver stop # directoryserver start
Task 2 To Create a Configuration Entry
Create an LDIF file with the appropriate parameters.
Import the LDIF file.
# vi nisplusConfig.ldif dn: cn=example.com,dc=example,dc=com cn: domain objectClass: top objectClass: nisplusLDAPconfig nisplusLDAPproxyUser: cn=proxyagent, ou=profile,dc=example,dc=com nisplusLDAPproxyPassword: mysecret nisplusLDAPbaseDomain: example.com nisplusNumberOfServiceThreads: 32 . . .
# ldapmodify -a -D "cn=directory manager" -w mypassword -f \ nisplusConfig.ldif
Task 3 To Modify rpc.nisd
At a minimum, change the following parameters:
# vi /etc/default/rpc.nisd nisplusLDAPconfigDN=dc=example,dc=com nisplusLDAPconfigPreferredServerList=125.148.181.130 nisplusLDAPconfigAuthenticationMethod=simple nisplusLDAPconfigProxyUser=cn=proxyagent, ou=profile,dc=example,dc=com nisplusLDAPconfigProxyPassword=mysecret
NOTE
The example shown here uses a simple LDAP bind. This is only recommended if rpc.nisd and the directory server are running on the same server.