summaryrefslogtreecommitdiffstats
path: root/src/windows/leash
Commit message (Collapse)AuthorAgeFilesLines
* Use better URL for kerberos documentationBen Kaduk2013-10-042-2/+2
| | | | | | | | | | | | We have added a krb5-latest symlink for the latest stable release, which is preferred to the krb5-current link (which points to a nightly build of master). ticket: 7673 (new) ticket: 7493 queue: kfw tags: pullup target_version: 1.11.4
* Remove KRB5_DNS_LOOKUP_KDCBen Kaduk2013-08-142-16/+0
| | | | | | | | | | | | | It has been unconditionally activated by all supported build systems for almost two years, and no complaints or issues have been reported. In particular, aclocal.m4 has had an unconditional AC_DEFINE() since 3d708e55 in 2003, and win-pre.in has unconditionally set KRB5_USE_DNS_KDC since 17ffebf7 in 2011. While here, simplify some other DNS conditionals in win-pre.in where only one branch was ever taken. ticket: 7691 (new)
* Build with Visual Studio 2012Ben Kaduk2013-06-251-0/+9
| | | | | | | | | | | | It's more aggressive about enforcing that keywords are not macros in C++ mode, and has bumped the MFC version to 11. Keep compatibility with older versions of Visual Studio, appropriately conditionalized. ticket: 7664 (new) tags: pullup target_version: 1.11.4
* Access keys for the KfW ribbon interfaceBen Kaduk2012-12-051-3/+23
| | | | | | | | | | | | | | | | | | | | | | | | | | Improve accessibility by actually enabling access keys for ribbon elements (tap alt and follow the onscreen hints for keys to press), instead of just underlining a letter in the name of each element. Supply an underlined letter in the text of each element, corresponding to this access key, even if there is not a shortcut key bound to that element. While here, fix conflicting assignment to 'R' on the 'options' tab (between "Renewable Until" and "Automatic Ticket Renewal") by making "Automatic Ticket Renewal" use 'T'. Microsoft's UI recommendations seem to say that access keys should be easy to locate when searching through the menu, and thus using the first letter of the first or second word is advisable. The Ribbon XML Reference seems to indicate that these elements should be "keytip" elements, but MSVS creates "keys" elements, which seem to work, whereas "keytip" does not. Apparently 'F' is standard for the application button menu (which contains exit). Access keys work somewhat poorly for us in this menu, as they appear on top of the text of the menu items, since we have no icons here. ticket: 7441 tags: pullup target_version: 1.10.4
* Rewrap the Leash ribbon conf fileBen Kaduk2012-12-051-1/+331
| | | | | | | | | | A big pile of XML on one line is not very readable. Use 'xmllint --format' to make things more sane. ticket: 7478 (new) queue: kfw tags: pullup target_version: 1.10.4
* Leave 'OK' button visible in Leash AboutBoxBen Kaduk2012-12-051-1/+1
| | | | | | | | | | | | | | | | | | | | The AboutBox dialog as specified in the resource file is larger than the one we display; the dialog init routine marks several things as non-visible, moves the 'OK' button up to where the now-invisible items were, and shrinks the dialog's bounding rectangle. However, the edit boxes containing copyright and version information seem to always present as being on top of the 'OK' button, and their background causes the button to appear almost invisible with the current repositioning. To keep the 'OK' button visible, reduce the amount that it is moved (and the amount the dialog is shrunk) so that the button does not overlap with the edit box. ticket: 7443 tags: pullup target_version: 1.10.4
* Removed unused leash help fileGreg Hudson2012-09-091-0/+0
| | | | | | | | | | | The file 'checkbox blank.png' is unneeded and contains a space in the name, unnecessarily interfering with running find | xargs over the source tree. Remove it. ticket: 7352 (new) queue: kfw target_version: 1.10.4 tags: pullup
* Fix kfw message box titlesKevin Wasserman2012-08-292-2/+2
| | | | | | | | | | | "MIT Kerberos", not "Leash32" Signed-off-by: Kevin Wasserman <kevin.wasserman@painless-security.com> ticket: 7333 (new) queue: kfw target_version: 1.10.4 tags: pullup
* Fix window close issuesKevin Wasserman2012-08-291-5/+1
| | | | | | | | | | | | Stop filtering out SC_CLOSE. 'X' button works more reliably, also alt-F4. Remove minimize box from style. Signed-off-by: Kevin Wasserman <kevin.wasserman@painless-security.com> ticket: 7332 (new) queue: kfw target_version: 1.10.4 tags: pullup
* Refresh ticket display immediately after renewKevin Wasserman2012-08-291-0/+2
| | | | | | | | | | | | Set the CLeashApp::m_bUpdateDisplay flag to cause the display to update on the next WM_IDLE message to the main thread. Signed-off-by: Kevin Wasserman <kevin.wasserman@painless-security.com> ticket: 7331 (new) queue: kfw target_version: 1.10.4 tags: pullup
* Avoid a crash when attempting to change passwordBenjamin Kaduk2012-08-291-1/+1
| | | | | | | | | | | | | In some cases we could keep stack garbage in a local pointer variable until the cleanup at the end of the function wherein krb5_free_context() would choke on the invalid non-NULL value. Initialize to zero to avoid the issue (should be written as NULL but stick to the prevailing style). ticket: 7329 (new) queue: kfw target_version: 1.10.4 tags: pullup
* Fix renew_until check for auto-renewalKevin Wasserman2012-08-291-1/+1
| | | | | | | | | | | | | | | | This was completely wrong, but only caused a severe problem on 64 bit builds. On 32 bit builds the result was effectively always 'success', so it would always attempt to renew even if there was not sufficient time left in the renewable lifetime. This did not have much observable adverse effect. But on 64 bit builds it always failed and so never attempted renewal. Signed-off-by: Kevin Wasserman <kevin.wasserman@painless-security.com> ticket: 7326 (new) queue: kfw target_version: 1.10.4 tags: pullup
* Fix warning caption "Leash"->"MIT Kerberos"Kevin Wasserman2012-08-291-1/+1
| | | | | | | | | Signed-off-by: Kevin Wasserman <kevin.wasserman@painless-security.com> ticket: 7325 (new) queue: kfw target_version: 1.10.4 tags: pullup
* Use release MFC lib for NODEBUG buildsKevin Wasserman2012-08-291-0/+4
| | | | | | | | | Signed-off-by: Kevin Wasserman <kevin.wasserman@painless-security.com> ticket: 7318 (new) queue: kfw target_version: 1.10.4 tags: pullup
* Fix ribbon label hotkeysKevin Wasserman2012-08-291-1/+1
| | | | | | | | | Signed-off-by: Kevin Wasserman <kevin.wasserman@painless-security.com> ticket: 7311 (new) queue: kfw target_version: 1.10.4 tags: pullup
* Fix menu text change breakageKevin Wasserman2012-08-291-5/+0
| | | | | | | | | Signed-off-by: Kevin Wasserman <kevin.wasserman@painless-security.com> ticket: 7310 (new) queue: kfw target_version: 1.10.4 tags: pullup
* Help -- remove principal drop-down refsKevin Wasserman2012-08-288-21/+18
| | | | | | | | | | | Also a couple of minor fixups. Signed-off-by: Kevin Wasserman <kevin.wasserman@painless-security.com> ticket: 7309 (new) queue: kfw target_version: 1.10.4 tags: pullup
* Disable import/export buttons and checkboxKevin Wasserman2012-08-281-1/+1
| | | | | | | | | Signed-off-by: Kevin Wasserman <kevin.wasserman@painless-security.com> ticket: 7308 (new) queue: kfw target_version: 1.10.4 tags: pullup
* Call CWinAppEx::InitInstance()Kevin Wasserman2012-08-281-0/+3
| | | | | | | | | | | | | Without this, AfxGlobalsAddRef() is never called, so AfxGlobalsRelease() does nothing, causing many leaks and a crash on exit in GdiplusShutdown() on Vista. Signed-off-by: Kevin Wasserman <kevin.wasserman@painless-security.com> ticket: 7306 (new) queue: kfw target_version: 1.10.4 tags: pullup
* 'Destroy tickets on exit' destroys all ticketsKevin Wasserman2012-08-281-12/+7
| | | | | | | | | | | Previously destroyed only default ccache and used obsolete functions. Signed-off-by: Kevin Wasserman <kevin.wasserman@painless-security.com> ticket: 7304 (new) queue: kfw target_version: 1.10.4 tags: pullup
* Use cc_user_set_default_name to 'make default'Kevin Wasserman2012-08-281-0/+8
| | | | | | | | | | | | | | In addition to calling krb5_cc_switch(), use krb5int_cc_user_set_default_name() in CLeashView::OnMakeDefault() to set the default ccache for all processes for the current user. Signed-off-by: Kevin Wasserman <kevin.wasserman@painless-security.com> ticket: 7303 (new) queue: kfw subject: 'Make default' should apply to all processes of the user target_version: 1.10.4 tags: pullup
* Help updates for kfw 4.0Kevin Wasserman2012-08-2885-11/+5083
| | | | | | | | | | | | | | | Signed-off-by: Kevin Wasserman <kevin.wasserman@painless-security.com> [kaduk@mit.edu: Squash commits, a couple of grammar fixes, and also turn a few instances of "Leash" into "MIT Kerberos". Trim trailing whitespace and other whitespace tweaks to pass the commit hooks.] ticket: 7300 (new) queue: kfw target_version: 1.10.4 tags: pullup Signed-off-by: Kevin Wasserman <kevin.wasserman@painless-security.com>
* Update kfw change password dialogKevin Wasserman2012-08-271-27/+54
| | | | | | | | | | | Use combined username/realm principal edit control. Signed-off-by: Kevin Wasserman <kevin.wasserman@painless-security.com> ticket: 7297 (new) queue: kfw target_version: 1.10.4 tags: pullup
* Rename "Leash" to "MIT Kerberos"Kevin Wasserman2012-08-275-14/+15
| | | | | | | | | | | In the executable name and many GUI elements. Signed-off-by: Kevin Wasserman <kevin.wasserman@painless-security.com> ticket: 7292 (new) queue: kfw target_version: 1.10.4 tags: pullup
* KfW GUI -- clean up 'About' dialogKevin Wasserman2012-08-273-9/+37
| | | | | | | | | | | | By default, hide the debug list of loaded modules; change LeashView.cpp and recompile to get the list. Signed-off-by: Kevin Wasserman <kevin.wasserman@painless-security.com> ticket: 7291 (new) queue: kfw target_version: 1.10.4 tags: pullup
* KfW GUI -- add 'Options' categoryKevin Wasserman2012-08-271-1/+1
| | | | | | | | | | | | Move 'View' and 'Options' panels from Home to Options category. Rename to 'View Options' and 'Ticket Options' respectively. Signed-off-by: Kevin Wasserman <kevin.wasserman@painless-security.com> ticket: 7287 (new) queue: kfw target_version: 1.10.4 tags: pullup
* Use bold for entire row for default principalKevin Wasserman2012-08-272-32/+46
| | | | | | | | | Signed-off-by: Kevin Wasserman <kevin.wasserman@painless-security.com> ticket: 7286 (new) queue: kfw target_version: 1.10.4 tags: pullup
* Rename 'Get Ticket' to 'MIT Kerberos: Get Ticket'Kevin Wasserman2012-08-272-4/+4
| | | | | | | | | Signed-off-by: Kevin Wasserman <kevin.wasserman@painless-security.com> ticket: 7284 queue: kfw target_version: 1.10.4 tags: pullup
* KfW GUI -- abbreviate durationsKevin Wasserman2012-08-241-14/+4
| | | | | | | | | | | Map days -> d; hours -> h; minutes -> m Signed-off-by: Kevin Wasserman <kevin.wasserman@painless-security.com> ticket: 7285 (new) queue: kfw target_version: 1.10.4 tags: pullup
* Change 'Get Ticket' to 'MIT Kerberos: Get Ticket'Kevin Wasserman2012-08-241-5/+5
| | | | | | | | | | | Also improve string copy safety. Signed-off-by: Kevin Wasserman <kevin.wasserman@painless-security.com> ticket: 7284 (new) queue: kfw target_version: 1.10.4 tags: pullup
* Update kfw ribbon button graphicsKevin Wasserman2012-08-241-1/+1
| | | | | | | | | | | Integrate bmp's from ui team. Signed-off-by: Kevin Wasserman <kevin.wasserman@painless-security.com> ticket: 7281 (new) queue: kfw target_version: 1.10.4 tags: pullup
* KfW GUI -- show ticket flagsKevin Wasserman2012-08-241-1/+46
| | | | | | | | | Signed-off-by: Kevin Wasserman <kevin.wasserman@painless-security.com> ticket: 7280 (new) queue: kfw target_version: 1.10.4 tags: pullup
* KfW GUI -- update expand/collapse icon renderingKevin Wasserman2012-08-241-10/+23
| | | | | | | | | Use DrawThemeBackground() to draw the icons from the explorer treeview. ticket: 7279 (new) queue: kfw target_version: 1.10.4 tags: pullup
* Use file mapping to marshall message dataKevin Wasserman2012-08-241-2/+13
| | | | | | | | | | | | | GlobalAlloc() is no longer supported for this purpose. Also split out leash message marshalling code into a separate function acquire_tkt_send_message_leash and improve string copy safety. Signed-off-by: Kevin Wasserman <kevin.wasserman@painless-security.com> ticket: 7276 (new) queue: kfw target_version: 1.10.4 tags: pullup
* Set kfw GUI read-only princ flag when appropriateKevin Wasserman2012-08-241-0/+3
| | | | | | | | | | | | | 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
* Send kfw 'obtain ticket' messages to main frameKevin Wasserman2012-08-241-0/+4
| | | | | | | | | | | | | | | Previous versions of kfw would attempt to send 'obtain tickets' messages directly to the 'view' window by sending to the first child of the main frame. But with the ribbon UI, the ribbon toolbar is now the first child, so that method no longer works. Instead we now send the message to the main frame and the main frame forwards to the active view. Signed-off-by: Kevin Wasserman <kevin.wasserman@painless-security.com> ticket: 7273 (new) queue: kfw target_version: 1.10.4 tags: pullup
* Fix ribbon breakageKevin Wasserman2012-08-242-3/+3
| | | | | | | | | | | Controls were accidentally broken when moved Signed-off-by: Kevin Wasserman <kevin.wasserman@painless-security.com> ticket: 7271 (new) queue: kfw target_version: 1.10.4 tags: pullup
* Add Forget Principals to Get Tickets dialogKevin Wasserman2012-08-243-8/+1
| | | | | | | | | | | | | | | And remove remnants of it from the "more" panel. Clear the registry key that stores the principal list. Also clear the autocomplete strings on the active control. [kaduk@mit.edu: squashed commits and rewrote commit message.] ticket: 7269 (new) subject: forget principals functionality queue: kfw target_version: 1.10.4 tags: pullup
* KfW GUI -- add 'More' PanelKevin Wasserman2012-08-245-3/+17
| | | | | | | | | | | 'Import Tickets', 'Export Tickets', and 'Forget Principals' buttons. Signed-off-by: Kevin Wasserman <kevin.wasserman@painless-security.com> ticket: 7268 (new) queue: kfw target_version: 1.10.4 tags: pullup
* KfW GUI -- renew selected principalsKevin Wasserman2012-08-241-5/+99
| | | | | | | | | | | | | The renew button should act on the current selection. -auto-renew still only renews default ccache -renew doesn't work for UAC-limited MSLSA Signed-off-by: Kevin Wasserman <kevin.wasserman@painless-security.com> ticket: 7262 (new) queue: kfw target_version: 1.10.4 tags: pullup
* Update ribbon tooltip textBen Kaduk2012-08-241-13/+13
| | | | | | | | | Signed-off-by: Kevin Wasserman <kevin.wasserman@painless-security.com> ticket: 7261 (new) queue: kfw target_version: 1.10.4 tags: pullup
* Add leak tracking support to LeashKevin Wasserman2012-08-241-0/+12
| | | | | | | | | Signed-off-by: Kevin Wasserman <kevin.wasserman@painless-security.com> ticket: 7260 (new) queue: kfw target_version: 1.10.4 tags: pullup
* Remove ID_ABOUT, add ID_IMPORT_TICKETSKevin Wasserman2012-08-242-3/+4
| | | | | | | | | Signed-off-by: Kevin Wasserman <kevin.wasserman@painless-security.com> ticket: 7258 (new) queue: kfw target_version: 1.10.4 tags: pullup
* Fix tooltips for ribbonKevin Wasserman2012-08-241-3/+17
| | | | | | | | | Signed-off-by: Kevin Wasserman <kevin.wasserman@painless-security.com> ticket: 7257 (new) queue: kfw target_version: 1.10.4 tags: pullup
* Tooltip text fixesKevin Wasserman2012-08-241-12/+13
| | | | | | | | | Signed-off-by: Kevin Wasserman <kevin.wasserman@painless-security.com> ticket: 7256 (new) queue: kfw target_version: 1.10.4 tags: pullup
* kfw support for multiple identitiesKevin Wasserman2012-08-2410-855/+1247
| | | | | | | | | | | | | | | | | | | | We need a sense of what the default identity is, then, with a way to set it and list it. The memory management model changes some, as well. Use a bold font to indicate the current default identity in the GUI; while here use an italic font for expired credentials. In the process, rip out some krb4 remenants, and remove ancient code conditional on the lack of KRB5_TC_NOTICKET. Define USE_MESSAGE_BOX when building leash and use MessageBox(). [kaduk@mit.edu: adjust for style, flesh out commit message.] ticket: 7253 (new) queue: kfw target_version: 1.10.4 tags: pullup
* kfw remove status barKevin Wasserman2012-08-244-6/+16
| | | | | | | | | Signed-off-by: Kevin Wasserman <kevin.wasserman@painless-security.com> ticket: 7251 (new) queue: kfw target_version: 1.10.4 tags: pullup
* Only create toolbar when not using ribbon UIKevin Wasserman2012-08-241-6/+8
| | | | | | | | | | | When we do create the toolbar, dock it. Signed-off-by: Kevin Wasserman <kevin.wasserman@painless-security.com> ticket: 7250 (new) queue: kfw target_version: 1.10.4 tags: pullup
* Use ListView; add ViewColumn abstractionKevin Wasserman2012-08-244-277/+139
| | | | | | | | | | | | | | | | Punting FormView since we really only need ListCtrl and using ListView makes the header column and window resizing work. The ViewColumn abstraction eliminates some copy/paste code blocks. HDN_ITEMCHANGED tracks user changes to column widths. Remove CTreeCtrl-related code. Also remove some unused code that was generating warnings. Signed-off-by: Kevin Wasserman <kevin.wasserman@painless-security.com> ticket: 7249 (new) queue: kfw target_version: 1.10.4 tags: pullup
* kfw implement ribbon UIKevin Wasserman2012-08-245-8/+43
| | | | | | | | | Signed-off-by: Kevin Wasserman <kevin.wasserman@painless-security.com> ticket: 7248 (new) queue: kfw target_version: 1.10.4 tags: pullup