pycredentials: Properly check type in creds.set_nt_hash() and samr.encrypt_samr_passw...
authorAndrew Bartlett <abartlet@samba.org>
Thu, 7 Dec 2023 02:50:43 +0000 (15:50 +1300)
committerAndrew Bartlett <abartlet@samba.org>
Thu, 7 Dec 2023 04:32:37 +0000 (04:32 +0000)
commit40de90336506233994a57cbde7a107e26ffe22bf
tree91ce8b264e2c56302155153e5d46fca0cd74a004
parent00034d022896f879bf91bb78eb9e2972162c99ce
pycredentials: Properly check type in creds.set_nt_hash() and samr.encrypt_samr_password()

We should not be just doing a talloc type check, we should check the python
type first.

Signed-off-by: Andrew Bartlett <abartlet@samba.org>
Reviewed-by: Joseph Sutton <josephsutton@catalyst.net.nz>
auth/credentials/pycredentials.c
auth/credentials/wscript_build