Commit Graph

22 Commits

Author SHA1 Message Date
Nicolas Williams
5447b81fb1 hdb: Move virtual principals into HDB layer
This is a large commit that adds several features:

 - Revamps and moves virtual host-based service principal functionality
   from kdc/ to lib/hdb/ so that it may be automatically visible to
   lib/kadm5/, as well as kadmin(1)/kadmind(8) and ktutil(1).

   The changes are backwards-incompatible.

 - Completes support for documenting a service principal's supported
   enctypes in its HDB entry independently of its long-term keys.  This
   will reduce HDB bloat by not requiring that service principals have
   more long-term keys than they need just to document the service's
   supported enctypes.

 - Adds support for storing krb5.conf content in principals' HDB
   entries.  This may eventually be used for causing Heimdal KDC
   services to reconfigure primary/secondary roles automatically by
   discovering the configured primary in an HDB entry for the realm.

   For now this will be used to help reduce the amount of configuration
   needed by clients of an upcoming HTTP binding of the kadmin service.
2020-09-08 00:25:36 -05: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
Quanah Gibson-Mount
7c16ce3457 Minor typo/grammar fixes 2017-03-10 15:47:43 -05:00
Nicolas Williams
2027aa11ed Use --detach in tests to avoid waiting 2016-12-07 19:52:29 -06:00
Nicolas Williams
8735d47d8b Add missing tests/gss env setup 2016-12-06 22:44:34 -06:00
Love Hörnquist Åstrand
60f56e7e65 no wrapext
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@25226 ec53bebd-3082-4978-b11e-865c3cabbd6b
2009-05-25 23:44:18 +00:00
Love Hörnquist Åstrand
2af460e370 test wrap-ext
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@24793 ec53bebd-3082-4978-b11e-865c3cabbd6b
2009-02-22 23:27:57 +00:00
Love Hörnquist Åstrand
e172367898 switch to utf8 encoding of all files
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@23814 ec53bebd-3082-4978-b11e-865c3cabbd6b
2008-09-13 08:53:55 +00:00
Love Hörnquist Åstrand
996b897314 empty messages.log
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@21845 ec53bebd-3082-4978-b11e-865c3cabbd6b
2007-08-08 06:54:48 +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
7952a0471c catch EXIT traps
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@19427 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-12-18 21:40:27 +00:00
Love Hörnquist Åstrand
c1fc563b38 switch to test.h5l.se
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@19026 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-11-13 10:09:12 +00:00
Love Hörnquist Åstrand
6a065ff0a7 use TEST.H5L.SE
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@19016 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-11-13 05:41:54 +00:00
Love Hörnquist Åstrand
faa8db30a9 Sleep some longer.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@18889 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-10-24 23:12:43 +00:00
Love Hörnquist Åstrand
8ad8f868a3 give path to have-db
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@18601 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-10-19 12:18:29 +00:00
Love Hörnquist Åstrand
417308400f If there is no useful db support compile in, disable test
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@18582 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-10-19 07:09:11 +00:00
Love Hörnquist Åstrand
9001a359bb remove dup exit
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@18545 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-10-17 20:08:38 +00:00
Love Hörnquist Åstrand
d8573146e7 use wait-kdc.sh script
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@18400 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-10-10 10:49:42 +00:00
Love Hörnquist Åstrand
fc309685c9 Heimdal uses TESTS_ENVIRONMENT before every binary being tested directly from the Makefile. This now uses the same for the scripts, so we can run them under valgrind. From Andrew Bartlet
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@18389 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-10-10 09:30:20 +00:00
Love Hörnquist Åstrand
ba22863ee0 Catch failures from gssmaestro.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@18145 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-09-22 09:59:51 +00:00
Love Hörnquist Åstrand
db11cf65a4 Add a third client
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@18128 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-09-20 03:35:27 +00:00
Love Hörnquist Åstrand
c079c30202 test for gssmask + gssmaestro.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@18118 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-09-19 10:22:33 +00:00