krb5 commit: Add 'Remember this principal' checkbox
Benjamin Kaduk
kaduk at MIT.EDU
Tue Aug 28 16:30:23 EDT 2012
https://github.com/krb5/krb5/commit/4c6bbfe0aa0faa166b1a1096a79dfc1d43e77023
commit 4c6bbfe0aa0faa166b1a1096a79dfc1d43e77023
Author: Kevin Wasserman <kevin.wasserman at painless-security.com>
Date: Tue Jul 3 10:19:40 2012 -0400
Add 'Remember this principal' checkbox
Added to the 'Get Tickets' dialog.
Signed-off-by: Kevin Wasserman <kevin.wasserman at painless-security.com>
ticket: 7298 (new)
queue: kfw
target_version: 1.10.4
tags: pullup
src/windows/leashdll/leashids.h | 1 +
src/windows/leashdll/lsh_pwd.c | 5 ++++-
src/windows/leashdll/lsh_pwd.rc | 2 ++
3 files changed, 7 insertions(+), 1 deletions(-)
diff --git a/src/windows/leashdll/leashids.h b/src/windows/leashdll/leashids.h
index 7a8718e..94e05b6 100644
--- a/src/windows/leashdll/leashids.h
+++ b/src/windows/leashdll/leashids.h
@@ -109,6 +109,7 @@
#define IDC_STATIC_RENEW 1090
#define IDD_PASSWORD 1091
#define IDC_BUTTON_CLEAR_HISTORY 1092
+#define IDC_CHECK_REMEMBER_PRINCIPAL 1093
#define IDC_EDIT_PASSWORD2 1192
#define IDC_STATIC_PWD2 1193
#define IDC_EDIT_PASSWORD3 1194
diff --git a/src/windows/leashdll/lsh_pwd.c b/src/windows/leashdll/lsh_pwd.c
index c45fa1c..0b75300 100644
--- a/src/windows/leashdll/lsh_pwd.c
+++ b/src/windows/leashdll/lsh_pwd.c
@@ -1281,6 +1281,7 @@ AdjustOptions(HWND hDialog, int show, int hideDiff)
ShowWindow(GetDlgItem(hDialog,IDC_CHECK_RENEWABLE),show);
ShowWindow(GetDlgItem(hDialog,IDC_STATIC_KRB5),show);
ShowWindow(GetDlgItem(hDialog,IDC_BUTTON_CLEAR_HISTORY),show);
+ ShowWindow(GetDlgItem(hDialog,IDC_CHECK_REMEMBER_PRINCIPAL),show);
GetWindowRect( hDialog, &dlgRect );
diff = dlgRect.top + GetSystemMetrics(SM_CYCAPTION)
@@ -1444,6 +1445,7 @@ AuthenticateProc(
Leash_get_default_life_max(),
lifetime );
+ CheckDlgButton(hDialog, IDC_CHECK_REMEMBER_PRINCIPAL, TRUE);
/* Set Forwardable checkbox */
CheckDlgButton(hDialog, IDC_CHECK_FORWARDABLE, forwardable);
/* Set NoAddress checkbox */
@@ -1718,7 +1720,8 @@ AuthenticateProc(
lpdi->out.realm[LEASH_REALM_SZ-1] = 0;
}
*/
- Leash_pec_add_principal(principal);
+ if (IsDlgButtonChecked(hDialog, IDC_CHECK_REMEMBER_PRINCIPAL))
+ Leash_pec_add_principal(principal);
CloseMe(TRUE); /* success */
return FALSE;
diff --git a/src/windows/leashdll/lsh_pwd.rc b/src/windows/leashdll/lsh_pwd.rc
index c12c548..88f1a97 100644
--- a/src/windows/leashdll/lsh_pwd.rc
+++ b/src/windows/leashdll/lsh_pwd.rc
@@ -104,6 +104,8 @@ BEGIN
PUSHBUTTON "Cancel",IDCANCEL,249,219,49,14
PUSHBUTTON "Hide Advanced",IDC_BUTTON_OPTIONS,146,219,89,14
PUSHBUTTON "Clear History",IDC_BUTTON_CLEAR_HISTORY,288,42,60,14
+ CONTROL "Remember this principal", IDC_CHECK_REMEMBER_PRINCIPAL,
+ "Button", BS_AUTOCHECKBOX | WS_TABSTOP,248,78,100,14
CONTROL "Ticket Lifetime",IDC_SLIDER_LIFETIME,"msctls_trackbar32",
TBS_BOTH | TBS_NOTICKS | WS_TABSTOP,90,97,258,15
CONTROL "Forwardable and Proxiable (can be forwarded to other machines)",
More information about the cvs-krb5
mailing list