ldb: Pass a supported opaque type to ldb.set_opaque()
authorJo Sutton <josutton@catalyst.net.nz>
Fri, 1 Mar 2024 03:18:10 +0000 (16:18 +1300)
committerAndrew Bartlett <abartlet@samba.org>
Sun, 3 Mar 2024 22:33:35 +0000 (22:33 +0000)
commitab6cb4bc97255296d53415eafbeb1a71a9d17cc8
tree8bfc80007fad1fc48b236814bacd042f95305b7e
parent35e7ce88dd7694663a0c5f171f6a0fa751265902
ldb: Pass a supported opaque type to ldb.set_opaque()

We are about to modify ldb.set_opaque() to accept only certain types,
and ldb.Ldb is not one of those types.

Pass in a value that is supported and whose lifetime is guaranteed to
outlive the Ldb object.

Signed-off-by: Jo Sutton <josutton@catalyst.net.nz>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
lib/ldb/tests/python/api.py