Commit 3579ac44 authored by Andrew Bartlett's avatar Andrew Bartlett Committed by Stefan Metzmacher

CVE-2018-1139 libcli/auth: Add initial tests for ntlm_password_check()

BUG: https://bugzilla.samba.org/show_bug.cgi?id=13360Signed-off-by: default avatarAndrew Bartlett <abartlet@samba.org>
Reviewed-by: default avatarJeremy Allison <jra@samba.org>
Reviewed-by: default avatarGary Lockyer <gary@catalyst.net.nz>
parent 77519371
This diff is collapsed.
......@@ -41,3 +41,16 @@ bld.SAMBA_SUBSYSTEM('PAM_ERRORS',
bld.SAMBA_SUBSYSTEM('SPNEGO_PARSE',
source='spnego_parse.c',
deps='asn1util')
bld.SAMBA_BINARY(
'test_ntlm_check',
source='tests/ntlm_check.c',
deps='''
NTLM_CHECK
CREDENTIALS_NTLM
samba-credentials
cmocka
talloc
''',
install=False
)
^samba.unittests.ntlm_check.test_ntlm_mschapv2_only_denied
^samba.unittests.ntlm_check.test_ntlmv2_only_ntlm\(
......@@ -191,3 +191,5 @@ plantestsuite("samba.unittests.kerberos", "none",
[os.path.join(bindir(), "test_kerberos")])
plantestsuite("samba.unittests.ms_fnmatch", "none",
[os.path.join(bindir(), "default/lib/util/test_ms_fnmatch")])
plantestsuite("samba.unittests.ntlm_check", "none",
[os.path.join(bindir(), "default/libcli/auth/test_ntlm_check")])
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment