Download as pdf or txt
Download as pdf or txt
You are on page 1of 16

NIS SERVER

The two common authentication services are the Network Information Service (NIS) and the Lightweight directory Access Protocol (LDAP). Both NIS and LDAP allows to manage all users & computer centrally

How Local Authentication works ?

Solution for Local Authentication

Linux Linux Client Client user1 user1

Linux Linux Client Client user2 user2

Linux Linux Client Client user1 user1 user2 user2

Linux Linux Client Client user2 user2 user1 user1

How NIS works ?

Requirements Packages ypserv-2.13.5.i386.rpm ypbind-1.17.2-3.i386.rpm yp-tools-2.8-7.i386.rpm Port Numbers NIS uses random port numbers [root@comp1 ~]# rpcinfo -p Configuration File /var/yp/Makefile Service ypserv yppasswdd Daemons ypserv yppasswdd

NIS NIS Server Server 192.168.0.253 192.168.0.253

user1 user1 user2 user2

Linux Linux Client Client

Linux Linux Client Client

NIS Configuration

Configuring NIS Server

NIS NIS + + NFS NFS Server Server 192.168.0.253 192.168.0.253

user1 user1 user2 user2


Install Installthe thepackage packageby byusing usingone oneof ofthe theinstallation installationmethods methods [root@comp~]# rpm ivh force aid ftp://192.168.0.250/pub/Server/yp* [root@comp~]#rpm ivh force aid ftp://192.168.0.250/pub/Server/yp*

/home /home

Assigning Assigningan anNIS NISdomain domain [root@comp1~]# [root@comp1~]#nisdomainname nisdomainname zoom.com zoom.com

Linux Linux Client Client

Linux Linux Client Client


Assigning Assigningan anNIS NISdomain domain--Permenant Permenant [root@comp1~]# vi /etc/sysconfig/network [root@comp1~]# vi /etc/sysconfig/network

ZOOM.COM ZOOM.COM

/etc/sysconfig/network

NIS Server

Add Addbelow belowline line NISDOMAIN=zoom.com NISDOMAIN=zoom.com

To Torestart restartthe theNIS NISservices services [root@comp1 ~]# service portmap restart [root@comp1 ~]# service portmap restart [root@comp1 [root@comp1~]# ~]#service serviceyppasswdd yppasswdd restart restart

Configuring NIS Server

/var/yp/Makefile

Open Openconfiguration configurationfor forediting editing [root@comp1~]# [root@comp1~]#vi vi /var/yp/Makefile /var/yp/Makefile

To Tochange changethe thebelow belowoption option NOPUSH=true NOPUSH=true all all::passwd passwdgroup grouphosts hosts\ \

NIS Server

NIS Server

To Torestart restartthe theNIS NISservices services [root@comp1 ~]# service ypserv restart [root@comp1 ~]# service ypserv restart

To Tobuild build database databaseof ofusers users& &groups groups [root@comp1 ~]# /usr/lib/yp/ypinit -m [root@comp1 ~]# /usr/lib/yp/ypinit -m

To Tocreate createusers users [root@comp1 ~]#useradd user1 [root@comp1 ~]#useradd user1 [root@comp1 [root@comp1~]#useradd ~]#useradd user2 user2 To Toupdate updatedatabase databasewith withnew newusers users [root@comp1 ~]# useradd user3 [root@comp1 ~]# useradd user3 [root@comp1 [root@comp1~]# ~]#useradd useradduser4 user4 [root@comp1 [root@comp1~]# ~]#cd cd/var/yp /var/yp [root@comp1 ~]# make [root@comp1 ~]# make

Requirements Packages portmap-4.0-63.i386.rpm nfs-utils-1.0.6-46.i386.rpm Port Numbers 2049 Nfsd 111 Portmap Configuration File /etc/exports Service portmap nfs Daemons nfsd mountd statd lockd

Configuring NFS Server

/etc/exports

Install Installthe thepackage packageby byusing usingone oneof ofthe theinstallation installationmethods methods [root@comp1~]# rpmivh ivhforce forceaid aid ftp://192.168.0.250/pub/Server/yp* ftp://192.168.0.250/pub/Server/yp* [root@comp1~]#rpm

/home /home

To Toadd addthe thebelow below 192.168.0.0/255.255.255.0(rw,sync) 192.168.0.0/255.255.255.0(rw,sync)

Open Openconfiguration configurationfor forediting editing [root@comp1~]# vi /etc/exports [root@comp1~]# vi /etc/exports

NFS Server

Configuring Client

