All Topics  
Lightweight Directory Access Protocol

 

   Email Print
   Bookmark   Link






 

Lightweight Directory Access Protocol



 
 
The Lightweight Directory Access Protocol, or LDAP , is an application protocol for querying and modifying directory service
Directory service

In software engineering, a directory is similar to a dictionary; it enables the look up of a name and information associated with that name. As a word in a dictionary may have multiple definitions, in a directory, a name may be associated with multiple, different, pieces of information....
s running over TCP/IP
Internet protocol suite

The Internet Protocol Suite is the set of communications protocols used for the Internet and other similar networks. It is named from two of the most important protocols in it: the Transmission Control Protocol and the Internet Protocol , which were the first two networking protocols defined in this standard....
.

A directory is a set of objects with similar attributes organised in a logical and hierarchical manner. The most common example is the telephone directory, which consists of a series of names (either of persons or organizations) organized alphabetically, with each name having an address and phone number attached.

An LDAP directory tree
Directory Information Tree

A Directory Information Tree is data represented in a hierarchical tree-like structure consisting of the Distinguished Names of directory service entries....
 often reflects various political, geographic, and/or organizational boundaries, depending on the model chosen.






Discussion
Ask a question about 'Lightweight Directory Access Protocol'
Start a new discussion about 'Lightweight Directory Access Protocol'
Answer questions from other users
Full Discussion Forum



Encyclopedia


The Lightweight Directory Access Protocol, or LDAP , is an application protocol for querying and modifying directory service
Directory service

In software engineering, a directory is similar to a dictionary; it enables the look up of a name and information associated with that name. As a word in a dictionary may have multiple definitions, in a directory, a name may be associated with multiple, different, pieces of information....
s running over TCP/IP
Internet protocol suite

The Internet Protocol Suite is the set of communications protocols used for the Internet and other similar networks. It is named from two of the most important protocols in it: the Transmission Control Protocol and the Internet Protocol , which were the first two networking protocols defined in this standard....
.

A directory is a set of objects with similar attributes organised in a logical and hierarchical manner. The most common example is the telephone directory, which consists of a series of names (either of persons or organizations) organized alphabetically, with each name having an address and phone number attached.

An LDAP directory tree
Directory Information Tree

A Directory Information Tree is data represented in a hierarchical tree-like structure consisting of the Distinguished Names of directory service entries....
 often reflects various political, geographic, and/or organizational boundaries, depending on the model chosen. LDAP deployments today tend to use Domain name system
Domain name system

The Domain Name System is a hierarchical naming system for computers, services, or any resource participating in the Internet. It associates various information with domain names assigned to such participants....
 (DNS) names for structuring the topmost levels of the hierarchy. Deeper inside the directory might appear entries representing people, organizational units, printers, documents, groups of people or anything else that represents a given tree entry (or multiple entries).

Its current version is LDAPv3, which is specified in a series of Internet Engineering Task Force
Internet Engineering Task Force

The Internet Engineering Task Force develops and promotes Internet standards, cooperating closely with the World Wide Web Consortium and International Organization for Standardization/International Electrotechnical Commission standard bodies and dealing in particular with standards of the TCP/IP and Internet protocol suite....
 (IETF) Standard Track Requests for comments
Request for Comments

In computer network engineering, a request for comments is a memorandum published by the Internet Engineering Task Force describing methods, behaviors, research, or innovations applicable to the working of the Internet and Internet-connected systems....
 (RFCs) as detailed in RFC 4510.

Origin and influences

Telecommunication companies introduced the concept of directory services to information technology
Information technology

Information technology , as defined by the Information Technology Association of America , is "the study, design, development, implementation, support or management of computer-based information systems, particularly software applications and computer hardware." IT deals with the use of electronic computers and computer software to data conv...
 and computer networking
Computer networking

Computer networking is the engineering discipline concerned with communication between computer systems or Peripheral devices. Networking, routers, routing protocols, and networking over the public Internet have their specifications defined in documents called Request for Commentss....
, as their understanding of directory requirements was well-developed after some 70 years of producing and managing telephone directories. The culmination of this input was the comprehensive X.500
X.500

X.500 is a series of computer networking standards covering electronic directory services. The X.500 series was developed by ITU-T, formerly known as CCITT....
 specification, a suite of protocols produced by the International Telecommunication Union
Itu

