From 64e4f38daeae9926ef7f50b24f49f4d7f8b8c971 Mon Sep 17 00:00:00 2001 From: Jeffrey Altman Date: Sat, 31 Jan 2004 00:46:38 +0000 Subject: Add support for Addressless Ticket Checkbox. Applied patch from Doug Engert ticket: 982 tags: pullup target_version: 1.3.2 git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@15989 dc483132-0cff-0310-8789-dd5450dbe970 --- src/windows/cns/cns.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'src/windows/cns/cns.c') diff --git a/src/windows/cns/cns.c b/src/windows/cns/cns.c index 13404b7366..7a02abba7e 100644 --- a/src/windows/cns/cns.c +++ b/src/windows/cns/cns.c @@ -58,6 +58,7 @@ char confname[FILENAME_MAX]; /* krb5.conf (or krb.conf for krb4) */ #ifdef KRB5 char ccname[FILENAME_MAX]; /* ccache file location */ BOOL forwardable; /* TRUE to get forwardable tickets */ +BOOL noaddresses; krb5_context k5_context; krb5_ccache k5_ccache; #endif @@ -1224,7 +1225,10 @@ kwin_command(HWND hwnd, int cid, HWND hwndCtl, UINT codeNotify) krb5_get_init_creds_opt_init(&opts); krb5_get_init_creds_opt_set_forwardable(&opts, forwardable); krb5_get_init_creds_opt_set_tkt_life(&opts, lifetime * 60); - + if (noaddresses) { + krb5_get_init_creds_opt_set_address_list(&opts, NULL); + } + /* * get the initial creds using the password and the options we set above */ @@ -1491,7 +1495,6 @@ kwin_paint(HWND hwnd) LRESULT CALLBACK kwin_wnd_proc(HWND hwnd, UINT message, WPARAM wParam, LPARAM lParam) { - int n; #if 0 if (message == wm_kerberos_changed) { /* Message from the ccache */ @@ -1704,6 +1707,7 @@ init_instance(HINSTANCE hinstance, int ncmdshow) * ticket options */ forwardable = cns_res.forwardable; + noaddresses = cns_res.noaddresses; /* * Load clock icons -- cgit