]> git.ipfire.org Git - thirdparty/krb5.git/log
thirdparty/krb5.git
13 years agoFix window close issues
Kevin Wasserman [Tue, 7 Aug 2012 17:53:02 +0000 (13:53 -0400)] 
Fix window close issues

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

13 years agoRefresh ticket display immediately after renew
Kevin Wasserman [Sun, 5 Aug 2012 16:15:28 +0000 (12:15 -0400)] 
Refresh ticket display immediately after renew

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

13 years agoUpdate KfW installer graphics
Kevin Wasserman [Fri, 3 Aug 2012 21:22:31 +0000 (17:22 -0400)] 
Update KfW installer graphics

Replace dogheads with the new 'K'.

Signed-off-by: Kevin Wasserman <kevin.wasserman@painless-security.com>
ticket: 7330 (new)
queue: kfw
target_version: 1.10.4
tags: pullup

13 years agoAvoid a crash when attempting to change password
Benjamin Kaduk [Tue, 31 Jul 2012 20:12:27 +0000 (16:12 -0400)] 
Avoid a crash when attempting to change password

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

13 years agoRename old krb5.ini files away
Benjamin Kaduk [Mon, 30 Jul 2012 20:50:55 +0000 (16:50 -0400)] 
Rename old krb5.ini files away

We want to always use a new krb5.ini (and our search order guarantees
that we will), but users might be confused if there is still a file
named krb5.ini in the old location which is now non-functional.
However, it is rude to unconditionally delete the old file which may
potentially be the only copy a user has of their local changes.
Instead, rename the old file to a non-functioning name that indicates
it is no longer being used, so that it may be consulted if needed.
Only attempt the rename if we found an existing krb5.ini, and ignore errors
since this is not a critical part of the installation.

ticket: 7328 (new)
queue: kfw
target_version: 1.10.4
tags: pullup

13 years agoAdd domain_realm mappings to the athena krb5.ini
Kevin Wasserman [Mon, 30 Jul 2012 20:33:48 +0000 (16:33 -0400)] 
Add domain_realm mappings to the athena krb5.ini

These seem to be the only bits from the krb5.ini shipped with older
versions of KfW that remain useful.

Signed-off-by: Kevin Wasserman <kevin.wasserman@painless-security.com>
[kaduk@mit.edu: add motivation to commit message]

ticket: 7327 (new)
queue: kfw
target_version: 1.10.4
tags: pullup

13 years agoFix renew_until check for auto-renewal
Kevin Wasserman [Mon, 30 Jul 2012 20:30:34 +0000 (16:30 -0400)] 
Fix renew_until check for auto-renewal

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

13 years agoFix warning caption "Leash"->"MIT Kerberos"
Kevin Wasserman [Mon, 30 Jul 2012 20:23:02 +0000 (16:23 -0400)] 
Fix warning caption "Leash"->"MIT Kerberos"

Signed-off-by: Kevin Wasserman <kevin.wasserman@painless-security.com>
ticket: 7325 (new)
queue: kfw
target_version: 1.10.4
tags: pullup

13 years agoAlways install krb5.ini in KfW 4.0 installer
Kevin Wasserman [Mon, 30 Jul 2012 13:46:24 +0000 (09:46 -0400)] 
Always install krb5.ini in KfW 4.0 installer

Pre-existing krb5.ini files from old kfw versions will be overridden
due to the new search path, but not removed.  This is the desired behavior
since old krb5.ini files are far more likely to cause problems than to
contain useful data.

Signed-off-by: Kevin Wasserman <kevin.wasserman@painless-security.com>
ticket: 7324 (new)
queue: kfw
target_version: 1.10.4
tags: pullup

13 years agoPut athena-specific krb5.ini in athena subdir
Kevin Wasserman [Sat, 28 Jul 2012 12:14:24 +0000 (08:14 -0400)] 
Put athena-specific krb5.ini in athena subdir

The installer only picks it up if MIT_INTERNAL is defined in
the environment; otherwise it uses the now-empty krb5.ini in
the base directory.

Signed-off-by: Kevin Wasserman <kevin.wasserman@painless-security.com>
ticket: 7323 (new)
queue: kfw
target_version: 1.10.4
tags: pullup

13 years agoCCAPI client rpc fixes
Kevin Wasserman [Fri, 27 Jul 2012 20:41:06 +0000 (16:41 -0400)] 
CCAPI client rpc fixes

On Windows XP, cci_os_ipc_thread_init() causes additional threads to be
spawned immediately, which results in a vicious cycle until Windows
resources are exhausted.  Instead, defer thread_init() until it is really
needed.

Also, use the MSDN-recommended defaults for RPC calls instead of random
constants.

Signed-off-by: Kevin Wasserman <kevin.wasserman@painless-security.com>
ticket: 7322 (new)
target_version: 1.10.4
tags: pullup

