summaryrefslogtreecommitdiffstats
path: root/lib
Commit message (Collapse)AuthorAgeFilesLines
...
* lib-util: Make create_unlink_tmp argument optionalSimo Sorce2011-08-101-1/+6
| | | | | | Use tmpdir() if no dir is provided. Signed-off-by: Andreas Schneider <asn@samba.org>
* lib-util: Make useful function a common utility.Simo Sorce2011-08-102-0/+37
| | | | Signed-off-by: Andreas Schneider <asn@samba.org>
* libutil: use AI_ADDRCONFIG only when AI_NUMERIC is not definedSimo Sorce2011-08-101-5/+11
| | | | | | | This flag prevents startup w/o ip addresses assigned to any interface. If AI_NUMERIC is passed it should be safe to avoid it. Signed-off-by: Andreas Schneider <asn@samba.org>
* pytalloc: Regenerate ABI file.Jelmer Vernooij2011-08-101-0/+1
| | | | | Autobuild-User: Jelmer Vernooij <jelmer@samba.org> Autobuild-Date: Wed Aug 10 16:51:11 CEST 2011 on sn-devel-104
* pytalloc: Use consistent prefix for functions, add ABI file.Jelmer Vernooij2011-08-105-51/+57
|
* tsocket: make use of tevent_queue_add_optimize_empty() to optimize for the ↵Stefan Metzmacher2011-08-101-37/+48
| | | | | | empty queue case metze
* tevent: change the version to 0.9.14 after the tevent_queue changestevent-0.9.14Stefan Metzmacher2011-08-092-1/+79
| | | | | | | metze Autobuild-User: Stefan Metzmacher <metze@samba.org> Autobuild-Date: Tue Aug 9 23:02:17 CEST 2011 on sn-devel-104
* tevent: fix some comments in tevent.hStefan Metzmacher2011-08-091-2/+2
| | | | metze
* tevent: add tevent_queue_add_entry() and tevent_queue_add_optimize_empty()Stefan Metzmacher2011-08-092-2/+131
| | | | | | | | | | | | This adds more flexible handling for the add operation: - It allows the caller to remove a tevent_req from the queue by calling talloc_free() on the returned tevent_queue_entry. - It allows the caller to optimize for the empty queue case, where it the caller wants to avoid the delay caused by the immediate event. metze
* tevent: splitout tevent_queue_add_internal() from tevent_queue_add()Stefan Metzmacher2011-08-091-8/+26
| | | | metze
* tevent: allow tevent_queue_add() to take a NULL trigger functionStefan Metzmacher2011-08-092-1/+10
| | | | | | This way the caller can add a blocker to the queue. metze
* tevent: add tevent_queue_running() functionStefan Metzmacher2011-08-092-0/+16
| | | | metze
* 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>
* talloc: prepare for 2.0.6 releaseAndrew Tridgell2011-08-092-1/+63
| | | | | Autobuild-User: Andrew Tridgell <tridge@samba.org> Autobuild-Date: Tue Aug 9 04:03:49 CEST 2011 on sn-devel-104
* talloc: ensure the sibling linked list remains valid during a freeAndrew Tridgell2011-08-091-15/+3
| | | | | | | | | | | | This ensures that the sibling list of a pointer doesn't become invalid during a free operation. It is an alternative fix to the fix in 6f51a1f45bf4de062cce7a562477e8140630a53d, and avoids the problem of trying to calculate the parent pointer early This should fix the subtle spoolss talloc bug that Simo found Autobuild-User: Andrew Tridgell <tridge@samba.org> Autobuild-Date: Tue Aug 9 01:53:17 CEST 2011 on sn-devel-104
* pyldb: fix uninitialized memory bug in PyArg_ParseTuple() argumentStefan Metzmacher2011-08-081-1/+1
| | | | | | | | "s#", &str, &len) required 'len' as 'int' not as 'Py_ssize_t'. With Py_ssize_t the 2nd half of a 64bit Py_ssize_t, will be uninitialized as 'int' is only 32bit. metze
* build: provide tevent-util as a public libraryAndrew Bartlett2011-08-083-3/+4
| | | | | | | This is needed so that OpenChange can get at _tevent_req_nterr(), which is referenced by generated PIDL output. Andrew Bartlett
* pyldb: Generate ABI file.Jelmer Vernooij2011-08-072-2/+6
|
* pyldb: Consistently use pyldb_ prefix.Jelmer Vernooij2011-08-074-131/+135
|
* 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
* talloc: check block count aftter references testAndrew Tridgell2011-08-041-0/+1
| | | | Pair-Programmed-With: Amitay Isaacs <amitay@gmail.com>
* ldb: rule_id in ldb_parse_tree should be constAndrew Tridgell2011-08-041-1/+1
| | | | | | this allows assignment to a constant string without allocation Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
* ldb: added a new always-fail ldap extended match OIDAndrew Tridgell2011-08-042-1/+14
| | | | | | | 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: 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: added signatures for 1.1.2Andrew Tridgell2011-08-041-0/+256
|
* ldb: raise minor versionldb-1.1.2Andrew Tridgell2011-08-041-1/+1
| | | | | | | needed for new module function ldb_dn_replace_components() Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org> Pair-Programmed-With: Amitay Isaacs <amitay@gmail.com>
* ldb: added ldb_parse_tree_walk()Andrew Tridgell2011-08-042-16/+77
| | | | | | | 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-042-0/+63
| | | | | | | | | | 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-samba: Explain the current behaviour of ldif_canonicalise_objectCategoryAndrew Bartlett2011-08-031-2/+7
|
* pyldb: return a copy of key constant DNs via python interfaceAndrew Tridgell2011-08-031-4/+21
| | | | | | | | | | this prevents an easy coding error where the caller modifies one of the key DNs for the database, by using an add_child function or similar Pair-Programmed-With: Amitay Isaacs <amitay@gmail.com> Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org> Signed-off-by: Andrew Bartlett <abartlet@samba.org>
* Fix bug 7462 - Non-standard SA_RESETHAND is used in ↵Jeremy Allison2011-08-013-4/+6
| | | | | | | | | ...lib/tevent/tevent_signal.c Make SA_RESETHAND conditional on its existance. Autobuild-User: Jeremy Allison <jra@samba.org> Autobuild-Date: Mon Aug 1 22:03:45 CEST 2011 on sn-devel-104
* talloc: added test suite for talloc_free_children()Andrew Tridgell2011-07-291-0/+44
| | | | | | | this tests the fix from Simo Autobuild-User: Andrew Tridgell <tridge@samba.org> Autobuild-Date: Fri Jul 29 11:30:13 CEST 2011 on sn-devel-104
* talloc: preserve context name on talloc_free_children()Simo Sorce2011-07-291-0/+23
| | | | | | | Otherwise tc->name will end up pointing to garbage when it is not set to a const but rather to a string allocate as child of the context itself. Signed-off-by: Andrew Tridgell <tridge@samba.org>
* pyldb: added binary_encode() and binary_decode() methodsAndrew Tridgell2011-07-292-0/+57
| | | | | | | this gives access to RFC2254 encoding from python Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org> Pair-Programmed-With: Amitay Isaacs <amitay@gmail.com>
* ldb: added a test for an invalid search expressionAndrew Tridgell2011-07-291-0/+3
| | | | | | | this tests the fix for invalid expressions in & and | expressions 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>
* tevent: Slightly simplify poll_event_loop_pollVolker Lendecke2011-07-281-33/+38
| | | | | No real code change. Do an early return instead of an if-statement, avoiding one level of indentation.
* Add wait_for_read_send/recvVolker Lendecke2011-07-282-0/+60
| | | | Wait for readability of a socket as a tevent_req
* 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: Expose ldb_handler_fold() funcionAmitay Isaacs2011-07-281-6/+11
| | | | | | This allows creation of derived syntax handlers from the base directory string. Signed-off-by: Andrew Tridgell <tridge@samba.org>
* talloc: Support PYTHON environment variable.Jelmer Vernooij2011-07-261-0/+1
| | | | | Autobuild-User: Jelmer Vernooij <jelmer@samba.org> Autobuild-Date: Tue Jul 26 22:21:30 CEST 2011 on sn-devel-104
* libsamba-util: Build in libbitmap.Jelmer Vernooij2011-07-261-8/+1
| | | | | Autobuild-User: Jelmer Vernooij <jelmer@samba.org> Autobuild-Date: Tue Jul 26 14:45:27 CEST 2011 on sn-devel-104
* lib/ccan: update to init-1192-gdd04041Rusty Russell2011-07-2532-424/+959
| | | | | | | | | | | | | | | | This imports licensing clarifications and updates as discussed on samba-technical ("Subject: Re: ccan code breaks older build farm systems"). In particular, the recent version have per-file license markers, and some modules are relicenced more liberally: in particular Simo pointed out that htable was GPL, and indirectly included by libtdb2, which would have made that GPL as well. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au> Autobuild-User: Rusty Russell <rusty@rustcorp.com.au> Autobuild-Date: Mon Jul 25 12:03:40 CEST 2011 on sn-devel-104
* lib/ccan: add READMERusty Russell2011-07-251-0/+9
| | | | | | | | README points out that these code snippets have their own licenses, and that their home is elsewhere. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
* charset: Make name lowercase everywhere.Jelmer Vernooij2011-07-232-6/+6
|
* tdb: remove 'EOF' print from tdbrestoreAndrew Tridgell2011-07-211-1/+0
| | | | | | the EOF message is pointless, and makes for noisy scripts Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
* pyldb: use dn.is_child_of() instead of dn.compare_base()Andrew Tridgell2011-07-212-9/+10
| | | | | | | | the compare_base() C API doesn't really fit well in python, as it returns 0 for true. Better to have a boolean function for the python interface. Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
* pyldb: add unit test for ldbDn.compare_baseMatthieu Patou2011-07-211-0/+11
|
* ldb-python: add a function to Dn object to compare the Dn with a base DNMatthieu Patou2011-07-211-0/+17
|
* debug: log early messages to stdout, and keep it openAndrew Bartlett2011-07-202-0/+7
| | | | | | | | | The --log-stdout option was compromised by the log file descriptors being closed once the file process forked. Andrew Bartlett Signed-off-by: Andrew Tridgell <tridge@samba.org>