Web Design

product 1

Lorem ipsum dolor sit amet, consectetur adipiscing elit. Quisque nec dictum tortor.

Multimedia

product 1

Proin eleifend quam eu purus aliquet scelerisque. Sed non nibh a urna tristique vestibulum.

Customizations

product 1

Morbi suscipit, nisl eget porttitor hendrerit, arcu sapien cursus enim, id luctus felis metus urna.

NIS Server

dhuka dwi cahyanto | 6:56 PM | 1 comments

server satu ini sekarang ini mang dah jarang dipakai,,,tp siapa tau ada yg masih butuh....:) 
------------------------------------------------
Network Information Service (NIS) server digunakn untuk melakukan sentralisasi informasi seperti user account, group account bagi network yang terdiri dari komputer linux. NFS juga dapat digunakan untuk single signon berbasis domain seperti openldap atau active directory pada lingkungan windows server. Berikut contoh konfigurasi, distro yang digunakan RHEL4 yang nantinya akan dikombinasikan dengan NFS Server.


Pada Komputer Server:
---------------------
1. Periksa paket NIS apakah sudah terinstal ato belum, paket yang wajib diinstall adalah paket ypserv disini menggunakan versi ypserv-2.13-5
# rpm -qa | grep ypserv
2. Jika belum terinstall lakukan installasi
# rpm -ivh rpm -ivh ypserv-2.13-5.i386.rpm
3. Mengkonfigurasi NIS domain name, misal nis domainnya adalah linux
# nisdomainname linux
4. Copy file /usr/share/doc/ypserv-2.13/securenets ke /var/yp/
# cp /usr/share/doc/ypserv-2.13/securenets /var/yp/
5. Edit file /var/yp/securenets untk mengijinkan client pada network untuk dapat mengakses server NIS. Konfigurasi default mengijinkan akses pada semua host. Misalnya network yang dijinkan adalah network 19.168.10.0
255.0.0.0 127.0.0.0
255.255.255.0 192.168.10.0
6. Cek untuk memastikan service portmap aktif
# rpcinfo -p localhost
jika belum aktif maka jalankan perintah
# /etc/init.d/portmap start
7. Aktifkan service ypserv
# /etc/init.d/ypserv start
8. Cek untuk memastikan service ypserv aktif
# rpcinfo -u localhost ypserv
9. Lakukan initialisasi NIS maps
# /usr/lib/yp/ypinit -m
At this point, we have to construct a list of the hosts which will run NIS
servers. localhost.localdomain is in the list of NIS server hosts. Please continue to add
the names for the other hosts, one per line. When you are done with the
list, type a .
next host to add: localhost.localdomain
next host to add:
The current list of NIS servers looks like this:

localhost.localdomain

Is this correct? [y/n: y] y
We need a few minutes to build the databases...
Building /var/yp/linux.net/ypservers...
Running /var/yp/Makefile...
gmake[1]: Entering directory `/var/yp/linux.net'
Updating passwd.byname...
Updating passwd.byuid...
Updating group.byname...
Updating group.bygid...
Updating hosts.byname...
Updating hosts.byaddr...
Updating rpc.byname...
Updating rpc.bynumber...
Updating services.byname...
Updating services.byservicename...
Updating netid.byname...
Updating protocols.bynumber...
Updating protocols.byname...
Updating mail.aliases...
gmake[1]: Leaving directory `/var/yp/linux.net'

localhost.localdomain has been set up as a NIS master server.

Now you can run ypinit -s localhost.localdomain on all slave server
10. Aktifkan service yppasswd
# /etc/init.d/yppasswd start
11. cek untuk memastikan service yppasswd aktif
# rpcinfo -u localhost yppasswd
12. Edit /etc/sysconfig/network dengan menambahkan nisdomain
# vi /etc/sysconfig/network
NISDOMAIN=linux
13. Aktifkan service ypserv dan yppasswd ketika komputer dinyalakan
# chkconfig ypserv on
# chkconfig yppasswd on

Pada komputer client :
----------------------
Dalam contoh konfigurasi client ini akan memanfaatkan NIS master server pada komputer yang myp ip address 192.168.10.2 dan NIS domain bernama linux
1. pada komputer client wajib lakukan instalasi paket ypbind,yp-tool,portmap
# rpm -qa | grep ypbind
2. jika belum terinstall lakukan instalasi
# rpm -ihv ypbind-1.17.2-3.i386.rpm
3. set nisdomainname linux
# nisdomainname linux
# nisdomainname
linux
4. edit file /etc/yp.conf untuk mengidentifikasi NIS server
# domain linux server 192.168.10.2
5. cek untuk memastikan service portmap jalan
# rpcinfo -p localhost
6. jalankan service ypbind
# /etc/init.d/ypbind start
7. cek untuk memastikan service ypbind jalan
# rpcinfo -p localhost ypbind
8. edit file /etc/host.conf
# vi /etc/host.conf
tambahkan nis pada hostname lookups
order hosts,nis,bind
9. edit file /etc/nsswitch.conf
# vi /etc/nsswitch.conf
tambahkan nis pada hostname lookups pada informasi passwd,shadow,dll.
misalnya pada passwd
passwd : files nis nisplus
10.aktifkan service ketika komputer dinyalakan
# chkconfig ypbind on

Testing
1. untuk melakukan testing NIS dengan perintah ypcat dan ypmatch contoh
# ypcat passwd
# ypmatch user1 passwd
# ypcat -x
2. untuk menkombinasikan dengan NFS server sehingga NIS Server dapat sebagai server single signon, maka direktori home pada NIS Server harus dilakukan export/share yg dapat dibuat dengan NFS server.

Category:

Vk bhardwaj: My name is vikas . I'm administrator of Www.BestTheme.Net.This blog was opened for Demo test .

1 comments

  1. Anonymous says:

    pitik, duwe blog ra omong2,,,
    ngeriii,,,