1992.10.12

SUBJECT: Solaris 2.x NIS

 1. Á¤ÀÇ

   1) NIS : Network Information Service

             local area network¿¡¼­ serviceÇÏ°í,½Ã½ºÅÛ¿¡´ëÇÑ Á¤º¸¸¦ Á¦°øÇÏ´Â services.

   2) NIS map : local area network»ó¿¡¼­ ½Ã½ºÅ۵鿡 °üÇÑ Á¤º¸¸¦ À¯Áöº¸¼öÇÏ´Â database

                °°Àº entryµé.

   3) Domain : domainÀº °°Àº NIS mapÀ» ÅëÇØ accessÇÏ´Â ½Ã½ºÅÛµéÀÇ groupÀ» ¸»ÇÑ´Ù.

   4) DNS : Domain Name Service

            local°ú ¸Õ°Å¸® network»ó¿¡ etworkÀ» ÅëÇØ ½Ã½ºÅ۵鿡 °üÇÑ Á¤º¸¸¦ Á¦°øÇÏ´Â

            TCP/IP protocal familyÀÇ name service.

 2. NIS Client utility

    - Á¾ ·ù : ypcat

              ypchsh
 
              ypchfn

              ypmatch

              yppasswd

              ypset

              ypwhich

              ypbind ( daemon )

 3. NIS server utility

   - Á¾ ·ù : ypinit

             yppoll

             ypxfr

   - »èÁ¦µÈ ºÎºÐ

      - yppush

        makedbm

        ypmake

        ypserv ( daemon )

        rpc.yppasswdd ( daemon )

        ypxfrd ( daemon )

        rpc.ypupdated ( daemon )

  4. NIS switch

   # cat /etc/nsswitch.conf

#
# An example file that could be copied over to /etc/nsswitch.conf; it
# uses NIS (YP) in conjuction with files.
#
# "hosts:" and "services:" in this file are used only if the /etc/netconfig 
# file contains "switch.so" as a nametoaddr library for "inet" transports.

# the following two lines obviate the "+" entry in /etc/passwd and /etc/group.
passwd:     files nis
group:      files nis

# consult /etc "files" only if nis is down. 
hosts:      nis [NOTFOUND=return] files
networks:   nis [NOTFOUND=return] files
protocols:  nis [NOTFOUND=return] files
rpc:        nis [NOTFOUND=return] files
ethers:     nis [NOTFOUND=return] files
netmasks:   nis [NOTFOUND=return] files	
bootparams: nis [NOTFOUND=return] files
publickey:  nis [NOTFOUND=return] files

netgroup:   nis

automount:  files nis
aliases:    files nis

