Commit Graph

37 Commits

Author SHA1 Message Date
Nicolas Williams
c4e962ea04 kafs: Fix a warning 2022-01-14 17:54:55 -06:00
Jeffrey Hutzelman
9d511ea37d libkafs: derivation from non-DES key (rxkad-kdf)
Add support for the "rxkad-kdf" protocol for deriving rxkad session keys
from non-DES Kerberos session keys.  This allows rxkad to be used in
realms where the KDC is unwilling or unable to issue tickets with
single-DES session keys.
2014-08-21 13:05:59 -04:00
Love Hornquist Astrand
f7821b793d also check for des-cbc-md5 while at it 2011-08-30 23:20:04 -07:00
Love Hornquist Astrand
23f5f03c7e drop v4 2010-11-26 09:03:36 -08:00
Love Hornquist Astrand
943123da3b enable DES when getting the afs credential 2009-10-07 09:39:19 -07:00
Love Hornquist Astrand
a83bb81997 drop rcsid 2009-09-07 21:23:42 -07:00
Love Hornquist Astrand
54e10a2a13 Provide better error messages for libkafs 2009-08-30 11:10:15 -07:00
Love Hörnquist Åstrand
22d7aecc02 make comile
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@25049 ec53bebd-3082-4978-b11e-865c3cabbd6b
2009-04-03 04:05:38 +00:00
Love Hörnquist Åstrand
1888913797 use krb5_make_principal instead of krb5_425_conv_principal, since they
will mostly do the same thing....

