From b89802f0a491c6e8c6a320bc1af2b2bbbdb92669 Mon Sep 17 00:00:00 2001 From: Kevin Wasserman Date: Thu, 21 Jun 2012 13:27:27 -0400 Subject: Set kfw GUI read-only princ flag when appropriate When receiving a request to obtain tickets (from another process), if a particular principal is requested, set the read-only flag to prevent the user from changing the principal. Signed-off-by: Kevin Wasserman ticket: 7275 (new) queue: kfw target_version: 1.10.4 tags: pullup --- src/windows/leash/LeashView.cpp | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/windows/leash/LeashView.cpp') diff --git a/src/windows/leash/LeashView.cpp b/src/windows/leash/LeashView.cpp index 1375d9fdc..96c5127eb 100644 --- a/src/windows/leash/LeashView.cpp +++ b/src/windows/leash/LeashView.cpp @@ -2753,6 +2753,9 @@ CLeashView::OnObtainTGTWithParam(WPARAM wParam, LPARAM lParam) strcpy(ldi.in.title,"Get Ticket"); } + if (strlen(ldi.username) > 0 && strlen(ldi.realm) > 0) + ldi.dlgtype |= DLGFLAG_READONLYPRINC; + res = pLeash_kinit_dlg_ex(m_hWnd, &ldi); GlobalUnlock((HGLOBAL) lParam); ::SendMessage(m_hWnd, WM_COMMAND, ID_UPDATE_DISPLAY, 0); -- cgit