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
c6bf100b43 kadm5: move password quality checks out of daemons and into libkadm5
Note that this has a slight behavior change to c89d3f3b in order to continue
allow kadmin in local mode to bypass password quality checks. Password quality
checks are always bypassed if the *client* kadmin principal is kadmin/admin,
i.e. that of the kadmin service itself. This is the case when running kadmin in
local mode. As this is the equivalent of a superuser account, one would
anticipate that deployments would use specific administrator instances for
appropriate ACLs for day-to-day administration; operations by these will be
subject to password quality checks if enforce_on_admin_set is TRUE, or if the
user is changing their own password.
2018-12-26 11:04:05 -06:00
Nicolas Williams
87742e8118 Add missing KADM5_AUTH_GET_KEYS error and use it. 2011-07-22 16:07:07 -05:00
Nicolas Williams
45294a93a7 Added a disting get-keys authorization for kadmind. 2011-07-22 16:04:52 -05:00
Love Hornquist Astrand
f5f9014c90 Warning fixes from Christos Zoulas
- shadowed variables
- signed/unsigned confusion
- const lossage
- incomplete structure initializations
- unused code
2011-04-29 20:25:05 -07: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
cb704efeeb Rename u_intXX_t to uintXX_t
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@17445 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-05-05 10:37:46 +00:00
Love Hörnquist Åstrand
a234077ca3 (fetch_acl): use " \t\n" instead of just "\n" for the delim of the
third element, this is so we can match
"foo@REALM<SPC>all<SPC><SPC>*@REALM", before it just matched
"foo@REALM<SPC>all<SPC>*@REALM", but that is kind of luck since what
really happen was that the last <SPC> was stamped out, and the it
never strtok_r never needed to parse over it.


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@14157 ec53bebd-3082-4978-b11e-865c3cabbd6b
2004-08-26 07:48:46 +00:00
Assar Westerlund
436ae373d6 (fetch_acl): do not return bogus flags and re-organize function
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@10551 ec53bebd-3082-4978-b11e-865c3cabbd6b
2001-08-24 04:01:42 +00:00
Assar Westerlund
d68fd8235a (fetch_acl): fix wrong cases, use krb5_principal_match
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@8924 ec53bebd-3082-4978-b11e-865c3cabbd6b
2000-08-10 19:24:08 +00:00
Assar Westerlund
46f0769f2d add support for patterns of principals
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@8350 ec53bebd-3082-4978-b11e-865c3cabbd6b
2000-06-07 11:11:44 +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
ccdb41e6fd correctly get acl file
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@7331 ec53bebd-3082-4978-b11e-865c3cabbd6b
1999-11-09 17:57:31 +00:00
Assar Westerlund
41e3aa1b6a (_kadm5_privs_to_string): forgot one strcpy_truncate -> strlcpy
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@7032 ec53bebd-3082-4978-b11e-865c3cabbd6b
1999-09-26 15:51:57 +00:00
Johan Danielsson
d2f800defd (_kadm5_privs_to_string): return `none' if privs == 0
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@6993 ec53bebd-3082-4978-b11e-865c3cabbd6b
1999-09-20 14:10:05 +00:00
Johan Danielsson
567019e279 Use KADM5_PRIV_ALL.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@3950 ec53bebd-3082-4978-b11e-865c3cabbd6b
1997-11-11 21:27:48 +00:00
Johan Danielsson
e704317e09 Add _kadm5_{string,privs}_to_{privs,string}
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@3840 ec53bebd-3082-4978-b11e-865c3cabbd6b
1997-11-09 02:40:44 +00:00
Johan Danielsson
3e5cb18d86 Rename KADM5_ACL_* -> KADM5_PRIV_* to conform with specification.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@3839 ec53bebd-3082-4978-b11e-865c3cabbd6b
1997-11-09 01:31:14 +00:00
Johan Danielsson
af364bca96 less leaks
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@3833 ec53bebd-3082-4978-b11e-865c3cabbd6b
1997-11-09 01:18:20 +00:00
Johan Danielsson
d2a3f974ab don't split permissions on whitespace
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@3815 ec53bebd-3082-4978-b11e-865c3cabbd6b
1997-11-07 01:11:40 +00:00
Johan Danielsson
57377b6929 Simple acl system
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@3785 ec53bebd-3082-4978-b11e-865c3cabbd6b
1997-11-05 23:29:41 +00:00