| 1 | <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
|
|---|
| 2 | <HTML>
|
|---|
| 3 | <HEAD>
|
|---|
| 4 | <TITLE>ldb</TITLE>
|
|---|
| 5 | </HEAD>
|
|---|
| 6 | <BODY BGCOLOR="#ffffff" TEXT="#000000" VLINK="#292555" LINK="#292555" ALINK="#cc0033">
|
|---|
| 7 |
|
|---|
| 8 | <h1>ldb</h1>
|
|---|
| 9 |
|
|---|
| 10 | ldb is a LDAP-like embedded database. It is not at all LDAP standards
|
|---|
| 11 | compliant, so if you want a standards compliant database then please
|
|---|
| 12 | see the excellent <a href="http://www.openldap.org/">OpenLDAP</a>
|
|---|
| 13 | project.<p>
|
|---|
| 14 |
|
|---|
| 15 | What ldb does is provide a fast database with an LDAP-like API
|
|---|
| 16 | designed to be used within an application. In some ways it can be seen
|
|---|
| 17 | as a intermediate solution between key-value pair databases and a real
|
|---|
| 18 | LDAP database.<p>
|
|---|
| 19 |
|
|---|
| 20 | ldb is the database engine used in Samba4.
|
|---|
| 21 |
|
|---|
| 22 | <h2>Features</h2>
|
|---|
| 23 |
|
|---|
| 24 | The main features that separate ldb from other solutions are:
|
|---|
| 25 |
|
|---|
| 26 | <ul>
|
|---|
| 27 | <li>Safe multi-reader, multi-writer, using byte range locking
|
|---|
| 28 | <li>LDAP-like API
|
|---|
| 29 | <li>fast operation
|
|---|
| 30 | <li>choice of local tdb or remote LDAP backends
|
|---|
| 31 | <li>integration with <a href="http://talloc.samba.org">talloc</a>
|
|---|
| 32 | <li>schema-less operation, for trivial setup
|
|---|
| 33 | <li>modules for extensions (such as schema support)
|
|---|
| 34 | <li>easy setup of indexes and attribute properties
|
|---|
| 35 | <li>ldbedit tool for database editing (reminiscent of 'vipw')
|
|---|
| 36 | <li>ldif for import/export
|
|---|
| 37 | </ul>
|
|---|
| 38 |
|
|---|
| 39 | <h2>Documentation</h2>
|
|---|
| 40 |
|
|---|
| 41 | Currently ldb is completely lacking in programmer or user
|
|---|
| 42 | documentation. This is your opportunity to make a contribution! Start
|
|---|
| 43 | with the public functions declared in <a
|
|---|
| 44 | href="http://samba.org/ftp/unpacked/samba4/source/lib/ldb/include/ldb.h">ldb.h</a>
|
|---|
| 45 | and the example code in the <a
|
|---|
| 46 | href="http://samba.org/ftp/unpacked/samba4/source/lib/ldb/tools/">tools
|
|---|
| 47 | directory</a>. Documentation in the same docbook format used by Samba
|
|---|
| 48 | would be preferred.
|
|---|
| 49 |
|
|---|
| 50 | <h2>Discussion and bug reports</h2>
|
|---|
| 51 |
|
|---|
| 52 | ldb does not currently have its own mailing list or bug tracking
|
|---|
| 53 | system. For now, please use the <a
|
|---|
| 54 | href="https://lists.samba.org/mailman/listinfo/samba-technical">samba-technical</a>
|
|---|
| 55 | mailing list, and the <a href="http://bugzilla.samba.org/">Samba
|
|---|
| 56 | bugzilla</a> bug tracking system.
|
|---|
| 57 |
|
|---|
| 58 | <h2>Download</h2>
|
|---|
| 59 |
|
|---|
| 60 | You can download the latest release either via rsync or anonymous
|
|---|
| 61 | svn. To fetch via svn use the following commands:
|
|---|
| 62 |
|
|---|
| 63 | <pre>
|
|---|
| 64 | svn co svn://svnanon.samba.org/samba/branches/SAMBA_4_0/source/lib/ldb ldb
|
|---|
| 65 | svn co svn://svnanon.samba.org/samba/branches/SAMBA_4_0/source/lib/tdb tdb
|
|---|
| 66 | svn co svn://svnanon.samba.org/samba/branches/SAMBA_4_0/source/lib/talloc talloc
|
|---|
| 67 | svn co svn://svnanon.samba.org/samba/branches/SAMBA_4_0/source/lib/replace libreplace
|
|---|
| 68 | </pre>
|
|---|
| 69 |
|
|---|
| 70 | To fetch via rsync use these commands:
|
|---|
| 71 |
|
|---|
| 72 | <pre>
|
|---|
| 73 | rsync -Pavz samba.org::ftp/unpacked/ldb .
|
|---|
| 74 | rsync -Pavz samba.org::ftp/unpacked/tdb .
|
|---|
| 75 | rsync -Pavz samba.org::ftp/unpacked/talloc .
|
|---|
| 76 | rsync -Pavz samba.org::ftp/unpacked/libreplace .
|
|---|
| 77 | </pre>
|
|---|
| 78 |
|
|---|
| 79 | and build in ldb. It will find the other libraries in the directory
|
|---|
| 80 | above automatically.
|
|---|
| 81 |
|
|---|
| 82 | <hr>
|
|---|
| 83 | <tiny>
|
|---|
| 84 | <a href="http://samba.org/~tridge/">Andrew Tridgell</a><br>
|
|---|
| 85 | ldb AT tridgell.net
|
|---|
| 86 | </tiny>
|
|---|
| 87 |
|
|---|
| 88 | </BODY>
|
|---|
| 89 | </HTML>
|
|---|