diff options
author | Jeffrey Altman <jaltman@secure-endpoints.com> | 2004-09-09 23:25:56 +0000 |
---|---|---|
committer | Jeffrey Altman <jaltman@secure-endpoints.com> | 2004-09-09 23:25:56 +0000 |
commit | 990a0c86db55e7af83598f08d46d8834ece79cd6 (patch) | |
tree | ec9332dc5a80acb26f5316a8a6af249091fd410e /src | |
parent | a756236daa2b356e62dd82cd3b6b0c7618d18227 (diff) | |
download | krb5-990a0c86db55e7af83598f08d46d8834ece79cd6.zip krb5-990a0c86db55e7af83598f08d46d8834ece79cd6.tar.gz krb5-990a0c86db55e7af83598f08d46d8834ece79cd6.tar.bz2 |
ms2mit.c: Apply KRB5_TC_NOTICKET to MSLSA: while searching for the
presence of an initial ticket to copy to the MIT cache
ticket: 2688
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@16733 dc483132-0cff-0310-8789-dd5450dbe970
Diffstat (limited to 'src')
-rw-r--r-- | src/windows/ms2mit/ChangeLog | 5 | ||||
-rw-r--r-- | src/windows/ms2mit/ms2mit.c | 14 |
2 files changed, 19 insertions, 0 deletions
diff --git a/src/windows/ms2mit/ChangeLog b/src/windows/ms2mit/ChangeLog index 0448e04..a346c09 100644 --- a/src/windows/ms2mit/ChangeLog +++ b/src/windows/ms2mit/ChangeLog @@ -1,3 +1,8 @@ +2004-09-09 Jeffrey Altman <jaltman@mit.edu> + + * ms2mit.c: apply KRB5_TC_NOTICKET to MSLSA: ccache while + searching for an initial ticket + 2004-08-20 Jeffrey Altman <jaltman@mit.edu> * ms2mit.c: add -c ccache command line option diff --git a/src/windows/ms2mit/ms2mit.c b/src/windows/ms2mit/ms2mit.c index 3a7f7d5..5999a18 100644 --- a/src/windows/ms2mit/ms2mit.c +++ b/src/windows/ms2mit/ms2mit.c @@ -86,6 +86,13 @@ main( exit(1); } + if (code = krb5_cc_set_flags(kcontext, mslsa_ccache, KRB5_TC_NOTICKET)) { + com_err(argv[0], code, "while setting KRB5_TC_NOTICKET flag"); + krb5_cc_close(kcontext, mslsa_ccache); + krb5_free_context(kcontext); + exit(1); + } + /* Enumerate tickets from cache looking for an initial ticket */ if ((code = krb5_cc_start_seq_get(kcontext, mslsa_ccache, &cursor))) { com_err(argv[0], code, "while initiating the cred sequence of MS LSA ccache"); @@ -105,6 +112,13 @@ main( } krb5_cc_end_seq_get(kcontext, mslsa_ccache, &cursor); + if (code = krb5_cc_set_flags(kcontext, mslsa_ccache, 0)) { + com_err(argv[0], code, "while clearing flags"); + krb5_cc_close(kcontext, mslsa_ccache); + krb5_free_context(kcontext); + exit(1); + } + if ( !initial_ticket ) { fprintf(stderr, "%s: Initial Ticket Getting Tickets are not available from the MS LSA\n", argv[0]); |