Monday, March 1, 2010

Lightweight Directory Access Protocol

The Lightweight Directory Access Protocol, or LDAP ,is an application protocol for querying and modifying directory services running over TCP/IP.

A directory is a set of objects with attributes organized in a logical and hierarchical manner. A simple example is the telephone directory, which consists of a list of names (of either persons or organizations) organized alphabetically, with each name having an address and phone number associated with it.

An LDAP directory tree often reflects various political, geographic, and/or organizational boundaries, depending on the model chosen. LDAP deployments today tend to use Domain Name System (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 (IETF) Standard Track Requests for comments (RFCs) as detailed in RFC 4510

A client starts an LDAP session by connecting to an LDAP server, called a Directory System Agent (DSA), by default on TCP port 389. The client then sends an operation request to the server, and the server sends responses in return. With some exceptions, the client does not need to 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 (TLS) extension for a secure connection
    * Bind — authenticate 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)

Reference links

0 comments:

Post a Comment