summaryrefslogtreecommitdiffstats
path: root/src/windows/identity/plugins/krb4/krb4funcs.c
diff options
context:
space:
mode:
authorJeffrey Altman <jaltman@secure-endpoints.com>2006-11-22 18:11:16 +0000
committerJeffrey Altman <jaltman@secure-endpoints.com>2006-11-22 18:11:16 +0000
commitd9d4ab6eaffa272fa2557bcd484b0706c94349a6 (patch)
tree0ecd576c4e32187afe729bc2a6dbe2d35ffef1e9 /src/windows/identity/plugins/krb4/krb4funcs.c
parent4d35dfd0b9cefb92192ca34b2b624a1f5877c0e3 (diff)
downloadkrb5-d9d4ab6eaffa272fa2557bcd484b0706c94349a6.tar.gz
krb5-d9d4ab6eaffa272fa2557bcd484b0706c94349a6.tar.xz
krb5-d9d4ab6eaffa272fa2557bcd484b0706c94349a6.zip
KFW 3.1 commits for Final Release
KfW 3.1 final (NetIDMgr 1.1.8.0) nidmgr32.dll (1.1.8.0) - When detecting IP address changes, wait for things to settle down before setting of the IP address change notification. krb5cred.dll (1.1.8.0) - Fixed the Kerberos 5 configuration dialog which didn't handle setting the default realm properly. Setting the default realm now sets the correct string in krb5.ini. - Changing the default realm now marks the relevant configuration node as dirty, and enabled the 'Apply' button. - Changing the 'renewable', 'forwardable' and 'addressless' checkboxes in the identity configuration panels now mark the relevant configuration nodes as dirty, and enables the 'Apply' button. - The location of the Kerberos 5 configuration file is now read-only in the Kerberos 5 configuration dialog. - Set the maximum number of characters for the edit controls in the configuration dialog. krb4cred.dll (1.1.8.0) - The location of the Kerberos 4 configuration files are now read-only in the Kerberos 4 configuration dialog. - Handles setting the ticket string. - Changing the ticket string now marks the relevant configuration node as dirty, and enables the 'Apply' button. - Fixed the plug-in initialization code to perform the initial ticket listing at the end of the initializaton process. ticket: new tags: pullup git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@18863 dc483132-0cff-0310-8789-dd5450dbe970
Diffstat (limited to 'src/windows/identity/plugins/krb4/krb4funcs.c')
-rw-r--r--src/windows/identity/plugins/krb4/krb4funcs.c24
1 files changed, 24 insertions, 0 deletions
diff --git a/src/windows/identity/plugins/krb4/krb4funcs.c b/src/windows/identity/plugins/krb4/krb4funcs.c
index 728d2db4a..306437a00 100644
--- a/src/windows/identity/plugins/krb4/krb4funcs.c
+++ b/src/windows/identity/plugins/krb4/krb4funcs.c
@@ -553,6 +553,28 @@ make_postfix(const char * base,
return ret;
}
+void
+khm_krb4_set_def_tkt_string(void) {
+ wchar_t wtkt_string[MAX_PATH];
+ char tkt_string[MAX_PATH];
+ khm_size cb;
+
+ cb = sizeof(wtkt_string);
+
+ if (KHM_FAILED(khc_read_string(csp_params, L"TktString",
+ wtkt_string, &cb)) ||
+ wtkt_string[0] == L'\0') {
+
+ pkrb_set_tkt_string(0);
+
+ } else {
+
+ UnicodeStrToAnsi(tkt_string, sizeof(tkt_string),
+ wtkt_string);
+ pkrb_set_tkt_string(tkt_string);
+ }
+}
+
static
long
@@ -839,6 +861,8 @@ khm_krb4_kinit(char * aname,
goto cleanup;
}
+ khm_krb4_set_def_tkt_string();
+
err_context = L"fetching ticket";
rc4 = (*pkrb_get_pw_in_tkt)(aname, inst, realm, "krbtgt", realm,
lifetime, password);