Itu is a old and historic municipality in the state of S?o Paulo in Brazil. The population in 2004 is 149,758 and the area is 641.68 km?. The elevation is 583 m....
 (ITU) in the 1980s.

X.500 directory services were traditionally accessed via the X.500 Directory Access Protocol
Directory Access Protocol

Directory Access Protocol is a computer networking standard promulgated by ITU-T and International Organization for Standardization in 1988 for accessing an X.500 directory service....
 (DAP), which required the Open Systems Interconnection
Open Systems Interconnection

The Open Systems Interconnection was an effort to standardize Computer network that was started in 1982 by the International Organization for Standardization , along with the ITU-T....
 (OSI) protocol stack. LDAP was originally intended to be a lightweight alternative protocol for accessing X.500 directory services through the simpler (and now widespread) TCP/IP protocol stack. This model of directory access was borrowed from the DIXIE
Dixie

Dixie is a nickname for the Southern United States....
 and Directory Assistance Service
Directory Assistance Service

The Directory Assistance Service is an obsolete Communications protocol and Service for accessing X.500 directory services. DAS was intended to provide a lightweight...
 protocols.

Standalone LDAP directory servers soon followed, as did directory servers supporting both DAP and LDAP. The latter has become popular in enterprises, as LDAP removed any need to deploy an OSI network. Today, X.500 directory protocols including DAP can also be used directly over TCP/IP.

The protocol was originally created by Tim Howes
Tim Howes

Tim Howes is the co-inventor of the Lightweight Directory Access Protocol , the Internet standard for accessing directory service. The main purpose was to handle situations that the X.500 protocol suite could not address....
 of the University of Michigan
University of Michigan

The University of Michigan, Ann Arbor, Michigan is a public university research university located in the state of Michigan. It is the state's oldest university and the flagship campus of the University of Michigan, which also includes two regional campuses in University of Michigan-Flint and University of Michigan-Dearborn....
, Steve Kille of Isode Limited
Isode Limited

Isode Limited is a software company based in the United Kingdom. Isode develops and markets messaging and directory server software based on the LDAP and X.500 protocols and SMTP, IMAP, Pop3, XMPP and X.400 protocols ....
, and Wengyik Yeong
Wengyik Yeong

Wengyik 'Weng' Yeong was an American computer scientist. He is principally known for his work on the X.500, Lightweight Directory Access Protocol, and SNMP Internet protocols....
 of Performance Systems International
PSINet

PSINet was one of the first internet service providers , based in Northern Virginia, and a major player in the commercialization of the Internet until the company's bankruptcy in 2001 during the dot-com bubble and acquisition by Cogent Communications in 2002....
, circa 1993. Further development has been done via the Internet Engineering Task Force
Internet Engineering Task Force

The Internet Engineering Task Force develops and promotes Internet standards, cooperating closely with the World Wide Web Consortium and International Organization for Standardization/International Electrotechnical Commission standard bodies and dealing in particular with standards of the TCP/IP and Internet protocol suite....
.

In the early engineering stages of LDAP, it was known as Lightweight Directory Browsing Protocol, or LDBP. It was renamed as the scope of the protocol was expanded to include not only directory browsing and searching functions, but also directory update functions.

LDAP has influenced subsequent Internet protocols, including later versions of X.500, XML Enabled Directory
XML Enabled Directory

XML Enabled Directory is a framework for managing objects represented using the Extensible Markup Language . XED builds on X.500 and Lightweight Directory Access Protocol directory services technologies....
 (XED), Directory Service Markup Language
Directory Service Markup Language

Directory Service Markup Language is a representation of directory service information in an XML syntax.The DSML version 1 effort was announced by creator Bowstreet on July 12, 1999....
 (DSML), Service Provisioning Markup Language
SPML

SPML is an XML-based framework, being developed by OASIS , for exchanging user, resource and service provisioning information between cooperating organizations....
 (SPML), and the Service Location Protocol
Service Location Protocol

The Service Location Protocol is a service discovery protocol that allows computers and other devices to find services in a local area network without prior configuration....
 (SLP)

Protocol overview

A client starts an LDAP session by connecting to an LDAP server, by default on TCP
Transmission Control Protocol

The Transmission Control Protocol is one of the core protocols of the Internet Protocol Suite. TCP is so central that the entire suite is often referred to as "TCP/IP"....
 port
TCP and UDP port

