]> git.ipfire.org Git - thirdparty/samba.git/commit
pyldb: add Dn.ldb accessor
authorDouglas Bagnall <douglas.bagnall@catalyst.net.nz>
Sun, 17 Mar 2024 01:24:03 +0000 (14:24 +1300)
committerAndrew Bartlett <abartlet@samba.org>
Wed, 10 Apr 2024 05:13:32 +0000 (05:13 +0000)
commit8b6df2d0bca12fc33b60c5702b4afe36597cc775
tree063d70b30020a67bd298e1afbf2b25ea3aa093a6
parenta95e6aa56677dfcff1c15925aa8c042a1f3db9a1
pyldb: add Dn.ldb accessor

This, and the next commit, might help in debugging when you see a
traceback that ends like this:

  File "/data/samba/samba/bin/samba_upgradeprovision", line 664, in add_missing_object
      delta.dn = dn
  RuntimeError: DN is from the wrong LDB

in this case you could force a solution with something like:

 delta.dn = ldb.dn(delta.ldb, str(dn))

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