summaryrefslogtreecommitdiffstats
path: root/source4/lib
Commit message (Collapse)AuthorAgeFilesLines
* Revert "Fix bug 8196 - Many (newer) header files don't have copyright / GPL ↵Karolin Seeger2011-06-074-84/+0
| | | | | | header comments." This reverts commit 6df3ff20620b3262ff232a478312c61a207ed4ff.
* Fix bug 8196 - Many (newer) header files don't have copyright / GPL header ↵Jeremy Allison2011-06-074-0/+84
| | | | | | comments. Add missing GPL headers and (C) statements.
* lib/util Move source3 tdb_wrap_open() into the common code.Andrew Bartlett2011-05-164-172/+1
| | | | | | | | | | This #if _SAMBA_BUILD == 3 is very unfortunate, as it means that in the top level build, these options are not available for these databases. However, having two different tdb_wrap lists is a worse fate, so this will do for now. Andrew Bartlett (cherry picked from commit 14750139639b3531e57a3ca3f9e481d6e458dc06)
* s4:ldb: don't install .pc files when building a private libraryStefan Metzmacher2011-03-161-2/+6
| | | | | | | metze Autobuild-User: Stefan Metzmacher <metze@samba.org> Autobuild-Date: Wed Mar 16 09:58:22 CET 2011 on sn-devel-104
* ldb: only install headers if we are not building as a private libAndrew Tridgell2011-03-151-1/+4
|
* s4-policy: don't make s4 policy.h publicAndrew Tridgell2011-03-151-1/+0
| | | | if we are going to make GPO headers public, it should be from libgpo/
* ldb: use include <> form for public headersAndrew Tridgell2011-03-152-3/+3
|
* ldb: don't install ldb_wrap.h twiceAndrew Tridgell2011-03-151-1/+0
|
* s4:lib/tls/wscript - exclude known broken GNUTLS releasesMatthias Dieter Wallnöfer2011-03-101-2/+2
| | | | | | | This definitely fixes bug #7218. Autobuild-User: Matthias Dieter Wallnöfer <mdw@samba.org> Autobuild-Date: Thu Mar 10 11:58:27 CET 2011 on sn-devel-104
* ldb:ldb_controls.c - "ldb_save_controls" - allow that "saver" can also be NULLMatthias Dieter Wallnöfer2011-03-101-8/+12
| | | | Suggested by Tridge
* ldb:ldb_controls.c - always allocate enough spaceMatthias Dieter Wallnöfer2011-03-101-13/+27
| | | | | | | | The size for an additional "struct ldb_control" shouldn't hurt and so the excluded control can also be NULL. Added an ending "talloc_realloc" to resize the chunk to the effective needed size (requested by tridge).
* s4:lib/socket: use sockaddr_in6 in ipv6_tcp_accept()Stefan Metzmacher2011-03-091-1/+1
| | | | | | | metze Autobuild-User: Stefan Metzmacher <metze@samba.org> Autobuild-Date: Wed Mar 9 14:36:42 CET 2011 on sn-devel-104
* ldb:ldb_msg.c - use LDB result constants for checking return valuesMatthias Dieter Wallnöfer2011-03-041-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
* ldb:rdn_name LDB module - more RDN constraint checks (from AD)Matthias Dieter Wallnöfer2011-03-041-1/+40
| | | | Reviewed by: Tridge
* s4/ldb - remove now superflous "ldb_dn_validate" checksMatthias Dieter Wallnöfer2011-03-044-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
* s4:dsdb - we don't need to check if a DN != NULL if we call "ldb_dn_validate"Matthias Dieter Wallnöfer2011-03-041-2/+1
| | | | | | "ldb_dn_validate" is NULL-safe and does the check implicitly. Reviewed by: Tridge
* ldb:ldb_request - handle here the DN checksMatthias Dieter Wallnöfer2011-03-041-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
* ldb:ldb tools - remove a superflous "return" (usage internally calls "exit")Matthias Dieter Wallnöfer2011-03-041-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
* ldb:ldb tools - return LDB_ERR_INVALID_DN_SYNTAX on wrong DN parametersMatthias Dieter Wallnöfer2011-03-045-5/+9
| | | | | | Not all LDB databases have further DN checks. Reviewed by: Tridge
* ldb:ldb tools - ldbtest - convert other result values to LDB codes as wellMatthias Dieter Wallnöfer2011-03-041-15/+15
| | | | | | I've forgotten this in my first patchset. Reviewed by: Tridge
* 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
|