Commit Graph

59 Commits

Author SHA1 Message Date
Nicolas Williams
b92a02edda kadmind: Online LIST using kadm5_iter_principals()
Implement a variation on the op for listing principals where if the
client indicates support for the new variation then we stream the list
instead of collecting it into one reply.  This is the server-side
version of the associated, preceding commit:

    kadm5: Add online kadm5_iter_principals()
2022-03-20 18:30:21 -05:00
Nicolas Williams
ba98690a0a kadmin: Add add_alias, del_alias 2021-10-11 13:58:15 -05:00
Nicolas Williams
ea83f068e9 kadm5/kadmin: Add read-only mode
Now we can have read-only kadmind instances.
2020-09-08 00:25:40 -05:00
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
Nicolas Williams
1f349a6aba kadmin support for policies. 2011-07-22 16:05:21 -05:00
Love Hornquist Astrand
a85c548fd1 wait for dead children, and then abandon the live ones 2010-10-30 12:15:04 -07:00
Love Hornquist Astrand
b914fd57c5 remove NO_INETD by shuffling code around 2009-12-25 06:37:57 +01:00
Love Hörnquist Åstrand
04ac45eec0 drop HAVE_CONFIG_H
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@24544 ec53bebd-3082-4978-b11e-865c3cabbd6b
2009-01-30 16:47:36 +00:00
Love Hörnquist Åstrand
8d16bb0b68 add support for add,get,delete,chrand for the MIT kadmin protocol
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@24240 ec53bebd-3082-4978-b11e-865c3cabbd6b
2009-01-11 21:42:02 +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
0e230cfee5 Avoid shadowing.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@17580 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-05-13 21:28:56 +00:00
Love Hörnquist Åstrand
ea0c11825c Include <hex.h>.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@15891 ec53bebd-3082-4978-b11e-865c3cabbd6b
2005-08-11 13:49:08 +00:00
Love Hörnquist Åstrand
5654000990 lower amount of shadow and const warnings
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@15587 ec53bebd-3082-4978-b11e-865c3cabbd6b
2005-07-07 22:06:50 +00:00
Johan Danielsson
9929f779ec move kadmin-commands.h from kadmin_locl.h so kadmind does not depend on it
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@14000 ec53bebd-3082-4978-b11e-865c3cabbd6b
2004-06-27 15:04:07 +00:00
Johan Danielsson
d7f9fac88e convert to use slc; also add stash subcommand
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@13970 ec53bebd-3082-4978-b11e-865c3cabbd6b
2004-06-21 19:19:45 +00:00
Johan Danielsson
2450e7b7f8 nuke kerberos 4 kadmin goo
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@13845 ec53bebd-3082-4978-b11e-865c3cabbd6b
2004-05-13 17:46:20 +00:00
Love Hörnquist Åstrand
9023be3478 add prototype for password_quality
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@13477 ec53bebd-3082-4978-b11e-865c3cabbd6b
2004-03-07 23:09:15 +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
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
810115a8ff include libutil.h if it exists
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@10513 ec53bebd-3082-4978-b11e-865c3cabbd6b
2001-08-21 22:50:25 +00:00
Assar Westerlund
ced9e4f1c7 remove get_response
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@10481 ec53bebd-3082-4978-b11e-865c3cabbd6b
2001-08-10 15:25:23 +00:00
Johan Danielsson
37f3af3679 prototype for set_defaults
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@10456 ec53bebd-3082-4978-b11e-865c3cabbd6b
2001-08-10 08:00:47 +00:00
Assar Westerlund
d8f26b1406 (foreach_principal): update prototype
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@9855 ec53bebd-3082-4978-b11e-865c3cabbd6b
2001-05-07 05:32:04 +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
Assar Westerlund
a5b73673b2 (handle_v4): update prototype
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@9066 ec53bebd-3082-4978-b11e-865c3cabbd6b
2000-09-19 12:46:18 +00:00
Assar Westerlund
e71b05e381 (kadmind_loop): add prototype
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@8971 ec53bebd-3082-4978-b11e-865c3cabbd6b
2000-08-18 05:17:55 +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
ce6492b982 add <sys/select.h>
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@8751 ec53bebd-3082-4978-b11e-865c3cabbd6b
2000-07-22 01:04:08 +00:00
Johan Danielsson
1cb4e4cafc variables
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@8739 ec53bebd-3082-4978-b11e-865c3cabbd6b
2000-07-21 23:28:27 +00:00
Assar Westerlund
5d5d840adb add limits.h and sys/select.h
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@8724 ec53bebd-3082-4978-b11e-865c3cabbd6b
2000-07-20 22:35:28 +00:00
Johan Danielsson
dfb56b5b75 proto
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@8644 ec53bebd-3082-4978-b11e-865c3cabbd6b
2000-07-11 13:05:15 +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
Assar Westerlund
5ba8d63598 (parse_des_key): add prototype
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@8053 ec53bebd-3082-4978-b11e-865c3cabbd6b
2000-03-23 15:21:15 +00:00
Assar Westerlund
3dc7ccd14d add <des.h>
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@7855 ec53bebd-3082-4978-b11e-865c3cabbd6b
2000-02-06 05:17:05 +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
Assar Westerlund
c725320081 add `del_enctype'
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@7435 ec53bebd-3082-4978-b11e-865c3cabbd6b
1999-11-25 22:32:26 +00:00
Assar Westerlund
d0df5b1fc8 (str2deltat): update prototype
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@7366 ec53bebd-3082-4978-b11e-865c3cabbd6b
1999-11-13 04:13:36 +00:00
Johan Danielsson
758993e485 remove version string
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@7336 ec53bebd-3082-4978-b11e-865c3cabbd6b
1999-11-09 18:04:40 +00:00
Assar Westerlund
eb90d1b03d add prorotype for random_password
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@6854 ec53bebd-3082-4978-b11e-865c3cabbd6b
1999-08-21 12:39:31 +00:00
Assar Westerlund
4359bab97a update util.c prototypes
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@6845 ec53bebd-3082-4978-b11e-865c3cabbd6b
1999-08-19 20:29:28 +00:00
Assar Westerlund
319a2fe4bd (str2timeval): add prototype
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@6501 ec53bebd-3082-4978-b11e-865c3cabbd6b
1999-07-23 22:09:49 +00:00
Assar Westerlund
d86a6c73ef (edit_entry): update
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@6354 ec53bebd-3082-4978-b11e-865c3cabbd6b
1999-06-23 12:38:25 +00:00
Assar Westerlund
1275ebffb2 (set_entry): add prototype
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@6129 ec53bebd-3082-4978-b11e-865c3cabbd6b
1999-05-04 18:41:26 +00:00
Assar Westerlund
a21f4cefc1 add prototypes
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@6117 ec53bebd-3082-4978-b11e-865c3cabbd6b
1999-05-04 03:41:00 +00:00
Johan Danielsson
761fdb7dff include <sys/un.h>
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@6082 ec53bebd-3082-4978-b11e-865c3cabbd6b
1999-05-03 16:43:55 +00:00
Johan Danielsson
e5734388e9 <kadm5/kadm5_err.h>
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@4628 ec53bebd-3082-4978-b11e-865c3cabbd6b
1998-03-21 01:57:34 +00:00
Johan Danielsson
37061c9be3 proto
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@4502 ec53bebd-3082-4978-b11e-865c3cabbd6b
1998-03-01 04:06:31 +00:00
Johan Danielsson
8505713498 proto
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@4496 ec53bebd-3082-4978-b11e-865c3cabbd6b
1998-03-01 03:32:07 +00:00
Johan Danielsson
93f0bcdfcd <kadm5/private.h>
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@4270 ec53bebd-3082-4978-b11e-865c3cabbd6b
1998-01-04 18:37:38 +00:00