Commit Graph

177 Commits

Author SHA1 Message Date
Love Hornquist Astrand
b48abe2e0d default to forwardable, use keychain password, handle krb5_cc_switch 2009-11-22 09:54:22 -08:00
Love Hornquist Astrand
2a369fc7fe Capture failures from krb5_cc_get_principal()
Reported by Guillaume Rousse
2009-10-08 08:19:05 -07:00
Love Hornquist Astrand
ba8b14ebbc use krb5_make_principal 2009-10-04 11:29:29 -07:00
Love Hornquist Astrand
175111efd7 Make renewstr const char * to avoid const warning
Based on a report from Matthias Dieter Wallnöfer.
2009-10-03 11:37:38 -07:00
Love Hornquist Astrand
16cb4ae495 make --pk-enterprise work again 2009-09-29 13:14:50 -07:00
Love Hornquist Astrand
a49d9f3376 use _krb5_get_init_creds_opt_set_pkinit_user_certs 2009-09-29 10:49:08 -07:00
Love Hörnquist Åstrand
abd00160ec use krb5_principal_get_realm
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@25113 ec53bebd-3082-4978-b11e-865c3cabbd6b
2009-04-16 08:04:59 +00:00
Love Hörnquist Åstrand
2de7c28777 use krb5_cc_new_unique, use constants for cache types
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@25064 ec53bebd-3082-4978-b11e-865c3cabbd6b
2009-04-03 04:08:19 +00:00
Love Hörnquist Åstrand
72f134d145 add change-defaults
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@24934 ec53bebd-3082-4978-b11e-865c3cabbd6b
2009-03-25 15:35:31 +00:00
Love Hörnquist Åstrand
1403866cae add struct _krb5_krb_auth_data;
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@24798 ec53bebd-3082-4978-b11e-865c3cabbd6b
2009-02-22 23:28:47 +00:00
Love Hörnquist Åstrand
c1f55e1376 fix --pk-enterprise to not alias -C
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@24634 ec53bebd-3082-4978-b11e-865c3cabbd6b
2009-02-07 04:06:02 +00:00
Love Hörnquist Åstrand
be5c7fd7b0 use _krb5_pk_enterprise_cert
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@24617 ec53bebd-3082-4978-b11e-865c3cabbd6b
2009-02-04 22:10:41 +00:00
Love Hörnquist Åstrand
a41a93379a hack in enterprise name support
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@24614 ec53bebd-3082-4978-b11e-865c3cabbd6b
2009-02-04 22:10:11 +00:00
Love Hörnquist Åstrand
962802b047 make --anonymous only take realm.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@24608 ec53bebd-3082-4978-b11e-865c3cabbd6b
2009-02-04 22:09:11 +00:00
Love Hörnquist Åstrand
22016ebfec make anonymous work
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@24601 ec53bebd-3082-4978-b11e-865c3cabbd6b
2009-02-04 22:08:01 +00:00
Love Hörnquist Åstrand
04de679306 less warnings
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@24391 ec53bebd-3082-4978-b11e-865c3cabbd6b
2009-01-25 00:36:29 +00:00
Love Hörnquist Åstrand
e478543524 move rcsid, make afs optional, make ntlm optional
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@24366 ec53bebd-3082-4978-b11e-865c3cabbd6b
2009-01-25 00:32:21 +00:00
Love Hörnquist Åstrand
d31a29f9e3 add enterprise flag
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@24232 ec53bebd-3082-4978-b11e-865c3cabbd6b
2009-01-11 21:40:43 +00:00
Love Hörnquist Åstrand
5f8965a381 build on heimdal-smaller
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@23981 ec53bebd-3082-4978-b11e-865c3cabbd6b
2008-10-26 18:25:12 +00:00
Love Hörnquist Åstrand
f537ed70c6 switch to krb5_clear_error_message
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@23918 ec53bebd-3082-4978-b11e-865c3cabbd6b
2008-10-14 02:56:58 +00:00
Love Hörnquist Åstrand
fe1a976ae2 new krb5_cc_cache_match
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@23905 ec53bebd-3082-4978-b11e-865c3cabbd6b
2008-10-13 03:03:21 +00:00
Love Hörnquist Åstrand
62da1e8ff9 select heimdal_kuser as text domain
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@23835 ec53bebd-3082-4978-b11e-865c3cabbd6b
2008-09-14 11:54:13 +00:00
Love Hörnquist Åstrand
326718e312 i18n kinit
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@23824 ec53bebd-3082-4978-b11e-865c3cabbd6b
2008-09-13 09:45:20 +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
5ec36048aa allow setting referrals flag
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@23676 ec53bebd-3082-4978-b11e-865c3cabbd6b
2008-08-25 02:33:55 +00:00
Love Hörnquist Åstrand
55b7603443 pass extra argument to krb5_cc_[gs]et_config.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@23418 ec53bebd-3082-4978-b11e-865c3cabbd6b
2008-07-26 18:36:48 +00:00
Love Hörnquist Åstrand
d855d2aafa add --ok-as-delegate and --windows flags
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@23401 ec53bebd-3082-4978-b11e-865c3cabbd6b
2008-07-26 18:29:18 +00:00
Love Hörnquist Åstrand
4af9c1c89e Use krb5_cc_set_config.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@23394 ec53bebd-3082-4978-b11e-865c3cabbd6b
2008-07-26 18:26:22 +00:00
Love Hörnquist Åstrand
9e76ac04d0 Use krb5_cc_move to make an atomic switch of the cred cache.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@22116 ec53bebd-3082-4978-b11e-865c3cabbd6b
2007-12-03 21:22:58 +00:00
Love Hörnquist Åstrand
5fed824f37 its vs it\'s etc. From Bjorn Sandell
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@22071 ec53bebd-3082-4978-b11e-865c3cabbd6b
2007-11-14 20:04:50 +00:00
Love Hörnquist Åstrand
22e0c28f45 krb5-v4compat.h defines prototypes for v4 (semiprivate functions) in
libkrb5, don't include krb5-private.h any longer.


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@21483 ec53bebd-3082-4978-b11e-865c3cabbd6b
2007-07-10 16:40:46 +00:00
Love Hörnquist Åstrand
fd1ec14122 Add --ntlm-domain that store the ntlm cred for this domain if the
Kerberos password auth worked.


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@20517 ec53bebd-3082-4978-b11e-865c3cabbd6b
2007-04-22 10:42:26 +00:00
Love Hörnquist Åstrand
0d1b4d2de9 remove code that depend on kerberos 4 library
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@20458 ec53bebd-3082-4978-b11e-865c3cabbd6b
2007-04-19 20:41:27 +00:00
Love Hörnquist Åstrand
09495e7722 KRB5KDC_ERR_PREAUTH_FAILED is also a password failed.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@20278 ec53bebd-3082-4978-b11e-865c3cabbd6b
2007-02-22 02:04:38 +00:00
Love Hörnquist Åstrand
27b0d0e0d1 Add canonicalize flag.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@20229 ec53bebd-3082-4978-b11e-865c3cabbd6b
2007-02-16 03:40:58 +00:00
Love Hörnquist Åstrand
d31c63863f Read the appdefault configration before we try to use the flags.
Bug reported by Ingemar Nilsson.


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@19323 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-12-12 16:35:41 +00:00
Love Hörnquist Åstrand
a0440ced16 (renew_func): if the initial ticket wasn't renewable from the
beginning, not even try to renew it now.


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@19091 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-11-22 18:13:50 +00:00
Love Hörnquist Åstrand
ece5f9603e Make krb5_get_init_creds_opt_free take a context argument.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@19078 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-11-20 18:12:41 +00:00
Love Hörnquist Åstrand
9cfefab1b3 Forward decl
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@19028 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-11-13 17:39:45 +00:00
Love Hörnquist Åstrand
ec19689334 Try to not leak memory.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@18828 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-10-22 15:56:27 +00:00
Love Hörnquist Åstrand
cb22e0849c update (c)
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@18465 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-10-14 13:08:44 +00:00
Love Hörnquist Åstrand
45698ac1dc Add flag --pk-use-enckey.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@18222 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-10-04 20:56:21 +00:00
Love Hörnquist Åstrand
c3b24d8d8e Remove debug printf
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@17988 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-09-04 11:04:00 +00:00
Love Hörnquist Åstrand
3ef140c394 Use new function krb5_get_init_creds_opt_set_addressless.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@17986 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-09-04 10:57:48 +00:00
Love Hörnquist Åstrand
1812eef99f (renew_validate): inherit the proxiable and forwardable from the
orignal ticket, pointed out by Bernard Antoine of CERN.


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@17962 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-09-01 16:36:33 +00:00
Love Hörnquist Åstrand
5ea0612ca9 If --password-file gets STDIN, read the password from the standard input.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@17823 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-07-10 14:47:45 +00:00
Love Hörnquist Åstrand
b011acf259 Pass down prompter and password to krb5_get_init_creds_opt_set_pkinit.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@17540 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-05-11 22:58:07 +00:00
Love Hörnquist Åstrand
22a9431c92 Move parsing of the PK-INIT configuration file to the library so
application doesn't need to deal with it.


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@17530 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-05-11 10:16:41 +00:00
Love Hörnquist Åstrand
594b3f5d86 Add option password-file, read password from the first line of a file.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@17245 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-04-25 21:21:23 +00:00