Commit Graph

23 Commits

Author SHA1 Message Date
Nicolas Williams
d1d900034f kinit: Make default-for-princ behavior optional
We can't just default to useing the krb5_cc_default_for() ccache for a
principal -- that breaks a number of uses of kinit.
2020-05-25 14:07:05 -05:00
Nicolas Williams
a8874a62bb krb5: Fix kinit harder
The previous fixes for using `krb5_cc_default_for()` weren't quite
correct.
2020-03-17 19:13:16 -05:00
Nicolas Williams
7dae771eef kinit: Add --cache-default-for flag (fix check-cc) 2020-03-12 21:02:09 -05:00
Nicolas Williams
7bf4d76e75 krb5: Improve cccol sub naming; add gss_store_cred_into2()
- Formalize the TYPE:collection_name:subsidiary_name naming scheme for
   ccaches in ccache collections
    - KEYRING: ccaches are weird because they have one more optional field: the
      "anchor", so rather than just assume a naming convention everywhere, we
      add new functions as well
 - Add krb5_cc_{resolve,default}_sub() that allows one to specify a
   "subsidiary" ccache name in a collection separately from the
   collection name
 - Add krb5_cc_{resolve,default}_for() which take a principal name,
   unparse it, and use it as the subsidiary ccache name (with colons
   replaced)
 - Make kinit use the new interfaces
 - Add missing DIR ccache iteration functionality
 - Revamps test_cc
 - Add krb5_cc_get_collection() and krb5_cc_get_subsidiary()
 - Bump the ccops SPI version number
 - Add gss_store_cred_into2()
 - Make MEMORY:anonymous not linked into the global MEMORY ccache
   collection, and uses this for delegated cred handles

TBD:

 - Split this up into a krb5 change and gss mech_krb5 change?
 - Add krb5_cc_init_and_store() utility, per Greg's suggestion?
2020-03-02 17:48:04 -06:00
Quanah Gibson-Mount
7c16ce3457 Minor typo/grammar fixes 2017-03-10 15:47:43 -05:00
Nicolas Williams
2027aa11ed Use --detach in tests to avoid waiting 2016-12-07 19:52:29 -06:00
Love Hornquist Astrand
4ebfd6b818 make sure logs are truncated 2012-10-07 11:11:17 -07:00
Love Hornquist Astrand
86da42df1d abstract out --no-afslog and --no-unlog 2010-06-01 14:42:16 -07:00
Love Hornquist Astrand
ccacfda1cc dont pass --no-unlog if afs is not configured. Patch partly from Eray Asian 2010-06-01 10:17:37 -07:00
Love Hornquist Astrand
09f478ab98 unset KRB5CCNAME 2009-12-21 08:05:16 +01:00
Love Hornquist Astrand
72908828b1 remove $Id$ 2009-09-21 10:36:37 -07:00
Love Hornquist Astrand
59e4c30803 drop unused vars 2009-09-07 16:25:57 -07:00
Love Hornquist Astrand
556555f7c4 drop unused stuff 2009-09-07 15:38:21 -07:00
Love Hornquist Astrand
b8791f1624 migrate to ${env_setup} 2009-09-06 23:24:08 -07:00
Love Hornquist Astrand
fcdd38288b Use ${kdestroy} instead of the direct path 2009-08-14 20:06:04 +02:00
Love Hörnquist Åstrand
f23568aa84 rename SDB to SCC
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@25075 ec53bebd-3082-4978-b11e-865c3cabbd6b
2009-04-03 04:10:49 +00:00
Love Hörnquist Åstrand
d93ac20298 kill -9 to make store its dead
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@24993 ec53bebd-3082-4978-b11e-865c3cabbd6b
2009-03-29 09:03:47 +00:00
Love Hörnquist Åstrand
5924074b1b use leaks kill
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@24991 ec53bebd-3082-4978-b11e-865c3cabbd6b
2009-03-29 09:03:25 +00:00
Love Hörnquist Åstrand
0e3029c722 clean up from others before trying to run this
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@24172 ec53bebd-3082-4978-b11e-865c3cabbd6b
2008-12-11 05:12:07 +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
51f53d0805 less verbose
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@23135 ec53bebd-3082-4978-b11e-865c3cabbd6b
2008-04-28 18:02:15 +00:00
Love Hörnquist Åstrand
ae44a994fe Test SDB combinations.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@23128 ec53bebd-3082-4978-b11e-865c3cabbd6b
2008-04-28 18:01:32 +00:00
Love Hörnquist Åstrand
a1b3c3e661 test SDB: cache
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@23127 ec53bebd-3082-4978-b11e-865c3cabbd6b
2008-04-28 18:01:25 +00:00