#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
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)
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 */
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;
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)",