SlideShare a Scribd company logo
2
Most read
6
Most read
8
Most read
AD and LDAP
Active Directory
Lightweight Directory Access Protocol
Active Directory
 It is a common interface for organizing and maintaining
information related to resources connected to a variety of
network directories.
 Directories tend to contain descriptive, attribute-based
information. It support filtering capabilities. Examples
address books (attributes such as name, address, phone
number etc.)
 It is a database that keeps track of all the user accounts and
passwords in your organization. It allows you to store user
accounts and passwords in location, improving your
organization's security.
LDAP
1. Lightweight Directory Access Protocol (LDAP) is an Internet
protocol used to access information directories.
2. A directory service is a distributed database application
designed to manage the entries and attributes in a directory.
3. Runs over TCP/IP
LDAP vs Active Directory
 Ad is a Database
 Ldap is a protocol to access AD.
Eg. Microsoft Outlook work with directory services.
Directory Client/Server Interaction
 Clients performing protocol operations against servers
 Client sends protocol request to server
 Server performs operation on directory
 Server returns response (results/errors)
LDAP server and client
How do you make an LDAP server?
There are many options, like Microsoft, OpenLDAP(free), Sun,
Netscape, QUALCOMM. If you don't want to install your own
directory service, but just want to use LDAP, instructions for
using available LDAP servers, such as four11 and bigfootetc.
How do you make an LDAP client?
There are SDKs in many languages including C, C++, perl, and
Java, to help you make an LDAP client. Go get the SDK for your
language and use the functions that it provides to connect to and
operate on an LDAP server.
LDAP
 Directory
 A set of objects with similar attributes
 Organized in a logical and hierarchical manner
 Example:
 Telephone directory
 Series of names (either of persons or organizations)
 Organized alphabetically
 Each name has an address and phone number
LDAP Naming Examples
Attribute Type String
CommonName CN
LocalityName L
StateorProvinceName ST
OrganizationName O
OrganizationalUnitName OU
CountryName C
StreetAddress STREET
domainComponent DC
Userid UID
LDAP Functions/Operations
 Authentication
 BIND/UNBIND
 ABANDON
 Query
 Search
 Compare entry
 Update
 Add an entry
 Delete an entry (Only Leaf nodes, no aliases)
 Modify an entry
Client and Server Interaction
 Client establishes session with server (BIND)
 Hostname/IP and port number
 Security
 User-id/password based authentication
 Client performs operations
 Read/Update/Search
 SELECT A,B FROM PART_OF_DIRECTORY
 Client ends the session (UNBIND)
 Client can ABANDON the session
LDAP Data Structure
Hierarchical Flat
dc: domain component
ou: organizational unit
Directory structure
 Protocol accesses LDAP directories
 directory is a tree of directory entries
 Entry consists of a set of attributes
 An attribute has
 a name
 an attribute type or attribute description
 one or more values
 Attributes are defined in a schema
 Each entry has a unique identifier:
 Distinguished Name (DN)
 Consists of its Relative Distinguished Name (RDN) constructed from some
attribute(s) in the entry
 Followed by the parent entry's DN
 Think of the DN as a full filename and the RDN as a relative
filename in a folder
Directory structure
 An entry can look like this when represented in LDAP Data Interchange Format
(LDIF) (LDAP itself is a binary protocol):
 dn: cn=John mark,dc=exp,dc=com
cn: John mark
givenName: John
sn: mark
telephoneNumber: +1 888 555 6889
telephoneNumber: +1 888 555 1534
mail: johny@example.com
manager: cn=Barbara jack,dc=example,dc=com
objectClass: inetOrgPerson
objectClass: organizationalPerson
objectClass: person
objectClass: top
 dn (distinguished name) is the name of the entry; it's not an attribute nor part of the
entry
 "cn=John Mark" is the entry's RDN
 "dc=example,dc=com" is the DN of the parent entry.
 Other lines show the attributes in the entry
 Attribute names are typically mnemonic strings
 "cn" for common name,
 "dc" for domain component
 "mail" for e-mail address
 "sn" for surname
Directory structure
 A server holds a subtree starting from a specific entry, e.g.
"dc=example,dc=com" and its children.
 Servers may also hold references to other servers
 An attempt to access "ou=department,dc=example,dc=com" could