In computer networking, a port is an application-specific or process-specific software construct serving as a communications endpoint used by Transport layer protocols of the Internet protocol suite such as Transmission Control Protocol and User Datagram Protocol ....
 389. The client then sends an operation request to the server, and the server sends responses in turn. With some exceptions, the client need not wait for a response before sending the next request, and the server may send the responses in any order.

The client may request the following operations:
  • Start TLS — use the LDAPv3 Transport Layer Security
    Transport Layer Security

    Transport Layer Security and its predecessor, Secure Sockets Layer , are cryptographic protocols that provide security and data integrity for communications over Internet Protocol Suite networks such as the Internet....
     (TLS) extension for a secure connection
  • Bind — authenticate
    Authentication

    Authentication is the act of establishing or confirming something as authentic, that is, that claims made by or about the subject are true....
     and specify LDAP protocol version
  • Search — search for and/or retrieve directory entries
  • Compare — test if a named entry contains a given attribute value
  • Add a new entry
  • Delete an entry
  • Modify an entry
  • Modify Distinguished Name (DN) — move or rename an entry
  • Abandon — abort a previous request
  • Extended Operation — generic operation used to define other operations
  • Unbind — close the connection (not the inverse of Bind)


In addition the server may send "Unsolicited Notifications" that are not responses to any request, e.g. before it times out a connection.

A common alternate method of securing LDAP communication is using an SSL tunnel. This is denoted in LDAP URLs by using the URL scheme "ldaps". The default port for LDAP over SSL is 636. The use of LDAP over SSL was common in LDAP Version 2 (LDAPv2) but it was never standardized in any formal specification. This usage has been deprecated along with LDAPv2, which was officially .

LDAP is defined in terms of ASN.1
Abstract Syntax Notation One

In telecommunications and computer networking, Abstract Syntax Notation One is a standardization and flexible notation that describes data structures for representing, encoding, transmitting, and decoding data....
, and protocol messages are encoded in the binary format BER
Basic Encoding Rules

The Basic Encoding Rules is one of the encoder formats defined as part of the ASN.1 standard specified by the ITU in X.690....
. It uses textual representations for a number of ASN.1 fields/types, however.

Directory structure

The protocol accesses LDAP directories, which follow the 1993 edition of the X.500
X.500

X.500 is a series of computer networking standards covering electronic directory services. The X.500 series was developed by ITU-T, formerly known as CCITT....
 model:

  • A directory is a tree of directory entries
    Directory Information Tree

    A Directory Information Tree is data represented in a hierarchical tree-like structure consisting of the Distinguished Names of directory service entries....
    .
  • An entry consists of a set of attributes.
  • An attribute has a name (an attribute type or attribute description) and one or more values. The attributes are defined in a schema (see below).
  • Each entry has a unique identifier: its Distinguished Name (DN). This 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.


Be aware that a DN may change over the lifetime of the entry, for instance, when entries are moved within a tree. To reliably and unambiguously identify entries, a UUID might be provided in the set of the entry's operational attributes.

An entry can look like this when represented in LDAP Data Interchange Format (LDIF)
LDAP Data Interchange Format

The LDAP Data Interchange Format is a standard plain text data interchange format for representing Lightweight Directory Access Protocol directory content and update requests....
 (LDAP itself is a binary protocol
Binary protocol

A binary protocol is a network protocol which is intended or expected to be read by a machine rather than a human being, as opposed to a plain text protocol such as IRC, SMTP, or []....
):

dn: cn=John Doe,dc=example,dc=com cn: John Doe givenName: John sn: Doe telephoneNumber: +1 888 555 6789 telephoneNumber: +1 888 555 1232 mail: john@example.com manager: cn=Barbara Doe,dc=example,dc=com objectClass: inetOrgPerson objectClass: organizationalPerson objectClass: person objectClass: top

dn is the name of the entry; it's not an attribute nor part of the entry. "cn=John Doe" is the entry's RDN, and "dc=example,dc=com" is the DN of the parent entry, where dc denotes Domain Component. The other lines show the attributes in the entry. Attribute names are typically mnemonic strings, like "cn" for common name, "dc" for domain component, "mail" for e-mail address and "sn" for surname.

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, so 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. The client can then contact the other server. Some servers also support chaining, which means the server contacts the other server and returns the results to the client.