# for efficient getservbyname() avoid nis
services:   files nis

 * À§ÀÇ È­ÀÏÀº /etc/nsswitch.nisÀÇ ¿¹ÀÌ´Ù.

   ±×°÷¿¡´Â nsswitch.conf , nsswitch.files , nsswitch.nis , nsswitch.nisplusµîÀÇ

   4°¡Áö È­ÀÏÀÌ ÀÖ´Ù.

   nsswitch.files , nsswitch.nis , nsswitch.nisplusµîÀ» nsswitch.conf·Î copyÇÏ¿©

   settingÇÑ´Ù.

   ¿©±â¼­ nsswitch.filesÀº NFS , nsswitch.nis´Â yp, nsswitch´Â nsswitch.nisplus¸¦

   ¸»ÇÏ°Ô µÈ´Ù.

  5. Name service overview

     NIS+ ÀÇ ¸ñÀû : º¹ÀâÇÑ network»ó¿¡¼­ ´Ü¼øÇÑ °ü¸®¸¦ À§ÇØ.

     NIS¿¡¼­ÀÇ security modelÀ» °³¼±.

  6. NIS+ÀÇ ÀÌÁ¡.

     - Hierachical Name space ( ¿¹ : user@bumpcity.Eng.Sun.COM )

     - NIS´Â ´ÜÁö flat Name space¸¸À» Á¦°ø.

     - Ä¿´Ù¶õ networkÀ» °ü¸®ÇϱâÀ§ÇØ Hierarchy±¸Á¶ »ç¿ë.

     - NIS+ ´Â DNS¿Í NISÀÇ °øµ¿»ç¿ëÀ» ´ëÄ¡.

     - NISº¸´Ù ºü¸¥ °ü¸®´É·Â Á¦°ø.

     - Àüü mapÀ» ´ëÄ¡ÇÏÁö ¾Ê¾Æµµ mapÀÇ º¯°æÀÌ °¡´É.

     - NISº¸´Ù ´õ ³ºÀº security¸¦ Á¦°ø.

     - NIS+ namespace´Â NIS+ informationÀÌ ÀúÀåµÈ ±¸Á¶ÇüÅÂÀÌ´Ù.

     - NIS+ architecture´Â Hierarchical Name spaceÀÌ´Ù.

     - °¢ domainÀ» ºÐ¸®ÇÏ¿© °ü¸®ÇÒ¼ö ÀÖ´Ù.

     ex) NIS+ architecture

         ( page 12 )

  7. command

     Function                      NIS              NIS+

  map¿¡ÀÖ´Â data¸¦ º¸¿©ÁÜ         ypcat            niscat

  database¸¦ installÇÏ°í ¸¸µë     ypinit           nisinit

  map¿¡ÀÖ´Â key¸¦ match           ypmatch          nismatch

  name serverÀÇ directory         /var/yp          /var/nis


  8. NIS & NIS+

     - configuration files

       NIS : /var/yp/*

       NIS+: /var/nis/*

  9. NISÀÇ client  configuration

     1) ypinit -c¸¦ ¼öÇà.(¿©±â¼­ server¸¦ Ãß°¡)

     2) automatic script

        - /etc/rc2.d/s71rpc´Â ypbind¸¦ ½ÃÀÛ½ÃŲ´Ù.

  10. NIS+ client  configuration

     1) /etc/hosts¸¦ µî·Ï

     2) client configurationÀ» ÃʱâÈ­

        - nisinit -c

     3) nis¿¡¼­ nis+·Î º¯°æÇϱâÀ§Çؼ­´Â /etc/nsswitch.nis+¸¦ /etc/nsswitch.conf·Î

        º¯°æÇÏ¿©¾ß ÇÔ.

  11. root master server¸¦ configuration

      1) domainnameÀ» ¸¸µë

          # domainname > /etc/defaultdomain

      2) dictionary¿Í root object¸¦ Ãß°¡

          - nisinit -r

      3) NIS+ server daemonÀ» ½ÃÀÛ

          - rpc.nisd -r &

      4) ºñ¾îÀÖ´Â standard tableÀ» set-up

         - /usr/lib/netsvc/nis/nissetup
           domainname

      5) /etcÇÏÀÇ fileµé·ÎºÎÅÍ table¿¡ entry¸¦ Ãß°¡.

  12. non-root master server¸¦ configuration

      1) domain ÀÇ clientó·³ ±¸¼º.

      2) rpc.nisd°¡ ¿î¿µµÇ°í ÀÖ´ÂÁö¸¦ È®ÀÎ.

      3) directory object¸¦ ¸¸µë.

         - nismkdir -m domain

      4) ºñ¾îÀÖ´Â standard tableÀ» set-up

         - /usr/lib/netsvc/nis/nisetup/domainname

      5) /etc fileµé·ÎºÎÅÍ table¿¡ entry¸¦ Ãß°¡ ÇÔ.

  13. NIS client¸¦ set-upÇÏ´Â Example

      1) vi /etc/inet/hosts

         ( ¿©±â¿¡ address¿Í nameÀ» µî·Ï )

      2) vi /etc/defaultdomain

      3) cp /etc/nsswitch.nis /etc/nsswitch.conf

      4) ypinit -c

      5) /usr/lib/netsvc/yp/ypbind

      6) ypwitch

Revision History
Created                  on 12 Oct , 1992