23 Commits

Author SHA1 Message Date
0068ff7a94 kadmin: Fix re-entrance in iterations (part 2) 2022-03-24 14:58:10 -05:00
6b64ae2cde kadmin: Fix leak of dup context 2022-03-23 23:39:34 -05:00
621deed047 kadmin: Fix re-entrance in iterations
Any callback of kadm5_iter_principals() that wants to call other kadm5
functions (such as kadm5_get_principal()) needs to do so on a different
kadm5 handle than the one used for kadm5_iter_principals().
2022-03-23 18:03:38 -05:00
b7bf5ca6e8 kadmin: Fix warnings 2022-01-14 14:59:02 -06:00
ba98690a0a kadmin: Add add_alias, del_alias 2021-10-11 13:58:15 -05:00
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
433b1d5073 drop RCSID 2010-03-16 12:52:58 -07:00
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
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
5fd1762c9d (del_entry): make sure ret have a defined value
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@16754 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-02-18 23:29:43 +00:00
091fba8a25 return 1 on failure, update (c)
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@16658 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-01-25 12:29:46 +00:00
51e6fc9b74 (del_entry): return 1 on failure.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@16655 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-01-25 12:19:27 +00:00
5836537f76 argument number checks are now done by slc
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@14026 ec53bebd-3082-4978-b11e-865c3cabbd6b
2004-07-05 11:41:22 +00:00
d970c48c81 print error messages to stderr; change all in-string quoting to use "
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@14021 ec53bebd-3082-4978-b11e-865c3cabbd6b
2004-07-04 15:09:42 +00:00
240a2fd230 fix usage string
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@14017 ec53bebd-3082-4978-b11e-865c3cabbd6b
2004-07-02 13:40:47 +00:00
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
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
9811da0550 (del_entry): new foreach_principal
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@9852 ec53bebd-3082-4978-b11e-865c3cabbd6b
2001-05-07 05:30:50 +00:00
9c1353f1f8 add option parsing
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@9044 ec53bebd-3082-4978-b11e-865c3cabbd6b
2000-09-10 19:19:20 +00:00
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
2383388ac0 (del_entry): don't apply on zeroth argument
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@5046 ec53bebd-3082-4978-b11e-865c3cabbd6b
1998-06-30 16:07:38 +00:00
bae1697bdb Use `foreach_principal'.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@4499 ec53bebd-3082-4978-b11e-865c3cabbd6b
1998-03-01 04:04:07 +00:00
a9f1581a4c Simple kadmin utility.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@3738 ec53bebd-3082-4978-b11e-865c3cabbd6b
1997-11-01 02:53:06 +00:00