LDAP rarely defines any ordering: The server may return the values of an attribute, the attributes in an entry, and the entries found by a search operation in any order. This follows from the formal definitions - an entry is defined as a set
Set

A set is a collection of distinct objects, considered as an object in its own right. Sets are one of the most fundamental concepts in mathematics....
 of attributes, and an attribute is a set of values, and sets need not be ordered.

Operations

The client gives each request a positive Message ID, and the server response has the same Message ID. The response includes a numeric result code which indicates success, some error condition or some other special cases. Before the response, the server may send other messages with other result data - for example each entry found by the Search operation is returned in such a message.

Expand discussion of referral responses to various operations, especially modify, for example where all modifies must be directed from replicas to a master directory.


StartTLS

The StartTLS operation establishes Transport Layer Security
Transport Layer Security

Transport Layer Security and its predecessor, Secure Sockets Layer , are cryptographic protocols that provide security and data integrity for communications over Internet Protocol Suite networks such as the Internet....
 (the descendant of SSL
Transport Layer Security

Transport Layer Security and its predecessor, Secure Sockets Layer , are cryptographic protocols that provide security and data integrity for communications over Internet Protocol Suite networks such as the Internet....
) on the connection. That can provide data confidentiality (to protect data from being observed by third parties) and/or data integrity protection (which protects the data from tampering). During TLS negotiation the server sends its X.509
X.509

In cryptography, X.509 is an ITU-T standard for a public key infrastructure for single sign-on and Privilege Management Infrastructure . X.509 specifies, amongst other things, standard formats for public key certificates, certificate revocation lists, attribute certificates, and a certification path validation algorithm....
 certificate to prove its identity. The client may also send a certificate to prove its identity. After doing so, the client may then use SASL
Simple Authentication and Security Layer

Simple Authentication and Security Layer is a framework for authentication and data security in Internet communications protocols. It decouples authentication mechanisms from application protocols, in theory allowing any authentication mechanism supported by SASL to be used in any application protocol that uses SASL....
/EXTERNAL to have this identity used in determining the identity used in making LDAP authorization decisions.

Servers also often support the non-standard "LDAPS" ("Secure LDAP", commonly known as "LDAP over SSL") protocol on a separate port, by default 636. LDAPS differs from LDAP in two ways: 1) upon connect, the client and server establish TLS before any LDAP messages are transferred (without a Start TLS operation) and 2) the LDAPS connection must be closed upon TLS closure.

LDAPS was primarily used with LDAPv2, because the StartTLS operation had not yet been defined. The use of LDAPS is deprecated, and modern software should only use StartTLS.

Bind (authenticate)

The Bind operation authenticates the client to the server. Simple Bind can send the user's DN and password in plaintext
Plaintext

In cryptography, plaintext is the information which the sender wishes to transmit to the receiver. Before the computer era, plaintext simply meant text in the language of the communicating parties....
, so the connection should be protected using Transport Layer Security
Transport Layer Security

Transport Layer Security and its predecessor, Secure Sockets Layer , are cryptographic protocols that provide security and data integrity for communications over Internet Protocol Suite networks such as the Internet....
 (TLS). The server typically checks the password against the userPassword attribute in the named entry. Anonymous Bind (with empty DN and password) resets the connection to anonymous state. SASL
Simple Authentication and Security Layer

Simple Authentication and Security Layer is a framework for authentication and data security in Internet communications protocols. It decouples authentication mechanisms from application protocols, in theory allowing any authentication mechanism supported by SASL to be used in any application protocol that uses SASL....
 (Simple Authentication and Security Layer) Bind provides authentication services through a wide range of mechanisms, e.g. Kerberos or the client certificate sent with TLS.

Bind also sets the LDAP protocol version. Normally clients should use LDAPv3, which is the default in the protocol but not always in LDAP libraries.

Bind had to be the first operation in a session in LDAPv2, but is not required in LDAPv3 (the current LDAP version).

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.

The server returns the matching entries and maybe continuation references (in any order), followed by the final result with the result code.

The Compare operation takes a DN, an attribute name and an attribute value, and checks if the named entry contains that attribute with that value.

Update Data

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: Delete the attribute or some values, add new values, or replace the current values with the new ones.

Add operations also can have additional attributes and values for those attributes.

Modify DN (move/rename entry) takes the new RDN (Relative Distinguished Name), optionally the new parent's DN, and a flag which says whether to delete the value(s) in the entry which match the old RDN. The server may support renaming of entire directory subtrees.

