samba  4.5.1
About: Samba is the standard Windows interoperability suite of programs for Linux and Unix providing secure, stable and fast file and print services for all clients using the SMB/CIFS protocol. 4.5 series.
  Fossies Dox: samba-4.5.1.tar.gz  ("inofficial" and yet experimental doxygen-generated source code documentation)  

ldb

Overview

ldb is a LDAP-like embedded database. It is not at all LDAP standards compliant, so if you want a standards compliant database then please see the excellent OpenLDAP project.

What ldb does is provide a fast database with an LDAP-like API designed to be used within an application. In some ways it can be seen as a intermediate solution between key-value pair databases and a real LDAP database.

ldb is the database engine used in Samba4.

Features

The main features that separate ldb from other solutions are:

  • Safe multi-reader, multi-writer, using byte range locking
  • LDAP-like API
  • fast operation
  • choice of local tdb, local sqlite3 or remote LDAP backends
  • integration with talloc
  • schema-less operation, for trivial setup
  • modules for extensions (such as schema support)
  • easy setup of indexes and attribute properties
  • ldbedit tool for database editing (reminiscent of 'vipw')
  • ldif for import/export

Documentation

ldb has limited programmer and administrator documentation:

If you need more information than is presented in this document, you may wish to look at the source code, especially the source code in the tools directory.

ldb makes use of the LDAP Data Interchange Format (LDIF), which is documented in RFC 2849.

Support

ldb does not currently have its own mailing list or bug tracking system. For now, please use the samba-technical mailing list, and the Samba bugzilla bug tracking system.

Download

You can download the latest release either via rsync or anonymous svn. To fetch via svn use the following commands:

  svn co svn://svnanon.samba.org/samba/branches/SAMBA_4_0/source/lib/ldb ldb
  svn co svn://svnanon.samba.org/samba/branches/SAMBA_4_0/source/lib/tdb tdb
  svn co svn://svnanon.samba.org/samba/branches/SAMBA_4_0/source/lib/talloc talloc

To fetch via rsync use these commands:

  rsync -Pavz samba.org::ftp/unpacked/samba4/source/lib/ldb .
  rsync -Pavz samba.org::ftp/unpacked/samba4/source/lib/tdb .
  rsync -Pavz samba.org::ftp/unpacked/samba4/source/lib/talloc .

Credits

ldb is another product of the prolific Andrew Tridgell.