]> git.ipfire.org Git - thirdparty/samba.git/commit
py:key_credential_list: add kcl_in_list function
authorDouglas Bagnall <douglas.bagnall@catalyst.net.nz>
Fri, 15 Aug 2025 05:36:11 +0000 (17:36 +1200)
committerDouglas Bagnall <dbagnall@samba.org>
Wed, 20 Aug 2025 04:34:37 +0000 (04:34 +0000)
commitdf0cf2556f39ff5062e052ae020fb031c76fd222
tree7b39f06f90b019c028904e6cb478c914031bd9fe
parent87caac906e733e15ba3268db99f101bd1a93d9a1
py:key_credential_list: add kcl_in_list function

This compares the key material and DN of a KeyCredentialLinkDn with a
list of others, which is a different sense of equality than the
default (which considers GUIDs and binary equality).

This will be used by samba-tool to check whether a link is in fact a
duplicate even if it seems not to be due to some insignificant field
being non-identical.

Signed-off-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz>
Reviewed-by: Gary Lockyer <gary@catalyst.net.nz>
python/samba/key_credential_link.py