13 years agoHandle missing autocomplete object gracefully
Kevin Wasserman [Fri, 27 Jul 2012 01:08:14 +0000 (21:08 -0400)] 
Handle missing autocomplete object gracefully

Don't crash if we can't create a CLSID_AutoComplete instance.

Signed-off-by: Kevin Wasserman <kevin.wasserman@painless-security.com>
ticket: 7321 (new)
queue: kfw
target_version: 1.10.4
tags: pullup

13 years agoAdd both x86 and x64 msm's to x64 installer
Kevin Wasserman [Thu, 26 Jul 2012 18:50:40 +0000 (14:50 -0400)] 
Add both x86 and x64 msm's to x64 installer

Since we have x86 dlls, we need the x86 msm's.

Signed-off-by: Kevin Wasserman <kevin.wasserman@painless-security.com>
ticket: 7320 (new)
queue: kfw
target_version: 1.10.4
tags: pullup

13 years agoUse env to determine config in installer build
Kevin Wasserman [Thu, 26 Jul 2012 10:57:35 +0000 (06:57 -0400)] 
Use env to determine config in installer build

Use NODEBUG and DEBUG_SYMBOL from the environment to determine whether or
not to define Debug and DebugSyms for the installer build.

Signed-off-by: Kevin Wasserman <kevin.wasserman@painless-security.com>
ticket: 7319 (new)
queue: kfw
target_version: 1.10.4
tags: pullup

13 years agoUse release MFC lib for NODEBUG builds
Kevin Wasserman [Thu, 26 Jul 2012 10:53:50 +0000 (06:53 -0400)] 
Use release MFC lib for NODEBUG builds

Signed-off-by: Kevin Wasserman <kevin.wasserman@painless-security.com>
ticket: 7318 (new)
queue: kfw
target_version: 1.10.4
tags: pullup

13 years agoDon't require pdbs for make install
Kevin Wasserman [Thu, 26 Jul 2012 10:37:47 +0000 (06:37 -0400)] 
Don't require pdbs for make install

When NODEBUG is defined and DEBUG_SYMBOL is not, no pdbs are generated.
This should not cause make install to fail.

Signed-off-by: Kevin Wasserman <kevin.wasserman@painless-security.com>
ticket: 7316 (new)
queue: kfw
target_version: 1.10.4
tags: pullup

13 years agoAdd MIT krb5.ini to wix install directory
Kevin Wasserman [Wed, 25 Jul 2012 12:32:46 +0000 (08:32 -0400)] 
Add MIT krb5.ini to wix install directory

Signed-off-by: Kevin Wasserman <kevin.wasserman@painless-security.com>
ticket: 7315 (new)
queue: kfw
target_version: 1.10.4
tags: pullup

13 years agoFix installer UI field sizes
Kevin Wasserman [Tue, 24 Jul 2012 10:10:11 +0000 (06:10 -0400)] 
Fix installer UI field sizes

Increase title control height to make all text visible.
Adjust position of description controls accordingly.

Signed-off-by: Kevin Wasserman <kevin.wasserman@painless-security.com>
ticket: 7314 (new)
queue: kfw
target_version: 1.10.4
tags:pullup

13 years agoFix ribbon label hotkeys
Kevin Wasserman [Tue, 24 Jul 2012 18:26:33 +0000 (14:26 -0400)] 
Fix ribbon label hotkeys

Signed-off-by: Kevin Wasserman <kevin.wasserman@painless-security.com>
ticket: 7311 (new)
queue: kfw
target_version: 1.10.4
tags: pullup

13 years agoFix menu text change breakage
Kevin Wasserman [Tue, 24 Jul 2012 16:35:18 +0000 (12:35 -0400)] 
Fix menu text change breakage

Signed-off-by: Kevin Wasserman <kevin.wasserman@painless-security.com>
ticket: 7310 (new)
queue: kfw
target_version: 1.10.4
tags: pullup

13 years agoHelp -- remove principal drop-down refs
Kevin Wasserman [Mon, 23 Jul 2012 20:43:06 +0000 (16:43 -0400)] 
Help -- remove principal drop-down refs

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

13 years agoDisable import/export buttons and checkbox
Kevin Wasserman [Thu, 19 Jul 2012 01:53:29 +0000 (21:53 -0400)] 
Disable import/export buttons and checkbox

Signed-off-by: Kevin Wasserman <kevin.wasserman@painless-security.com>
ticket: 7308 (new)
queue: kfw
target_version: 1.10.4
tags: pullup

13 years agoUpdate kfw installer OS version checks
Kevin Wasserman [Thu, 19 Jul 2012 01:14:30 +0000 (21:14 -0400)] 
Update kfw installer OS version checks

Require XP SP3 or Vista SP2 or Windows 7 or Server 2003 or Server 2008

Signed-off-by: Kevin Wasserman <kevin.wasserman@painless-security.com>
ticket: 7307 (new)
queue: kfw
target_version: 1.10.4
tags: pullup

