13.07.2015 Views

Naming and Directory Services (DNS, NIS, and LDAP)

Naming and Directory Services (DNS, NIS, and LDAP)

Naming and Directory Services (DNS, NIS, and LDAP)

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Modifying Maps Made From St<strong>and</strong>ard InputIf you later need to modify the map, you can use makedbm to disassemble the map<strong>and</strong> create a temporary text intermediate file. To disassemble the map <strong>and</strong> create atemporary file, type the following.% cd /var/yp% makedbm -u homedomain/mymap > mymap.tempThe resulting temporary file mymap.temp has one entry per line. You can edit this fileas needed, using any text editor.To update the map, give the name of the modified temporary file to makedbm bytyping the following.% makedbm mymap.temp homedomain/mymap% rm mymap.tempThen propagate the map to the slave servers, by becoming root <strong>and</strong> typing thefollowing.# yppush mymapThe preceding paragraphs explained how to use makedbm to create maps; however,almost everything you actually have to do can be done by ypinit <strong>and</strong> Makefileunless you add nondefault maps to the database or change the set of <strong>NIS</strong> servers afterthe system is already up <strong>and</strong> running.Whether you use the Makefile in /var/yp or some other procedure the goal is thesame. Anew pair of well-formed dbm files must end up in the maps directory on themaster server.Adding a Slave ServerAfter <strong>NIS</strong> is running, you might need to create an <strong>NIS</strong> slave server that you did notinclude in the initial list given to ypinit.To add an <strong>NIS</strong> slave server:▼How to Add a Slave Server1. On the master server, become superuser or assume an equivalent role.Roles contain authorizations <strong>and</strong> privileged comm<strong>and</strong>s. For more informationabout roles, see “Using Role-Based Access Control (Tasks)” in System AdministrationGuide: Security <strong>Services</strong>.108 System Administration Guide: <strong>Naming</strong> <strong>and</strong> <strong>Directory</strong> <strong>Services</strong> (<strong>DNS</strong>, <strong>NIS</strong>, <strong>and</strong> <strong>LDAP</strong>) • January 2005

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!