CH 25-26 NIS/LDAP/KERBEROS REVIEW Flashcards
History and Background info
- Linus maintains local passwords via the /etc/passwd file.
- For obvious reasons, there is a challenge with having local passwords stored on each server.
- As a results, distributed directory information (Directory Services) came to being.
Distributed Directory Information
- Directory Service - “software system that stores, organizes and provides access to information in a directory” per Wikipedia.
- Considered an integral component of identity management.
- Uses concepts SIMILAR to relational databases (ex. MYSQL, Access) - but is not considered one because write operations are limited.
- DNS is considered a directory service, but does not handle user identity information.
- Multiple choices for user authentication via distributed directory services.
Network Information Service (NIS)
- An early attempt at directory services.
- Originally referred to as “Yellow Pages’ but was forced to change the name due to a lawsuit per Wikipedia.
- Made up of tables composed of text files (basically a large, shared /etc/passwd) referred to as maps.
- Architecture is “master/slave” 5. NIS looks at local machine /etc/passwd first, then checks the directory.
Network Information Service (NIS)
DAEMONS
Made up of three daemons.
- ypserv - listens for queries from clients and responds accordingly.
- ypxfrd - used for propagating and transferring to secondary (“slave”) servers.
- ypbind - client-side component of NIS; used for finding a NIS server and transmitting information. NIS divides security into domains.
Network Information Service (NIS)
- NIS is inherently insecure - everything, including passwords is saved and transmitted over unencrypted plain text.
- Attempt to create secure NIS, NIS+ was made as early as 1992 but was abandoned.
- Implementation of NIS is NOT recommended.
Lightweight Directory Access Protocol (LDAP)
- LDAP is considered a “successor technology” to NIS.
- LDAP is a subset protocol of the larger X.500 protocol.
a. Multiple software implementation exist.
b. Many are true LDAP, but others extend the standard for their own implementation. - Essentially, LDAP is a globally-accessible distributed directory service.
Lightweight Directory Access Protocol (LDAP) STRUCTURE
- LDAP is structured in a tree format.
a. The structure is known as the Directory Information Tree (DIT).
b. Each object in the tree is known as a node.
c. The complete path to a node - which uniquely identifies it - is known as its Distinguished Name (DN). - The DIT can be structured in any number of ways. a. Geographical or Organizational (functional)
Lightweight Directory Access Protocol (LDAP) STRUCTURE continued …
LDAP adheres to the client/server structure:
- LDAP client connects to a LDAP server (also referred to as binding)
- Based on access restrictions, the LDAP server either accepts or refuses the bind request.
- Assuming it accepts, the client issues the appropriate command (query, update, etc)
- Based on access restrictions, the LDAP server accepts the command and returns output or rejects it.
Lightweight Directory Access Protocol (LDAP) SCHEMAS
- LDAP was designed with the logical structure of an organization and its assets in mind:
- People
- Devices
- Locations
- While designed for basic identity information, a LDAP’s schema can be extended to store basically any information.
- Employee data: addresses, phone number, photos.
Lightweight Directory Access Protocol (LDAP) SCHEMAS uses …
Over the years, various LDAP implementations have created schemas to allow for storage of various pieces of information.
- LDAP can serve as a complete identity management solution for an organization and can even support federated identity management.
- DNS records can be stored in LDAP.
- Microsoft’s Active Directory encompasses concepts of both LDAP and DNS.
- LDAP can be used to provide “yellow pages”
- LDAP can be used to store mail routing information.
- Samba and LDAP can be connected to work with each other seamlessly.
LDAP TERMINOLOGY
OBJECT
OBJECT (ENTRY) - one unit in a LDAP directory, indentifiable by its distinguished name (DN).
LDAP TERMINOLOGY
COMMON (CANONOICAL) NAME
COMMON (CANONOICAL) NAME - base name (domain name) for the DIT.
LDAP TERMINOLOGY
ATTRIBUTES
ATTRIBUTES - metadata for an object.
LDAP TERMINOLOGY
SCOPE
SCOPE - similar to domain in NIS (or Active Directory) as it allows for logical divisions of the directory information tree (DIT).
LDAP TERMINOLOGY
OBJECT CLASS
OBJECT CLASS - defined what type of object Ex. person or computer.