1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-03 01:18:10 +03:00
samba-mirror/python/samba/netcmd/user
Douglas Bagnall 4af4dd8135 samba-tool user: hashlib.sha1 is always present
We maybe thought we were checking that sha1 was in hashlib, but we were
only checking that hashlib is in the Python library (`hashlib.sha1()`
would not raise ImportError).

The documentation says hashlib always contains sha1 -- if that
changes, it is better we know by failing noisily with the import error
at the top of the file.

BUG: https://bugzilla.samba.org/show_bug.cgi?id=15756

Signed-off-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz>
Reviewed-by: Andreas Schneider <asn@samba.org>
2024-12-20 07:04:31 +00:00
..
auth python: pep8: fix import sorting after move 2024-03-20 03:49:35 +00:00
readpasswords samba-tool user: hashlib.sha1 is always present 2024-12-20 07:04:31 +00:00
__init__.py python/netcmd: Add "samba-tool user get-kerberos-ticket" to get a ticket for a gMSA 2023-12-21 02:05:38 +00:00
add_unix_attrs.py netcmd: user: PEP8 E225: missing whitespace around operator 2023-11-15 04:05:34 +00:00
add.py netcmd: user: Fix typo in samba-tool error message 2024-09-10 00:14:40 +00:00
delete.py samba-tool user delete: use account type constant 2024-03-01 00:19:45 +00:00
disable.py netcmd: user: move user disable command 2023-08-04 04:31:37 +00:00
edit.py netcmd: user: PEP8 E303 E305: fix too many or too little blank lines 2023-11-15 04:05:34 +00:00
enable.py netcmd: user: move user enable command 2023-08-04 04:31:37 +00:00
getgroups.py netcmd: user: move user getgroups command 2023-08-04 04:31:37 +00:00
list.py samba-tool: add "samba-tool user list --locked-only" 2024-03-12 09:49:31 +00:00
move.py netcmd: user: move user move command 2023-08-04 04:31:37 +00:00
password.py netcmd: user: move user password command 2023-08-04 04:31:37 +00:00
rename.py netcmd: user: PEP8 E127: fix hanging indent not lining up 2023-11-15 04:05:34 +00:00
sensitive.py python:netcmd: Remove semicolon 2023-08-21 23:37:29 +00:00
setexpiry.py python/netcmd: Add "samba-tool user get-kerberos-ticket" to get a ticket for a gMSA 2023-12-21 02:05:38 +00:00
setpassword.py netcmd: user: move user setpassword command 2023-08-04 04:31:37 +00:00
setprimarygroup.py netcmd: user: move user setprimarygroup command 2023-08-04 04:31:37 +00:00
unlock.py netcmd: user: move user unlock command 2023-08-04 04:31:37 +00:00