1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-27 03:21:53 +03:00
Commit Graph

2321 Commits

Author SHA1 Message Date
Brad Hards
d8dfdea2cc s4:ldb: Add prototype header.
Signed-off-by: Stefan Metzmacher <metze@samba.org>
2011-01-03 11:17:51 +01:00
Jelmer Vernooij
22b7cb3f29 pyldb: Fix memory reference error.
Autobuild-User: Jelmer Vernooij <jelmer@samba.org>
Autobuild-Date: Mon Jan  3 02:34:05 CET 2011 on sn-devel-104
2011-01-03 02:34:05 +01:00
Jelmer Vernooij
0346f51632 pyldb: Always return -1, 0, or 1 in tp_compare functions. 2011-01-03 01:48:05 +01:00
Jelmer Vernooij
fdb0aa2b04 Revert broken destructor changes. 2011-01-03 01:48:05 +01:00
Jelmer Vernooij
027e6b2b22 pyldb: Fix memory context, add more OOM checks. 2011-01-03 01:48:05 +01:00
Jelmer Vernooij
50a2c83908 pyldb: Some more OOM checks. 2011-01-03 01:48:05 +01:00
Jelmer Vernooij
2533a50471 Make all functions in pyldb.c private, as they can't be used anyway. 2011-01-03 01:48:05 +01:00
Jelmer Vernooij
e31224e27c pyldb: Use pytalloc-util. 2011-01-03 01:48:04 +01:00
Jelmer Vernooij
b63f9c1996 ldb: Remove duplicate definition of check_special, use PyObject_New. 2011-01-03 01:48:04 +01:00
Jelmer Vernooij
cbf504b0c5 s4-python: Properly call PyObject_Del from all destructors. 2011-01-03 01:48:04 +01:00
Jelmer Vernooij
5792fa90ac s4-python: Only set BASETYPE flag if subclassing is supported.
Autobuild-User: Jelmer Vernooij <jelmer@samba.org>
Autobuild-Date: Sat Jan  1 03:39:58 CET 2011 on sn-devel-104
2011-01-01 03:39:58 +01:00
Jelmer Vernooij
f5fe9c32ef s4-python: Add more prototypes. 2011-01-01 02:54:05 +01:00
Jelmer Vernooij
4350e0c3c9 s4-python: Properly call PyObject_Del from all destructors. 2011-01-01 02:54:05 +01:00
Stefan Metzmacher
3321d87327 s4:ldb: setup TEST_DATA_PREFIX for make test
metze
2010-12-27 15:37:58 +01:00
Stefan Metzmacher
fd4436abfe s4:ldb:python/api: use filename() instead of hardcoded filenames
metze
2010-12-27 15:37:58 +01:00
Stefan Metzmacher
aaa16b8224 s4:ldb/tests: there's no need to copy samba4.png
metze
2010-12-27 15:37:57 +01:00
Stefan Metzmacher
f34e7978c2 s4:ldb:python/api: use only one ldb file in test_contains()
metze
2010-12-24 17:31:06 +01:00
Stefan Metzmacher
628c66a15c s4:ldb:python/api: use filename() instead of hardcoded filenames
This makes sure we use files under $SELFTEST_PREFIX instead of
the source directory.

metze
2010-12-24 17:31:06 +01:00
Matthias Dieter Wallnöfer
4ef842c0d2 ldb:pyldb.c - remove unused variable 2010-12-22 12:21:16 +01:00
Jelmer Vernooij
41c3bda527 ldb: Add ldb.Message.add and ldb.Message.elements.
Autobuild-User: Jelmer Vernooij <jelmer@samba.org>
Autobuild-Date: Tue Dec 21 15:03:17 CET 2010 on sn-devel-104
2010-12-21 15:03:17 +01:00
Matthias Dieter Wallnöfer
17d6583dbf ldb:tools/ldbdel.c - "replace.h" should be the first include
Autobuild-User: Matthias Dieter Wallnöfer <mdw@samba.org>
Autobuild-Date: Tue Dec 21 12:50:54 CET 2010 on sn-devel-104
2010-12-21 12:50:54 +01:00
Jelmer Vernooij
fcecca76a5 ldb: Bump version after renaming some public symbols which didn't have a
ldb_ prefix.
2010-12-19 21:44:06 +01:00
Andrew Bartlett
656c828b9f lib/ldb Remove talloc_free() that causes double-free in callbacks.
This partially reverts 0941099a, which was a little over-eager in
fixing what were presumed to be memory leaks.

It is always the callbacks responsiblity to free the ares, but if they
don't then the end of the request should handle the cleanup.
Attempting to talloc_free() here will result (as it did in the
descriptor module) in a double-free error if the callback does free
it, and no other caller of ldb_module_send_entry() has this behaviour.

