samba tool - tests: Fix shell metacharacters in generated password
commit7bce7e150e2ae9adc3e372d65e152062e291cf19
authorGary Lockyer <gary@catalyst.net.nz>
Wed, 7 Jun 2017 19:21:05 +0000 (8 07:21 +1200)
committerAndrew Bartlett <abartlet@samba.org>
Fri, 9 Jun 2017 07:50:27 +0000 (9 09:50 +0200)
tree3d1b65c005b568966326de1e46663f0ea652d0d8
parent0098a7b5564b60b3b29d3f1767adfd538d3ff55d
samba tool - tests: Fix shell metacharacters in generated password

Restrict the random password to [A-Za-z0-9] to ensure there are no shell
metacharacters in the generated password.

The tests use "samba-tool user create" to create the test user.
Occasionally the generated password contained shell metachatacters and
the command failed.

Signed-off-by: Gary Lockyer <gary@catalyst.net.nz>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
Reviewed-by: Garming Sam <garming@catalyst.net.nz>
Autobuild-User(master): Andrew Bartlett <abartlet@samba.org>
Autobuild-Date(master): Fri Jun  9 09:50:28 CEST 2017 on sn-devel-144
python/samba/tests/samba_tool/user_virtualCryptSHA.py
python/samba/tests/samba_tool/user_wdigest.py