Commit Graph

17435 Commits

Author SHA1 Message Date
Love Hörnquist Åstrand
5ba79d7ced Use the server as the server and set diffrent password for the user and service.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@17929 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-08-24 11:04:12 +00:00
Love Hörnquist Åstrand
bd23e626d4 x
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@17928 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-08-24 10:55:02 +00:00
Love Hörnquist Åstrand
0b6a7cd394 Set allow digest flag on the server.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@17927 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-08-24 10:54:40 +00:00
Love Hörnquist Åstrand
0e5d5e7f5e Add KRB5_KDB_ALLOW_DIGEST
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@17926 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-08-24 10:49:46 +00:00
Love Hörnquist Åstrand
db091f2134 (HDBFlags): Add allow-digest
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@17925 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-08-24 10:45:19 +00:00
Love Hörnquist Åstrand
628e03b47f x
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@17924 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-08-24 10:42:49 +00:00
Love Hörnquist Åstrand
f9bb21dbb6 Build and run check-digest test.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@17923 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-08-24 10:42:41 +00:00
Love Hörnquist Åstrand
3e319eda30 (krb5_kdc_process_generic_request): check if we got a digest request
and process it.


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@17922 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-08-24 10:41:28 +00:00
Love Hörnquist Åstrand
99b5923af8 Register hdb keytab operations.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@17921 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-08-24 10:40:40 +00:00
Love Hörnquist Åstrand
ef09171a5c Remove channel bindings from CHAP tests, there is no such thing for CHAP.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@17920 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-08-24 10:14:20 +00:00
Love Hörnquist Åstrand
5033989d9b document [kdc]enable-digest=boolean
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@17919 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-08-24 10:11:00 +00:00
Love Hörnquist Åstrand
72f5dab088 add digest to libkdc
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@17918 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-08-24 10:08:20 +00:00
Love Hörnquist Åstrand
195903697a Make a return a goto to avoid freeing un-inited memory in cleanup code.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@17917 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-08-24 10:06:26 +00:00
Love Hörnquist Åstrand
4a573e66c4 x
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@17916 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-08-24 10:05:27 +00:00
Love Hörnquist Åstrand
054c185629 Test aes only krbtgt and des3 only service.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@17915 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-08-24 10:05:17 +00:00
Love Hörnquist Åstrand
247a6d5cb6 enable digest
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@17914 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-08-24 10:04:52 +00:00
Love Hörnquist Åstrand
e26ef8b690 First revision of the digest (CHAP so far) code.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@17913 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-08-24 08:53:55 +00:00
Love Hörnquist Åstrand
dfcd435953 (krb5_kdc_default_config): default to all bits set to zero.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@17912 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-08-24 08:52:53 +00:00
Love Hörnquist Åstrand
2efd79caef (configure): Add enable_digest, default off
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@17911 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-08-24 08:51:40 +00:00
Love Hörnquist Åstrand
7ae6f1fbd6 (krb5_kdc_configuration): Add enable_digest
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@17910 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-08-24 08:51:15 +00:00
Love Hörnquist Åstrand
1bdc073a65 Include <digest_asn1.h>.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@17909 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-08-24 08:46:48 +00:00
Love Hörnquist Åstrand
c84978ea6d (krb5_kerberos_enctypes): new function, returns the list of Kerberos
encryption types sorted in order of most preferred to least preferred
encryption type.


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@17908 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-08-24 08:43:15 +00:00
Love Hörnquist Åstrand
3ffb120454 (_kdc_get_preferred_key): new function, Use the order list of
preferred encryption types and sort the available keys and return the
most preferred key.


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@17907 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-08-24 08:40:56 +00:00
Love Hörnquist Åstrand
fb086a0312 Adapt to the new sigature of _kdc_find_keys().
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@17906 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-08-24 08:33:53 +00:00
Love Hörnquist Åstrand
c97d034ed3 Handle session key etype separately from the tgt etype, now the krbtgt
can be a aes-only key without the need to support not-as-good etypes
for the krbtgt.


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@17905 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-08-24 08:33:09 +00:00
Love Hörnquist Åstrand
599d3cf216 Change _kdc_db_fetch() to return the database pointer too if needed by
the consumer.


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@17904 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-08-23 11:45:16 +00:00
Love Hörnquist Åstrand
03f49a749f Add --kerberos-realm, add client request command.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@17903 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-08-23 11:36:41 +00:00
Love Hörnquist Åstrand
37129f204b Use the krb5_digest api. Return useful errorstring on no-existant command.
Add client request command.


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@17902 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-08-23 11:36:19 +00:00
Love Hörnquist Åstrand
17f00ca951 Add digest glue.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@17901 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-08-23 11:31:14 +00:00
Love Hörnquist Åstrand
b68aa0068d (krb5_digest_set_authentication_user): use krb5_principal
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@17900 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-08-23 11:30:38 +00:00
Love Hörnquist Åstrand
c45391adce Add digest support to the client side.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@17899 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-08-23 11:25:48 +00:00
Love Hörnquist Åstrand
eb9c693880 Add digest.c to libkrb5.so
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@17898 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-08-23 11:25:05 +00:00
Love Hörnquist Åstrand
aeb27f8bbe Add some missing fields needed for digest.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@17897 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-08-23 11:24:24 +00:00
Love Hörnquist Åstrand
d102ff65ec add test for chap
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@17896 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-08-22 14:33:14 +00:00
Love Hörnquist Åstrand
34db0b7e88 save the passwords
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@17895 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-08-22 14:32:46 +00:00
Love Hörnquist Åstrand
4897675c5c x
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@17894 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-08-21 12:06:53 +00:00
Love Hörnquist Åstrand
49ea5b409d Remove empty lines for picky awks
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@17893 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-08-21 12:05:48 +00:00
Love Hörnquist Åstrand
258668b591 add realm to server-init
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@17892 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-08-21 10:15:45 +00:00
Love Hörnquist Åstrand
c2a13c1cd3 Tweak to make consisten and more easier to use.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@17891 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-08-21 09:21:21 +00:00
Love Hörnquist Åstrand
bd969fac52 (krb5_rd_rep): free krb5_ap_rep_enc_part on error and set return pointer to NULL
(krb5_free_ap_rep_enc_part): permit freeing of NULL


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@17890 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-08-21 09:19:22 +00:00
Love Hörnquist Åstrand
324d6e3209 unbreak tagging, add identifier.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@17889 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-08-18 12:56:12 +00:00
Love Hörnquist Åstrand
31a81a1f96 use the secret digestkey, not the public session key
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@17888 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-08-18 11:24:37 +00:00
Love Hörnquist Åstrand
59e7b22985 Fill in more how this is supposed to work.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@17887 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-08-18 11:23:50 +00:00
Love Hörnquist Åstrand
4afabfdf3a x
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@17886 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-08-18 10:48:46 +00:00
Love Hörnquist Åstrand
c37191e06e Frontend for remote digest service in KDC
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@17885 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-08-18 10:44:40 +00:00
Love Hörnquist Åstrand
3b766317e8 Document krb5_{ret,store}_stringnl functions.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@17884 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-08-18 08:41:09 +00:00
Love Hörnquist Åstrand
2d2f459f74 Add krb5_{ret,store}_stringnl functions, stores/retrieves a \n
terminated string.


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@17883 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-08-18 08:39:13 +00:00
Love Hörnquist Åstrand
3d8e85ad37 Default to address-less tickets.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@17882 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-08-18 08:36:55 +00:00
Love Hörnquist Åstrand
0679c60ddd (krb5_get_init_creds_opt_get_error): clear error string on error.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@17881 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-08-18 08:36:02 +00:00
Love Hörnquist Åstrand
343cb164c8 If seteuid() failes, break out of the function. Prompted by MIT advisory.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@17879 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-08-08 21:50:40 +00:00