summaryrefslogtreecommitdiffstats
path: root/lib/ldb-samba
Commit message (Collapse)AuthorAgeFilesLines
* Remove use of the "staticforward" macroPetr Viktorin2015-01-221-1/+1
| | | | | | | | | | This macro was used for compatibility with broken compilers. Since Python 2.3, it is always defined as `static`, and only exists "for source compatibility with old C extensions". Signed-off-by: Petr Viktorin <pviktori@redhat.com> Reviewed-by: Jelmer Vernooij <jelmer@samba.org> Reviewed-by: Andreas Schneider <asn@samba.org>
* lib/ldb-samba: Add comment dicouraging use of schemaUpgradeInProgressAndrew Bartlett2014-12-221-0/+10
| | | | | | | | | Signed-off-by: Garming Sam <garming@catalyst.net.nz> Pair-programmed-with: Garming Sam <garming@catalyst.net.nz> Signed-off-by: Andrew Bartlett <abartlet@samba.org> Autobuild-User(master): Garming Sam <garming@samba.org> Autobuild-Date(master): Mon Dec 22 02:42:42 CET 2014 on sn-devel-104
* ldb-samba-tests: Add tests for transitive matching ruleSamuel Cabrero2014-12-221-0/+473
| | | | | | | Signed-off-by: Samuel Cabrero <samuelcabrero@kernevil.me> Reviewed-by: Andrew Bartlett <abartlet@samba.org> Signed-off-by: Andrew Bartlett <abartlet@samba.org> Reviewed-by: Garming Sam <garming@catalyst.net.nz>
* ldb-samba: Implement transitive extended matchingSamuel Cabrero2014-12-224-1/+373
| | | | | | | | | | | | | | | | | | Documented in [MS-ADTS] section 3.1.1.3.4.4.3 LDAP_MATCHING_RULE_TRANSITIVE_EVAL This allows a search filter such as: member:1.2.840.113556.1.4.1941:=cn=user,cn=users,dc=samba,dc=example,dc=com This searches not only the member attribute, but also any member attributes that point at an object with this member in them. All the various DN syntax types are supported, not just plain DNs. Signed-off-by: Samuel Cabrero <samuelcabrero@kernevil.me> (abartlet: Fixed compile error: return makes integer from pointer without a cast) Signed-off-by: Andrew Bartlett <abartlet@samba.org> Reviewed-by: Andrew Bartlett <abartlet@samba.org> Reviewed-by: Garming Sam <garming@catalyst.net.nz>
* lib/ldb-samba: add ldif handler for msDS-TrustForestTrustInfoStefan Metzmacher2014-11-202-0/+21
| | | | | Signed-off-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Michael Adam <obnox@samba.org>
* ldb-samba: fix a memory leak in ldif_canonicalise_objectCategory()Stefan Metzmacher2014-07-171-1/+6
| | | | | | | | | | | | | Searches for '(objectCategory=Person)' will leak a ldb_dn structure on the ldb_context. These searches are typically used by Zarafa. Bug: https://bugzilla.samba.org/show_bug.cgi?id=10469 Signed-off-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Volker Lendecke <vl@samba.org> Autobuild-User(master): Stefan Metzmacher <metze@samba.org> Autobuild-Date(master): Thu Jul 17 00:51:57 CEST 2014 on sn-devel-104
* ldbsamba: Move pyldb-utils dependency to python_samba__ldbKai Blin2014-05-141-2/+2
| | | | | | | | | | | This allows to build smbd statically again. Pair-programmed-with: Stefan Metzmacher <metze@samba.org> Signed-off-by: Kai Blin <kai@samba.org> Signed-off-by: Stefan Metzmacher <metze@samba.org> Autobuild-User(master): Kai Blin <kai@samba.org> Autobuild-Date(master): Wed May 14 04:01:46 CEST 2014 on sn-devel-104
* ldb_ildap: Map some wrong username/password errors on to ↵Andrew Bartlett2014-04-021-1/+9
| | | | | | | | | | | | LDB_ERR_INVALID_CREDENTIALS This is better than just LDB_ERR_OPERATIONS_ERROR for all errors. Andrew Bartlett Change-Id: Id832cf02fcd1dc0347d5ab9eb9a2db78fda39dc6 Signed-off-by: Andrew Bartlett <abartlet@samba.org> Reviewed-by: Stefan Metzmacher <metze@samba.org>
* lib/ldb-samba: add more attributes with LDB_SYNTAX_SAMBA_GUIDStefan Metzmacher2014-02-111-4/+24
| | | | | Signed-off-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Guenther Deschner <gd@samba.org>
* lib/ldb-samba: fix a compiler warningChristian Ambach2013-12-121-0/+1
| | | | | | | about macro redefinition Signed-off-by: Christian Ambach <ambi@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org>
* lib/ldb-samba/ldb_ildap: Also skip special base DNsAndrew Bartlett2013-09-171-0/+3
| | | | | | | This is so we do not search for @REPLCHANGED against ldap Signed-off-by: Andrew Bartlett <abartlet@samba.org> Reviewed-by: Nadezhda Ivanova <nivanova@symas.com>
* lib/ldb-samba: only debug LDB_DEBUG_TRACE at level 10Stefan Metzmacher2013-07-091-1/+1
| | | | | Signed-off-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Björn Jacke <bj@sernet.de>
* lib/ldb-samba: make use of DBGC_LDBStefan Metzmacher2013-07-091-0/+2
| | | | | Signed-off-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Björn Jacke <bj@sernet.de>
* s4-dsdb: Avoid printing secret attributes in ldb trace logsAndrew Bartlett2012-08-291-0/+8
| | | | | | | | | | | These are printed when Samba has debug level 10, which is often used for debugging. To indicate that these attributes are secret, we set an opaque. Andrew Bartlett Autobuild-User(master): Andrew Bartlett <abartlet@samba.org> Autobuild-Date(master): Wed Aug 29 06:04:33 CEST 2012 on sn-devel-104
* LDB:ldif_handlers.c - LDB_OP_GREATER/LDB_OP_LESS are thought as ">=" or "<="Matthias Dieter Wallnöfer2012-08-221-2/+2
| | | | Signed-off-by: Andrew Bartlett <abartlet@samba.org>
* build: rename security → samba-securityBjörn Jacke2012-08-101-1/+1
| | | | | | | | | there is a libsecurity on OSF1 which clasheѕ with our security lib. see bug #9023. Signed-off-by: Stefan Metzmacher <metze@samba.org> Autobuild-User(master): Björn Jacke <bj@sernet.de> Autobuild-Date(master): Fri Aug 10 14:22:21 CEST 2012 on sn-devel-104
* s4-ldb_wrap: Do not vasprintf() the ldb debug messages that will not be shownAndrew Bartlett2012-08-091-5/+7
| | | | | | | | | | This malloc() and free() actually shows up quite high on a call profile of provision of the AD DC. Andrew Bartlett Autobuild-User(master): Andrew Bartlett <abartlet@samba.org> Autobuild-Date(master): Thu Aug 9 13:51:06 CEST 2012 on sn-devel-104
* ldb: use tdb directly, not tdb_compat.Rusty Russell2012-06-192-3/+4
| | | | | Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
* ldb_wrap.c: fix TDB2-incompatible API usage.Rusty Russell2012-01-301-1/+1
| | | | | | | | | Auditing revealed one place still expecting a -1 return on failure: tdb2 returns the (negative) errcode directly, so the portable way to do this is to check for != 0. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
* ldif-handler: Fix the case for attribute dnspropertyAmitay Isaacs2011-12-231-1/+1
|
* ldb-samba: Added handler to decode dnsProperty attributeAmitay Isaacs2011-10-202-0/+22
| | | | Signed-off-by: Andrew Tridgell <tridge@samba.org>
* s4-ldb: enable display of partialAttributeSet with --show-binaryAndrew Tridgell2011-10-042-1/+23
|
* s4-ldb: allow decoding of trustAuthIncoming and trustAuthOutgoingAndrew Tridgell2011-09-052-0/+23
| | | | | | | this allows --show-binary to display trustAuthOutgoing and trustAuthIncoming NDR blobs. Useful for debugging trust issues Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
* credentials: Rename library to samba-credentials to avoid name clashes.Jelmer Vernooij2011-08-181-1/+1
| | | | | Autobuild-User: Jelmer Vernooij <jelmer@samba.org> Autobuild-Date: Thu Aug 18 22:16:38 CEST 2011 on sn-devel-104
* pyldb: Consistently use pyldb_ prefix.Jelmer Vernooij2011-08-071-6/+6
|
* s4-ldb: two DNs only match if they have the same deletion statusAndrew Tridgell2011-08-041-0/+13
| | | | | Autobuild-User: Andrew Tridgell <tridge@samba.org> Autobuild-Date: Thu Aug 4 09:34:08 CEST 2011 on sn-devel-104
* ldb: changed DN matching rules to obey GUID/SID/string orderingAndrew Tridgell2011-08-041-0/+54
| | | | | | | | when matching two DNs, the GUID takes priority, then the SID, then the string component Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org> Pair-Programmed-With: Amitay Isaacs <amitay@gmail.com>
* ldb-samba: Explain the current behaviour of ldif_canonicalise_objectCategoryAndrew Bartlett2011-08-031-2/+7
|
* ldb-samba: Allow --show-binary flag on defaultSecurityDescriptorAmitay Isaacs2011-07-282-0/+31
| | | | | | | | This allows users to display defaultSecurityDescriptor in fully expanded form. Pair-Programmed-With: Andrew Tridgell <tridge@samba.org> Signed-off-by: Andrew Tridgell <tridge@samba.org>
* ldb: make ldb a top level library for Samba 4.0Andrew Bartlett2011-07-059-0/+3191
Signed-off-by: Andrew Tridgell <tridge@samba.org>