summaryrefslogtreecommitdiffstats
path: root/src/windows/leash
diff options
context:
space:
mode:
authorKevin Wasserman <kevin.wasserman@painless-security.com>2012-06-21 13:27:27 -0400
committerBen Kaduk <kaduk@mit.edu>2012-08-24 15:54:51 -0400
commitb89802f0a491c6e8c6a320bc1af2b2bbbdb92669 (patch)
tree3ae4455803f1358531942697df52856ee4fa24cf /src/windows/leash
parent88f425a7169a1f1d38b89d80a167f58e8ce475e8 (diff)
downloadkrb5-b89802f0a491c6e8c6a320bc1af2b2bbbdb92669.tar.gz
krb5-b89802f0a491c6e8c6a320bc1af2b2bbbdb92669.tar.xz
krb5-b89802f0a491c6e8c6a320bc1af2b2bbbdb92669.zip
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 <kevin.wasserman@painless-security.com> ticket: 7275 (new) queue: kfw target_version: 1.10.4 tags: pullup
Diffstat (limited to 'src/windows/leash')
-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);