Commit Graph

258 Commits

Author SHA1 Message Date
Love Hörnquist Åstrand
2def6c8dd2 (kt_get): catch errors from krb5_parse_name
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@13920 ec53bebd-3082-4978-b11e-865c3cabbd6b
2004-06-09 10:44:55 +00:00
Love Hörnquist Åstrand
54fc57ccb5 s/des_read_pw_string/UI_UTIL_read_pw_string/
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@12753 ec53bebd-3082-4978-b11e-865c3cabbd6b
2003-09-03 09:37:03 +00:00
Love Hörnquist Åstrand
3abde05ac7 typos, from jmc <jmc@acn.waw.pl>
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@11984 ec53bebd-3082-4978-b11e-865c3cabbd6b
2003-04-08 20:55:10 +00:00
Love Hörnquist Åstrand
52bf663c4d (kt_change): collect all principals we are going to change, and pick
the highest kvno and use that to guess what kvno the resulting kvno is
going to be. Now two ktutil change in a row works. XXX fix the
protocol to pass the kvno back.


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@11949 ec53bebd-3082-4978-b11e-865c3cabbd6b
2003-04-01 15:04:49 +00:00
Love Hörnquist Åstrand
ce4841cbb8 s/entype/enctype/, from Igor Sobrado <sobrado@acm.org> via NetBSD
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@11788 ec53bebd-3082-4978-b11e-865c3cabbd6b
2003-03-16 18:53:23 +00:00
Love Hörnquist Åstrand
aa25cfcafa add copyright/license statment
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@11648 ec53bebd-3082-4978-b11e-865c3cabbd6b
2003-02-16 21:10:32 +00:00
Love Hörnquist Åstrand
97b31c3d2d document -v, --verbose
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@11591 ec53bebd-3082-4978-b11e-865c3cabbd6b
2003-01-16 19:10:55 +00:00
Love Hörnquist Åstrand
8d721d0bb4 (kt_get): make getarg usage consistent with other other parts of ktutil
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@11589 ec53bebd-3082-4978-b11e-865c3cabbd6b
2003-01-16 19:03:23 +00:00
Love Hörnquist Åstrand
22e0de2087 (kt_copy): remove adding verbose_flag to args struct, since it will
overrun the args array (from Sumit Bose)


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@11588 ec53bebd-3082-4978-b11e-865c3cabbd6b
2003-01-16 18:59:03 +00:00
Johan Danielsson
77de2f4011 use crypto-headers.h
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@11444 ec53bebd-3082-4978-b11e-865c3cabbd6b
2002-09-10 20:03:49 +00:00
Johan Danielsson
b97a223d26 on second thoughts, back out previous
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@11438 ec53bebd-3082-4978-b11e-865c3cabbd6b
2002-09-10 19:26:52 +00:00
Johan Danielsson
c8fbdf457d use krb5_prompter_posix instead of calling des_read_pw_string directly
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@11436 ec53bebd-3082-4978-b11e-865c3cabbd6b
2002-09-10 19:21:48 +00:00
Johan Danielsson
879fc6b8bc more, mostly whitespace, fixes from Thomas Klasusner
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@11176 ec53bebd-3082-4978-b11e-865c3cabbd6b
2002-08-20 17:07:29 +00:00
Johan Danielsson
31ad1085bf use sysconfdir
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@11080 ec53bebd-3082-4978-b11e-865c3cabbd6b
2002-08-12 15:09:20 +00:00
Johan Danielsson
8e07de16ed no need to use the "modify" keytab anymore
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@10828 ec53bebd-3082-4978-b11e-865c3cabbd6b
2002-02-11 14:14:11 +00:00
Johan Danielsson
8d01a8944c get the default keytab from krb5.conf, and list all parts of an ANY
type keytab


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@10816 ec53bebd-3082-4978-b11e-865c3cabbd6b
2002-01-30 10:12:21 +00:00
Jacques A. Vidrine
2d609b163b Staticize `kadm5_config_params conf' passed to
`kadm5_init_with_password_ctx', since the latter holds a reference
to it.  Previously it was on the stack and would become overwritten
when doing `ktutil get'.


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@10779 ec53bebd-3082-4978-b11e-865c3cabbd6b
2001-10-29 12:53:52 +00:00
Assar Westerlund
9b8ad9f282 set and use INCLUDE_des
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@10574 ec53bebd-3082-4978-b11e-865c3cabbd6b
2001-08-28 08:31:31 +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
Johan Danielsson
5fbe7f8ff9 some changes
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@10390 ec53bebd-3082-4978-b11e-865c3cabbd6b
2001-07-23 14:47:31 +00:00
Johan Danielsson
fe6bf34316 don't open connection to server until we loop over the principals, at
that time we know the realm of the (first) principal and we can
default to that admin server


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@10388 ec53bebd-3082-4978-b11e-865c3cabbd6b
2001-07-23 14:30:09 +00:00
Johan Danielsson
e84ee73029 document rename
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@10385 ec53bebd-3082-4978-b11e-865c3cabbd6b
2001-07-23 10:25:26 +00:00
Johan Danielsson
bfc828cabd add rename command
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@10384 ec53bebd-3082-4978-b11e-865c3cabbd6b
2001-07-23 10:17:32 +00:00
Johan Danielsson
4d7d46d8b7 move common code for opening the keytab to ktutil.c
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@10383 ec53bebd-3082-4978-b11e-865c3cabbd6b
2001-07-23 09:46:41 +00:00
Johan Danielsson
ad4db1f4e6 (do_list): make sure list of keys is NULL terminated; similar to patch
sent by Chris Chiappa


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@10086 ec53bebd-3082-4978-b11e-865c3cabbd6b
2001-06-18 01:24:29 +00:00
Johan Danielsson
776835b929 fix for broken mdoc.old grog test
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@10030 ec53bebd-3082-4978-b11e-865c3cabbd6b
2001-06-08 21:35:32 +00:00
Assar Westerlund
0d6df259a0 move printing of keytab strings to better times
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@9898 ec53bebd-3082-4978-b11e-865c3cabbd6b
2001-05-11 00:54:01 +00:00
Assar Westerlund
57c153beb7 (do_list): do not close the keytab if opening it failed
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@9896 ec53bebd-3082-4978-b11e-865c3cabbd6b
2001-05-11 00:49:21 +00:00
Assar Westerlund
39b2d61db6 (do_list): always print complete names. print everything to stdout.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@9895 ec53bebd-3082-4978-b11e-865c3cabbd6b
2001-05-10 21:55:07 +00:00
Assar Westerlund
8c9d71d780 print both v5 and v4 list by default
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@9894 ec53bebd-3082-4978-b11e-865c3cabbd6b
2001-05-10 16:05:15 +00:00
Assar Westerlund
5bb7e47989 remove left-overs of keytab handling
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@9893 ec53bebd-3082-4978-b11e-865c3cabbd6b
2001-05-10 16:04:27 +00:00
Assar Westerlund
020b649110 (kt_remove): reorganize some. open the keytab (defaulting to the modify
one).


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@9891 ec53bebd-3082-4978-b11e-865c3cabbd6b
2001-05-10 15:44:58 +00:00
Assar Westerlund
c5b07dc7de (kt_purge): reorganize some. open the keytab (defaulting to the modify
one). correct usage strings


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@9890 ec53bebd-3082-4978-b11e-865c3cabbd6b
2001-05-10 15:44:30 +00:00
Assar Westerlund
7576655be4 (kt_list): reorganize some. open the keytab
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@9889 ec53bebd-3082-4978-b11e-865c3cabbd6b
2001-05-10 15:43:38 +00:00
Assar Westerlund
2f86a9d647 different variables
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@9888 ec53bebd-3082-4978-b11e-865c3cabbd6b
2001-05-10 15:42:45 +00:00
Assar Westerlund
a54ed99f1e (kt_get): reorganize some. open the keytab (defaulting to the modify
one)


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@9887 ec53bebd-3082-4978-b11e-865c3cabbd6b
2001-05-10 15:42:01 +00:00
Assar Westerlund
cf4cea286c (kt_copy): default to modify key name. re-organise
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@9886 ec53bebd-3082-4978-b11e-865c3cabbd6b
2001-05-10 15:41:06 +00:00
Assar Westerlund
b1b216683c (kt_change): reorganize some. open the keytab (defaulting to the modify
one)


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@9885 ec53bebd-3082-4978-b11e-865c3cabbd6b
2001-05-10 15:40:07 +00:00
Assar Westerlund
b341554465 (kt_add): reorganize some. open the keytab (defaulting to the modify
one)


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@9884 ec53bebd-3082-4978-b11e-865c3cabbd6b
2001-05-10 15:39:15 +00:00
Assar Westerlund
341d187004 (main): do not open the keytab, let every sub-function handle it
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@9883 ec53bebd-3082-4978-b11e-865c3cabbd6b
2001-05-10 15:37:59 +00:00
Assar Westerlund
25ad02d691 mdoc fixes from ru@freebsd.org
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@9830 ec53bebd-3082-4978-b11e-865c3cabbd6b
2001-05-02 08:59:23 +00:00
Assar Westerlund
6da52ff88e add -e/-enctypes for get
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@9819 ec53bebd-3082-4978-b11e-865c3cabbd6b
2001-04-25 12:09:32 +00:00
Assar Westerlund
9b75306702 (kt_get): allow specification of encryption types
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@9818 ec53bebd-3082-4978-b11e-865c3cabbd6b
2001-04-25 12:07:07 +00:00
Assar Westerlund
67422a6b02 s/[gs]et_progname/[gs]etprogname/
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@9704 ec53bebd-3082-4978-b11e-865c3cabbd6b
2001-02-20 01:44:56 +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
7ff3f957b7 add err.h
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@9497 ec53bebd-3082-4978-b11e-865c3cabbd6b
2001-01-25 12:45:15 +00:00
Assar Westerlund
633782864b (main): handle krb5_init_context failure consistently
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@9443 ec53bebd-3082-4978-b11e-865c3cabbd6b
2000-12-31 08:05:03 +00:00
Assar Westerlund
b26d1d6dfb (kt_get): more error checking
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@9426 ec53bebd-3082-4978-b11e-865c3cabbd6b
2000-12-31 02:51:43 +00:00
Johan Danielsson
1852f11803 reflect recent changes
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@9409 ec53bebd-3082-4978-b11e-865c3cabbd6b
2000-12-16 00:58:49 +00:00
Johan Danielsson
c6d3be50e3 don't copy an entry that already exists in the keytab, and warn if the
keyblock differs


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@9407 ec53bebd-3082-4978-b11e-865c3cabbd6b
2000-12-16 00:45:29 +00:00