pyldb: Include a reference to the Ldb in objects that use
authorAndrew Bartlett <abartlet@samba.org>
Tue, 7 Nov 2023 21:43:38 +0000 (10:43 +1300)
committerAndrew Bartlett <abartlet@samba.org>
Wed, 10 Apr 2024 05:13:32 +0000 (05:13 +0000)
commit784ee21616a60993ecc0979f83fbb04467d57af9
treeb5c7c8cec44b88e1b10edd930ed836929495237d
parentffbe623963a9b495e70f767512e1b147ebebba1f
pyldb: Include a reference to the Ldb in objects that use

This will help avoid use-after-free of the internally cached ldb within
struct ldb_dn by ensuring that it lives as long.

Signed-off-by: Andrew Bartlett <abartlet@samba.org>
Reviewed-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz>
lib/ldb/ABI/pyldb-util-2.9.0.sigs
lib/ldb/pyldb.c
lib/ldb/pyldb.h
lib/ldb/pyldb_util.c
selftest/knownfail.d/ldb-use-after-free [deleted file]
source4/dns_server/pydns.c
source4/dsdb/pydsdb.c