summaryrefslogtreecommitdiffstats
path: root/lib/ldb/common
Commit message (Collapse)AuthorAgeFilesLines
* ldb: added ldb_msg_element_equal_ordered()Andrew Tridgell2012-04-181-0/+20
| | | | | this gives us a order sensitive msg element comparison. We need this to allow dbcheck to fix the order of objectClass attributes.
* LDB:ldb_msg.c - add another OOM check in "ldb_msg_copy()"Matthias Dieter Wallnöfer2012-04-111-0/+1
|
* ldb: Allow access to the line number while reading ldif from a fileAndrew Bartlett2012-04-101-6/+13
|
* ldb:ldb/common/ldb_controls.c - reference "err_string" variable correctlyMatthias Dieter Wallnöfer2012-01-021-1/+1
| | | | Signed-off-by: Stefan Metzmacher <metze@samba.org>
* ldb: fix compiler warningDavid Disseldorp2011-11-021-1/+1
| | | | | | | Mixed declarations and code. Autobuild-User: David Disseldorp <ddiss@samba.org> Autobuild-Date: Wed Nov 2 16:51:24 CET 2011 on sn-devel-104
* ldb:common/ldb_modules.c - fix a typo in commentMatthias Dieter Wallnöfer2011-10-271-1/+1
| | | | Reviewed-by: abartlet
* ldb: ldb_errstring() takes ldb_contxt as an argumentAmitay Isaacs2011-10-201-1/+1
| | | | Signed-off-by: Andrew Tridgell <tridge@samba.org>
* dsdb: improve debug messageAndrew Tridgell2011-10-201-3/+3
| | | | | | | show the reply type in "Invalid reply type" messages Autobuild-User: Andrew Tridgell <tridge@samba.org> Autobuild-Date: Thu Oct 20 00:57:05 CEST 2011 on sn-devel-104
* ldb: Output more error information when a connect failsAndrew Bartlett2011-10-181-1/+1
|
* ldb:ldb_autotransaction_request - error string shouldn't be set hereMatthias Dieter Wallnöfer2011-10-111-5/+0
| | | | | | | | | | | A generic error string should be set independently of the access mechanism to an LDB operation. Hence it should be handled in "ldb_wait" and "ldb_request" Signed-off-by: Andrew Tridgell <tridge@samba.org> Autobuild-User: Andrew Tridgell <tridge@samba.org> Autobuild-Date: Tue Oct 11 10:15:18 CEST 2011 on sn-devel-104
* ldb:ldb.c/"ldb_wait" - make "ldb_wait" always return an error stringMatthias Dieter Wallnöfer2011-10-111-4/+39
| | | | Signed-off-by: Andrew Tridgell <tridge@samba.org>
* ldb:ldb.c/"ldb_wait" - change "ldb_wait" slightly in order to introduce ↵Matthias Dieter Wallnöfer2011-10-111-3/+5
| | | | | | | | | | | | | | | error messages In this occasion remove a redundant check for "LDB_ASYNC_DONE": if (handle->state == LDB_ASYNC_DONE || if (handle->state == LDB_ASYNC_DONE) handle->status != LDB_SUCCESS) { return handle->status; return handle->status; == if (handle->status != LDB_SUCCESS) } return handle->status; ... ... return LDB_SUCCESS; return LDB_SUCCESS; Signed-off-by: Andrew Tridgell <tridge@samba.org>
* ldb:ldb.c/"ldb_request" - make "ldb_request" always return an error stringMatthias Dieter Wallnöfer2011-10-111-1/+15
| | | | Signed-off-by: Andrew Tridgell <tridge@samba.org>
* ldb:ldb.c - "ldb_set_errstring" can be implemented by using ↵Matthias Dieter Wallnöfer2011-10-111-10/+7
| | | | | | "ldb_asprintf_errstring" Signed-off-by: Andrew Tridgell <tridge@samba.org>
* ldb:ldb_autotransaction_request - fix a typo in a commentMatthias Dieter Wallnöfer2011-10-111-1/+1
| | | | Signed-off-by: Andrew Tridgell <tridge@samba.org>
* Revert "ldb: support raw OIDs in control string parsing"Stefan Metzmacher2011-10-071-18/+0
| | | | | | | | This reverts commit ea41860d32d38448e08cefd79d30ee1150317a9e. This is not needed, because we already have the 'local_oid' magic. metze
* ldb/ldb_controls: allow oid up to 255 charsStefan Metzmacher2011-10-071-1/+1
| | | | | | We have char oid[256], so allow sscanf() to consume 255 chars. metze
* ldb: support raw OIDs in control string parsingAndrew Tridgell2011-10-061-0/+18
| | | | | | | this makes it possible to use a raw OID string on the command line or in python scripts Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
* ldb: fixed memory leak in control string parsingAndrew Tridgell2011-10-061-0/+24
| | | | | | if parsing fails, free ctrl Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
* ldb:"ldb_extended" -make the call more similar to "ldb_search"Matthias Dieter Wallnöfer2011-09-191-2/+6
| | | | | | For example NULL out the LDB result pointer on failures. Signed-off-by: Andrew Tridgell <tridge@samba.org>
* ldb:ldb_controls.c - remove duplicate definition of "LDB_CONTROL_CMP"Matthias Dieter Wallnöfer2011-09-111-11/+3
| | | | | | And fix the comment Reviewed-by: Jelmer
* ldb:ldb_controls.c - cosmetic indentation fixMatthias Dieter Wallnöfer2011-08-191-5/+4
|
* ldb: fix the canonicalisation of booleansAndrew Tridgell2011-08-091-3/+3
| | | | | | we were canonicalising "FALSE" to "FALS" Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
* ldb: added a new always-fail ldap extended match OIDAndrew Tridgell2011-08-041-1/+12
| | | | | | | this is used when rewriting filter rules to replace a filter rule with one that is guaranteed not to match Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
* ldb: added ldb_parse_tree_walk()Andrew Tridgell2011-08-041-16/+70
| | | | | | | this walks a ldb parse tree, calling a callback on each node Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org> Pair-Programmed-With: Amitay Isaacs <amitay@gmail.com>
* ldb: added ldb_dn_replace_components()Andrew Tridgell2011-08-041-0/+56
| | | | | | | | | | this allows you to replace the string part of a DN with the string part from another DN. This is useful when you want to fix a DN that has the right GUID but the wrong string part, because the target object has moved. Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org> Pair-Programmed-With: Amitay Isaacs <amitay@gmail.com>
* ldb: fixed a search expression parse bugAndrew Tridgell2011-07-291-1/+11
| | | | | | | | | | | | | | | | when a secondary component of a & or | expression was invalid, it was ignored rather than giving an error. For example: (|(objectclass=user)(samaccountname=foo\blah)) was treated as being: (objectclass=user) whereas it should be an error, as foo\blah is invalid Pair-Programmed-With: Amitay Isaacs <amitay@gmail.com> Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
* ldb: added ldb_val_string_cmp()Andrew Tridgell2011-07-131-0/+12
| | | | | | this should help fix some places where we run past the end of a string Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
* ldb: don't return special DNs on non-base searchesAndrew Tridgell2011-07-131-0/+5
| | | | | | to look at a special DN, give the full DN Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
* ldb: don't shortcut dn comparison for mismatched special DNsAndrew Tridgell2011-07-131-1/+1
| | | | | | | DNs that start with @ can't be compared via string comparison with normal DNs Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
* ldb: make ldb a top level library for Samba 4.0Andrew Bartlett2011-07-0514-0/+11302
Signed-off-by: Andrew Tridgell <tridge@samba.org>