Ubuntu LDAP
Ubuntu LDAP
Introduction
The Lightweight Directory Access Protocol, or LDAP, is a protocol for querying and
modifying a X.500-based directory service running over TCP/IP. The current LDAP version
is LDAPv3, as defined in RFC4510, and the implementation used in Ubuntu is OpenLDAP.
The LDAP protocol accesses directories. A common mistake is to call a directory an LDAP
directory, or LDAP database, but it’s really so common, and we all know what we are talking
about, that it’s ok. Here are some key concepts and terms:
Note
The terms object, container, and node have certain connotations but they all essentially mean
the same thing as entry, the technically correct term.
For example, below we have a single entry consisting of 11 attributes where the following is
true:
DN is “cn=John Doe,dc=example,dc=com”
RDN is “cn=John Doe”
parent DN is “dc=example,dc=com”
Such a directory accessed via LDAP is good for anything that involves a large number of
access requests to a mostly-read, attribute-based (name:value) backend, and that can benefit
from a hierarchical structure. Examples include an address book, company directory, a list of
email addresses, and a mail server’s configuration.
References
The OpenLDAP administrators guide
RFC 4515: LDAP string representation of search filters
Zytrax’s LDAP for Rocket Scientists; a less pedantic but comprehensive treatment of
LDAP