return a referral or continuation reference to a server which holds
that part of the directory tree.
 Client can then contact the other server
 Some servers also support chaining
 Server contacts other server(s) and returns the results to the client
Directory structure
 LDAP rarely defines any ordering:
 Server may return
 the values in an attribute
 the attributes in an entry
 the entries found by a search operation
in any order
 Follows from the formal definitions
 an entry is defined as a set of attributes
 an attribute is a set of values
 sets need not be ordered
Operations: Search and Compare
 The Search operation is used to both search for and read entries
 Its parameters are:
 baseObject
 The DN (Distinguished Name) of the entry at which to start the search,
 scope
 BaseObject (search just the named entry, typically used to read one entry), singleLevel
(entries immediately below the base DN), or wholeSubtree (the entire subtree starting at
the base DN).
 filter
 How to examine each entry in the scope. E.g. (&(objectClass=person)(|
(givenName=John)(mail=john*))) - search for persons who either have given name John
or an e-mail address starting with john.
 derefAliases
 Whether and how to follow alias entries (entries which refer to other entries),
 attributes
 Which attributes to return in result entries.
 sizeLimit, timeLimit
 Max number of entries, and max search time.
 typesOnly
 Return attribute types only, not attribute values.
Operations: Search and Compare
 The server returns
 Matching entries
 Maybe continuation references (in any order)
 Followed by the final result with the result code
 The Compare operation
 Takes
 a DN
 an attribute name
 an attribute value
 Checks if the named entry contains that attribute with that
value
Operations: Update operations
 Add, Delete, and Modify DN
 All require the DN of the entry that is to be
changed
 Modify takes a list of attributes to modify and
the modifications to each:
 Add new values, delete the attribute or some
values,, or replace the current values with the new
ones.
 Add operations also can have additional
attributes and values for those attributes.
Operations: Extended operations
 Extended Operation
 A generic LDAP operation can be used to define
new operations
 Examples include the
 Cancel
 Password Modify
Usage
 Applications
 Reasons to choose LDAP for a service
 Widely supported
 Data presented in LDAP is available to many clients and libraries
 LDAP is very general and includes basic security
 Can support many types of applications
 Choosing a few general protocols like LDAP and HTTP for various services
 Allows focusing on a few protocols
 Instead of having to maintain and upgrade many specialized protocols
 Some tasks LDAP does not handle well:
 Model a relational database

More Related Content

PPTX
أساسيات الحرب الألكترونية
PPTX
Text Classification
PPTX
Blockchain Technology
PPTX
User management
PPTX
Server operating system
ODP
Topic Modeling
PPTX
What is active directory
PPTX
ISO 22301, SGCN, BCMS, Sistema de Gestión de la Continuidad del Negocio
أساسيات الحرب الألكترونية
Text Classification
Blockchain Technology
User management
Server operating system
Topic Modeling
What is active directory
ISO 22301, SGCN, BCMS, Sistema de Gestión de la Continuidad del Negocio

What's hot (20)

PPT
The Ldap Protocol
PPTX
LDAP - Lightweight Directory Access Protocol
PPTX
Ldap intro
PPT
Active Directory Services
PPT
Active Directory
PPT
Microsoft Active Directory
PPT
Active directory
PPTX
DHCP & DNS
PPTX
Active directory domain service
PPTX
Introduction to Active Directory
PPTX
Microsoft Active Directory.pptx
PPTX
Active Directory
PPT
Active directory slides
PPT
Active directory and application
PPT
Active Directory Training
PPTX
File permissions
PPTX
Active Directory
PDF
Introduction to column oriented databases
ODP
Https presentation
The Ldap Protocol
LDAP - Lightweight Directory Access Protocol
Ldap intro
Active Directory Services
Active Directory
Microsoft Active Directory
Active directory
DHCP & DNS
Active directory domain service
Introduction to Active Directory
Microsoft Active Directory.pptx
Active Directory
Active directory slides
Active directory and application
Active Directory Training
File permissions
Active Directory
Introduction to column oriented databases
Https presentation
Ad

Viewers also liked (20)