13 years agoCall CWinAppEx::InitInstance()
Kevin Wasserman [Wed, 18 Jul 2012 21:32:31 +0000 (17:32 -0400)] 
Call CWinAppEx::InitInstance()

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

13 years agoRemove unused leashdll functions
Kevin Wasserman [Tue, 17 Jul 2012 19:49:06 +0000 (15:49 -0400)] 
Remove unused leashdll functions

-not_an_API_LeashKRB5GetTickets
-not_an_API_LeashKRB5FreeTickets
and supporting routines.  Also remove the unused support routine one_addr.

Signed-off-by: Kevin Wasserman <kevin.wasserman@painless-security.com>
[kaduk@mit.edu: adjust commit message]

ticket: 7305 (new)
queue: kfw
target_version: 1.10.4
tags: pullup

13 years ago'Destroy tickets on exit' destroys all tickets
Kevin Wasserman [Mon, 16 Jul 2012 18:22:23 +0000 (14:22 -0400)] 
'Destroy tickets on exit' destroys all tickets

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

13 years agoUse cc_user_set_default_name to 'make default'
Kevin Wasserman [Tue, 17 Jul 2012 17:51:46 +0000 (13:51 -0400)] 
Use cc_user_set_default_name to 'make default'

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

13 years agoMinor 'Get Tickets' dialog fixes
Kevin Wasserman [Tue, 10 Jul 2012 22:56:10 +0000 (18:56 -0400)] 
Minor 'Get Tickets' dialog fixes

-Move 'Remember this principal' and keep visible even when 'advanced'
options are hidden.
-Increase size of 'Forwardable and Proxiable' checkbox.

Signed-off-by: Kevin Wasserman <kevin.wasserman@painless-security.com>
ticket: 7301 (new)
queue: kfw
target_version: 1.10.4
tags: pullup

13 years agoHelp updates for kfw 4.0
Kevin Wasserman [Sat, 5 May 2012 14:53:44 +0000 (10:53 -0400)] 
Help updates for kfw 4.0

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>
13 years agoReduce 'get tickets' dialog height
Kevin Wasserman [Tue, 3 Jul 2012 16:45:18 +0000 (12:45 -0400)] 
Reduce 'get tickets' dialog height

Signed-off-by: Kevin Wasserman <kevin.wasserman@painless-security.com>
ticket: 7299 (new)
queue: kfw
target_version: 1.10.4
tags: pullup

13 years agoAdd 'Remember this principal' checkbox
Kevin Wasserman [Tue, 3 Jul 2012 14:19:40 +0000 (10:19 -0400)] 
Add 'Remember this principal' checkbox

Added to the 'Get Tickets' dialog.

Signed-off-by: Kevin Wasserman <kevin.wasserman@painless-security.com>
ticket: 7298 (new)
queue: kfw
target_version: 1.10.4
tags: pullup

13 years agoUpdate kfw change password dialog
Kevin Wasserman [Mon, 2 Jul 2012 01:06:46 +0000 (21:06 -0400)] 
Update kfw change password dialog

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

13 years agoKfW rename lacFoo -> Leash_pec_
Kevin Wasserman [Sun, 1 Jul 2012 02:42:12 +0000 (22:42 -0400)] 
KfW rename lacFoo -> Leash_pec_

Signed-off-by: Kevin Wasserman <kevin.wasserman@painless-security.com>
ticket: 7294 (new)
queue: kfw
target_version: 1.10.4
tags: pullup

13 years agoKfW make 64-bit MSI include 32-bit dlls
Kevin Wasserman [Fri, 29 Jun 2012 19:15:08 +0000 (15:15 -0400)] 
KfW make 64-bit MSI include 32-bit dlls

Signed-off-by: Kevin Wasserman <kevin.wasserman@painless-security.com>
ticket: 7293 (new)
queue: kfw
target_version: 1.10.4
tags: pullup

13 years agoRename "Leash" to "MIT Kerberos"
Kevin Wasserman [Fri, 29 Jun 2012 17:07:48 +0000 (13:07 -0400)] 
Rename "Leash" to "MIT Kerberos"

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

13 years agoKfW GUI -- clean up 'About' dialog
Kevin Wasserman [Thu, 28 Jun 2012 22:16:21 +0000 (18:16 -0400)] 
KfW GUI -- clean up 'About' dialog

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

13 years agoKfW update copyright date (2012) for all modules
Kevin Wasserman [Thu, 28 Jun 2012 18:53:25 +0000 (14:53 -0400)] 
KfW update copyright date (2012) for all modules

Signed-off-by: Kevin Wasserman <kevin.wasserman@painless-security.com>
ticket: 7290 (new)
queue: kfw
target_version: 1.10.4
tags: pullup

13 years agoKfW WiX installer update copyright notice
Kevin Wasserman [Thu, 28 Jun 2012 18:51:12 +0000 (14:51 -0400)] 
KfW WiX installer update copyright notice

