Commit Graph

35 Commits

Author SHA1 Message Date
Luke Howard
6530021f09 kdc: move auth event definitions into KDC header
Move KDC auth event macro definitions out of hdb.h and into a new KDC header,
kdc-audit.h.
2022-01-13 14:51:31 +11:00
Luke Howard
fcff5933ad kdc: rename windc to kdc plugin
Rename the "windc" plugin API to the more general "kdc" plugin API, for two
reasons: the Heimdal KDC uses the Windows PAC even when not emulating a domain
controller, and the plugin API has accreted methods that are not specific to
emulating a domain controller (such as referral_policy and finalize_reply).
2022-01-03 16:17:01 +11:00
Luke Howard
49f3f5bd99 kdc: support for GSS-API pre-authentication
Add support for GSS-API pre-authentication to the KDC, using a simplified
variation of draft-perez-krb-wg-gss-preauth-02 that encodes GSS-API context
tokens directly in PADATA, and uses FX-COOKIE for state management.

More information on the protocol and implementation may be found in
lib/gssapi/preauth/README.md.
2021-08-12 17:37:01 +10:00
Nicolas Williams
1d5062b167 kdc: Modernize kx509 logging too 2019-12-11 19:34:36 -06:00
Nicolas Williams
4f87d85d65 Fix Windows build: no fork for kdc 2016-01-20 15:03:30 -06:00
Roland C. Dowdeswell
352a7e94a3 Make the KDC use a multi-process model.
We now fork(2) a number of separate KDC processes rather than a single
process.  By default, the number is selected by asking how many CPUs
the machine has.  We also have a master process which monitors all
of the children (which do the actual work) and it will restart kids
who die for any reason.  The children will die when the parent dies.

In the case of MacOS X, we also move the bonjour code into another
separate child as it creates threads and this is known to play
rather poorly with fork(2).  We could move this logic into a
designated child at some point in the future.

We slow down the spawning to one every 25ms to prevent instant crashes
and restarts from consuming all available system time.  This approach
may want to be revisited in the future.
2015-11-06 15:39:30 -05:00
Love Hornquist Astrand
13eeb30a1d Create a request structure 2011-07-24 20:24:37 -07:00
Russ Allbery
f3a559b3c2 Ensure data structures allocated by hprop are initialized
Use calloc instead of malloc when allocating data structures while
importing a dump in hprop.  Fixes a crash in hprop when reading MIT
dump files due unintialized memory in the Salt data structure, plus
will be more robust against any future changes to the data model.

Signed-off-by: Love Hornquist Astrand <lha@h5l.org>
2010-02-02 20:43:48 -08:00
Love Hornquist Astrand
63db63e062 drop HAVE_CONFIG_H 2009-11-22 06:51:45 -08:00
Love Hörnquist Åstrand
506b98d110 Patch from Andrew bartlett via heimdal-bugs@h5l.org
kdc Allow a password change when the password is expired

    This requires a rework on Heimdal's windc plugin layer, as we want
    full control over what tickets Heimdal will issue.  (In particular, in
    case our requirements become more complex in future).

    The original problem was that Heimdal's check would permit the ticket,
    but Samba would then deny it, not knowing it was for kadmin/changepw

    Andrew Bartlett

