1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-23 17:34:34 +03:00
samba-mirror/lib/ldb
Douglas Bagnall f0e665f4a9 pyldb: add PyErr_LDB_MESSAGE_OR_RAISE() macro
The Python level message has a reference to an LDB, which should be NULL,
or the same as the dn's LDB, lest one of them is freed early.

The message LDB will be NULL until a DN is set, and if the DN is replaced,
the LDB is also be replaced (see py_ldb_msg_set_dn), so it is *unlikely*
for these to get out of sync. In addition, fetching msg.dn via python
compares the LDBs at that point (py_ldb_msg_get_dn).

Signed-off-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
2024-04-10 05:13:32 +00:00
..
ABI pyldb: Include a reference to the Ldb in objects that use 2024-04-10 05:13:32 +00:00
common ldb_dn: make LDB_FREE, TALLOC_FREE 2024-03-20 23:42:34 +00:00
docs lib:ldb: Reformat shell scripts 2022-02-24 09:15:34 +00:00
examples
include ldb: Fix documentation typos 2024-02-16 02:41:36 +00:00
ldb_key_value ldb: Fix code spelling 2023-10-25 22:23:37 +00:00
ldb_ldap ldb_ldap: Fix a memleak 2020-07-02 10:38:34 +00:00
ldb_ldb ldb: Add MDB support to ldb:// 2018-05-23 02:27:12 +02:00
ldb_map ldb: Use correct member of union 2023-04-05 02:10:35 +00:00
ldb_mdb lib:ldb: Fix code spelling 2023-04-11 09:06:35 +00:00
ldb_sqlite3 ldb:ldb_sqlite3: Access correct member of union 2023-08-14 04:57:34 +00:00
ldb_tdb ldb: Fix code spelling 2023-10-25 22:23:37 +00:00
man lib:ldb: Fix code spelling 2023-04-11 09:06:35 +00:00
modules lib: Use talloc_asprintf_addbuf() in rdn_name_add() 2022-12-14 04:32:34 +00:00
nssldb lib:ldb:nssldb: Fix code spelling 2023-04-04 07:31:36 +00:00
tests ldb:pytests: test ldb.connect() works after .disconnect() 2024-04-10 05:13:32 +00:00
tools ldb: Fix building with FORTIFY_SOURCE=2 2023-10-01 22:45:38 +00:00
web
_ldb_text.py ldb/tests/_ldb_text: remove unused imports 2018-10-25 21:45:55 +02:00
Doxyfile
examples.dox
ldb.pc.in lib/ldb: Adapt pkg-config files to being build from the main build. 2024-03-01 02:41:37 +00:00
mainpage.dox
pyldb_util.c pyldb: Include a reference to the Ldb in objects that use 2024-04-10 05:13:32 +00:00
pyldb-util.pc.in lib/ldb: Adapt pkg-config files to being build from the main build. 2024-03-01 02:41:37 +00:00
pyldb.c pyldb: add PyErr_LDB_MESSAGE_OR_RAISE() macro 2024-04-10 05:13:32 +00:00
pyldb.h ldb:pyldb: PyErr_LDB_DN_OR_RAISE makes more rigourous checks 2024-04-10 05:13:32 +00:00
README_gcov.txt
wscript build: Allow --with-ldbmodulesdir to override location of LDB modules 2024-03-01 02:41:37 +00:00