Signed-off-by: Kevin Wasserman <kevin.wasserman@painless-security.com>
ticket: 7289 (new)
queue: kfw
target_version: 1.10.4
tags: pullup

13 years agoRemove copyright/version from Get Tickets dialog
Kevin Wasserman [Thu, 28 Jun 2012 16:30:40 +0000 (12:30 -0400)] 
Remove copyright/version from Get Tickets dialog

Signed-off-by: Kevin Wasserman <kevin.wasserman@painless-security.com>
ticket: 7288 (new)
queue: kfw
target_version: 1.10.4
tags: pullup

13 years agoKfW GUI -- add 'Options' category
Kevin Wasserman [Thu, 28 Jun 2012 12:28:09 +0000 (08:28 -0400)] 
KfW GUI -- add 'Options' category

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

13 years agoUse bold for entire row for default principal
Kevin Wasserman [Thu, 28 Jun 2012 11:43:06 +0000 (07:43 -0400)] 
Use bold for entire row for default principal

Signed-off-by: Kevin Wasserman <kevin.wasserman@painless-security.com>
ticket: 7286 (new)
queue: kfw
target_version: 1.10.4
tags: pullup

13 years agoRename 'Get Ticket' to 'MIT Kerberos: Get Ticket'
Kevin Wasserman [Thu, 28 Jun 2012 01:54:31 +0000 (21:54 -0400)] 
Rename 'Get Ticket' to 'MIT Kerberos: Get Ticket'

Signed-off-by: Kevin Wasserman <kevin.wasserman@painless-security.com>
ticket: 7284
queue: kfw
target_version: 1.10.4
tags: pullup

13 years agoKfW GUI -- abbreviate durations
Kevin Wasserman [Thu, 28 Jun 2012 01:46:04 +0000 (21:46 -0400)] 
KfW GUI -- abbreviate durations

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

13 years agoChange 'Get Ticket' to 'MIT Kerberos: Get Ticket'
Kevin Wasserman [Thu, 28 Jun 2012 01:31:33 +0000 (21:31 -0400)] 
Change 'Get Ticket' to 'MIT Kerberos: Get Ticket'

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

13 years agoRename and move 'Clear Principal History'
Kevin Wasserman [Thu, 28 Jun 2012 01:04:27 +0000 (21:04 -0400)] 
Rename and move 'Clear Principal History'

Move it closer to the Principal edit box and rename to 'Clear History'

Signed-off-by: Kevin Wasserman <kevin.wasserman@painless-security.com>
ticket: 7283 (new)
queue: kfw
target_version: 1.10.4
tags: pullup

13 years agoMerge forwardable/proxiable in Get Tickets dialog
Kevin Wasserman [Thu, 28 Jun 2012 00:14:39 +0000 (20:14 -0400)] 
Merge forwardable/proxiable in Get Tickets dialog

Signed-off-by: Kevin Wasserman <kevin.wasserman@painless-security.com>
ticket: 7282 (new)
queue: kfw
target_version: 1.10.4
tags: pullup

13 years agoUpdate kfw ribbon button graphics
Kevin Wasserman [Wed, 27 Jun 2012 23:48:29 +0000 (19:48 -0400)] 
Update kfw ribbon button graphics

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

13 years agoKfW GUI -- show ticket flags
Kevin Wasserman [Wed, 27 Jun 2012 23:05:22 +0000 (19:05 -0400)] 
KfW GUI -- show ticket flags

Signed-off-by: Kevin Wasserman <kevin.wasserman@painless-security.com>
ticket: 7280 (new)
queue: kfw
target_version: 1.10.4
tags: pullup

13 years agoKfW GUI -- update expand/collapse icon rendering
Kevin Wasserman [Mon, 25 Jun 2012 10:03:32 +0000 (06:03 -0400)] 
KfW GUI -- update expand/collapse icon rendering

Use DrawThemeBackground() to draw the icons from the explorer treeview.

ticket: 7279 (new)
queue: kfw
target_version: 1.10.4
tags: pullup

13 years agoFix leashdll code to search for existing tickets
Kevin Wasserman [Tue, 17 Jul 2012 17:17:46 +0000 (13:17 -0400)] 
Fix leashdll code to search for existing tickets

When we have a desired principal, search the entire credential cache
collection for existing tickets for that principal before using a prompter.
If no principal is specified, check only the default cache.

Signed-off-by: Kevin Wasserman <kevin.wasserman@painless-security.com>
ticket: 7278 (new)
queue: kfw
target_version: 1.10.4
tags: pullup

13 years agoUse file mapping to marshall message data
Kevin Wasserman [Thu, 21 Jun 2012 19:30:24 +0000 (15:30 -0400)] 
Use file mapping to marshall message data

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

13 years agoSet kfw GUI read-only princ flag when appropriate
Kevin Wasserman [Thu, 21 Jun 2012 17:27:27 +0000 (13:27 -0400)] 
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

