Commit Graph

3764 Commits

Author SHA1 Message Date
Love Hörnquist Åstrand ac33d8447b More bits from the KDF.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@23485 ec53bebd-3082-4978-b11e-865c3cabbd6b
2008-08-11 09:58:18 +00:00
Love Hörnquist Åstrand ba2127c788 The "kaserver" part of Heimdal occasionally issues invalid AFS tokens
(here "occasionally" means for certain users in certain realms).

In lib/krb5/v4_glue.c, in the routine storage_to_etext the ticket is
padded to a multiple of 8 bytes. If it is already a multiple of 8
bytes, 8 additional 0-bytes are added.

This catches the AFS krb4 ticket decoder by surprise: unless the
ticket is exactly 56 bytes, it only supports the minimum necessary
padding.  It detects the superfluous padding by comparing the ticket
length decoded to the advertised ticket length.

Hence a 7-letter userid in "cern.ch" which resulted in a ticket of 40
bytes, got "padded" to 48 bytes which the rxkad decoder rejected.

From Rainer Toebbicke.

git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@23475 ec53bebd-3082-4978-b11e-865c3cabbd6b
2008-07-28 15:01:05 +00:00
Love Hörnquist Åstrand 7b5981996c sprinle O_CLOEXEC, from Andrew Bartlett
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@23474 ec53bebd-3082-4978-b11e-865c3cabbd6b
2008-07-28 08:49:43 +00:00
Love Hörnquist Åstrand c50ae6b63c xfree, close-on-exec
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@23469 ec53bebd-3082-4978-b11e-865c3cabbd6b
2008-07-27 12:17:12 +00:00
Love Hörnquist Åstrand 1e91bb390c close-on-exec
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@23467 ec53bebd-3082-4978-b11e-865c3cabbd6b
2008-07-27 12:16:37 +00:00
Love Hörnquist Åstrand b227a5249d close-on-exec
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@23454 ec53bebd-3082-4978-b11e-865c3cabbd6b
2008-07-27 12:11:44 +00:00
Love Hörnquist Åstrand a49e280f58 close-on-exec
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@23453 ec53bebd-3082-4978-b11e-865c3cabbd6b
2008-07-27 12:11:16 +00:00
Love Hörnquist Åstrand f85ea619a2 close-on-exec
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@23452 ec53bebd-3082-4978-b11e-865c3cabbd6b
2008-07-27 12:10:54 +00:00
Love Hörnquist Åstrand b2eed84f4c close-on-exec
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@23451 ec53bebd-3082-4978-b11e-865c3cabbd6b
2008-07-27 12:10:30 +00:00
Love Hörnquist Åstrand ae31169249 close-on-exec
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@23450 ec53bebd-3082-4978-b11e-865c3cabbd6b
2008-07-27 12:10:10 +00:00
Love Hörnquist Åstrand ffd78392d3 close-on-exec
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@23449 ec53bebd-3082-4978-b11e-865c3cabbd6b
2008-07-27 12:09:39 +00:00
Love Hörnquist Åstrand d6c66ef961 close-on-exec
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@23448 ec53bebd-3082-4978-b11e-865c3cabbd6b
2008-07-27 12:09:22 +00:00
Love Hörnquist Åstrand dbc55c9bec indent
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@23447 ec53bebd-3082-4978-b11e-865c3cabbd6b
2008-07-27 12:09:05 +00:00
Love Hörnquist Åstrand c7c6b6e527 close-on-exec
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@23446 ec53bebd-3082-4978-b11e-865c3cabbd6b
2008-07-27 12:08:37 +00:00
Love Hörnquist Åstrand 3c012ef3fc close-on-exec
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@23445 ec53bebd-3082-4978-b11e-865c3cabbd6b
2008-07-27 12:08:03 +00:00
Love Hörnquist Åstrand 30e523c1a5 close-on-exec
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@23444 ec53bebd-3082-4978-b11e-865c3cabbd6b
2008-07-27 12:07:47 +00:00
Love Hörnquist Åstrand a165b922e8 set log file close on exec
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@23443 ec53bebd-3082-4978-b11e-865c3cabbd6b
2008-07-27 12:07:25 +00:00
Love Hörnquist Åstrand 4bf196c898 export krb5_set_kdc_sec_offset
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@23436 ec53bebd-3082-4978-b11e-865c3cabbd6b
2008-07-26 20:49:48 +00:00
Love Hörnquist Åstrand 39fe446983 Support parsing KRB-ERROR passed back from windows server when the time is out of sync, modify krb5_cc_[sg]et_config interface to handle principals too, add tests for this
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@23420 ec53bebd-3082-4978-b11e-865c3cabbd6b
2008-07-26 18:37:48 +00:00
Love Hörnquist Åstrand 8aeabdadf7 Add principal to storing config data.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@23417 ec53bebd-3082-4978-b11e-865c3cabbd6b
2008-07-26 18:36:33 +00:00
Love Hörnquist Åstrand 0b7c16c7c4 export krb5_cc_[gs]et_config
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@23416 ec53bebd-3082-4978-b11e-865c3cabbd6b
2008-07-26 18:35:59 +00:00
Love Hörnquist Åstrand 5aa921b4d3 Save the session ticket key when we know everything is fine and the
ticket was valid.

