1 / 13

Module 17: Network Information Service (NIS)

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

beata
Download Presentation

Module 17: Network Information Service (NIS)

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. 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

  2. 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

  3. 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

  4. Installing the NIS Server • GUI: Main Menu -> System Setting -> Add or Remove Packages -> Network Servers -> ypserv • Command line: rpm Module 17 NIS

  5. 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

  6. 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

  7. Starting NIS • [ ]# /etc/init.d/ypserv start or • [ ]# /etc/init.d/ypserv stop Module 17 NIS

  8. 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

  9. Using ypinit • [ ]# /usr/lib/yp/ypinit [options] Module 17 NIS

  10. 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

  11. 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

  12. 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

  13. Question • What is the main benefit of using NIS? Module 17 NIS

More Related