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>
(cherry picked from commit
b89802f0a491c6e8c6a320bc1af2b2bbbdb92669)
ticket: 7275
status: resolved
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);