summaryrefslogtreecommitdiff
path: root/source4/auth/tests
AgeCommit message (Collapse)AuthorFilesLines
2025-10-17Add missing include needed for cmocka.hAndreas Schneider1-0/+1
This will be required in future. Signed-off-by: Andreas Schneider <asn@samba.org> Reviewed-by: Anoop C S <anoopcs@samba.org>
2022-12-16s4-auth: fix sam test binary ntstatus include pathGünther Deschner1-1/+1
Guenther Signed-off-by: Guenther Deschner <gd@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org> Autobuild-User(master): Jeremy Allison <jra@samba.org> Autobuild-Date(master): Fri Dec 16 21:35:45 UTC 2022 on sn-devel-184
2022-11-24CVE-2021-20251: s4:auth: fix use after free in ↵Stefan Metzmacher1-12/+12
authsam_logon_success_accounting() This fixes a use after free problem introduced by commit 7b8e32efc336fb728e0c7e3dd6fbe2ed54122124, which has msg = current; which means the lifetime of the 'msg' memory is no longer in the scope of th caller. BUG: https://bugzilla.samba.org/show_bug.cgi?id=14611 BUG: https://bugzilla.samba.org/show_bug.cgi?id=15253 Signed-off-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Andrew Bartlett <abartlet@samba.org>
2022-10-25CVE-2022-3437 s4/auth/tests: Add unit tests for unwrap_des3()Joseph Sutton1-0/+1244
BUG: https://bugzilla.samba.org/show_bug.cgi?id=15134 Signed-off-by: Joseph Sutton <josephsutton@catalyst.net.nz> Reviewed-by: Andrew Bartlett <abartlet@samba.org>
2022-09-12CVE-2021-20251 s4 auth test: Unit tests for source4/auth/sam.cGary Lockyer1-0/+2746
cmocka unit tests for the authsam_reread_user_logon_data in source4/auth/sam.c BUG: https://bugzilla.samba.org/show_bug.cgi?id=14611 Signed-off-by: Gary Lockyer <gary@catalyst.net.nz> Reviewed-by: Andreas Schneider <asn@samba.org> Reviewed-by: Andrew Bartlett <abartlet@samba.org>
2020-08-19auth:creds: Remove unused credentials autoproto headerAndreas Schneider1-1/+0
Signed-off-by: Andreas Schneider <asn@samba.org> Reviewed-by: Stefan Metzmacher <metze@samba.org>
2018-11-10s4-auth-tests: Fix test_kerberos with MIT krbJustin Stephenson1-0/+17
When a keytab of type MEMORY is used, the MIT kerberos krb5_kt_add_entry() library function adds a keytab entry to the beginning of the keytab table, instead of the end. This adds a MIT kerberos conditional to reverse iterate through the keytable entries to address this. Signed-off-by: Justin Stephenson <jstephen@redhat.com> Reviewed-by: Andreas Schneider <asn@samba.org> Reviewed-by: Alexander Bokovoy <ab@samba.org> Autobuild-User(master): Alexander Bokovoy <ab@samba.org> Autobuild-Date(master): Sat Nov 10 12:48:02 CET 2018 on sn-devel-144
2018-10-05s4/auth/tests: Fix kerberos test string sizeAlexander Bokovoy1-2/+2
>>> len("user0@samba.example.com") 23 But the string definition does not take a final '\0' into account. As per Volker's suggestion, use compiler's support to allocate the string properly. Signed-off-by: Alexander Bokovoy <ab@samba.org> Reviewed-by: Volker Lendecke <vl@samba.org>
2018-05-15auth: keytab invalidation testAaron Haslett1-0/+107
chgtdcpass should add a new DC password and delete the old ones but the bug exposed by this test causes the tool to remove only a single record from the old entries, leaving the old passwords functional. Since the tool is used by administrators who may have disclosed their domain join password and want to invalidate it, this is a security concern. BUG: https://bugzilla.samba.org/show_bug.cgi?id=13415 Signed-off-by: Aaron Haslett <aaronhaslett@catalyst.net.nz> Reviewed-by: Andrew Bartlett <abartlet@samba.org> Reviewed-by: Andreas Schneider <asn@samba.org>
2010-09-21s4-selftest: Move more tests to scripting/python, simplifies running of tests.Jelmer Vernooij1-33/+0
2010-08-18s4:auth Remove system_session_anon() from python bindingsAndrew Bartlett1-2/+0
2010-06-24s4-python: python is not always in /usr/binAndrew Tridgell1-1/+1
Using "#!/usr/bin/env python" is more portable. It still isn't ideal though, as we should really use the python path found at configure time. We do that in many places already, but some don't. Signed-off-by: Andrew Bartlett <abartlet@samba.org>
2010-06-19python: Use samba.tests.TestCase, make sure base class tearDown andJelmer Vernooij1-2/+3
setUp methods are called, fix formatting.
2008-12-21Fix various Python-related bugs.Jelmer Vernooij1-1/+1
2008-05-21Move more modules inside of the samba package.Jelmer Vernooij1-1/+1
(This used to be commit 9b39e99f48266a54ed0b8890c2efde218b4b118a)
2007-12-21r26189: Add really trivial testsuite for the auth module.Jelmer Vernooij1-0/+34
(This used to be commit f0fcad0a75998bc45e3073927c0021fa67136d22)