An update operation is atomic: Other operations will see either the new entry or the old one. On the other hand, LDAP does not define transactions of multiple operations: If you read an entry and then modify it, another client may have updated the entry in the mean time. Servers may implement extensions which support this, however.

Extended operations

The Extended Operation is a generic LDAP operation which can be used to define new operations. Examples include the Cancel, Password Modify and Start TLS operations.

Abandon

The Abandon operation requests that the server aborts an operation named by a message ID. The server need not honor the request. Unfortunately, neither Abandon nor a successfully abandoned operation send a response. A similar Cancel extended operation has therefore been defined which does send responses, but not all implementations support this.

Unbind

The Unbind operation abandons any outstanding operations and closes the connection. It has no response. The name is of historical origin: It is not the opposite of the Bind operation.

Clients can abort a session by simply closing the connection, but they should use Unbind. Otherwise the server cannot tell the difference between a failed network connection (or a truncation attack) and a discourteous client.

LDAP URLs

An LDAP URL
Uniform Resource Locator

In Information technology, a Uniform Resource Locator is a type of Uniform Resource Identifier that specifies where an identified resource is available and the mechanism for retrieving it....
 format exists which clients support in varying degree, and which servers return in referrals and continuation references (see RFC 4516):

ldap://host:port/DN?attributes?scope?filter?extensions

Most of the components, which are described below, are optional.

  • host is the FQDN or IP address of the LDAP server to search.
  • port is the network port of the LDAP server.
  • DN is the distinguished name to use as the search base.
  • attributes is a comma-separated list of attributes to retrieve.
  • scope specifies the search scope and can be "base" (the default), "one" or "sub".
  • filter is a search filter, e.g. (objectClass=*) (see RFC 4515).
  • extensions are extensions to the LDAP URL format.


For example, "ldap://ldap.example.com/cn=John%20Doe,dc=example,dc=com" refers to all user attributes in John Doe's entry in ldap.example.com, while "ldap:///dc=example,dc=com??sub?(givenName=John)" searches for the entry in the default server. As in other URLs, special characters must be percent-encoded
Percent-encoding

Percent-encoding, also known as URL encoding, is a mechanism for code information in a Uniform Resource Identifier under certain circumstances....
.

There is a similar non-standard "ldaps:" URL scheme for LDAP over SSL.

Schema

The contents of the entries in a subtree are governed by a schema
Logical schema

A Logical Schema is a data model problem domain expressed in terms of a particular data management technology. Without being specific to a particular database management product, it is in terms of either relational tables and columns, object-oriented classes, or XML tags....
.

The schema defines the attribute types that directory entries can contain. An attribute definition includes a syntax, and most non-binary values in LDAPv3 use UTF-8
UTF-8

UTF-8 is a Variable-width encoding character encoding for Unicode. It is able to represent any character in the Unicode standard, yet the initial encoding of byte codes and character assignments for UTF-8 is backward compatibility with ASCII....
 string syntax. For example, a "mail" attribute might contain the value "user@example.com". A "jpegPhoto" attribute would contain photograph(s) in binary JPEG
JPEG

In computing, JPEG is a commonly used method of for photographic images. The degree of compression can be adjusted, allowing a selectable tradeoff between storage size and image quality....
/JFIF format. A "member" attribute contains DNs of other directory entries. Attribute definitions also specify whether the attribute is single-valued or multi-valued, how to search/compare the attribute (e.g. case-sensitive vs. case-insensitive and whether substring matching is supported), etc.

The schema defines object classes. Each entry must have an objectClass attribute, containing named classes defined in the schema. The schema definition of the classes of an entry defines what kind of object the entry may represent - e.g. a person, organization or domain. The object class definitions also list which attributes are obligatory and which are optional. For example, an entry representing a person might belong to the classes "top" and "person". Membership in the "person" class would require the entry to contain the "sn" and "cn" attributes, and allow the entry also to contain "userPassword", "telephoneNumber", and other attributes. Since entries may belong to multiple classes, each entry has a complex of optional and mandatory attribute sets formed from the union of the object classes it represents. ObjectClasses can be inherited, and a single entry can have multiple objectClasses to define the available and required attributes of the entry itself. A parallel to the schema of an objectClass is a class
Class (computer science)