13 years agoAdd 'read-only principal' flag
Kevin Wasserman [Thu, 21 Jun 2012 17:22:39 +0000 (13:22 -0400)] 
Add 'read-only principal' flag

Reserve the high-order 16 bits of dlgtype for flags.
Add DLGFLAG_READONLY_PRINC.  When specified, the get tickets dialog
does not allow the user to change the principal.

Signed-off-by: Kevin Wasserman <kevin.wasserman@painless-security.com>
ticket: 7274 (new)
queue: kfw
target_version: 1.10.4
tags: pullup

13 years agoSend kfw 'obtain ticket' messages to main frame
Kevin Wasserman [Fri, 15 Jun 2012 02:57:59 +0000 (22:57 -0400)] 
Send kfw 'obtain ticket' messages to main frame

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

13 years agoFix 'renewable' checkbox text
Kevin Wasserman [Fri, 15 Jun 2012 02:46:40 +0000 (22:46 -0400)] 
Fix 'renewable' checkbox text

fix 'renwable' typo and pad size.

Signed-off-by: Kevin Wasserman <kevin.wasserman@painless-security.com>
ticket: 7272 (new)
queue: kfw
target_version: 1.10.4
tags: pullup

13 years agoFix ribbon breakage
Kevin Wasserman [Fri, 15 Jun 2012 02:44:49 +0000 (22:44 -0400)] 
Fix ribbon breakage

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

13 years agoAdd Forget Principals to Get Tickets dialog
Kevin Wasserman [Fri, 8 Jun 2012 12:06:01 +0000 (08:06 -0400)] 
Add Forget Principals to Get Tickets dialog

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

13 years agoKfW GUI -- add 'More' Panel
Kevin Wasserman [Thu, 7 Jun 2012 01:17:21 +0000 (21:17 -0400)] 
KfW GUI -- add 'More' Panel

'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

13 years agoCombine username and realm in get tickets dialog
Kevin Wasserman [Wed, 6 Jun 2012 18:30:58 +0000 (14:30 -0400)] 
Combine username and realm in get tickets dialog

Signed-off-by: Kevin Wasserman <kevin.wasserman@painless-security.com>
ticket: 7266 (new)
queue: kfw
target_version: 1.10.4
tags: pullup

13 years agoFix NSIS uninstall to work with UAC
Kevin Wasserman [Tue, 5 Jun 2012 17:03:21 +0000 (13:03 -0400)] 
Fix NSIS uninstall to work with UAC

Use ShellExecuteEx() to elevate privilege if CreateProcess() fails.

Signed-off-by: Kevin Wasserman <kevin.wasserman@painless-security.com>
ticket: 7265 (new)
queue: kfw
target_version: 1.10.4
tags: pullup

13 years agoKfW auto-complete support
Kevin Wasserman [Sat, 2 Jun 2012 14:34:09 +0000 (10:34 -0400)] 
KfW auto-complete support

Use the registry to store and retrieve principals for auto-complete.
Remember principals from successful autentications.
TODO: combine realm/username in principal; 'remember principal' checkbox;
reset button; add to support 'change password' dialog as well.

Signed-off-by: Kevin Wasserman <kevin.wasserman@painless-security.com>
[kaduk@mit.edu: style cleanup, copyright/license on new file.]

ticket: 7264 (new)
queue: kfw
target_version: 1.10.4
tags: pullup

13 years agoC++ safety for leashdll.h
Kevin Wasserman [Wed, 13 Jun 2012 15:23:31 +0000 (11:23 -0400)] 
C++ safety for leashdll.h

Signed-off-by: Kevin Wasserman <kevin.wasserman@painless-security.com>
ticket: 7270 (new)
queue: kfw
target_version: 1.10.4
tags: pullup

13 years agoMinor fixes for leashwin.h
Kevin Wasserman [Sat, 9 Jun 2012 18:21:13 +0000 (14:21 -0400)] 
Minor fixes for leashwin.h

-explicitly include krb5.h (for krb5_timestamp)
-add extern "C" scope for c++ compatibility

Signed-off-by: Kevin Wasserman <kevin.wasserman@painless-security.com>
ticket: 7267 (new)
queue: kfw
target_version: 1.10.4
tags: pullup

13 years agoRemove psapi.dll from installer
Kevin Wasserman [Fri, 1 Jun 2012 23:29:34 +0000 (19:29 -0400)] 
Remove psapi.dll from installer

psapi.dll is a standard windows component; no need for kfw to redistribute.

Signed-off-by: Kevin Wasserman <kevin.wasserman@painless-security.com>
ticket: 7263 (new)
queue: kfw
target_version: 1.10.4
tags: pullup

13 years agoKfW GUI -- renew selected principals
Kevin Wasserman [Thu, 19 Jul 2012 15:18:13 +0000 (11:18 -0400)] 
KfW GUI -- renew selected principals

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

13 years agoUpdate ribbon tooltip text
Ben Kaduk [Fri, 24 Aug 2012 19:54:30 +0000 (15:54 -0400)] 
Update ribbon tooltip text

