pyldb: adapt some simple dn methods to use LDB_DN_OR_RAISE()
commit087d43ac615e12665538cb0bc858113e797ebcba
authorDouglas Bagnall <douglas.bagnall@catalyst.net.nz>
Thu, 14 Mar 2024 03:38:14 +0000 (14 16:38 +1300)
committerAndrew Bartlett <abartlet@samba.org>
Wed, 10 Apr 2024 05:13:32 +0000 (10 05:13 +0000)
treed568bd5745ed000289ff7677444c1a5bb772e80d
parentf98035a2a3147f7d935a356d2a273e0bfd0796f2
pyldb: adapt some simple dn methods to use LDB_DN_OR_RAISE()

We treat self as PyObject, and only trust its DN once it has been
laundered by PyErr_LDB_DN_OR_RAISE().

There are more of these to come in the next few commits, but these are
the simplest ones (on a textual level -- the others are simple too, but
look different).

Signed-off-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
lib/ldb/pyldb.c