Configuring Clients for NIS

This section explains how to set up a NIS client for the server started in the previous section. As with setting up a NIS server, NIS clients can be configured using command-line utilities or by taking advantage of YaST's graphical administrative interface. The following two sections explain how to configure a NIS client using each of these methods.

Configuring a NIS Client Using YaST

YaST makes NIS client configuration almost trivial, using a single dialog box to collect information about the NIS domain that you want your client to use. To configure a system as a NIS client using YaST, do the following:

1. Start YaST's NIS client module. It is included in the Network Services Menu, or can be started from the command line with the command yast2 nis. You will see the screen shown in Figure 25-5.

2. Click the Use NIS option button, and enter the name of the NIS domain that you want the client system to contact for authentication information. If your client system uses DHCP to deliver NIS server information, click Automatic Setup (through DHCP). If you want the NIS Client to search the local network by broadcasting if a connection to the specified NFS server fails, click the Broadcast option button. To search for a NIS server on the local network for the specified domain, click Find to populate the Addresses of NIS servers field.

3. Click Finish. YaST modifies your system's configuration files to use NIS and exits after those modifications have been made.

Configuring a NIS Client Manually

As mentioned previously, it is interesting to understand exactly what's going on under the hood when configuring a NIS client. This section explains how to configure a system to be a NIS client without using graphical utilities.

FIGURE 25-5

Configuring a NIS client in YaST

FIGURE 25-5

Configuring a NIS client in YaST

To do some pr├ęconfiguration, log in as root or use the su command to become root on the client system and edit the /etc/nsswitch.conf file on the system you are using as a NIS client. Find the line that tells your system how to locate password entries and modify that line to look like the following:

Was this article helpful?

0 0

Post a comment