41 Commits

Author SHA1 Message Date
Nicolas Williams
ffd4013be7 kadmin: Fix uninit variable in add_kvno_diff() 2023-01-04 01:48:34 -06:00
Nicolas Williams
6b64ae2cde kadmin: Fix leak of dup context 2022-03-23 23:39:34 -05:00
Nicolas Williams
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
Nicolas Williams
b7bf5ca6e8 kadmin: Fix warnings 2022-01-14 14:59:02 -06:00
Nicolas Williams
ba98690a0a kadmin: Add add_alias, del_alias 2021-10-11 13:58:15 -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
Jeffrey Altman
89d87ab66a kadmin: do_mod_entry copy and paste error
when testing hist_kvno_diff_svc_integer do not use
hist_kvno_diff_clnt_integer.

Change-Id: Ib1d0224cdb1bab95ef0b104026f854cbfd8f736f
2016-11-18 21:18:55 -05:00
Roland C. Dowdeswell
e8779d5d4a Add -Wshadow and deal with the warnings. 2012-02-21 11:17:55 +00:00
Nicolas Williams
a246c394d2 Fix warnings. 2011-07-22 16:07:08 -05:00
Nicolas Williams
a1203a703d Re-fix an earlier mistake that fell out in a branch switcheroo. 2011-07-22 16:07:06 -05:00
Nicolas Williams
fac34871be More kadmin support for kvno diff policy. 2011-07-22 16:06:01 -05:00
Nicolas Williams
1f349a6aba kadmin support for policies. 2011-07-22 16:05:21 -05:00
Love Hornquist Astrand
0879b9831a remove trailing whitespace 2011-05-21 11:57:31 -07:00
Jeffrey Altman
6850d6a65f avoid uninit variable and unreachable code warnings
most of these warnings are not problems because of ample
use of abort() calls.  However, the large number of warnings
makes it difficult to identify real problems.  Initialize
the variables to shut up the compilers.

Change-Id: I8477c11b17c7b6a7d9074c721fdd2d7303b186a8
2011-05-17 12:02:16 -04: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 Hornquist Astrand
433b1d5073 drop RCSID 2010-03-16 12:52:58 -07:00
Love Hörnquist Åstrand
8a1dc13633 abort on memory error
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@24874 ec53bebd-3082-4978-b11e-865c3cabbd6b
2009-02-27 03:34:24 +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
c36ecda89c Allow setting multiple allowed-to-delegate-to.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@21968 ec53bebd-3082-4978-b11e-865c3cabbd6b
2007-10-18 18:50:33 +00:00
Love Hörnquist Åstrand
bc791f665d add pk-init command
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@20647 ec53bebd-3082-4978-b11e-865c3cabbd6b
2007-05-10 19:03:38 +00:00
Love Hörnquist Åstrand
ea6db777a0 add setting and displaying aliases
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@20239 ec53bebd-3082-4978-b11e-865c3cabbd6b
2007-02-17 00:00:41 +00:00
Love Hörnquist Åstrand
9478fbdcac Try to not leak memory.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@18823 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-10-22 10:15:53 +00:00
Love Hörnquist Åstrand
347c8ddc11 (do_mod_entry): Add setting 1 delegation entry
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@17635 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-06-07 06:04:40 +00:00
Love Hörnquist Åstrand
7abec3efa7 Return error code so that toplevel function can catch them.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@16753 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-02-18 23:29:01 +00:00
Johan Danielsson
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
Johan Danielsson
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
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
9f29a211ec allow wildcarding principals, and make parameters a work same as if
prompted


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@13632 ec53bebd-3082-4978-b11e-865c3cabbd6b
2004-03-24 13:12:52 +00:00
Johan Danielsson
3deaf3a146 (mod_entry): check return value from edit_entry
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@11557 ec53bebd-3082-4978-b11e-865c3cabbd6b
2002-12-03 14:12:30 +00:00
Johan Danielsson
cc1c0c9de1 allow setting kvno
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@8647 ec53bebd-3082-4978-b11e-865c3cabbd6b
2000-07-11 14:34:56 +00:00
Assar Westerlund
4749d57521 add back int (got lost)
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@7987 ec53bebd-3082-4978-b11e-865c3cabbd6b
2000-03-01 20:31:23 +00:00
Assar Westerlund
c65425f7e1 (mod_entry): free princ_ent once
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@7986 ec53bebd-3082-4978-b11e-865c3cabbd6b
2000-03-01 20:30:12 +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
6fe7d4b04e (mod_entry): print the correct principal name in error messages. From
Love <lha@e.kth.se>


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@6988 ec53bebd-3082-4978-b11e-865c3cabbd6b
1999-09-20 09:47:19 +00:00
Assar Westerlund
3829eb5133 add parsing of lots of options. From Love <lha@stacken.kth.se>
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@6848 ec53bebd-3082-4978-b11e-865c3cabbd6b
1999-08-19 20:32:34 +00:00
Assar Westerlund
3a86ded924 (mod_entry): allow modifying expiration times
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@6502 ec53bebd-3082-4978-b11e-865c3cabbd6b
1999-07-23 22:10:07 +00:00
Assar Westerlund
d5e3a5dc5e (edit_entry): new prototype
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@6355 ec53bebd-3082-4978-b11e-865c3cabbd6b
1999-06-23 12:38:44 +00:00
Assar Westerlund
7753847a0b (mod_entry): check the number of arguments. check that
kadm5_get_principal worked.


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@5293 ec53bebd-3082-4978-b11e-865c3cabbd6b
1999-01-30 18:17:34 +00:00
Johan Danielsson
bd6b7de846 Modify entry.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@3953 ec53bebd-3082-4978-b11e-865c3cabbd6b
1997-11-11 22:16:44 +00:00