In object-oriented programming, a class is a programming language construct that is used as a blueprint to create Object s. This blueprint includes Attribute s and Method s that the created objects all share....
 definition and an instance in Object-oriented programming
Object-oriented programming

Object-oriented programming is a programming paradigm that uses "Object_" and their interactions to design applications and computer programs....
, representing LDAP objectClass and LDAP entry, respectively.

The schema also includes various other information controlling directory entries.

Most schema elements have a name and a globally unique Object identifier
Object identifier

In computing, an object identifier or OID is an identifier used to name an object . Structurally, an OID consists of a node in a hierarchically-assigned Namespace , formally defined using the ITU-T's Abstract syntax notation one standard....
 (OID).

Directory servers may publish the directory schema controlling an entry at a base DN given by the entry's subschemaSubentry operational attribute. (An operational attribute describes operation of the directory rather than user information and is only returned from a search when it is explicitly requested.)

Server administrators can define their own schemas in addition to the standard ones. A schema for representing individual people within organizations is termed a white pages schema
White pages schema

A white pages schema is a data model, specifically a logical schema, for organizing the data contained in entries in a directory service, database, or application, such as an address book....
.

Variations

A lot of the server operation is left to the implementor or administrator to decide. Accordingly, servers may be set up to support a wide variety of scenarios.

For example, data storage in the server is not specified - the server may use flat files, databases, or just be a gateway to some other server. Access control is not standardized, though there has been work on it and there are commonly used models. Users' passwords may be stored in their entries or elsewhere. The server may refuse to perform operations when it wishes, and impose various limits.

Most parts of LDAP are extensible. Examples: One can define new operations. Controls may modify requests and responses, e.g. to request sorted search results. New search scopes and Bind methods can be defined. Attributes can have options that may modify their semantics.

Other data models

As LDAP has gained momentum, vendors have provided it as an access protocol to other services. The implementation then recasts the data to mimic the LDAP/X.500 model, but how closely this model is followed varies. For example, there is software to access SQL
SQL

SQL is a database computer language designed for the retrieval and management of data in relational database management systems , database schema creation and modification, and database object access control management....
 databases through LDAP, even though LDAP does not readily lend itself to this. X.500
X.500

X.500 is a series of computer networking standards covering electronic directory services. The X.500 series was developed by ITU-T, formerly known as CCITT....
 servers may support LDAP as well.

Similarly, data which were previously held in other types of data stores are sometimes moved to LDAP directories. For example, Unix user and group information can be stored in LDAP and accessed via PAM
Pluggable Authentication Modules

Pluggable authentication modules or PAM are a mechanism to integrate multiple low-level authentication schemes into a high-level application programming interface , which allows programs that rely on authentication to be written independently of the underlying authentication scheme....
 and NSS
Name Service Switch

In Unix-like operating systems, the Name Service Switch allows Unix configuration databases to be provided by different sources, including local files , LDAP, and other sources....
 modules. LDAP is often used by other services for authentication.

Usage


Applications

One reason to choose LDAP for a service is that it is quite widely supported, and data presented in LDAP is thus immediately available to many clients and libraries including web applications like Joomla & PHPBB. Another is that LDAP is very general and includes basic security, and can support many types of applications.

Thus, if one chooses a few general protocols like LDAP and HTTP
Hypertext Transfer Protocol

Hypertext Transfer Protocol is an application-level protocol for distributed, collaborative, hypermedia information systems. Its use for retrieving inter-linked resources led to the establishment of the World Wide Web....
 for various services, one can focus on these few protocols instead of having to maintain and upgrade many specialized protocols.

Two common applications of LDAP are for computer user/group data, and for address book information (persons, departments etc). Many e-mail clients support LDAP lookups.

Tasks LDAP does not handle well include modelling relational databases and preserving the order of data. (However, an extension does exist for the latter.)

Naming structure

Since an LDAP server can return referrals to other servers for requests the server itself will not/can not serve, a naming structure for LDAP entries is needed so one can find a server holding a given DN. Since such a structure already exists in the Domain name system
Domain name system

The Domain Name System is a hierarchical naming system for computers, services, or any resource participating in the Internet. It associates various information with domain names assigned to such participants....
 (DNS), servers' top level names often mimic DNS names.

If an organization has domain name foo.example, its top level LDAP entry will therefore typically have the DN dc=foo,dc=example (where dc means domain component). If the LDAP server is also named ldap.foo.example, the organization's top level LDAP URL becomes ldap://ldap.foo.example/dc=foo,dc=example.

Below the top level, the entry names will typically reflect the organization's internal structure or needs rather than DNS names.

This is also a descendent of the X.500 series. ..

Terminology

The LDAP terminology one can encounter is rather cumbersome. Some of this is due to misunderstandings, other examples are due to its historical origins, others arise when used with non-X.500 services that use different terminology. For example, "LDAP" is sometimes used to refer to the protocol, other times to the protocol and the data. An "LDAP directory" may be the data or also the access point. An "attribute" may be the attribute type, or the contents of an attribute in a directory, or an attribute description (an attribute type with options). An "anonymous" and an "unauthenticated" Bind are different Bind methods that both produce anonymous authentication state, so both terms are being used for both variants. The "uid" attribute should hold user names rather than numeric user IDs.

See also

  • Directory service
    Directory service

    In software engineering, a directory is similar to a dictionary; it enables the look up of a name and information associated with that name. As a word in a dictionary may have multiple definitions, in a directory, a name may be associated with multiple, different, pieces of information....
  • Key server (cryptographic)
    Key server (cryptographic)

    In computer security, a key server is a computer — typically running special software — which provides cryptographic key s to users or other programs....
  • LDAP Data Interchange Format
    LDAP Data Interchange Format

    The LDAP Data Interchange Format is a standard plain text data interchange format for representing Lightweight Directory Access Protocol directory content and update requests....
     (LDIF)
  • LDAP Application Program Interface
    LDAP Application Program Interface

    The LDAP Application Program Interface, described by RFC 1823, is an Informational Request for Comments that specifies an application programming interface in the C for version 2 of the Lightweight Directory Access Protocol....
  • List of LDAP software
    List of LDAP software

    The following is a list of software programs that can communicate with and/or host directory services via the Lightweight Directory Access Protocol....
  • Simple Authentication and Security Layer
    Simple Authentication and Security Layer

    Simple Authentication and Security Layer is a framework for authentication and data security in Internet communications protocols. It decouples authentication mechanisms from application protocols, in theory allowing any authentication mechanism supported by SASL to be used in any application protocol that uses SASL....
     (SASL)
  • Transport Layer Security
    Transport Layer Security

    Transport Layer Security and its predecessor, Secure Sockets Layer , are cryptographic protocols that provide security and data integrity for communications over Internet Protocol Suite networks such as the Internet....
     (TLS)
  • X.500
    X.500

    X.500 is a series of computer networking standards covering electronic directory services. The X.500 series was developed by ITU-T, formerly known as CCITT....


External links


  • A simple, light introductory tutorial for LDAP.




Configuration








Tools


  • .


