Commit Graph

312 Commits

Author SHA1 Message Date
Love Hörnquist Åstrand
cd2ce0c2a6 Add option --list-caches that lists the avaible caches and their status.
$ klist --list-caches
  Principal        Cache name               Status
lha@E.KTH.SE     2                        Valid
lha@SU.SE        1                        Expired
lha/root@SU.SE   0                        Expired
lha@N.L.NXS.SE   Initial default ccache   Expired


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@16114 ec53bebd-3082-4978-b11e-865c3cabbd6b
2005-10-01 03:39:59 +00:00
Love Hörnquist Åstrand
ded223d98f (check_for_tgt): Re-order code so it only free the credential if one
was returned.


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@15947 ec53bebd-3082-4978-b11e-865c3cabbd6b
2005-08-22 20:18:06 +00:00
Love Hörnquist Åstrand
4c6f3aeaf3 If there are no addresses, print addressless instead of nothing.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@15603 ec53bebd-3082-4978-b11e-865c3cabbd6b
2005-07-09 03:27:19 +00:00
Love Hörnquist Åstrand
bef3d96fb7 avoid shadowing variables
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@15543 ec53bebd-3082-4978-b11e-865c3cabbd6b
2005-07-01 07:29:03 +00:00
Love Hörnquist Åstrand
d3dabc335b avoid shadowing global variable
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@15542 ec53bebd-3082-4978-b11e-865c3cabbd6b
2005-07-01 07:20:54 +00:00
Love Hörnquist Åstrand
ac8c82785c s/optind/optidx/
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@15541 ec53bebd-3082-4978-b11e-865c3cabbd6b
2005-07-01 07:14:58 +00:00
Love Hörnquist Åstrand
54f8d95f72 (main): catch KRB5_CONFIG_BADFORMAT from krb5_init_context
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@15369 ec53bebd-3082-4978-b11e-865c3cabbd6b
2005-06-14 00:14:43 +00:00
Love Hörnquist Åstrand
ea7df6b1e6 krb5_get_init_creds_opt_set_pkinit
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@15042 ec53bebd-3082-4978-b11e-865c3cabbd6b
2005-04-30 16:17:04 +00:00
Love Hörnquist Åstrand
6ab4270794 use the newly generated units function
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@14960 ec53bebd-3082-4978-b11e-865c3cabbd6b
2005-04-25 18:08:42 +00:00
Love Hörnquist Åstrand
d6b87a47d9 use strlcpy
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@14932 ec53bebd-3082-4978-b11e-865c3cabbd6b
2005-04-24 19:54:58 +00:00
Love Hörnquist Åstrand
5ed2d6418f add forward declaration of krb5_krb_auth_data
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@14902 ec53bebd-3082-4978-b11e-865c3cabbd6b
2005-04-23 20:29:16 +00:00
Love Hörnquist Åstrand
98f267a220 widen lifetime/renewal warning text field, also make use of
unparse_time_approx, no need to be specific to the second when ticket
needs to be renewed or their lifetime.


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@14644 ec53bebd-3082-4978-b11e-865c3cabbd6b
2005-03-15 23:08:35 +00:00
Love Hörnquist Åstrand
3525e279f2 use keeps around options, spelling, from openbsd
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@14374 ec53bebd-3082-4978-b11e-865c3cabbd6b
2004-12-08 17:40:10 +00:00
Love Hörnquist Åstrand
af89d92dfe (get_new_tickets): only complain about ticket renewable lifetime when
the user asked for a specific renewable lifetime


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@14356 ec53bebd-3082-4978-b11e-865c3cabbd6b
2004-11-18 03:39:22 +00:00
Love Hörnquist Åstrand
c4cacd7a06 adapt to new signature of krb5_get_init_creds_opt_set_pkinit
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@14295 ec53bebd-3082-4978-b11e-865c3cabbd6b
2004-10-07 10:20:41 +00:00
Johan Danielsson
0326089c9f use rtbl_set_separator
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@14288 ec53bebd-3082-4978-b11e-865c3cabbd6b
2004-10-04 15:10:20 +00:00
Johan Danielsson
5e83b93a1e make sure we don't always get renewable creds
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@14229 ec53bebd-3082-4978-b11e-865c3cabbd6b
2004-09-14 14:40:10 +00:00
Johan Danielsson
0624b4457e replace INCLUDES with AM_CPPFLAGS
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@14164 ec53bebd-3082-4978-b11e-865c3cabbd6b
2004-08-26 11:55:29 +00:00
Love Hörnquist Åstrand
fe9c311247 document --cache/-c
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@14090 ec53bebd-3082-4978-b11e-865c3cabbd6b
2004-08-05 18:49:47 +00:00
Love Hörnquist Åstrand
bd3655ba6e allow to specify what credential cache to use
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@14089 ec53bebd-3082-4978-b11e-865c3cabbd6b
2004-08-05 18:49:25 +00:00
Love Hörnquist Åstrand
f7a51721c2 (print_cred_verbose): keytypes are no longer, use enctype
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@14064 ec53bebd-3082-4978-b11e-865c3cabbd6b
2004-07-23 18:31:23 +00:00
Johan Danielsson
e230725892 don't install copy_cred_cache manpage
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@13998 ec53bebd-3082-4978-b11e-865c3cabbd6b
2004-06-27 14:07:54 +00:00
Love Hörnquist Åstrand
5cb42dc81b move "setpag if (argc < 1)" to common path
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@13851 ec53bebd-3082-4978-b11e-865c3cabbd6b
2004-05-14 20:00:19 +00:00
Johan Danielsson
ed962c1a41 print some diagnostics if the exec fails
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@13835 ec53bebd-3082-4978-b11e-865c3cabbd6b
2004-05-06 11:50:33 +00:00
Johan Danielsson
e95a1672b8 krb5_cc_copy_cache_match now lives in libkrb5
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@13793 ec53bebd-3082-4978-b11e-865c3cabbd6b
2004-04-25 19:38:02 +00:00
Johan Danielsson
26457b7135 replace krb5_free_creds_contents by krb5_free_cred_contents
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@13790 ec53bebd-3082-4978-b11e-865c3cabbd6b
2004-04-25 19:25:35 +00:00
Johan Danielsson
25de2f6777 add --valid-for option
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@13783 ec53bebd-3082-4978-b11e-865c3cabbd6b
2004-04-25 16:03:45 +00:00
Love Hörnquist Åstrand
89f71476cb pacify mdoclint
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@13777 ec53bebd-3082-4978-b11e-865c3cabbd6b
2004-04-25 14:30:09 +00:00
Johan Danielsson
b96a303522 add cred cache copy tool
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@13771 ec53bebd-3082-4978-b11e-865c3cabbd6b
2004-04-24 22:46:08 +00:00
Love Hörnquist Åstrand
432db5d5c9 add --credential argument that just remove one credential entry out of
the cache specified


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@13729 ec53bebd-3082-4978-b11e-865c3cabbd6b
2004-04-17 17:00:06 +00:00
Love Hörnquist Åstrand
8bc1b3e836 merge certificate/private_key to a user_id
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@13724 ec53bebd-3082-4978-b11e-865c3cabbd6b
2004-04-16 00:40:21 +00:00
Love Hörnquist Åstrand
2bf6c25dcd its PAC not PAQ
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@13653 ec53bebd-3082-4978-b11e-865c3cabbd6b
2004-03-30 15:41:04 +00:00
Love Hörnquist Åstrand
11b133e1c5 adapt to signature change of krb5_get_init_creds_opt_set_pkinit
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@13609 ec53bebd-3082-4978-b11e-865c3cabbd6b
2004-03-21 22:34:13 +00:00
Love Hörnquist Åstrand
bd31b8f01f document --canonicalize
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@13506 ec53bebd-3082-4978-b11e-865c3cabbd6b
2004-03-12 07:34:04 +00:00
Love Hörnquist Åstrand
f6774ea083 add --canonicalize
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@13505 ec53bebd-3082-4978-b11e-865c3cabbd6b
2004-03-12 07:30:19 +00:00
Love Hörnquist Åstrand
9197bbb0c8 rename ca_dir to pkinit/x509_anchors since its more like that language
in RFC3280


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@13494 ec53bebd-3082-4978-b11e-865c3cabbd6b
2004-03-09 21:06:10 +00:00
Love Hörnquist Åstrand
5ca59aff01 when running kinit with a subprocess, fetch new tickets after half the
tickets lifetime


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@13465 ec53bebd-3082-4978-b11e-865c3cabbd6b
2004-03-07 21:17:53 +00:00
Love Hörnquist Åstrand
e96991c20e (renew_validate): if renewable_flag and not time specifed, use "1 month"
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@13267 ec53bebd-3082-4978-b11e-865c3cabbd6b
2004-01-13 10:09:50 +00:00
Love Hörnquist Åstrand
554c582f3e make -9 work again
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@13228 ec53bebd-3082-4978-b11e-865c3cabbd6b
2003-12-18 19:33:15 +00:00
Love Hörnquist Åstrand
c5919960a3 (main): return the return value from simple_execvp
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@13162 ec53bebd-3082-4978-b11e-865c3cabbd6b
2003-12-01 13:09:30 +00:00
Love Hörnquist Åstrand
7d8cc56531 don't use PKINIT DH per default since its too slow
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@13160 ec53bebd-3082-4978-b11e-865c3cabbd6b
2003-11-26 02:41:53 +00:00
Love Hörnquist Åstrand
346d1a2643 add flag to make it work with dh
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@13155 ec53bebd-3082-4978-b11e-865c3cabbd6b
2003-11-25 11:02:09 +00:00
Love Hörnquist Åstrand
80c1204118 XXX add some "struct foo;" glue for pkinit structures that isn't used
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@13139 ec53bebd-3082-4978-b11e-865c3cabbd6b
2003-11-23 23:45:47 +00:00
Love Hörnquist Åstrand
ceffd3f0a4 add [appdefaults]kinit/pkinit-ca-dir
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@13100 ec53bebd-3082-4978-b11e-865c3cabbd6b
2003-11-08 19:23:51 +00:00
Love Hörnquist Åstrand
237ff82b29 add pkinit support
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@13094 ec53bebd-3082-4978-b11e-865c3cabbd6b
2003-11-08 08:56:38 +00:00
Love Hörnquist Åstrand
378fc043da add --no-transit-check
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@13031 ec53bebd-3082-4978-b11e-865c3cabbd6b
2003-10-21 08:03:36 +00:00
Johan Danielsson
0cad850aac (print_tickets): bail out if krb5_cc_next_cred returns error other
than KRB5_CC_END


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@12990 ec53bebd-3082-4978-b11e-865c3cabbd6b
2003-10-12 15:57:42 +00:00
Love Hörnquist Åstrand
f2fe7866d3 When running kinit in "fork mode" do pagsh independent of krb4, also
always do krb4 setup of cc. Always try to destroy the v4 cc.

all boolean --{,no-}request-pac that will request pac or not


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@12960 ec53bebd-3082-4978-b11e-865c3cabbd6b
2003-10-03 12:21:42 +00:00
Love Hörnquist Åstrand
cdeab003ac (check_for_tgt): set client as part of the pattern/match cred
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@12959 ec53bebd-3082-4978-b11e-865c3cabbd6b
2003-10-03 12:18:44 +00:00
Love Hörnquist Åstrand
f5104e0d11 don't get v4 tickets by default
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@12894 ec53bebd-3082-4978-b11e-865c3cabbd6b
2003-09-21 13:15:34 +00:00