git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@25047 ec53bebd-3082-4978-b11e-865c3cabbd6b
2009-04-03 04:05:04 +00:00
Love Hörnquist Åstrand
6937d41a02 remove trailing whitespace
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@23815 ec53bebd-3082-4978-b11e-865c3cabbd6b
2008-09-13 09:21:03 +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
e45fef35e1 (afslog_uid_int): use the simpler krb5_principal_get_realm function.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@17032 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-04-10 08:45:04 +00:00
Love Hörnquist Åstrand
6258f30973 Default to use 2b tokens.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@15990 ec53bebd-3082-4978-b11e-865c3cabbd6b
2005-08-26 20:35:13 +00:00
Love Hörnquist Åstrand
26719d30d9 use struct kafs_data everywhere, don't mix with the typedef kafs_data
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@15342 ec53bebd-3082-4978-b11e-865c3cabbd6b
2005-06-02 07:38:22 +00:00
Love Hörnquist Åstrand
3b2a7cb15f s/KEYTYPE_DES/ETYPE_DES_CBC_CRC/
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@14366 ec53bebd-3082-4978-b11e-865c3cabbd6b
2004-12-06 14:43:13 +00:00
Love Hörnquist Åstrand
cf4d77c610 (krb5_afslog_uid_home): be even more friendly to the user and fetch
context and id ourself


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@12932 ec53bebd-3082-4978-b11e-865c3cabbd6b
2003-09-30 18:55:01 +00:00
Love Hörnquist Åstrand
13ade7c50c (afslog_uid_int): just belive that realm hint the user passed us
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@12917 ec53bebd-3082-4978-b11e-865c3cabbd6b
2003-09-23 12:13:28 +00:00
Love Hörnquist Åstrand
b5984d2675 (v5_convert): rename one of the two c to cred4
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@12385 ec53bebd-3082-4978-b11e-865c3cabbd6b
2003-06-21 22:31:09 +00:00
Johan Danielsson
017f087d3d (v5_convert): better match what other functions do with values from
krb5.conf, like case insensitivity


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@12097 ec53bebd-3082-4978-b11e-865c3cabbd6b
2003-04-22 14:23:33 +00:00
Love Hörnquist Åstrand
ce4b5021cd (get_cred): handle that inst can be the empty string too
(v5_convert): use _kafs_foldup
(krb5_afslog_uid_home): set name
(krb5_afslog_uid_home): ditto


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@11996 ec53bebd-3082-4978-b11e-865c3cabbd6b
2003-04-14 08:35:11 +00:00
Love Hörnquist Åstrand
01132499a8 Check the cell part of the name, not the realm part when checking if
2b should be used. The reson is afs@REALM might have updated their
servers but not afs/cell@REALM. Add constant KAFS_RXKAD_2B_KVNO.


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@11989 ec53bebd-3082-4978-b11e-865c3cabbd6b
2003-04-11 17:59:46 +00:00
Love Hörnquist Åstrand
3e491842ba (kafs_settoken5): change signature to include a krb5_context, use v5_convert
(v5_convert): new function, converts a krb5_ccreds to a kafs_token in
three diffrent ways, not at all, local 524/2b, and using 524
(v5_to_kt): add code to do local 524/2b
(get_cred): use v5_convert


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@11850 ec53bebd-3082-4978-b11e-865c3cabbd6b
2003-03-18 10:30:04 +00:00
Love Hörnquist Åstrand
08ea22dd5c (kafs_settoken5): new function, inserts a krb5_creds into kernel
(v5_to_kt): new function, stores a krb5_creds in struct kafs_token
(get_cred): add a appdefault boolean ("libkafs", realm, "afs-use-524")
that can used to toggle if there should v5 token should be used
directly or converted via 524 first.


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@11837 ec53bebd-3082-4978-b11e-865c3cabbd6b
2003-03-18 04:13:17 +00:00
Assar Westerlund
99f53c4c8b new krb524_convert_creds_kdc_ccache
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@10113 ec53bebd-3082-4978-b11e-865c3cabbd6b
2001-06-18 13:11:33 +00:00
Johan Danielsson
3ca5f8150f remove advertising clause
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@7463 ec53bebd-3082-4978-b11e-865c3cabbd6b
1999-12-02 16:58:55 +00:00
Assar Westerlund
af4836c684 (afslog_uid_int): handle d->realm == NULL
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@7420 ec53bebd-3082-4978-b11e-865c3cabbd6b
1999-11-22 06:09:01 +00:00
Assar Westerlund
1eade690ab (afslog_uid_int): don't look at the local realm at all. just use the
realm from the ticket file.


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@7400 ec53bebd-3082-4978-b11e-865c3cabbd6b
1999-11-17 03:11:56 +00:00
Assar Westerlund
909077443f (get_cred): always request a DES key
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@7192 ec53bebd-3082-4978-b11e-865c3cabbd6b
1999-10-19 22:09:16 +00:00
Björn Groenvall
8daeee5f57 Change code to make a clear distinction
between hinted realm and ticket realm.
Change code to acquire the ``best
 possible ticket. Use cross-cell authentication only as method of
 last resort.


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@7121 ec53bebd-3082-4978-b11e-865c3cabbd6b
1999-10-08 16:32:14 +00:00
Assar Westerlund
602d10c54b (get_cred): update to new krb524_convert_creds_kdc
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@7096 ec53bebd-3082-4978-b11e-865c3cabbd6b
1999-10-03 19:57:02 +00:00
Assar Westerlund
544438cc2b (krb5_realm_of_cell): new function
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@6441 ec53bebd-3082-4978-b11e-865c3cabbd6b
1999-07-07 12:30:06 +00:00
Assar Westerlund
ecfe760ceb (afslog_uid_int): update to changes
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@5303 ec53bebd-3082-4978-b11e-865c3cabbd6b
1999-01-30 18:26:51 +00:00
Assar Westerlund
d5c71ea58e new support for specifying homedir
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@5143 ec53bebd-3082-4978-b11e-865c3cabbd6b
1998-09-04 16:25:46 +00:00
Johan Danielsson
c02fbe4186 Use new common framework.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@3389 ec53bebd-3082-4978-b11e-865c3cabbd6b
1997-09-05 17:31:18 +00:00
Johan Danielsson
992a8bcf5d Don't check ticket file for afs ticket.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@3080 ec53bebd-3082-4978-b11e-865c3cabbd6b
1997-08-21 18:51:58 +00:00
Johan Danielsson
50e3490495 Check cached afs tickets for expiration.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@3066 ec53bebd-3082-4978-b11e-865c3cabbd6b
1997-08-20 19:26:41 +00:00
Johan Danielsson
4a7b55901a AFS through krb5 exchange.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@3023 ec53bebd-3082-4978-b11e-865c3cabbd6b
1997-08-15 22:29:31 +00:00