Commit Graph

28 Commits

Author SHA1 Message Date
Nicolas Williams
f36629d150 osx: Fix check-iprop 2026-01-18 19:06:16 -06:00
Nicolas Williams
9b88e9ec3b tests: Use new framework in tests/gss
Claude-coded with heavy human guidance.  This found several bugs in
tests/gss/check-negoex, and also in SPNEGO.

WARNING: Needs more review.
2026-01-18 19:06:16 -06:00
Nicolas Williams
cbe156d927 Use OpenSSL 3.x _only_ and implement RFC 8636
- No more OpenSSL 1.x support
 - Remove 1DES and 3DES
 - Remove NETLOGON, NTLM (client and 'digest' service)
2026-01-18 19:06:16 -06:00
Taylor R Campbell
ad23636db8 Add a test for potential DNS leaks via symbol interposition.
We build variants of kinit and test_acquire_cred that define their
own symbols rk_dns_lookup, gethostbyname, gethostbyname2, and
getaddrinfo to print a message and abort.  For getaddrinfo, we abort
only if the caller failed to specify AI_NUMERICHOST; otherwise we use
dlsym(RTLD_NEXT, "getaddrinfo") instead.

The new test tests/gss/check-nodns is like tests/gss/check-basic, but
uses kinit_auditdns and test_acquire_cred_auditdns to verify that no
DNS resolution happens.

This test should work and be effective on ELF platforms where the
getaddrinfo function is implemented by the symbol `getaddrinfo'.  On
non-ELF platforms it may not be effective -- and on platforms where
the getaddrinfo function is implemented by another symbol (like
`__getaddrinfo50') it may not work, but we can cross that bridge when
we come to it.

Verified manually that the test fails, with the expected error
message and abort, without `block_dns = yes' in krb5-nodns.conf.  No
automatic test of the mechanism for now because it might not work on
some platforms.

XXX check-nodns.in is copypasta of check-basic.in, should factor out
the common parts so they don't get out of sync.
2024-01-08 10:22:02 -06:00
Nicolas Williams
f455ea9834 tests: Make make -j8 check work
In the future we should also make it so that `make check` for `tests/db`,
`tests/gss`, and `tests/kdc` first initializes all the realms and starts all
the daemons, then runs the actual checks possibly in parallel, then shuts down
the daemons.  This will require quite a bit of work, so for now we just disable
parallel make in those directories.
2024-01-03 18:48:02 -06:00
Nicolas Williams
f076ed57cc Fix make dist 2022-01-14 20:10:19 -06:00
Isaac Boukris
d83321fdf3 Add channel-bindings tests 2021-08-06 13:15:19 +10:00
Luke Howard
4fb6a6adc9 gss: port NegoEx implementation from MIT
An implementation of draft-zhu-negoex-04 for MIT Kerberos was developed in
2011. This has been recently integrated, with many fixes from Greg Hudson. This
commit ports it to Heimdal. The implementation has been interoperability tested
with MIT Kerberos and Windows, using the GSS EAP mechanism developed as part of
the Moonshot project.

The SPNEGO code was also updated to import the state machine from Apple which
improves mechListMIC processing and avoids discarding initial context tokens
generated during mechanism probing, that can be used for optimistic tokens.

Finally, to aid in testing, the GSS-API mechanism glue configuration file can
be changed using the environment variable GSS_MECH_CONFIG. This environment
variable name, along with the format of the configuration file, is compatible
with MIT (although it would be difficult for a single mechanism binary to
support both implementations).
2020-02-04 17:28:35 +11:00
Daria Phoebe Brashear
d9425fecdf heim_verbose can't be used mid-stanza in shell commands
Solaris make won't allow @echo in a shell command string as there is no
command called @echo, and it passes the whole shell command to the shell
without poaching off the @ itself first
2018-04-19 13:12:59 -04:00
Viktor Dukhovni
008a26c489 Leave srcdir as-as and use absolute form only as needed 2017-03-15 19:12:03 -04:00
Nicolas Williams
a318ac86f5 Run tests/gss/check-basic 2015-03-24 11:50:01 -05:00
Love Hörnquist Åstrand
62b413b5df make quiet 2014-02-18 08:27:00 -08:00
Love Hörnquist Åstrand
7aaba443bc add NTMakefile and windows directories 2011-07-17 12:16:59 -07:00
Love Hornquist Astrand
2b1bc08d24 setup env_setup 2010-11-26 00:10:17 -08:00
Love Hörnquist Åstrand
166e3c5e0a clean tempfile
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@23713 ec53bebd-3082-4978-b11e-865c3cabbd6b
2008-08-29 23:10:17 +00:00
Love Hörnquist Åstrand
ddd63bbadd Add check-ntlm.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@20513 ec53bebd-3082-4978-b11e-865c3cabbd6b
2007-04-22 10:23:27 +00:00
Love Hörnquist Åstrand
d81bd24f21 add check-basic
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@20362 ec53bebd-3082-4978-b11e-865c3cabbd6b
2007-04-17 13:26:47 +00:00
Love Hörnquist Åstrand
ea808c9c0e use diffrent port, 49188, and hope that it isnt used, help on solaris where the help services runs on port 8888
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@20202 ec53bebd-3082-4978-b11e-865c3cabbd6b
2007-02-08 00:59:47 +00:00
Love Hörnquist Åstrand
d5852aaa48 remove files created by tests
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@19846 ec53bebd-3082-4978-b11e-865c3cabbd6b
2007-01-11 10:44:01 +00:00
Love Hörnquist Åstrand
a0edd3fefa add ntlm-user-file.txt
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@19829 ec53bebd-3082-4978-b11e-865c3cabbd6b
2007-01-11 03:11:53 +00:00
Love Hörnquist Åstrand
b11bcf4bee add check-spnego
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@19404 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-12-18 13:06:00 +00:00
Love Hörnquist Åstrand
3c48166758 Clean temporary files
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@18705 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-10-20 20:36:07 +00:00
Love Hörnquist Åstrand
d8fb637ef8 more files
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@18663 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-10-20 17:09:30 +00:00
Love Hörnquist Åstrand
5dcd51ca0f Check if the gss context tester test_context works ok.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@18425 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-10-12 11:42:15 +00:00
Love Hörnquist Åstrand
a10fe6403b splits script tests and binary tests
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@18287 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-10-07 09:32:32 +00:00
Love Hörnquist Åstrand
9ca18bb277 clean more files
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@18134 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-09-21 07:10:15 +00:00
Love Hörnquist Åstrand
c0b050b7e1 Add check-gssmask and krb5.conf targets
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@18116 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-09-19 10:21:24 +00:00
Love Hörnquist Åstrand
314c661b24 build and check gss
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@17755 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-06-30 12:24:42 +00:00