PPTX
Active Directory & LDAP Authentication Without Triggers
PDF
LDAP Theory
PPT
LDAP Presentation
PPT
WIN-ADCS-10
PDF
Distributed computing time
PPTX
Flexible Symmetric Global Snapshot
PPT
Distributed Snapshots
PPTX
Global state recording in Distributed Systems
PPT
network filesystem briefs
PDF
Manage password policy in OpenLDAP
PPT
LSC - Synchronizing identities @ Loadays 2010
ODP
Ldap Synchronization Connector @ 2011.RMLL
PPT
Nis Vs Ldap
PDF
IAO’s importance on sound student services in educational institutions
PPT
Posix threads(asha)
PDF
Day 2 global_state_and_snapshot_algorithms
PDF
OpenLDAP configuration brought to Apache Directory Studio
PDF
Installing & Configuring OpenLDAP (Hands On Lab)
Active Directory & LDAP Authentication Without Triggers
LDAP Theory
LDAP Presentation
WIN-ADCS-10
Distributed computing time
Flexible Symmetric Global Snapshot
Distributed Snapshots
Global state recording in Distributed Systems
network filesystem briefs
Manage password policy in OpenLDAP
LSC - Synchronizing identities @ Loadays 2010
Ldap Synchronization Connector @ 2011.RMLL
Nis Vs Ldap
IAO’s importance on sound student services in educational institutions
Posix threads(asha)
Day 2 global_state_and_snapshot_algorithms
OpenLDAP configuration brought to Apache Directory Studio
Installing & Configuring OpenLDAP (Hands On Lab)
Ad

Similar to AD & LDAP (20)

PPTX
Directory Introduction
PPT
UnderstandingLDAP.ppt
PPT
Name services
PPT
Name Services
DOCX
X.500 More Than a Global Directory
PPT
Application layer protocols
ODP
LSC - Synchronizing identities @ Loadays 2010
PPSX
PDF
Building social and RESTful frameworks
PDF
Using OpenLDAP
PPT
Linq
PPT
Ldap system administration
PPT
Open Ldap Integration and Configuration with Lifray 6.2
PPTX
LESSON 2 - Active Directory and Domain Controller.pptx
PPT
PPT
Introduction to Oracle
PPT
Introduction to Oracle
Directory Introduction
UnderstandingLDAP.ppt
Name services
Name Services
X.500 More Than a Global Directory
Application layer protocols
LSC - Synchronizing identities @ Loadays 2010
Building social and RESTful frameworks
Using OpenLDAP
Linq
Ldap system administration
Open Ldap Integration and Configuration with Lifray 6.2
LESSON 2 - Active Directory and Domain Controller.pptx
Introduction to Oracle
Introduction to Oracle

More from Cynoteck Technology Solutions Private Limited (20)

PDF
Delivering powerful integrations without code using out-of-the-box Salesforce...
PPTX
Test automation using selenium
PPT
Business process flow enhancement
PPT
Multi Select Option set in Microsoft Dynamics 365
PPTX
Microsoft Dynamics 365 for customer services
PPTX
PPTX
An Overview of Google Assistant
PPTX
PPTX
Dynamics 365 for financials
PPT
Microsoft Dynamics 365 for Marketing
PPTX
Microsoft Dynamics 365 for sales
PPTX
Microsoft Dynamics 365- field services
PPTX
What is project service automation in dynamics 365
PPTX
An overview of what is dynamics 365
Delivering powerful integrations without code using out-of-the-box Salesforce...
Test automation using selenium
Business process flow enhancement
Multi Select Option set in Microsoft Dynamics 365
Microsoft Dynamics 365 for customer services
An Overview of Google Assistant
Dynamics 365 for financials
Microsoft Dynamics 365 for Marketing
Microsoft Dynamics 365 for sales
Microsoft Dynamics 365- field services
What is project service automation in dynamics 365
An overview of what is dynamics 365

Recently uploaded (20)