To Torestart restartthe theNFS NFSservices services [root@comp1 [root@comp1~]# ~]#service servicenfs nfs restart restart

Install Installthe thepackage packageby byusing usingone oneof ofthe theinstallation installationmethods methods [root@comp1~]# [root@comp1~]#rpm rpmivh ivhforce forceaid aid ftp://192.168.0.250/pub/Server/yp* ftp://192.168.0.250/pub/Server/yp*

Assigning Assigningan anNIS NISdomain domain [root@comp1~]# [root@comp1~]#nisdomainname nisdomainname zoom.com zoom.com

Assigning Assigningan anNIS NISdomain domain--Permenant Permenant [root@comp1~]# vi /etc/sysconfig/network [root@comp1~]# vi /etc/sysconfig/network

/etc/sysconfig/network

Configuring Client

Add Addbelow belowline line NISDOMAIN=zoom.com NISDOMAIN=zoom.com

Connecting Connectingto toserver serverfor forauthentication authentication [root@comp1 ~]# authconfig-tui [root@comp1 ~]# authconfig-tui

Mounting Mountinghome homedirectories directoriesof ofthe theusers users [root@comp1 [root@comp1~]# ~]#mount mount 192.168.0.253:/home 192.168.0.253:/home /home /home

Checking Checkingfor forconnectivity connectivity [root@comp1 ~]# ypwhich [root@comp1 ~]# ypwhich

How Local Authentication works ?

NIS NIS Server Server 192.168.0.253 192.168.0.253


user1

Linux Linux Client Client

Linux Linux Client Client

User1

How Local Authentication works ?

NIS NIS Server Server 192.168.0.253 192.168.0.253

****
user1 user1found found Authentication Authentication Successful Successful Access Access--Granted Granted

Linux Linux LOCAL USER DATABASE Client Client


user1 ****

Linux Linux Client Client

User1

How Local Authentication works ?

NIS NIS Server Server 192.168.0.253 192.168.0.253

Linux Linux Client Client

Linux Linux Client Client

User2

user2

****

How Local Authentication works ?

NIS NIS Server Server 192.168.0.253 192.168.0.253

Linux Linux LOCAL USER DATABASE Client Client


user1 ****

user2 user2not notfound found Authentication Authentication Fail Fail Access Access--Denied Denied

Linux Linux Client Client

User2

How Local Authentication works ?

NIS NIS Server Server 192.168.0.253 192.168.0.253 user2

Linux Linux Client Client

Linux Linux Client Client

User2

How Local Authentication works ?

NIS NIS Server Server 192.168.0.253 192.168.0.253

Linux Linux Client Client

user2 user2found found Authentication Authentication Successful Successful Access Access--Granted Granted

Linux Linux LOCAL USER DATABASE Client Client


user2 ****

User2

How Local Authentication works ?

NIS NIS Server Server 192.168.0.253 192.168.0.253

Linux Linux Client Client

Linux Linux Client Client

User1

user1

****

How Local Authentication works ?

NIS NIS Server Server 192.168.0.253 192.168.0.253

Linux Linux Client Client

user1 user1not notfound found Authentication Authentication Failed Failed Access Access--Denied Denied

Linux Linux LOCAL USER DATABASE Client Client


user2 ****

User1

How NIS Authentication works ?

NIS NIS Server Server 192.168.0.253 192.168.0.253


user1

Linux Linux Client Client

Linux Linux Client Client

User1

How NIS Authentication works ?

user1 user1found found Authentication Authentication Successful Successful Access Access--Granted Granted

NIS NIS NIS USER DATABASE Server **** Server user1


user2 192.168.0.253 192.168.0.253 ****

****

S f NI n o to atio t es tic qu hen er1 e S R ut us NI g A m r in o fo fr at ly ntic 1 p r Re uthe use A

Linux Linux Client Client

Linux Linux Client Client

User1

How NIS Authentication works ?

NIS NIS Server Server 192.168.0.253 192.168.0.253

Linux Linux Client Client

Linux Linux Client Client

User2

user2

****

How NIS Authentication works ?

user2 user2found found Authentication Authentication Successful Successful Access Access--Granted Granted

NIS NIS NIS USER DATABASE Server user1 **** Server


user2 192.168.0.253 192.168.0.253 ****

S f NI n o to atio t es tic qu en r2 S Re uth use NI m ng rA ro cati fo f y i pl nt r2 Re uthe use A

Linux Linux Client Client

Linux Linux Client Client

User2

How NIS Authentication works ?

NIS NIS Server Server 192.168.0.253 192.168.0.253


user1

Linux Linux Client Client

Linux Linux Client Client

User1

How NIS Authentication works ?

user1 user1found found Authentication Authentication Successful Successful Access Access--Granted Granted

NIS NIS NIS USER DATABASE Server **** Server user1


user2 192.168.0.253 192.168.0.253 ****

****

fo Re r A qu ut e s he t t us ntic o N Re er at IS Au ply 1 ion th fr of e n om us tica N I er tin S 1 g

Linux Linux Client Client

Linux Linux Client Client

User1

How NIS Authentication works ?

NIS NIS Server Server 192.168.0.253 192.168.0.253

Linux Linux Client Client

Linux Linux Client Client

User2

user2

****

How NIS Authentication works ?

user2 user2found found Authentication Authentication Successful Successful Access Access--Granted Granted

NIS NIS NIS USER DATABASE Server user1 **** Server


user2 192.168.0.253 192.168.0.253 ****

fo Re r A qu ut e s he t t us ntic o N Re er at IS Au ply 1 ion th fr of e n om us tica N er tin IS 1 g

Linux Linux Client Client

Linux Linux Client Client

User2

You might also like