Signed-off-by: Kevin Wasserman <kevin.wasserman@painless-security.com>
ticket: 7261 (new)
queue: kfw
target_version: 1.10.4
tags: pullup

13 years agoAdd leak tracking support to Leash
Kevin Wasserman [Mon, 21 May 2012 12:12:43 +0000 (08:12 -0400)] 
Add leak tracking support to Leash

Signed-off-by: Kevin Wasserman <kevin.wasserman@painless-security.com>
ticket: 7260 (new)
queue: kfw
target_version: 1.10.4
tags: pullup

13 years agoAdd defines for debug builds in win-pre.in
Kevin Wasserman [Mon, 21 May 2012 12:09:05 +0000 (08:09 -0400)] 
Add defines for debug builds in win-pre.in

define DEBUG and _CRTDBG_MAP_ALLOC except for NODEBUG builds

Signed-off-by: Kevin Wasserman <kevin.wasserman@painless-security.com>
ticket: 7259 (new)
queue: kfw
target_version: 1.10.4
tags: pullup

13 years agoRemove ID_ABOUT, add ID_IMPORT_TICKETS
Kevin Wasserman [Sat, 21 Jul 2012 20:26:16 +0000 (16:26 -0400)] 
Remove ID_ABOUT, add ID_IMPORT_TICKETS

Signed-off-by: Kevin Wasserman <kevin.wasserman@painless-security.com>
ticket: 7258 (new)
queue: kfw
target_version: 1.10.4
tags: pullup

13 years agoFix tooltips for ribbon
Kevin Wasserman [Sat, 21 Jul 2012 20:24:14 +0000 (16:24 -0400)] 
Fix tooltips for ribbon

Signed-off-by: Kevin Wasserman <kevin.wasserman@painless-security.com>
ticket: 7257 (new)
queue: kfw
target_version: 1.10.4
tags: pullup

13 years agoTooltip text fixes
Kevin Wasserman [Sat, 21 Jul 2012 20:22:58 +0000 (16:22 -0400)] 
Tooltip text fixes

Signed-off-by: Kevin Wasserman <kevin.wasserman@painless-security.com>
ticket: 7256 (new)
queue: kfw
target_version: 1.10.4
tags: pullup

13 years agoSet fCachesTicket=TRUE when no credentials
Kevin Wasserman [Mon, 16 Jul 2012 15:48:55 +0000 (11:48 -0400)] 
Set fCachesTicket=TRUE when no credentials

It is not really clear this is correct, but neither was the
previous behavior.

Signed-off-by: Kevin Wasserman <kevin.wasserman@painless-security.com>
ticket: 7255 (new)
queue: kfw
target_version: 1.10.4
tags: pullup

13 years agoDo not be over-restrictive in the presence of UAC
Kevin Wasserman [Mon, 14 May 2012 16:14:20 +0000 (12:14 -0400)] 
Do not be over-restrictive in the presence of UAC

We used to explicitly check if a process was UAC-limited and deny all
access to the TGT in that case; however, this makes the MSLSA cache
effectively useless.
Do not try to outsmart UAC, and let it do its own checking -- this allows
UAC-limited access to the MSLSA ccache, which should mean read-write
access to service tickets, and write-only access to the TGT.

Signed-off-by: Kevin Wasserman <kevin.wasserman@painless-security.com>
[kaduk@mit.edu: delete instead of comment out, move comment.]

ticket: 7254 (new)
queue: kfw
target_version: 1.10.4
tags: pullup

13 years agokfw support for multiple identities
Kevin Wasserman [Mon, 23 Jul 2012 08:30:27 +0000 (04:30 -0400)] 
kfw support for multiple identities

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

13 years agokfw get tickets dialog tweaks
Kevin Wasserman [Wed, 18 Apr 2012 12:12:58 +0000 (08:12 -0400)] 
kfw get tickets dialog tweaks

"Options" button -> "Advanced Settings"
"Renew Till" -> "Renew Until"
"Kerberos 5 Options" -> "Flag this ticket as"

Signed-off-by: Kevin Wasserman <kevin.wasserman@painless-security.com>
ticket: 7252 (new)
queue: kfw
target_version: 1.10.4
tags: pullup

13 years agokfw remove status bar
Kevin Wasserman [Sat, 21 Jul 2012 23:52:20 +0000 (19:52 -0400)] 
kfw remove status bar

Signed-off-by: Kevin Wasserman <kevin.wasserman@painless-security.com>
ticket: 7251 (new)
queue: kfw
target_version: 1.10.4
tags: pullup

13 years agoOnly create toolbar when not using ribbon UI
Kevin Wasserman [Mon, 16 Apr 2012 18:48:43 +0000 (14:48 -0400)] 
Only create toolbar when not using ribbon UI

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