PDF
Diabetes mellitus diagnosis method based random forest with bat algorithm
PPTX
MYSQL Presentation for SQL database connectivity
PDF
Blue Purple Modern Animated Computer Science Presentation.pdf.pdf
PDF
Encapsulation_ Review paper, used for researhc scholars
PDF
Peak of Data & AI Encore- AI for Metadata and Smarter Workflows
PDF
TokAI - TikTok AI Agent : The First AI Application That Analyzes 10,000+ Vira...
PDF
Building Integrated photovoltaic BIPV_UPV.pdf
PDF
Dropbox Q2 2025 Financial Results & Investor Presentation
PDF
How UI/UX Design Impacts User Retention in Mobile Apps.pdf
PPTX
VMware vSphere Foundation How to Sell Presentation-Ver1.4-2-14-2024.pptx
PDF
Build a system with the filesystem maintained by OSTree @ COSCUP 2025
PPTX
A Presentation on Artificial Intelligence
PPTX
Cloud computing and distributed systems.
PDF
Encapsulation theory and applications.pdf
PDF
7 ChatGPT Prompts to Help You Define Your Ideal Customer Profile.pdf
PDF
Architecting across the Boundaries of two Complex Domains - Healthcare & Tech...
PDF
Mobile App Security Testing_ A Comprehensive Guide.pdf
PDF
Unlocking AI with Model Context Protocol (MCP)
PDF
Machine learning based COVID-19 study performance prediction
PDF
Advanced methodologies resolving dimensionality complications for autism neur...
Diabetes mellitus diagnosis method based random forest with bat algorithm
MYSQL Presentation for SQL database connectivity
Blue Purple Modern Animated Computer Science Presentation.pdf.pdf
Encapsulation_ Review paper, used for researhc scholars
Peak of Data & AI Encore- AI for Metadata and Smarter Workflows
TokAI - TikTok AI Agent : The First AI Application That Analyzes 10,000+ Vira...
Building Integrated photovoltaic BIPV_UPV.pdf
Dropbox Q2 2025 Financial Results & Investor Presentation
How UI/UX Design Impacts User Retention in Mobile Apps.pdf
VMware vSphere Foundation How to Sell Presentation-Ver1.4-2-14-2024.pptx
Build a system with the filesystem maintained by OSTree @ COSCUP 2025
A Presentation on Artificial Intelligence
Cloud computing and distributed systems.
Encapsulation theory and applications.pdf
7 ChatGPT Prompts to Help You Define Your Ideal Customer Profile.pdf
Architecting across the Boundaries of two Complex Domains - Healthcare & Tech...
Mobile App Security Testing_ A Comprehensive Guide.pdf
Unlocking AI with Model Context Protocol (MCP)
Machine learning based COVID-19 study performance prediction
Advanced methodologies resolving dimensionality complications for autism neur...