git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@23415 ec53bebd-3082-4978-b11e-865c3cabbd6b
2008-07-26 18:35:44 +00:00
Love Hörnquist Åstrand 5d9a1df944 copy the ticket data from the cred, not that matching cred.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@23403 ec53bebd-3082-4978-b11e-865c3cabbd6b
2008-07-26 18:30:03 +00:00
Love Hörnquist Åstrand 21af504e8a Add krb5_cc_[gs]et_config.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@23392 ec53bebd-3082-4978-b11e-865c3cabbd6b
2008-07-26 18:25:23 +00:00
Love Hörnquist Åstrand b0d5ac4a1c Make resolver output more pretty
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@23386 ec53bebd-3082-4978-b11e-865c3cabbd6b
2008-07-24 20:04:22 +00:00
Love Hörnquist Åstrand 1dd872ca5c Allow numbers to be enctypes to as long as they are valid.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@23378 ec53bebd-3082-4978-b11e-865c3cabbd6b
2008-07-24 20:02:19 +00:00
Love Hörnquist Åstrand add8508915 add name for send_to_kdc plugin.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@23367 ec53bebd-3082-4978-b11e-865c3cabbd6b
2008-07-15 11:26:29 +00:00
Love Hörnquist Åstrand 2a4e18eb43 handle KRB5_PLUGIN_NO_HANDLE for lookup plugin.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@23366 ec53bebd-3082-4978-b11e-865c3cabbd6b
2008-07-15 11:26:11 +00:00
Love Hörnquist Åstrand f20b21e9db no more krb4
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@23362 ec53bebd-3082-4978-b11e-865c3cabbd6b
2008-07-15 11:25:19 +00:00
Love Hörnquist Åstrand 68f4fc8b53 Add support for the send_to_kdc plugin interface.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@23356 ec53bebd-3082-4978-b11e-865c3cabbd6b
2008-07-15 11:23:58 +00:00
Love Hörnquist Åstrand 528d25f406 add send_to_kdc_plugin.h
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@23355 ec53bebd-3082-4978-b11e-865c3cabbd6b
2008-07-15 11:23:46 +00:00
Love Hörnquist Åstrand 2add42ac46 add plugin error codes
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@23354 ec53bebd-3082-4978-b11e-865c3cabbd6b
2008-07-15 11:23:34 +00:00
Love Hörnquist Åstrand 2186cf220c already here
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@23353 ec53bebd-3082-4978-b11e-865c3cabbd6b
2008-07-15 11:23:21 +00:00
Love Hörnquist Åstrand f79105f387 add plugin interface to sendtokdc
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@23352 ec53bebd-3082-4978-b11e-865c3cabbd6b
2008-07-15 11:22:58 +00:00
Love Hörnquist Åstrand 1f1822b145 define constant KRB5_PLUGIN_LOCATE
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@23351 ec53bebd-3082-4978-b11e-865c3cabbd6b
2008-07-15 11:22:39 +00:00
Love Hörnquist Åstrand e3af27dfa4 use constant KRB5_PLUGIN_LOCATE
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@23350 ec53bebd-3082-4978-b11e-865c3cabbd6b
2008-07-15 11:22:26 +00:00
Love Hörnquist Åstrand 8c95a892d0 spelling, from openbsd via janne johansson
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@23341 ec53bebd-3082-4978-b11e-865c3cabbd6b
2008-07-14 10:38:05 +00:00
Love Hörnquist Åstrand 6ab04b4508 spelling, from openbsd via janne johansson
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@23340 ec53bebd-3082-4978-b11e-865c3cabbd6b
2008-07-14 10:37:54 +00:00
Love Hörnquist Åstrand 7120b5dea6 add krb5_free_error_message
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@23338 ec53bebd-3082-4978-b11e-865c3cabbd6b
2008-07-13 21:08:52 +00:00
Love Hörnquist Åstrand 0046b2fb26 no more srvtabs.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@23328 ec53bebd-3082-4978-b11e-865c3cabbd6b
2008-06-26 03:55:20 +00:00
Love Hörnquist Åstrand 05df27d04d Drop support for reading kerberos 4 srvtab
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@23324 ec53bebd-3082-4978-b11e-865c3cabbd6b
2008-06-26 03:54:45 +00:00
Love Hörnquist Åstrand 6ebb98dd4a skip unknown types
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@23322 ec53bebd-3082-4978-b11e-865c3cabbd6b
2008-06-24 23:49:39 +00:00
Love Hörnquist Åstrand 7fcd266fdd use krb5_set_error_message
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@23316 ec53bebd-3082-4978-b11e-865c3cabbd6b
2008-06-23 04:32:32 +00:00
Love Hörnquist Åstrand 9a02029af8 export krb5_(v)set_error_message.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@23314 ec53bebd-3082-4978-b11e-865c3cabbd6b
2008-06-23 04:29:26 +00:00
Love Hörnquist Åstrand f440500099 Krb5plugin_send_to_kdc_ftable From Andrew Bartlet.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@23312 ec53bebd-3082-4978-b11e-865c3cabbd6b
2008-06-23 03:31:06 +00:00
Love Hörnquist Åstrand 0eac1d3a68 use krb5_set_error_message
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@23311 ec53bebd-3082-4978-b11e-865c3cabbd6b
2008-06-23 03:30:57 +00:00
Love Hörnquist Åstrand 32d7980f02 use krb5_set_error_message
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@23310 ec53bebd-3082-4978-b11e-865c3cabbd6b
2008-06-23 03:30:49 +00:00
Love Hörnquist Åstrand 366734d9a2 use krb5_set_error_message
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@23309 ec53bebd-3082-4978-b11e-865c3cabbd6b
2008-06-23 03:30:41 +00:00
Love Hörnquist Åstrand 37cc9f4f36 use krb5_set_error_message
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@23308 ec53bebd-3082-4978-b11e-865c3cabbd6b
2008-06-23 03:30:33 +00:00
Love Hörnquist Åstrand b2e2e00900 use krb5_set_error_message
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@23307 ec53bebd-3082-4978-b11e-865c3cabbd6b
2008-06-23 03:30:25 +00:00