Commit Graph

21686 Commits

Author SHA1 Message Date
Love Hörnquist Åstrand ab73d921f4 Make the storing credential an atomic write(2) to avoid signal races,
bug traced by Harald Bart and Lars Malinowsky.


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@22792 ec53bebd-3082-4978-b11e-865c3cabbd6b
2008-03-26 14:43:11 +00:00
Love Hörnquist Åstrand 28835ed555 spelling.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@22791 ec53bebd-3082-4978-b11e-865c3cabbd6b
2008-03-25 20:56:25 +00:00
Love Hörnquist Åstrand e441ff3ead x
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@22790 ec53bebd-3082-4978-b11e-865c3cabbd6b
2008-03-25 20:56:22 +00:00
Love Hörnquist Åstrand 56663c51c4 Make erase_file() to locking too.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@22789 ec53bebd-3082-4978-b11e-865c3cabbd6b
2008-03-25 20:56:02 +00:00
Love Hörnquist Åstrand f4557ede8b More people.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@22788 ec53bebd-3082-4978-b11e-865c3cabbd6b
2008-03-25 15:24:40 +00:00
Love Hörnquist Åstrand 360bfcab37 Check if new credential cache exists, if not create one.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@22787 ec53bebd-3082-4978-b11e-865c3cabbd6b
2008-03-25 13:50:14 +00:00
Love Hörnquist Åstrand 554c98d5fb x
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@22786 ec53bebd-3082-4978-b11e-865c3cabbd6b
2008-03-25 13:33:46 +00:00
Love Hörnquist Åstrand abd1354315 Make work when moving to a non-existant cred-cache.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@22785 ec53bebd-3082-4978-b11e-865c3cabbd6b
2008-03-25 13:33:42 +00:00
Love Hörnquist Åstrand e9764e31f4 more verbose info.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@22784 ec53bebd-3082-4978-b11e-865c3cabbd6b
2008-03-25 13:33:38 +00:00
Love Hörnquist Åstrand e28ac4acd9 Test krb5_cc_move().
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@22783 ec53bebd-3082-4978-b11e-865c3cabbd6b
2008-03-25 13:33:34 +00:00
Love Hörnquist Åstrand adb952d840 Return KRB5_CC_NOSUPP on no kcm daemon in other end.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@22782 ec53bebd-3082-4978-b11e-865c3cabbd6b
2008-03-25 13:33:31 +00:00
Love Hörnquist Åstrand 51feb996d3 add back k, its needed by consumers.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@22781 ec53bebd-3082-4978-b11e-865c3cabbd6b
2008-03-25 13:33:26 +00:00
Love Hörnquist Åstrand dcaa26efaf x
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@22780 ec53bebd-3082-4978-b11e-865c3cabbd6b
2008-03-25 12:58:09 +00:00
Love Hörnquist Åstrand a8bbc776e9 Match man_MANS = files with directories in them.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@22779 ec53bebd-3082-4978-b11e-865c3cabbd6b
2008-03-25 12:58:05 +00:00
Love Hörnquist Åstrand bdfb8e33c6 Drop unused variable krb5_kcmcache *k.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@22778 ec53bebd-3082-4978-b11e-865c3cabbd6b
2008-03-25 12:21:00 +00:00
Love Hörnquist Åstrand a760147457 first implementation of kcm-move-cache
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@22777 ec53bebd-3082-4978-b11e-865c3cabbd6b
2008-03-25 12:20:55 +00:00
Love Hörnquist Åstrand d21ed38e71 add Björn Schlögl
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@22776 ec53bebd-3082-4978-b11e-865c3cabbd6b
2008-03-25 10:03:36 +00:00
Love Hörnquist Åstrand 3394928100 Move _krb5_pk_copy_error() within #ifdef (from Björn Schlögl) and
rename to pk_copy_error


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@22775 ec53bebd-3082-4978-b11e-865c3cabbd6b
2008-03-25 10:03:31 +00:00
Love Hörnquist Åstrand fa99a3de21 <sys/bswap.h> cannot be included alone on NetBSD. From KAMADA Ken'ichi.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@22774 ec53bebd-3082-4978-b11e-865c3cabbd6b
2008-03-25 09:30:56 +00:00
Love Hörnquist Åstrand 811319445f warnings on platforms where sig_atomic_t is not a int, from netbsd via Michael van Elst, Havard Eidnes and T K Spindler
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@22773 ec53bebd-3082-4978-b11e-865c3cabbd6b
2008-03-24 19:13:46 +00:00
Love Hörnquist Åstrand 06c8aed8b3 Test now works again with old client side capath referrals.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@22772 ec53bebd-3082-4978-b11e-865c3cabbd6b
2008-03-24 12:09:39 +00:00
Love Hörnquist Åstrand 83135f5a0a x
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@22771 ec53bebd-3082-4978-b11e-865c3cabbd6b
2008-03-24 12:09:35 +00:00
Love Hörnquist Åstrand e46ef6c72a Try both kdc server referral and the old client chasing mode.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@22770 ec53bebd-3082-4978-b11e-865c3cabbd6b
2008-03-24 12:09:29 +00:00
Love Hörnquist Åstrand 7acb20f92d x
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@22769 ec53bebd-3082-4978-b11e-865c3cabbd6b
2008-03-24 12:09:25 +00:00
Love Hörnquist Åstrand 2523a24965 Don't do canonicalize by default, make add_cred() sane, make loop
detection in credential fetching better.


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@22768 ec53bebd-3082-4978-b11e-865c3cabbd6b
2008-03-24 12:09:21 +00:00
Love Hörnquist Åstrand 4ad33addfc x
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@22767 ec53bebd-3082-4978-b11e-865c3cabbd6b
2008-03-24 12:09:17 +00:00
Love Hörnquist Åstrand 8e36f33c5e Fix status messages.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@22766 ec53bebd-3082-4978-b11e-865c3cabbd6b
2008-03-24 12:09:14 +00:00
Love Hörnquist Åstrand 1c5f41af0c x
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@22765 ec53bebd-3082-4978-b11e-865c3cabbd6b
2008-03-24 12:09:10 +00:00
Love Hörnquist Åstrand 20b3e07a73 Add flag EXTRACT_TICKET_AS_REQ.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@22764 ec53bebd-3082-4978-b11e-865c3cabbd6b
2008-03-24 12:09:06 +00:00
Love Hörnquist Åstrand fbae90e671 Tell _krb5_extract_ticket that this is an AS-REQ.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@22763 ec53bebd-3082-4978-b11e-865c3cabbd6b
2008-03-24 12:09:02 +00:00
Love Hörnquist Åstrand cdef379a85 x
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@22762 ec53bebd-3082-4978-b11e-865c3cabbd6b
2008-03-24 12:08:58 +00:00
Love Hörnquist Åstrand 2dd8a03423 Make server referral work.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@22761 ec53bebd-3082-4978-b11e-865c3cabbd6b
2008-03-24 12:08:55 +00:00
Love Hörnquist Åstrand 090f16f717 better error message, try to handle server referrals slightly better.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@22760 ec53bebd-3082-4978-b11e-865c3cabbd6b
2008-03-24 12:08:51 +00:00
Love Hörnquist Åstrand 70a94ea7d9 x
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@22759 ec53bebd-3082-4978-b11e-865c3cabbd6b
2008-03-24 12:08:47 +00:00
Love Hörnquist Åstrand 526b428c75 Make work for constrained delegation and impersonation.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@22758 ec53bebd-3082-4978-b11e-865c3cabbd6b
2008-03-24 12:08:43 +00:00
Love Hörnquist Åstrand 70f23b007a x
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@22757 ec53bebd-3082-4978-b11e-865c3cabbd6b
2008-03-24 12:08:39 +00:00
Love Hörnquist Åstrand def5e96e15 Ident.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@22756 ec53bebd-3082-4978-b11e-865c3cabbd6b
2008-03-24 12:08:35 +00:00
Love Hörnquist Åstrand 5d35e96f9f check no server referral, don't use stringent length tests since
encryption layer does padding for us...


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@22755 ec53bebd-3082-4978-b11e-865c3cabbd6b
2008-03-24 12:08:32 +00:00
Love Hörnquist Åstrand e69ef1185c x
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@22754 ec53bebd-3082-4978-b11e-865c3cabbd6b
2008-03-24 12:08:28 +00:00
Love Hörnquist Åstrand 4ac470d33e Match name in ClientCanonicalizedNames with -10
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@22753 ec53bebd-3082-4978-b11e-865c3cabbd6b
2008-03-24 12:08:24 +00:00
Love Hörnquist Åstrand 2f09ac3a2f x
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@22752 ec53bebd-3082-4978-b11e-865c3cabbd6b
2008-03-24 12:08:20 +00:00
Love Hörnquist Åstrand 967fc11320 (_krb5_principal_compare_PrincipalName): new function to compare a
principal to a PrincipalName.


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@22751 ec53bebd-3082-4978-b11e-865c3cabbd6b
2008-03-24 12:08:17 +00:00
Love Hörnquist Åstrand 53a6738517 x
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@22750 ec53bebd-3082-4978-b11e-865c3cabbd6b
2008-03-24 12:08:13 +00:00
Love Hörnquist Åstrand fb540c9646 Move client referral checking to _krb5_extract_ticket().
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@22749 ec53bebd-3082-4978-b11e-865c3cabbd6b
2008-03-24 12:08:09 +00:00
Love Hörnquist Åstrand d3d7661043 More bits for server referral.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@22748 ec53bebd-3082-4978-b11e-865c3cabbd6b
2008-03-24 12:08:05 +00:00
Love Hörnquist Åstrand e1cb28d159 Make working with client referrals.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@22747 ec53bebd-3082-4978-b11e-865c3cabbd6b
2008-03-24 12:08:01 +00:00
Love Hörnquist Åstrand 07479ebcde x
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@22746 ec53bebd-3082-4978-b11e-865c3cabbd6b
2008-03-24 12:07:57 +00:00
Love Hörnquist Åstrand e27db7b9b4 Match name in ClientCanonicalizedNames with -10
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@22745 ec53bebd-3082-4978-b11e-865c3cabbd6b
2008-03-24 12:07:54 +00:00
Love Hörnquist Åstrand 28b73ab194 x
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@22744 ec53bebd-3082-4978-b11e-865c3cabbd6b
2008-03-24 12:07:50 +00:00
Love Hörnquist Åstrand e33ec47aaf Try moving referrals checking into _krb5_extract_ticket().
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@22743 ec53bebd-3082-4978-b11e-865c3cabbd6b
2008-03-24 12:07:46 +00:00