diff options
-rw-r--r-- | src/windows/leashdll/leashids.h | 1 | ||||
-rw-r--r-- | src/windows/leashdll/lsh_pwd.c | 5 | ||||
-rw-r--r-- | 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 7a8718ee42..94e05b6b60 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 c45fa1c682..0b75300939 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 c12c5481e1..88f1a9725a 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)", |