Day22 NIS LDAP
Day22 NIS LDAP
Local Authentication
Username ravi
Local Authentication
Password ********
Local Authentication
Local Authentication
Local Authentication
Username ali
Local Authentication
Password ********
Local Authentication
Local Authentication
Username
Solution 1 - Local Authentication
Username ravi
Solution 1 - Local Authentication
Password ********
Username ali
Password ********
Solution 1 - Local Authentication
NIS Server
NIS Server
Username ravi
Password ********
Solution 2 – Centralized Authentication
NIS ServerUser
USERRavi found
DATABASE
authentication
ravi ****
User:- ravi, ali 192.168.0.253 successful
ali ****
Access – granted
NIS Server
Username ali
Password ********
• Both NIS and LDAP are used to manage the user accounts centrally.
Network Information Services (NIS)
NIS
• Port Numbers
• Configuration File
– /var/yp/Makefile
NIS Configuration
NIS + NFS
Server
User:- ravi, ali 192.168.0.253
Adding users
[root@nisserver ~]# useradd ravi
[root@nisserver ~]# useradd ali
[root@nisserver ~]# cd /var/yp
[root@nisserver yp]# make
/home 192.168.0.0/255.255.255.0(rw,sync)
– It is an open standard
– Uses fixed ports, 389 TCP for regular communication and 636 TCP
for encrypted communication.
• LDAP can also interact with other login programs, such as Remote
Authentication Dial-in User Service (RADIUS), which is used by many
ISP to manage dialup Internet access.
LDAP Configuration
LDAP + NFS
Server
User:- ravi, ali 192.168.0.253
Create users
[root@ldapserver ~]# useradd <username>
:%s/padl/zoomgroup/g
LDAP Server Configuration
/home 192.168.0.0/255.255.255.0(rw,sync)
HOST 192.168.1.100
BASE dc=zoomgroup,dc=com