]> git.ipfire.org Git - thirdparty/samba.git/commit
samba-tool: copy user_keytrust to computer keytrust
authorDouglas Bagnall <douglas.bagnall@catalyst.net.nz>
Sun, 17 Aug 2025 09:57:55 +0000 (09:57 +0000)
committerDouglas Bagnall <dbagnall@samba.org>
Wed, 20 Aug 2025 04:34:37 +0000 (04:34 +0000)
commit8ed39fa33f9dd917aae291ce6aad222d95654ec1
tree2da9090d738f5da25565bee0c74a19520fc3225c
parent16d670f0a52ae8d78188af0c741b79175d7169ff
samba-tool: copy user_keytrust to computer keytrust

This is exactly a copy of user/keytrust.py to computer_keytrust.py
with a title-case-preserving `s/user/computer/`.

It works. The Computer model differs from the User model in that it
appends a '$' to the end of account names if it senses the lack,
otherwise these commands are using the same code paths.

Signed-off-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz>
Reviewed-by: Gary Lockyer <gary@catalyst.net.nz>
python/samba/netcmd/computer.py
python/samba/netcmd/computer_keytrust.py [new file with mode: 0644]