LDAP forums

  • "#ldap" IRC channel in the freenode
    Freenode

    freenode, formerly known as Open Projects Network, is a popular Internet Relay Chat computer network used to discuss peer-directed projects....
     IRC network
  • - The IETF Working Group
    Working Group

    Working Group can mean:*Working group, an interdisciplinary group of researchers; or*Working Group , kennel club designation for certain purebred dog breeds; or...
    , now concluded, was chartered with revising the LDAPv3 specifications. The WG produced a number of RFCs, including the revised LDAP Technical Specification detailed in RFC 4510. The WG mailing list remains available for technical discussions regarding the LDAP Technical Specification.
  • [https://www1.ietf.org/mailman/listinfo/ldapext IETF LDAPext mailing list] - The IETF Working Group, now concluded, was charted with producing a set of LDAP extensions. The WG mailing list remains available for technical discussions regarding the LDAP extension specifications.
  • International Conference on LDAP


RFCs

LDAP is currently specified in a series of Request for Comments
Request for Comments

In computer network engineering, a request for comments is a memorandum published by the Internet Engineering Task Force describing methods, behaviors, research, or innovations applicable to the working of the Internet and Internet-connected systems....
 documents:
  • RFC 4510 - Lightweight Directory Access Protocol (LDAP) Technical Specification Roadmap (replaced the previous LDAP Technical specification, RFC 3377, in its entirety)
  • RFC 4511 - Lightweight Directory Access Protocol (LDAP): The Protocol
  • RFC 4512 - Lightweight Directory Access Protocol (LDAP): Directory Information Models
  • RFC 4513 - Lightweight Directory Access Protocol (LDAP): Authentication Methods and Security Mechanisms
  • RFC 4514 - Lightweight Directory Access Protocol (LDAP): String Representation of Distinguished Names
  • RFC 4515 - Lightweight Directory Access Protocol (LDAP): String Representation of Search Filters
  • RFC 4516 - Lightweight Directory Access Protocol (LDAP): Uniform Resource Locator
  • RFC 4517 - Lightweight Directory Access Protocol (LDAP): Syntaxes and Matching Rules
  • RFC 4518 - Lightweight Directory Access Protocol (LDAP): Internationalized String Preparation
  • RFC 4519 - Lightweight Directory Access Protocol (LDAP): Schema for User Applications


The following RFCs detail LDAP-specific Best Current Practices:
  • RFC 4520 (also BCP 64) - Internet Assigned Numbers Authority (IANA) Considerations for the Lightweight Directory Access Protocol (LDAP) (replaced RFC 3383)
  • RFC 4521 (also BCP 118) - Considerations for Lightweight Directory Access Protocol (LDAP) Extensions


The following is a partial list of RFCs specifying LDAPv3 extensions:
  • RFC 2247 - Use of DNS
    Domain name system

    The Domain Name System is a hierarchical naming system for computers, services, or any resource participating in the Internet. It associates various information with domain names assigned to such participants....
     domains in distinguished names
  • RFC 2307 - Using LDAP as a Network Information Service
    Network Information Service

    The Network Information Service or NIS consists of a client-server directory service protocol for distributing system configuration data such as user and host names between computers on a computer network....
  • RFC 2589 - LDAPv3: Dynamic Directory Services Extensions
  • RFC 2649 - LDAPv3 Operational Signatures
  • RFC 2696 - LDAP Simple Paged Result Control
  • RFC 2798 - inetOrgPerson LDAP Object Class
  • RFC 2829 - Authentication Methods for LDAP
  • RFC 2830 - LDAPv3: Extension for Transport Layer Security
  • RFC 2849 - The LDAP Data Interchange Format (LDIF)
  • RFC 2891 - Server Side Sorting of Search Results
  • RFC 3045 - Storing Vendor Information in the LDAP root DSE
  • RFC 3062 - LDAP Password Modify Extended Operation
  • RFC 3296 - Named Subordinate References in LDAP Directories
  • RFC 3671 - Collective Attributes in LDAP
  • RFC 3672 - Subentries in LDAP
  • RFC 3673 - LDAPv3: All Operational Attributes
  • RFC 3687 - LDAP Component Matching Rules
  • RFC 3698 - LDAP: Additional Matching Rules
  • RFC 3829 - LDAP Authorization Identity Controls
  • RFC 3866 - Language Tags and Ranges in LDAP
  • RFC 3909 - LDAP Cancel Operation
  • RFC 3928 - LDAP Client Update Protocol
  • RFC 4370 - LDAP Proxied Authorization Control
  • RFC 4373 - LBURP
  • RFC 4403 - LDAP Schema for UDDI
  • RFC 4522 - LDAP: Binary Encoding Option
  • RFC 4523 - LDAP: X.509 Certificate Schema
  • RFC 4524 - LDAP: COSINE Schema (replaces RFC 1274)
  • RFC 4525 - LDAP: Modify-Increment Extension
  • RFC 4526 - LDAP: Absolute True and False Filters
  • RFC 4527 - LDAP: Read Entry Controls
  • RFC 4528 - LDAP: Assertion Control
  • RFC 4529 - LDAP: Requesting Attributes by Object Class
  • RFC 4530 - LDAP: entryUUID
  • RFC 4531 - LDAP Turn Operation
  • RFC 4532 - LDAP Who am I? Operation
  • RFC 4533 - LDAP Content Sync Operation
  • RFC 4876 - Configuration Profile Schema for LDAP-Based Agents
  • RFC 5020 - LDAP entryDN Operational Attribute


LDAPv2 was specified in the following RFCs:
  • RFC 1777 - Lightweight Directory Access Protocol (replaced RFC 1487)
  • RFC 1778 - The String Representation of Standard Attribute Syntaxes (replaced RFC 1488)
  • RFC 1779 - A String Representation of Distinguished Names (replaced RFC 1485)


LDAPv2 was moved to historic status by the following RFC:
  • RFC 3494 - Lightweight Directory Access Protocol version 2 (LDAPv2) to Historic Status