git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@25294 ec53bebd-3082-4978-b11e-865c3cabbd6b
2009-07-03 03:16:46 +00:00
Love Hörnquist Åstrand
808af9fc06 make digest and kx509 optional
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@24414 ec53bebd-3082-4978-b11e-865c3cabbd6b
2009-01-25 00:40:14 +00:00
Love Hörnquist Åstrand
6937d41a02 remove trailing whitespace
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@23815 ec53bebd-3082-4978-b11e-865c3cabbd6b
2008-09-13 09:21:03 +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
794a8dc6db Maybe include <sys/wait.h>.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@19658 ec53bebd-3082-4978-b11e-865c3cabbd6b
2007-01-04 00:15:34 +00:00
Love Hörnquist Åstrand
61c32aa510 Include <windc_plugin.h>.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@19632 ec53bebd-3082-4978-b11e-865c3cabbd6b
2007-01-03 15:39:12 +00:00
Love Hörnquist Åstrand
6d254afa9f Include <kx509_asn1.h>.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@19551 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-12-28 21:08:15 +00:00
Love Hörnquist Åstrand
ffada79bc7 Include <heimntlm.h>.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@19373 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-12-15 21:22:19 +00:00
Love Hörnquist Åstrand
a54f56a729 remove stale comment
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@18489 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-10-17 02:22:17 +00:00
Love Hörnquist Åstrand
1bdc073a65 Include <digest_asn1.h>.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@17909 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-08-24 08:46:48 +00:00
Love Hörnquist Åstrand
b90ccb10ca don't include kerberos 4 headers here
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@14917 ec53bebd-3082-4978-b11e-865c3cabbd6b
2005-04-24 13:49:00 +00:00
Johan Danielsson
69cc215e6f don't need des.h here
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@11445 ec53bebd-3082-4978-b11e-865c3cabbd6b
2002-09-10 20:04:46 +00:00
Jacques A. Vidrine
3d7ec07178 We need <limits.h> now for UINT_MAX.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@11413 ec53bebd-3082-4978-b11e-865c3cabbd6b
2002-09-09 14:16:55 +00:00
Assar Westerlund
aad564d1c2 re-write the handling of crypto libraries. try to use the one of
openssl's libcrypto or krb4's libdes that has all the required
functionality (md4, md5, sha1, des, rc4).  if there is no such
library, the included lib/des is built.


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@10519 ec53bebd-3082-4978-b11e-865c3cabbd6b
2001-08-22 20:30:33 +00:00
Assar Westerlund
7d75a2a5f5 include libutil.h if it exists
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@10515 ec53bebd-3082-4978-b11e-865c3cabbd6b
2001-08-21 23:09:03 +00:00
Assar Westerlund
2aefcf796c try to use handle using openssl instead of libdes better. based on patches from GOMBAS Gabor <gombasg@inf.elte.hu> and Brian May <bam@snoopy.apana.org.au>
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@9681 ec53bebd-3082-4978-b11e-865c3cabbd6b
2001-02-15 04:20:54 +00:00
Johan Danielsson
f16a83d105 util.h
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@8896 ec53bebd-3082-4978-b11e-865c3cabbd6b
2000-08-04 11:23:40 +00:00
Assar Westerlund
f3dc554555 (ALLOC_SEQ): undef
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@8617 ec53bebd-3082-4978-b11e-865c3cabbd6b
2000-07-08 16:12:03 +00:00
Assar Westerlund
b1fb1c997a add krb5_locl.h (since we just use some stuff from there)
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@8575 ec53bebd-3082-4978-b11e-865c3cabbd6b
2000-07-08 11:05:05 +00:00
Johan Danielsson
8ba69c1946 ALLOC_SEQ
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@8412 ec53bebd-3082-4978-b11e-865c3cabbd6b
2000-06-20 13:21:23 +00:00
Assar Westerlund
36eab9caf8 add des.h
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@7865 ec53bebd-3082-4978-b11e-865c3cabbd6b
2000-02-06 06:04:36 +00:00
Johan Danielsson
c5b916ca6f remove advertising clause
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@7464 ec53bebd-3082-4978-b11e-865c3cabbd6b
1999-12-02 17:05:13 +00:00
Johan Danielsson
32f0abe5dd Add some headers.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@4736 ec53bebd-3082-4978-b11e-865c3cabbd6b
1998-04-05 09:29:11 +00:00
Assar Westerlund
9a707cbe2d more includes
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@3749 ec53bebd-3082-4978-b11e-865c3cabbd6b
1997-11-02 04:03:59 +00:00
Assar Westerlund
fc4fa1ec84 netinet/in6.h and netinet6/in6.h
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@3561 ec53bebd-3082-4978-b11e-865c3cabbd6b
1997-09-29 14:00:36 +00:00
Johan Danielsson
8eff0f60e2 common headers
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@3324 ec53bebd-3082-4978-b11e-865c3cabbd6b
1997-09-01 15:52:35 +00:00