System Administration Guide: Naming and Directory Services (NIS+)

Configuring a Client as an NIS+ Server

Perform any of the following to alternate procedures to configure a client as a server. These procedures create a directory with the same name as the server and create the server's initialization files which are placed in /var/nis.


Note –

All servers in the same domain must have the same NIS-compatibility setting. For example, if the master server is NIS compatible, then its replicas should also be NIS compatible.


ProcedureHow to Configure an NIS+ Server Without NIS Compatibility

Before You Begin

You need to be superuser or establish an equivalent role to perform this procedure.

You need the superuser password of the client that you will convert into a server before you can start the NIS+ service by using the svcadm command.

  1. View the /lib/svc/method/nisplus file to verify that the -Y option does not appear.

    See NIS+ and the Service Management Facility for more information.

  2. Start the NIS+ service.

    You need to be superuser or establish an equivalent role to perform this step.


    client1# svcadm enable /network/rpc/nisplus:default
    

    Now this server is ready to be designated a master or replica of a domain.

ProcedureHow to Configure an NIS+ Server With NIS Compatibility

You need to be superuser or establish an equivalent role to perform this procedure.

  1. Edit the /lib/svc/method/nisplus file on the server to add the -Y option.

    See NIS+ and the Service Management Facility for more information.

  2. Start the NIS+ service.

    You need to be superuser or establish an equivalent role to perform this step.


    client1# svcadm enable /network/rpc/nisplus
    

    Now this server is ready to be designated a master or replica of a domain.

ProcedureHow to Configure an NIS+ Server With DNS Forwarding and NIS Compatibility

This procedure configures an NIS+ server with both DNS forwarding and NIS compatibility. Both of these features are needed to support SunOS 4 clients.

You need to be superuser or establish an equivalent role to perform this procedure.

  1. Edit the /lib/svc/method/nisplus file on the server to add the -Y and -B options.

    See NIS+ and the Service Management Facility for more information.

  2. Start the NIS+ service.

    You need to be superuse,r or establish an equivalent role, to perform this step.


    client1# svcadm enable /network/rpc/nisplus:default