summaryrefslogtreecommitdiffstats
path: root/source4/lib
Commit message (Collapse)AuthorAgeFilesLines
* tdb: Use <tdb.h> to include tdb so system headers are found when building ↵Jelmer Vernooij2011-02-281-1/+1
| | | | against system tdb.
* Use <tdb.h> to include tdb, so the system include file gets used when ↵Jelmer Vernooij2011-02-284-4/+4
| | | | | | building against system tdb.
* Use <tevent.h> so the system tevent gets included, if enabled.Jelmer Vernooij2011-02-281-1/+1
|
* build: moved util_reg.c into a common subsystemAndrew Tridgell2011-02-241-2/+2
| | | | | Autobuild-User: Andrew Tridgell <tridge@samba.org> Autobuild-Date: Thu Feb 24 05:53:52 CET 2011 on sn-devel-104
* python: use os.environ[] instead of os.putenv()Andrew Tridgell2011-02-221-1/+1
| | | | | | | using os.putenv() causes too much confusion, as it doesn't update os.getenv() Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
* s4-waf: rename smbpasswd library to smbpasswdparserAndrew Tridgell2011-02-221-1/+1
| | | | this removes a conflict with the s3 smbpasswd binary
* pyldb: Add tests for the ldb_result objectMatthieu Patou2011-02-211-0/+87
|
* pyldb: create LdbResult, return value from ldb.search is now a LdbResultMatthieu Patou2011-02-212-5/+332
|
* ldb: controls marshalling/unmarshalling improvementMatthieu Patou2011-02-214-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
* ldb-samba: Add missing dependency on pyldb-util.Jelmer Vernooij2011-02-201-1/+1
|
* s4-idl: rename s4 server_id.idl to server_id4.idlAndrew Tridgell2011-02-182-2/+2
| | | | | | this avoids a conflict with the new s3 server_id.idl Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
* Increase minor version since a public header has changedSimo Sorce2011-02-142-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
* s4-readline: remove leftover from readline merge.Günther Deschner2011-02-141-126/+0
| | | | | | | Guenther Autobuild-User: Günther Deschner <gd@samba.org> Autobuild-Date: Mon Feb 14 14:26:12 CET 2011 on sn-devel-104
* s4-ldb: fixed a uninitialised el->flags in ldb_tdbAndrew Tridgell2011-02-141-2/+1
| | | | | | this caused an intermittent failure in some tests Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
* s4-ldb: added LDB_FLAG_INTERNAL_FORCE_SINGLE_VALUE_CHECKAndrew Tridgell2011-02-142-0/+11
| | | | this allows a ldb module to force an element as single valued
* s4-ldb: use a helper function for single valued checkingAndrew Tridgell2011-02-141-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>
* ldb-web: update mailing list infoAndrew Tridgell2011-02-141-5/+5
|
* pyldb: fix a bug in the unit test which prevented ldb.python to run all the ↵Matthieu Patou2011-02-131-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
* ldb: use the sizeof of the control variable as offset instead of hardcoded ↵Matthieu Patou2011-02-131-22/+21
| | | | values, helps to avoid bugs
* ldb: remove "magic" string in ldb_controls, replace them with constants ↵Matthieu Patou2011-02-132-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
* ldb: use #include <ldb.h> for ldbAndrew Tridgell2011-02-104-7/+7
| | | | | | | | thi ensures we are using the header corresponding to the version of ldb we're linking against. Otherwise we could use the system ldb for link and the in-tree one for include Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
* ldb: added ldb 1.0.0 ABI signaturesAndrew Tridgell2011-02-101-0/+248
|
* ldb: change version number to 1.0.0Andrew Tridgell2011-02-101-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>
* ldb: fixed two warnings in the ldb_ldap backendAndrew Tridgell2011-02-101-2/+2
|
* ldb: added a include/ldb_version.hAndrew Tridgell2011-02-102-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>
* ldb:tools - return LDB_ERR_OPERATIONS_ERROR on generic errorsMatthias Dieter Wallnöfer2011-02-098-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.
* ldb:tools - always check if ldb connection has been estabilishedMatthias Dieter Wallnöfer2011-02-097-1/+19
| | | | Otherwise return "LDB_ERR_OPERATIONS_ERROR".
* ldb:ldbsearch tool - use LDB result constants where possibleMatthias Dieter Wallnöfer2011-02-091-7/+7
|
* ldb:ldbsearch tool - simplify error code returnMatthias Dieter Wallnöfer2011-02-091-3/+1
|
* ldb:ldbsearch tool - use "%u" for printing unsigned integersMatthias Dieter Wallnöfer2011-02-091-1/+1
|
* ldb:ldbedit tool - don't forget about the "do_edit" result codeMatthias Dieter Wallnöfer2011-02-091-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".
* ldb:ldbedit tool - fix bug #7914Matthias Dieter Wallnöfer2011-02-091-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).
* ldb:ldbedit tool - use unsigned counters for consistency with other LDB toolsMatthias Dieter Wallnöfer2011-02-091-2/+2
|
* ldb:ldbedit tool - use "%u" for printing out unsigned integersMatthias Dieter Wallnöfer2011-02-091-2/+2
|
* ldb:ldbedit tool - use LDB result constants where neededMatthias Dieter Wallnöfer2011-02-091-5/+5
|
* ldb:ldbrename tool - use LDB result constant where neededMatthias Dieter Wallnöfer2011-02-091-1/+1
|
* ldb:ldbmodify tool - use unsigned counters for consistency with other LDB toolsMatthias Dieter Wallnöfer2011-02-091-5/+5
|
* ldb:ldbdel tool - use LDB result constants for consistencyMatthias Dieter Wallnöfer2011-02-091-7/+7
|
* ldb:ldbadd tool - use LDB return codes where possibleMatthias Dieter Wallnöfer2011-02-091-4/+6
|
* ldb:ldbadd tool - use "%u" for printing out unsigned integersMatthias Dieter Wallnöfer2011-02-091-1/+1
|
* ldb:ldbadd tool - use LDB result constants for consistencyMatthias Dieter Wallnöfer2011-02-091-4/+4
|
* dlinklist: Change license to LGPLv3+ (checked with tridge).Jelmer Vernooij2011-02-091-11/+15
|
* lib/compression: add shared wscript_build.Günther Deschner2011-02-081-6/+0
| | | | Guenther
* build: removed the old autogen.sh and autogen-waf.sh scriptsAndrew Tridgell2011-02-072-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>
* s4:tls_tstream: also use a dynamic buffer for the pull sideStefan Metzmacher2011-01-181-3/+12
| | | | | | | | | Maybe that fixes the remaining issues with some gnutls versions. metze Autobuild-User: Stefan Metzmacher <metze@samba.org> Autobuild-Date: Tue Jan 18 17:26:08 CET 2011 on sn-devel-104
* s4:tls_tstream: fix partial reads, so that the gnutls layer doesn't read the ↵Stefan Metzmacher2011-01-181-1/+6
| | | | | | same data twice metze
* s4-pyldb Fix tp_basicsize for PyLdbDnAndrew Bartlett2011-01-181-1/+1
| | | | | | | This wasn't actually causing problems before, as the structures were the same size. Andrew Bartlett
* s4-ldb_ldif: Take into account LDB_FLG_SHOW_BINARYKamen Mazdrashki2011-01-181-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
* s4-ldb_ldif: Don't check for LDB_FLG_SHOW_BINARY in ldb_should_b64_encodeKamen Mazdrashki2011-01-181-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
* ldb: new ABI sigs fileAndrew Tridgell2011-01-171-0/+248
| | | | | Autobuild-User: Andrew Tridgell <tridge@samba.org> Autobuild-Date: Mon Jan 17 06:09:23 CET 2011 on sn-devel-104