Andrew Bartlett
2010-12-18 01:34:18 +01:00
Jelmer Vernooij
6967cf27eb ldb: Rename controls_except_specified -> ldb_controls_except_specified.
Autobuild-User: Jelmer Vernooij <jelmer@samba.org>
Autobuild-Date: Sat Dec 18 01:33:24 CET 2010 on sn-devel-104
2010-12-18 01:33:24 +01:00
Jelmer Vernooij
e338bbd450 ldb_map: Fix prefix for map functions. 2010-12-18 00:47:06 +01:00
Jelmer Vernooij
6b5a0cf630 ldb: Add prototype for ldb_init_module. 2010-12-18 00:47:06 +01:00
Jelmer Vernooij
fff18e0cc3 ldb: Rename two exported functions so they match abi_match. 2010-12-18 00:47:06 +01:00
Jelmer Vernooij
4a2d396971 ldb: Bump API after symbol changes.
Autobuild-User: Jelmer Vernooij <jelmer@samba.org>
Autobuild-Date: Wed Dec 15 18:18:52 CET 2010 on sn-devel-104
2010-12-15 18:18:52 +01:00
Jelmer Vernooij
a1eadc5fb4 ldb: Build modules as .so files. 2010-12-15 16:47:46 +01:00
Matthieu Patou
ea510ae16c build: openbsd plateform is openbsd4
Autobuild-User: Matthieu Patou <mat@samba.org>
Autobuild-Date: Wed Dec 15 10:55:08 CET 2010 on sn-devel-104
2010-12-15 10:55:08 +01:00
Matthieu Patou
8c90287198 build do not add -no-undefined on openbsd 2010-12-14 15:58:11 +03:00
Matthias Dieter Wallnöfer
e4b22702b6 ldb:pyldb.h - revert to the previous header behaviour
"ldb_private.h" is private and therefore might not always be available.
2010-12-12 22:55:14 +01:00
Matthias Dieter Wallnöfer
b56a6f2eda ldb:pyldb - optimise includes 2010-12-12 20:06:24 +01:00
Andrew Tridgell
57f2f1d72a waf: remove the restriction that private libraries must not have a vnum
we need the vnum for ABI checking for public libraries built as
private libraries when bundled

Autobuild-User: Andrew Tridgell <tridge@samba.org>
Autobuild-Date: Thu Dec  9 12:47:41 CET 2010 on sn-devel-104
2010-12-09 12:47:40 +01:00
Andrew Tridgell
ebe2867fc2 waf-abi: auto-generate per-symbol versions from ABI files
This changes our version-script generation to use the ABI files that
are saved in git with each version number change of our public
libraries.

We use these ABI files to generate a linker version script that gives
the exact version number that each symbol was introduced. This
provides us with automatic fine grained symbol versioning.

Pair-Programmed-With: Jelmer Vernooij <jelmer@samba.org>
Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
2010-12-09 13:17:19 +11:00
Stefan Metzmacher
cfef64a5b0 s4:ldb: add ABI/ldb-0.9.20.sigs
metze
2010-12-08 19:07:16 +01:00
Stefan Metzmacher
65965566d2 s4:ldb: build libldb and pyldb-util as private libraries when building for samba4
This matches the behavior of the talloc and tdb builds.

metze
2010-12-08 19:07:15 +01:00
Jelmer Vernooij
623c93c8ba ldb: bump version number after introduction of new constant. 2010-12-08 13:32:18 +01:00
Nadezhda Ivanova
f85089e015 s4-acl: Fixed incorrect value of LDB_FLAG_INTERNAL_INACCESSIBLE_ATTRIBUTE
Autobuild-User: Nadezhda Ivanova <nivanova@samba.org>
Autobuild-Date: Wed Dec  8 13:31:48 CET 2010 on sn-devel-104
2010-12-08 13:31:48 +01:00
Andrew Tridgell
735c1cd2da s4-pkgconfig: add @LIB_RPATH@ to our link flags
this is only set when rpath is used on install. It ensures that
applications that link against Samba libraries get the rpath right

Autobuild-User: Andrew Tridgell <tridge@samba.org>
Autobuild-Date: Wed Dec  8 12:46:00 CET 2010 on sn-devel-104
2010-12-08 12:46:00 +01:00
Andrew Tridgell
af1b098441 s4-ldb: added @LIB_RPATH@ to the ldb pc file 2010-12-08 12:01:25 +01:00
Nadezhda Ivanova
fe98b9aaeb s4-acl: Added a flag to mark an element as failing an access check. 2010-12-08 12:14:23 +02:00
Andrew Tridgell
cba73975c2 s4-ldb: use RTLD_DEEPBIND if available for ldb modules
this allows us to avoid issues with ldb using heimdal while an
application using ldb using MIT kerberos

Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
2010-12-08 05:26:05 +01:00
Matthias Dieter Wallnöfer
93d85ca5fd s4:fix some shadowed declaration warnings on Solaris by renaming the symbols 2010-12-06 11:28:58 +01:00
Björn Jacke
a42c731a4b s4/ldb: fix shell syntax error in test script 2010-12-02 10:36:06 +01:00
Matthias Dieter Wallnöfer
9733d71199 ldb:ldb_msg_add_value - fix here a wrong memory context
A value array allocation should belong to "msg->elements" not "msg" directly
2010-12-01 16:30:08 +01:00
Matthieu Patou
e8ae340421 ldb-tdb: Add more information about full scan 2010-11-26 23:46:06 +03:00
Jelmer Vernooij
df70a4a3b7 pyldb: Fix broken test.
Autobuild-User: Jelmer Vernooij <jelmer@samba.org>
Autobuild-Date: Tue Nov 23 23:20:38 CET 2010 on sn-devel-104
2010-11-23 23:20:38 +01:00
Andrew Tridgell
3a8b67d06c s4-ldb: added an environment varibale LDB_WARN_UNINDEXED
when LDB_WARN_UNINDEXED is set, we produce warnings about unindexed
searches. This makes it easier to find performance problems caused by
unindexed searches.
2010-11-23 22:14:58 +11:00
Arnaud Faucher
2ac5cedb71 Avoid the use of PyAPI_DATA, which is for internal Python API's.
Signed-off-by: Jelmer Vernooij <jelmer@samba.org>

Autobuild-User: Jelmer Vernooij <jelmer@samba.org>
Autobuild-Date: Mon Nov 22 00:52:56 CET 2010 on sn-devel-104
2010-11-22 00:52:56 +01:00