AD & LDAP

  • 1. AD and LDAP Active Directory Lightweight Directory Access Protocol
  • 2. Active Directory  It is a common interface for organizing and maintaining information related to resources connected to a variety of network directories.  Directories tend to contain descriptive, attribute-based information. It support filtering capabilities. Examples address books (attributes such as name, address, phone number etc.)  It is a database that keeps track of all the user accounts and passwords in your organization. It allows you to store user accounts and passwords in location, improving your organization's security.
  • 3. LDAP 1. Lightweight Directory Access Protocol (LDAP) is an Internet protocol used to access information directories. 2. A directory service is a distributed database application designed to manage the entries and attributes in a directory. 3. Runs over TCP/IP
  • 4. LDAP vs Active Directory  Ad is a Database  Ldap is a protocol to access AD. Eg. Microsoft Outlook work with directory services.
  • 5. Directory Client/Server Interaction  Clients performing protocol operations against servers  Client sends protocol request to server  Server performs operation on directory  Server returns response (results/errors)
  • 6. LDAP server and client How do you make an LDAP server? There are many options, like Microsoft, OpenLDAP(free), Sun, Netscape, QUALCOMM. If you don't want to install your own directory service, but just want to use LDAP, instructions for using available LDAP servers, such as four11 and bigfootetc. How do you make an LDAP client? There are SDKs in many languages including C, C++, perl, and Java, to help you make an LDAP client. Go get the SDK for your language and use the functions that it provides to connect to and operate on an LDAP server.
  • 7. LDAP  Directory  A set of objects with similar attributes  Organized in a logical and hierarchical manner  Example:  Telephone directory  Series of names (either of persons or organizations)  Organized alphabetically  Each name has an address and phone number
  • 8. LDAP Naming Examples Attribute Type String CommonName CN LocalityName L StateorProvinceName ST OrganizationName O OrganizationalUnitName OU CountryName C StreetAddress STREET domainComponent DC Userid UID
  • 9. LDAP Functions/Operations  Authentication  BIND/UNBIND  ABANDON  Query  Search  Compare entry  Update  Add an entry  Delete an entry (Only Leaf nodes, no aliases)  Modify an entry
  • 10. Client and Server Interaction  Client establishes session with server (BIND)  Hostname/IP and port number  Security  User-id/password based authentication  Client performs operations  Read/Update/Search  SELECT A,B FROM PART_OF_DIRECTORY  Client ends the session (UNBIND)  Client can ABANDON the session
  • 11. LDAP Data Structure Hierarchical Flat dc: domain component ou: organizational unit
  • 12. Directory structure  Protocol accesses LDAP directories  directory is a tree of directory entries  Entry consists of a set of attributes  An attribute has  a name  an attribute type or attribute description  one or more values  Attributes are defined in a schema  Each entry has a unique identifier:  Distinguished Name (DN)  Consists of its Relative Distinguished Name (RDN) constructed from some attribute(s) in the entry  Followed by the parent entry's DN  Think of the DN as a full filename and the RDN as a relative filename in a folder
  • 13. Directory structure  An entry can look like this when represented in LDAP Data Interchange Format (LDIF) (LDAP itself is a binary protocol):  dn: cn=John mark,dc=exp,dc=com cn: John mark givenName: John sn: mark telephoneNumber: +1 888 555 6889 telephoneNumber: +1 888 555 1534 mail: johny@example.com manager: cn=Barbara jack,dc=example,dc=com objectClass: inetOrgPerson objectClass: organizationalPerson objectClass: person objectClass: top  dn (distinguished name) is the name of the entry; it's not an attribute nor part of the entry  "cn=John Mark" is the entry's RDN  "dc=example,dc=com" is the DN of the parent entry.  Other lines show the attributes in the entry  Attribute names are typically mnemonic strings  "cn" for common name,  "dc" for domain component  "mail" for e-mail address  "sn" for surname
  • 14. Directory structure  A server holds a subtree starting from a specific entry, e.g. "dc=example,dc=com" and its children.  Servers may also hold references to other servers  An attempt to access "ou=department,dc=example,dc=com" could return a referral or continuation reference to a server which holds that part of the directory tree.  Client can then contact the other server  Some servers also support chaining  Server contacts other server(s) and returns the results to the client
  • 15. Directory structure  LDAP rarely defines any ordering:  Server may return  the values in an attribute  the attributes in an entry  the entries found by a search operation in any order  Follows from the formal definitions  an entry is defined as a set of attributes  an attribute is a set of values  sets need not be ordered
  • 16. Operations: Search and Compare  The Search operation is used to both search for and read entries  Its parameters are:  baseObject  The DN (Distinguished Name) of the entry at which to start the search,  scope  BaseObject (search just the named entry, typically used to read one entry), singleLevel (entries immediately below the base DN), or wholeSubtree (the entire subtree starting at the base DN).  filter  How to examine each entry in the scope. E.g. (&(objectClass=person)(| (givenName=John)(mail=john*))) - search for persons who either have given name John or an e-mail address starting with john.  derefAliases  Whether and how to follow alias entries (entries which refer to other entries),  attributes  Which attributes to return in result entries.  sizeLimit, timeLimit  Max number of entries, and max search time.  typesOnly  Return attribute types only, not attribute values.
  • 17. Operations: Search and Compare  The server returns  Matching entries  Maybe continuation references (in any order)  Followed by the final result with the result code  The Compare operation  Takes  a DN  an attribute name  an attribute value  Checks if the named entry contains that attribute with that value
  • 18. Operations: Update operations  Add, Delete, and Modify DN  All require the DN of the entry that is to be changed  Modify takes a list of attributes to modify and the modifications to each:  Add new values, delete the attribute or some values,, or replace the current values with the new ones.  Add operations also can have additional attributes and values for those attributes.
  • 19. Operations: Extended operations  Extended Operation  A generic LDAP operation can be used to define new operations  Examples include the  Cancel  Password Modify
  • 20. Usage  Applications  Reasons to choose LDAP for a service  Widely supported  Data presented in LDAP is available to many clients and libraries  LDAP is very general and includes basic security  Can support many types of applications  Choosing a few general protocols like LDAP and HTTP for various services  Allows focusing on a few protocols  Instead of having to maintain and upgrade many specialized protocols  Some tasks LDAP does not handle well:  Model a relational database