Commit Graph

154 Commits

Author SHA1 Message Date
Love Hörnquist Åstrand
0d70a9f211 (krb5_get_init_creds_password): if prompter is NULL, don't try to ask
for a password to change. reported by Iain Moffat @ ufl.edu via Howard
Chu <hyc@highlandsun.com>


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@11888 ec53bebd-3082-4978-b11e-865c3cabbd6b
2003-03-20 17:15:43 +00:00
Johan Danielsson
6c6043ec44 (krb5_get_init_creds_password): const qualify
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@10913 ec53bebd-3082-4978-b11e-865c3cabbd6b
2002-04-18 09:14:51 +00:00
Assar Westerlund
1c8fadc0af handle LR_PW_EXPTIME and LR_ACCT_EXPTIME in the same way
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@10870 ec53bebd-3082-4978-b11e-865c3cabbd6b
2002-03-10 23:13:10 +00:00
Johan Danielsson
411a281c4a (krb5_get_init_creds_keytab): free key proc data
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@10720 ec53bebd-3082-4978-b11e-865c3cabbd6b
2001-09-18 09:36:39 +00:00
Jacques A. Vidrine
9bcf79a769 We can't share the krb5_data structure with multiple prompts. This
fixes password expiration in krb5_init_creds_password.


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@10666 ec53bebd-3082-4978-b11e-865c3cabbd6b
2001-09-05 17:40:03 +00:00
Johan Danielsson
6d909c2713 set renew-life to some sane value
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@10202 ec53bebd-3082-4978-b11e-865c3cabbd6b
2001-06-29 16:47:01 +00:00
Assar Westerlund
ddf21c4e3b remove configuration reading that is now done in
krb5_get_init_creds_opt_set_default_flags


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@10006 ec53bebd-3082-4978-b11e-865c3cabbd6b
2001-05-27 23:54:29 +00:00
Assar Westerlund
d27aa3b62e add some krb5_{set,clear}_error_string
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@9937 ec53bebd-3082-4978-b11e-865c3cabbd6b
2001-05-14 06:14:52 +00:00
Assar Westerlund
f89ac763ed update to new prompter, use prompter types and send two prompts at
once when changning password


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@9929 ec53bebd-3082-4978-b11e-865c3cabbd6b
2001-05-11 20:29:00 +00:00
Assar Westerlund
900bbe269a (get_init_creds_common): handle options == NULL. noted by
<marc@mit.edu>


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@9808 ec53bebd-3082-4978-b11e-865c3cabbd6b
2001-04-25 00:48:10 +00:00
Assar Westerlund
b6785bddcc (change_password): reset forwardable and proxiable. copy
preauthentication list correctly from supplied options


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@8796 ec53bebd-3082-4978-b11e-865c3cabbd6b
2000-07-24 03:46:40 +00:00
Assar Westerlund
5d80214b41 (krb5_get_init_creds_password): `in_tkt_service' can be NULL
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@8140 ec53bebd-3082-4978-b11e-865c3cabbd6b
2000-04-08 21:15:45 +00:00
Assar Westerlund
cb34056dd0 fix typo
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@8092 ec53bebd-3082-4978-b11e-865c3cabbd6b
2000-04-02 21:43:18 +00:00
Assar Westerlund
33b253a30a (print_expire): do not assume anything about the size of time_t,
i.e. make it 64-bit happy


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@8071 ec53bebd-3082-4978-b11e-865c3cabbd6b
2000-03-27 00:30:00 +00:00
Assar Westerlund
fa6ac6f397 (krb5_get_init_creds_password): evil hack to avoid recursion
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@8029 ec53bebd-3082-4978-b11e-865c3cabbd6b
2000-03-10 19:32:47 +00:00
Assar Westerlund
9e5b6ffc2f (get_init_creds_common): set request_anonymous flag appropriatly
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@8017 ec53bebd-3082-4978-b11e-865c3cabbd6b
2000-03-04 15:58:44 +00:00
Assar Westerlund
52cde19e4b (change_password): replace strncpy with strlcpy
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@7878 ec53bebd-3082-4978-b11e-865c3cabbd6b
2000-02-07 03:17:20 +00:00
Assar Westerlund
209565763c update to new prototype of krb5_timeofday
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@7857 ec53bebd-3082-4978-b11e-865c3cabbd6b
2000-02-06 05:20:51 +00:00
Johan Danielsson
c5b916ca6f remove advertising clause
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@7464 ec53bebd-3082-4978-b11e-865c3cabbd6b
1999-12-02 17:05:13 +00:00
Assar Westerlund
550eada60d remove some unused stuff
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@7387 ec53bebd-3082-4978-b11e-865c3cabbd6b
1999-11-13 20:37:21 +00:00
Assar Westerlund
57e671a740 (krb5_get_init_creds_password): remove preauthentication generation
code.  it's now in krb5_get_in_cred


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@7357 ec53bebd-3082-4978-b11e-865c3cabbd6b
1999-11-12 16:12:04 +00:00
Assar Westerlund
f64c1278fa (krb5_get_init_creds_password): return KRB5_LIBOS_PWDINTR when interrupted
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@6970 ec53bebd-3082-4978-b11e-865c3cabbd6b
1999-09-14 21:53:18 +00:00
Assar Westerlund
d5227abb81 (change_password): add colon to prompt strings
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@6146 ec53bebd-3082-4978-b11e-865c3cabbd6b
1999-05-06 10:14:40 +00:00
Assar Westerlund
4bd2f7fb48 (get_init_creds_common): if start_time is given, request a postdated
ticket.


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@6022 ec53bebd-3082-4978-b11e-865c3cabbd6b
1999-04-20 22:11:54 +00:00
Assar Westerlund
683ff29695 (krb5_get_init_creds_password): kludge around `ret_as_reply' semantics
by only freeing it when ret == 0


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@5901 ec53bebd-3082-4978-b11e-865c3cabbd6b
1999-04-10 13:41:44 +00:00
Assar Westerlund
eafbc202b9 (krb5_get_init_creds_password): re-organize the code to always free
`kdc_reply'


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@5755 ec53bebd-3082-4978-b11e-865c3cabbd6b
1999-03-24 22:27:21 +00:00
Assar Westerlund
039540695f KRB5_TGS_NAME: use
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@5304 ec53bebd-3082-4978-b11e-865c3cabbd6b
1999-01-30 18:28:46 +00:00
Assar Westerlund
6b44da7854 more type correctness
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@5216 ec53bebd-3082-4978-b11e-865c3cabbd6b
1998-11-22 05:55:48 +00:00
Johan Danielsson
cc32e1c144 (get_init_creds_common): if the forwardable or proxiable flags are set
in options, set the kdc-flags to the value specified, and not always
to one


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@4973 ec53bebd-3082-4978-b11e-865c3cabbd6b
1998-05-28 22:08:56 +00:00
Johan Danielsson
c39f765c3c const
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@4910 ec53bebd-3082-4978-b11e-865c3cabbd6b
1998-05-23 02:59:28 +00:00
Johan Danielsson
f1706e66b3 Zero kdc_reply.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@4772 ec53bebd-3082-4978-b11e-865c3cabbd6b
1998-04-18 18:51:04 +00:00
Johan Danielsson
4dd652b0a9 Rename PA-KEY-INFO -> ETYPE-INFO. Better cleanup on errors.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@4615 ec53bebd-3082-4978-b11e-865c3cabbd6b
1998-03-21 00:47:35 +00:00
Johan Danielsson
e247ceb526 Remove unused variables.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@4513 ec53bebd-3082-4978-b11e-865c3cabbd6b
1998-03-01 04:58:52 +00:00
Assar Westerlund
2e7bbb6bbc (krb5_get_init_creds_keytab): use krb5_keytab_key_proc
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@4472 ec53bebd-3082-4978-b11e-865c3cabbd6b
1998-02-27 04:04:35 +00:00
Johan Danielsson
f03922bf19 Use krb5_decode_PA_KEY_INFO.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@4364 ec53bebd-3082-4978-b11e-865c3cabbd6b
1998-01-31 16:32:23 +00:00
Johan Danielsson
82efb9b371 Add better support for pre-authentication, by looking at hints from
the KDC.


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@4349 ec53bebd-3082-4978-b11e-865c3cabbd6b
1998-01-22 22:34:12 +00:00
Johan Danielsson
2298d9a00c part1 -> kdc_rep, part2 -> enc_part
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@4335 ec53bebd-3082-4978-b11e-865c3cabbd6b
1998-01-21 02:13:17 +00:00
Johan Danielsson
8ea13a4527 Return some error if prompter functions return failure.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@4322 ec53bebd-3082-4978-b11e-865c3cabbd6b
1998-01-21 00:34:02 +00:00
Johan Danielsson
46569a331b Add context to all krb5_config_*get_*.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@4256 ec53bebd-3082-4978-b11e-865c3cabbd6b
1998-01-03 21:14:31 +00:00
Assar Westerlund
cb58b86f91 removed commented out
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@4003 ec53bebd-3082-4978-b11e-865c3cabbd6b
1997-11-16 01:53:08 +00:00
Johan Danielsson
8eb312128d fix warnings
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@3588 ec53bebd-3082-4978-b11e-865c3cabbd6b
1997-10-13 16:30:09 +00:00
Johan Danielsson
af0470daf6 make change_password and get_init_creds_common static
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@3267 ec53bebd-3082-4978-b11e-865c3cabbd6b
1997-08-29 00:56:47 +00:00
Assar Westerlund
7d4a3e365c (krb5_get_init_creds_password): If KDC_ERR_PREUATH_REQUIRED, add
preauthentication and try again.


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@3119 ec53bebd-3082-4978-b11e-865c3cabbd6b
1997-08-24 10:40:08 +00:00
Assar Westerlund
9954fc4d14 use new krb5_config_get-functions
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@2998 ec53bebd-3082-4978-b11e-865c3cabbd6b
1997-08-15 07:03:08 +00:00
Assar Westerlund
6fd5ea4f86 use krb5_timeofday and krb5_us_timeofday
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@2927 ec53bebd-3082-4978-b11e-865c3cabbd6b
1997-08-11 23:35:31 +00:00
Assar Westerlund
fd8b09deb7 (init_cred): set realm of server correctly.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@2916 ec53bebd-3082-4978-b11e-865c3cabbd6b
1997-08-11 17:14:28 +00:00
Assar Westerlund
baf84d8966 support changing of password when it has expired
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@2905 ec53bebd-3082-4978-b11e-865c3cabbd6b
1997-08-11 03:38:01 +00:00
Johan Danielsson
9f0a5160aa Random fixes.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@2813 ec53bebd-3082-4978-b11e-865c3cabbd6b
1997-08-08 22:02:02 +00:00
Assar Westerlund
a3cb182c3b fix some bugs and a memory leak
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@2792 ec53bebd-3082-4978-b11e-865c3cabbd6b
1997-08-08 03:53:01 +00:00
Assar Westerlund
2f38977b97 small fixes
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@2766 ec53bebd-3082-4978-b11e-865c3cabbd6b
1997-08-07 23:31:25 +00:00