13 years agoUse ListView; add ViewColumn abstraction
Kevin Wasserman [Sat, 21 Jul 2012 12:52:50 +0000 (08:52 -0400)] 
Use ListView; add ViewColumn abstraction

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

13 years agokfw implement ribbon UI
Kevin Wasserman [Wed, 1 Aug 2012 16:19:12 +0000 (12:19 -0400)] 
kfw implement ribbon UI

Signed-off-by: Kevin Wasserman <kevin.wasserman@painless-security.com>
ticket: 7248 (new)
queue: kfw
target_version: 1.10.4
tags: pullup

13 years agokfw "Initialize Ticket" -> "Get Ticket"
Kevin Wasserman [Wed, 18 Apr 2012 10:49:21 +0000 (06:49 -0400)] 
kfw "Initialize Ticket" -> "Get Ticket"

Signed-off-by: Kevin Wasserman <kevin.wasserman@painless-security.com>
ticket: 7247 (new)
queue: kfw
target_version: 1.10.4
tags: pullup

13 years agoMSVC-generated updates to support ribbon UI
Kevin Wasserman [Wed, 15 Aug 2012 16:17:54 +0000 (12:17 -0400)] 
MSVC-generated updates to support ribbon UI

Signed-off-by: Kevin Wasserman <kevin.wasserman@painless-security.com>
[kaduk@mit.edu: manually tweak to remove gratuitious churn]

ticket: 7246 (new)
queue: kfw
target_version: 1.10.4
tags: pullup

13 years agoUpdate leash icon and button graphics
Kevin Wasserman [Mon, 25 Jun 2012 09:43:40 +0000 (05:43 -0400)] 
Update leash icon and button graphics

Signed-off-by: Kevin Wasserman <kevin.wasserman@painless-security.com>
[kaduk@mit.edu: While here, remove now-unused doghead icons.]

ticket: 7245 (new)
queue: kfw
target_version: 1.10.4
tags: pullup

13 years agoPrep for KfW conversion to ribbon toolbar
Kevin Wasserman [Tue, 3 Apr 2012 11:02:43 +0000 (07:02 -0400)] 
Prep for KfW conversion to ribbon toolbar

Upgrade classes: CWinApp->CWinAppEx, CFrameWnd->CFrameWndEx,
CStatusBar->CMFCStatusBar, CToolBar->CMFCToolBar.
Call AfxOleInit() from CLeashApp::InitInstance()
Do not call LoadBarState() (crashes)
or GetToolBarCtrl() (no longer exists)

Signed-off-by: Kevin Wasserman <kevin.wasserman@painless-security.com>
ticket: 7244 (new)
queue: kfw
target_version: 1.10.4
tags: pullup

13 years agoFix portability, printf bugs in preauth_otp.c
Greg Hudson [Fri, 24 Aug 2012 15:51:31 +0000 (11:51 -0400)] 
Fix portability, printf bugs in preauth_otp.c

unistd.h is not available on Windows and isn't needed for this file,
so don't include it.  Two arguments to asprintf in choose_token() were
reversed.

13 years agoDoc newly introduced padata types for OTP support
Zhanna Tsitkov [Thu, 23 Aug 2012 20:14:53 +0000 (16:14 -0400)] 
Doc newly introduced padata types for OTP support

Remove KRB5_PADATA_OTP_CONFIRM pre-authentication data (padata) type
as it is marked as OBSOLETE in RFC 6560.

13 years agoLeash UI menu updates
Kevin Wasserman [Tue, 3 Apr 2012 16:36:44 +0000 (12:36 -0400)] 
Leash UI menu updates

Eliminate Action menu:
 -move Ticket manipulation to File menu
 -eliminate "Reset Window Size/Pos", "Synchronize Time", and "Update Display"

Update Options menu:
 -eliminate all the "Properties" items:
"Leash ", "Kerberos ", "Kerberos v4 ", "Kerberos v5 ", and "AFS"
TODO: move functionality to advanced install/registry keys.

Update View menu:
 -add "Time Issued", "Renewable Until", "Flags", "Encryption Type",
   and "Valid Until"
 -remove "Large Icons", "Toolbar", "Status Bar", and "Debug Window"

Signed-off-by: Kevin Wasserman <kevin.wasserman@painless-security.com>
ticket: 7243 (new)
queue: kfw
target_version: 1.10.4
tags: pullup

13 years agoallow multiple Leash options; add -noribbon
Kevin Wasserman [Fri, 20 Jul 2012 15:33:51 +0000 (11:33 -0400)] 
allow multiple Leash options; add -noribbon

Change option parsing to allow more than one option to be given.
Use the ribbon UI by default; -noribbon reverts to the old UI.

Signed-off-by: Kevin Wasserman <kevin.wasserman@painless-security.com>
ticket: 7241 (new)
queue: kfw
target_version: 1.10.4
tags: pullup

13 years agoTarget Windows Vista in leash/stdafx.h
Kevin Wasserman [Tue, 3 Apr 2012 16:33:34 +0000 (12:33 -0400)] 
Target Windows Vista in leash/stdafx.h

