mirror of
https://github.com/samba-team/samba.git
synced 2025-01-10 01:18:15 +03:00
pdb: add a blackbox test for setting password with hash
Signed-off-by: Garming Sam <garming@catalyst.net.nz> Reviewed-by: Andrew Bartlett <abartlet@samba.org>
This commit is contained in:
parent
1c9117746b
commit
576b92abc3
@ -98,6 +98,13 @@ testit "modify user - disable password expiry" $VALGRIND $net sam set pwnoexp $
|
||||
|
||||
test_smbclient "Test login with no expiry (ntlm)" 'ls' -k no -U$USER%$NEWUSERPASS || failed=`expr $failed + 1`
|
||||
|
||||
NEWUSERPASS=testPaSS@03%
|
||||
NEWUSERHASH=062519096c45739c1938800f80906731
|
||||
|
||||
testit "Set user password with password hash" $VALGRIND $pdbedit -u $USER --set-nt-hash $NEWUSERHASH $@ || failed=`expr $failed + 1`
|
||||
|
||||
test_smbclient "Test login with new password (from hash)" 'ls' -k no -U$USER%$NEWUSERPASS || failed=`expr $failed + 1`
|
||||
|
||||
testit "del user" $VALGRIND $pdbedit -x $USER $@ || failed=`expr $failed + 1`
|
||||
|
||||
rm ./tmpsmbpasswdscript
|
||||
|
Loading…
Reference in New Issue
Block a user