160 likes | 386 Views
Module 17: Network Information Service (NIS). The NIS is a simple database that clients can query. (compare with Windows AD) Covering: Master NIS server; NIS clients; Secondary (slave) server
E N D
Module 17: Network Information Service (NIS) • The NIS is a simple database that clients can query. (compare with Windows AD) • Covering: Master NIS server; NIS clients; Secondary (slave) server • The NIS sever is waiting for clients query. The clients are making the request to the NIS Server. NIS servers do not perform authentication. Module 17 NIS
The NIS Servers • Master NIS server • It keeps the original data • Secondary (slave) servers • They have a copy of original data • They are remaining in sync Module 17 NIS
Domains • Primary NIS servers establish domains. • The NIS model assumes that all clients are members of the same administrative domain. • The NIS does not perform authentication. Module 17 NIS
Installing the NIS Server • GUI: Main Menu -> System Setting -> Add or Remove Packages -> Network Servers -> ypserv • Command line: rpm Module 17 NIS
Configuring the NIS Server 4 steps: • Establish the domain name • Start the ypserv daemon to start NIS • Edit the makefile • Run ypinit to create the database Module 17 NIS
Establishing the domain name • [ ]# domainname mycomputer.mycompany • You can add it to system setting at /etc/sysconfig/networkfile NIS_DOMAIN= mycomputer.mycompany Module 17 NIS
Starting NIS • [ ]# /etc/init.d/ypserv start or • [ ]# /etc/init.d/ypserv stop Module 17 NIS
Editing the Makefile • Makefile is a file that contains the instructions for make tool. The make then knows what file needs to be recompiled. Module 17 NIS
Using ypinit • [ ]# /usr/lib/yp/ypinit [options] Module 17 NIS
Configuring the NIS clients • Edit the /etc/yp.conf file How can a client find the NIS server? Broadcast or hostname • Setting up the startup script The way a client can communicate with the NIS server [ ]# /etc/init.d/ypbind start or stop • Editing the /etc/nsswitch.conf file Telling the system the order in which to search for information filename: servicename Module 17 NIS
Configuring a Secondary NIS Server • Set the domain name • Set up the NIS master to push to the slave 1.Put the name of the secondary NIS server in /var/yp/ypservers file. 2.Add NOPUSH=fales in the makefile file. • Run ypinit to initialize the slave server [ ]# /usr/lib/yp/ypinit [options] Module 17 NIS
The NIS Tools • ypcat – pulls information out of NIS • ypwhich – returns the NIS server name • ypmatch – pulls down information of the match entry • yppasswd – allows users to set their passwords on the NIS server Module 17 NIS
Question • What is the main benefit of using NIS? Module 17 NIS