Define WINVER and _WIN32_WINNT, to target Vista+ -- required for
ribbon ui.

Signed-off-by: Kevin Wasserman <kevin.wasserman@painless-security.com>
ticket: 7240 (new)
queue: kfw
subject: Support the Ribbon UI for Leash
target_version: 1.10.4
tags: pullup

13 years agoChange kfw destroy ticket confirmation message
Kevin Wasserman [Fri, 20 Jul 2012 15:07:48 +0000 (11:07 -0400)] 
Change kfw destroy ticket confirmation message

OKCANCEL -> YESNO
Add MB_ICONEXCLAMATION
Change text

Signed-off-by: Kevin Wasserman <kevin.wasserman@painless-security.com>
ticket: 7239 (new)
queue: kfw
target_version: 1.10.4
tags: pullup

13 years agoLoad additional krb5 and come_err funcs
Kevin Wasserman [Tue, 17 Jul 2012 18:25:39 +0000 (14:25 -0400)] 
Load additional krb5 and come_err funcs

Required for multiple identity management and for migration of code from
leashdll to leash proper.

Signed-off-by: Kevin Wasserman <kevin.wasserman@painless-security.com>
ticket: 7238 (new)
queue: kfw
target_version: 1.10.4
tags: pullup

13 years agoFix leak in cci_os_ipc_thread_init()
Kevin Wasserman [Tue, 15 May 2012 18:09:57 +0000 (14:09 -0400)] 
Fix leak in cci_os_ipc_thread_init()

Signed-off-by: Kevin Wasserman <kevin.wasserman@painless-security.com>
ticket: 7237 (new)
subject: CCAPI cleanup and bugfixes
target_version: 1.10.4
tags: pullup

13 years agoRemove unused struct and switch_to stubs
Kevin Wasserman [Mon, 16 Jul 2012 15:43:00 +0000 (11:43 -0400)] 
Remove unused struct and switch_to stubs

Only one mslsa ccache is supported, so switch_to is not needed.
Likewise, struct krb5int_lcc_iterator is unneccesary.

Signed-off-by: Kevin Wasserman <kevin.wasserman@painless-security.com>
ticket: 7236 (new)
target_version: 1.10.4
tags: pullup

13 years agoRun "make depend"
Tom Yu [Thu, 23 Aug 2012 19:13:54 +0000 (15:13 -0400)] 
Run "make depend"

13 years agoFix minor Makefile.in typos for make depend
Tom Yu [Thu, 23 Aug 2012 19:11:32 +0000 (15:11 -0400)] 
Fix minor Makefile.in typos for make depend

Fix minor typos in lib/krb5/krb/Makefile.in and
tests/gssapi/Makefile.in so that "make depend" will work.

13 years agoFix version info for Leash.exe
Kevin Wasserman [Thu, 28 Jun 2012 18:50:13 +0000 (14:50 -0400)] 
Fix version info for Leash.exe

Signed-off-by: Kevin Wasserman <kevin.wasserman@painless-security.com>
ticket: 7235 (new)
queue: kfw
target_version: 1.10.4
tags: pullup

13 years agoAdd otp client preauth plugin
Nathaniel McCallum [Mon, 20 Aug 2012 20:49:54 +0000 (16:49 -0400)] 
Add otp client preauth plugin

Implements the client side of RFC 6560. Not all features are
implemented, but it should work for the most common cases.

ticket: 7242 (new)

13 years agoAdd ASN.1 support for OTP
Greg Hudson [Fri, 27 Jul 2012 15:51:18 +0000 (11:51 -0400)] 
Add ASN.1 support for OTP

Add encoders and decoders for the OTP-TOKENINFO, PA-OTP-CHALLENGE,
PA-OTP-REQUEST, and PA-OTP-ENC-REQUEST types from RFC 6560.  For more
thorough testing, add support for generating test encodings using
asn1c for sample objects (currently only for the OTP types).

13 years agoClean up k5buf_to_gss helper
Greg Hudson [Thu, 23 Aug 2012 16:58:29 +0000 (12:58 -0400)] 
Clean up k5buf_to_gss helper

k5buf_to_gss was used in only one place (generic_gss_oid_to_str),
where we want to include the terminating null byte in the GSS buffer.
Remove that assumption from the helper, and instead explicitly append
the null byte to the buffer before translating.

13 years agoDocument preference order of enctypes in krb5.conf
Zhanna Tsitkov [Wed, 22 Aug 2012 17:05:25 +0000 (13:05 -0400)] 
Document preference order of enctypes in krb5.conf

13 years agoRemove dead code in do_as_req.c
Zhanna Tsitkov [Wed, 22 Aug 2012 14:26:24 +0000 (10:26 -0400)] 
Remove dead code in do_as_req.c

Commit r21692 removed the KRB5_KDB_NON_MS_PRINCIPAL flag.