Age | Commit message (Collapse) | Author | Files | Lines | |
---|---|---|---|---|---|
2011-03-04 | ldb:ldb_msg.c - use LDB result constants for checking return values | Matthias Dieter Wallnöfer | 1 | -2/+5 | |
Reviewed by: Tridge Autobuild-User: Matthias Dieter Wallnöfer <mdw@samba.org> Autobuild-Date: Fri Mar 4 22:51:57 CET 2011 on sn-devel-104 | |||||
2011-03-04 | ldb:rdn_name LDB module - more RDN constraint checks (from AD) | Matthias Dieter Wallnöfer | 1 | -1/+40 | |
Reviewed by: Tridge | |||||
2011-03-04 | s4/ldb - remove now superflous "ldb_dn_validate" checks | Matthias Dieter Wallnöfer | 4 | -12/+8 | |
If we immediately afterwards perform an LDB base operation then we don't need an explicit "ldb_dn_validate" check anymore (only OOM makes sense). Reviewed by: Tridge | |||||
2011-03-04 | s4:dsdb - we don't need to check if a DN != NULL if we call "ldb_dn_validate" | Matthias Dieter Wallnöfer | 1 | -2/+1 | |
"ldb_dn_validate" is NULL-safe and does the check implicitly. Reviewed by: Tridge | |||||
2011-03-04 | ldb:ldb_request - handle here the DN checks | Matthias Dieter Wallnöfer | 1 | -1/+22 | |
This is a much better solution than we had before - so all important DN checks are enforced for each type of LDB database (and not limited to DSDB). Many "ldb_dn_validate" checks will now become obsolete. Reviewed by: Tridge | |||||
2011-03-04 | ldb:ldb tools - remove a superflous "return" (usage internally calls "exit") | Matthias Dieter Wallnöfer | 1 | -1/+0 | |
Reviewed by: Tridge Autobuild-User: Matthias Dieter Wallnöfer <mdw@samba.org> Autobuild-Date: Fri Mar 4 09:39:22 CET 2011 on sn-devel-104 | |||||
2011-03-04 | ldb:ldb tools - return LDB_ERR_INVALID_DN_SYNTAX on wrong DN parameters | Matthias Dieter Wallnöfer | 5 | -5/+9 | |
Not all LDB databases have further DN checks. Reviewed by: Tridge | |||||
2011-03-04 | ldb:ldb tools - ldbtest - convert other result values to LDB codes as well | Matthias Dieter Wallnöfer | 1 | -15/+15 | |
I've forgotten this in my first patchset. Reviewed by: Tridge | |||||
2011-02-22 | python: use os.environ[] instead of os.putenv() | Andrew Tridgell | 1 | -1/+1 | |
using os.putenv() causes too much confusion, as it doesn't update os.getenv() Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org> | |||||
2011-02-21 | pyldb: Add tests for the ldb_result object | Matthieu Patou | 1 | -0/+87 | |
2011-02-21 | pyldb: create LdbResult, return value from ldb.search is now a LdbResult | Matthieu Patou | 2 | -5/+332 | |
2011-02-21 | ldb: controls marshalling/unmarshalling improvement | Matthieu Patou | 4 | -623/+930 | |
Add a function to marshall a control to a string Refactor the code of ldb_control_parse_strings to allow to extract the core code into ldb_control_parse_from_string so that this function can be called for just 1 string | |||||
2011-02-14 | Increase minor version since a public header has changed | Simo Sorce | 2 | -1/+249 | |
Samba4 now depends on a new macro defined in the public ldb_modules.h header: LDB_FLAG_INTERNAL_FORCE_SINGLE_VALUE_CHECK. Bump up the minor release of ldb accordingly. Autobuild-User: Simo Sorce <idra@samba.org> Autobuild-Date: Mon Feb 14 19:39:31 CET 2011 on sn-devel-104 | |||||
2011-02-14 | s4-ldb: fixed a uninitialised el->flags in ldb_tdb | Andrew Tridgell | 1 | -2/+1 | |
this caused an intermittent failure in some tests Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org> | |||||
2011-02-14 | s4-ldb: added LDB_FLAG_INTERNAL_FORCE_SINGLE_VALUE_CHECK | Andrew Tridgell | 2 | -0/+11 | |
this allows a ldb module to force an element as single valued | |||||
2011-02-14 | s4-ldb: use a helper function for single valued checking | Andrew Tridgell | 1 | -25/+35 | |
this gives us a single piece of logic for single value checking in the tdb backend Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org> | |||||
2011-02-14 | ldb-web: update mailing list info | Andrew Tridgell | 1 | -5/+5 | |
2011-02-13 | pyldb: fix a bug in the unit test which prevented ldb.python to run all the ↵ | Matthieu Patou | 1 | -0/+3 | |
tests in the testsuite Autobuild-User: Matthieu Patou <mat@samba.org> Autobuild-Date: Sun Feb 13 00:14:24 CET 2011 on sn-devel-104 | |||||
2011-02-13 | ldb: use the sizeof of the control variable as offset instead of hardcoded ↵ | Matthieu Patou | 1 | -22/+21 | |
values, helps to avoid bugs | |||||
2011-02-13 | ldb: remove "magic" string in ldb_controls, replace them with constants ↵ | Matthieu Patou | 2 | -22/+53 | |
defined in ldb.h Allow to have less magic value in the control code and will allow not to duplicate names when doing a function that marshal a control to it's string representation | |||||
2011-02-10 | ldb: added ldb 1.0.0 ABI signatures | Andrew Tridgell | 1 | -0/+248 | |
2011-02-10 | ldb: change version number to 1.0.0 | Andrew Tridgell | 1 | -1/+1 | |
Simo pointed out that the module loading change should have been combined with a major version number. That seems like a good excuse for a 1.0 release Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org> | |||||
2011-02-10 | ldb: fixed two warnings in the ldb_ldap backend | Andrew Tridgell | 1 | -2/+2 | |
2011-02-10 | ldb: added a include/ldb_version.h | Andrew Tridgell | 2 | -2/+10 | |
this fixes a problem with the installed ldb_modules.h header, which depended on LDB_VERSION being defined. Thanks to Simo for noticing this! Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org> | |||||
2011-02-09 | ldb:tools - return LDB_ERR_OPERATIONS_ERROR on generic errors | Matthias Dieter Wallnöfer | 8 | -19/+20 | |
Use "return" when located in "main" for consistency ("exit" would do the same). The patchset has been discussed with Jelmer Vernooij and afterwards LDB maintainer Simo Sorce. | |||||
2011-02-09 | ldb:tools - always check if ldb connection has been estabilished | Matthias Dieter Wallnöfer | 7 | -1/+19 | |
Otherwise return "LDB_ERR_OPERATIONS_ERROR". | |||||
2011-02-09 | ldb:ldbsearch tool - use LDB result constants where possible | Matthias Dieter Wallnöfer | 1 | -7/+7 | |
2011-02-09 | ldb:ldbsearch tool - simplify error code return | Matthias Dieter Wallnöfer | 1 | -3/+1 | |
2011-02-09 | ldb:ldbsearch tool - use "%u" for printing unsigned integers | Matthias Dieter Wallnöfer | 1 | -1/+1 | |
2011-02-09 | ldb:ldbedit tool - don't forget about the "do_edit" result code | Matthias Dieter Wallnöfer | 1 | -11/+4 | |
Use it for computing the program exit code. The "result" has not to be free'd explicitly since it's a child by "ldb" which itself is child by "mem_ctx". | |||||
2011-02-09 | ldb:ldbedit tool - fix bug #7914 | Matthias Dieter Wallnöfer | 1 | -4/+7 | |
"modify_record" returns "-1" when failing, otherwise the number of modifies performed as an "unsigned int" converted to "int". When we get "-1" we immediately need to stop (the error message has already been generated by the function itself). | |||||
2011-02-09 | ldb:ldbedit tool - use unsigned counters for consistency with other LDB tools | Matthias Dieter Wallnöfer | 1 | -2/+2 | |
2011-02-09 | ldb:ldbedit tool - use "%u" for printing out unsigned integers | Matthias Dieter Wallnöfer | 1 | -2/+2 | |
2011-02-09 | ldb:ldbedit tool - use LDB result constants where needed | Matthias Dieter Wallnöfer | 1 | -5/+5 | |
2011-02-09 | ldb:ldbrename tool - use LDB result constant where needed | Matthias Dieter Wallnöfer | 1 | -1/+1 | |
2011-02-09 | ldb:ldbmodify tool - use unsigned counters for consistency with other LDB tools | Matthias Dieter Wallnöfer | 1 | -5/+5 | |
2011-02-09 | ldb:ldbdel tool - use LDB result constants for consistency | Matthias Dieter Wallnöfer | 1 | -7/+7 | |
2011-02-09 | ldb:ldbadd tool - use LDB return codes where possible | Matthias Dieter Wallnöfer | 1 | -4/+6 | |
2011-02-09 | ldb:ldbadd tool - use "%u" for printing out unsigned integers | Matthias Dieter Wallnöfer | 1 | -1/+1 | |
2011-02-09 | ldb:ldbadd tool - use LDB result constants for consistency | Matthias Dieter Wallnöfer | 1 | -4/+4 | |
2011-02-09 | dlinklist: Change license to LGPLv3+ (checked with tridge). | Jelmer Vernooij | 1 | -11/+15 | |
2011-02-07 | build: removed the old autogen.sh and autogen-waf.sh scripts | Andrew Tridgell | 2 | -12/+0 | |
for the builds that use waf only, these are no longer needed and just cause confusion Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org> | |||||
2011-01-18 | s4-pyldb Fix tp_basicsize for PyLdbDn | Andrew Bartlett | 1 | -1/+1 | |
This wasn't actually causing problems before, as the structures were the same size. Andrew Bartlett | |||||
2011-01-18 | s4-ldb_ldif: Take into account LDB_FLG_SHOW_BINARY | Kamen Mazdrashki | 1 | -1/+4 | |
when user requires binary data to be displayed using samba user-friendly ldif handlers Found using following test search: bin/ldbsearch -H st/dc/private/sam.ldb -b "CN=Deleted Objects,DC=samba,DC=example,DC=com" \ "(objectGUID=97b52eac-6d89-434d-b935-1e5f2e086ffc)" replPropertyMetaData --show-deleted --show-binary Autobuild-User: Kamen Mazdrashki <kamenim@samba.org> Autobuild-Date: Tue Jan 18 00:40:01 CET 2011 on sn-devel-104 | |||||
2011-01-18 | s4-ldb_ldif: Don't check for LDB_FLG_SHOW_BINARY in ldb_should_b64_encode | Kamen Mazdrashki | 1 | -4/+0 | |
LDB_FLG_SHOW_BINARY is data representation flag and should not modify behavior of data checking functions. This lead to a bug in lib/ldb/ldb_tdb/ldb_index.c as ltdb_index_key() function relies on ldb_should_b64_encode function to determine how to process index keys. Found using following test search: bin/ldbsearch -H st/dc/private/sam.ldb -b "CN=Deleted Objects,DC=samba,DC=example,DC=com" \ "(objectGUID=97b52eac-6d89-434d-b935-1e5f2e086ffc)" replPropertyMetaData --show-deleted --show-binary | |||||
2011-01-17 | ldb: new ABI sigs file | Andrew Tridgell | 1 | -0/+248 | |
Autobuild-User: Andrew Tridgell <tridge@samba.org> Autobuild-Date: Mon Jan 17 06:09:23 CET 2011 on sn-devel-104 | |||||
2011-01-17 | ldb: added ldb_req_mark_trusted() | Andrew Tridgell | 3 | -1/+14 | |
this is used to mark a ldb child request trusted, if the caller has validated all inputs. This will be used when creating new child requests with trusted inputs. Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org> | |||||
2011-01-17 | ldb: inherit parent flags on child requests in modules | Matthias Dieter Wallnöfer | 1 | -0/+11 | |
2011-01-14 | ldb:ldb_dn.c - fix counter type in "ldb_dn_minimise" | Matthias Dieter Wallnöfer | 1 | -1/+1 | |
Autobuild-User: Matthias Dieter Wallnöfer <mdw@samba.org> Autobuild-Date: Fri Jan 14 10:43:29 CET 2011 on sn-devel-104 | |||||
2011-01-14 | ldb: new ABI file for 0.9.23 | Andrew Tridgell | 1 | -0/+247 | |