summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/windows/leash/LeashView.cpp3
1 files changed, 3 insertions, 0 deletions
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);