]> git.ipfire.org Git - thirdparty/krb5.git/log
thirdparty/krb5.git
12 years agoFix typo in util/support/Makefile.in
Greg Hudson [Wed, 12 Sep 2012 19:04:35 +0000 (15:04 -0400)] 
Fix typo in util/support/Makefile.in

12 years agoTest the inconsistent locking fix and svc unavail
Nicolas Williams [Wed, 12 Sep 2012 03:27:12 +0000 (22:27 -0500)] 
Test the inconsistent locking fix and svc unavail

Test the fix for https://bugzilla.redhat.com/show_bug.cgi?id=586032 .

Also test that krb5kdc can return svc unavailable

12 years agoFix lock inconsistency in ctx_unlock()
Nicolas Williams [Wed, 12 Sep 2012 16:36:54 +0000 (11:36 -0500)] 
Fix lock inconsistency in ctx_unlock()

The lock inconsistency fixed here is quite possibly the same as
described in https://bugzilla.redhat.com/show_bug.cgi?id=586032 .

The problem is that ctx_unlock() fails to unlock the principal DB if
it fails to unlock the policy DB, and this happens when ctx_lock()
fails to lock the policy DB (likely because the caller is racing
against a kdb5_util load, which will be using a "permanent" lock,
meaning that the lock file will be unlinked after acquiring the
lock).  The fix is to perform both unlock operations *then* handle
any errors that either or both might have returned.

Additionally, we don't really need or want to use non-blocking locks,
and we certainly don't want to sleep(1) in krb5kdc (possibly several
times, as there was a loop over this) when either of the principal or
policy DB is locked.  Some callers still request non-blocking locks,
and ctx_lock() still honors this.

ticket: 7360 (new)

12 years agoUse blocking locks in krb5kdc and libkadm5srv
Nicolas Williams [Wed, 12 Sep 2012 02:37:53 +0000 (21:37 -0500)] 
Use blocking locks in krb5kdc and libkadm5srv

We don't really need or want to use non-blocking locks, and we certainly
don't want to sleep(1) in krb5kdc (possibly several times, as there was
a loop over this) when either of the principal or policy DB is locked.
Some callers still request non-blocking locks, and ctx_lock() still
honors this.

ticket: 7359 (new)

12 years agoMap CANTLOCK_DB to SVC_UNAVAILABLE in krb5kdc
Nicolas Williams [Wed, 12 Sep 2012 02:32:28 +0000 (21:32 -0500)] 
Map CANTLOCK_DB to SVC_UNAVAILABLE in krb5kdc

The KDC should not return KRB5KRB_ERR_GENERIC (KRB_ERR_GENERIC) when the
KDB plugin returns KRB5_KDB_CANTLOCK_DB: it should return
KRB5KDC_ERR_SVC_UNAVAILABLE (KDC_ERR_SVC_UNAVAILABLE) instead.  This
allows clients to immediately fallback onto other KDCs.

When we switch to using blocking locks in the db2 KDB backend we'll very
rarely hit this code path, perhaps only when racing against a kdb5_util load.
Other KDB backends might still return KRB5_KDB_CANTLOCK_DB often enough that
this change is desirable.

ticket: 7358 (new)

12 years agoUnregister error message key on library unload
Ben Kaduk [Wed, 12 Sep 2012 15:35:04 +0000 (11:35 -0400)] 
Unregister error message key on library unload

Revision fcdd2de1 added the K5_KEY_GSS_KRB5_ERROR_MESSAGE key, and
registered it in the gssapi library initialization routine, but
did not unregister it in the libary finalization routine.
When the library is unloaded and reloaded in the same process,
this leads to an assertion failure, since we check that
destructors_set[keynum] is zero (no destructor set) when registering
a key in util/support/threads.c.
Unregister the key on library cleanup to resolve the error.

ticket: 7353
target_version: 1.10.4
tags: pullup

12 years agomake depend
Greg Hudson [Wed, 12 Sep 2012 17:40:52 +0000 (13:40 -0400)] 
make depend

12 years agoDo not retrieve zero-length creds
Ben Kaduk [Fri, 31 Aug 2012 21:48:14 +0000 (17:48 -0400)] 
Do not retrieve zero-length creds

In the MSLSA cache, if we get back a zero-length ticket, don't
accept it as success; continue on to try and get an acceptable
ticket.

ticket: 7349 (new)
subject: SapGUI sometimes crashes on new session with MSLSA cache
target_version: 1.10.4
tags: pullup

12 years agoAdd new api to Sphinx doc; doc introduced version
Zhanna Tsitkov [Tue, 11 Sep 2012 15:22:57 +0000 (11:22 -0400)] 
Add new api to Sphinx doc; doc introduced version

12 years agoAdd tests for GSS cred export and import
Greg Hudson [Wed, 22 Aug 2012 18:49:33 +0000 (14:49 -0400)] 
Add tests for GSS cred export and import

ticket: 7354

12 years agoAdd SPNEGO support for GSS cred export and import
Greg Hudson [Wed, 29 Aug 2012 15:57:26 +0000 (11:57 -0400)] 
Add SPNEGO support for GSS cred export and import

ticket: 7354

12 years agoAdd krb5 support for GSS cred export and import
Greg Hudson [Mon, 20 Aug 2012 17:36:43 +0000 (13:36 -0400)] 
Add krb5 support for GSS cred export and import

Using the new internal JSON support to implement serialization and
unserialization of krb5 GSS credentials.

ticket: 7354

12 years agoIntroduce gss_export_cred and gss_import_cred
Greg Hudson [Sun, 19 Aug 2012 03:40:29 +0000 (23:40 -0400)] 
Introduce gss_export_cred and gss_import_cred

Add gss_export_cred and gss_import_cred mechglue functions to
serialize and unserialize GSSAPI credential handles.  Mechanism
implementations and tests will follow.

ticket: 7354 (new)

12 years agoAdd internal JSON encoding and decoding support
Greg Hudson [Thu, 9 Aug 2012 22:05:50 +0000 (18:05 -0400)] 
Add internal JSON encoding and decoding support

Add JSON support based loosely on Heimdal's heimbase code.

12 years agoAdd internal base64 encoding and decoding support
Greg Hudson [Mon, 27 Aug 2012 08:18:57 +0000 (04:18 -0400)] 
Add internal base64 encoding and decoding support

Add base64 support based on Heimdal's libroken base64 code.

12 years agoAdd responder feature for initial cred exchanges
Nathaniel McCallum [Mon, 10 Sep 2012 21:38:23 +0000 (17:38 -0400)] 
Add responder feature for initial cred exchanges

Add new APIs:
* krb5_get_init_creds_opt_set_responder
* krb5_responder_get_challenge
* krb5_responder_list_questions
* krb5_responder_set_answer

If a caller sets a responder, it will be invoked after preauth modules
have had a chance to review their incoming padata but before they produce
outgoing padata.  The responder will be presented a set of questions with
optional challenges.  The responder should then answer all questions it knows
how to handle.  Both the answers and the challenges are printable UTF-8 and
may contain encoded, structured data specific to the question asked.

Add two new callbacks and one optional method to the clpreauth
interface.  The new method (prep_questions) allows modules to ask questions
by setting them in the responder context using one of the new callbacks
(ask_responder_question).  The other new callback (get_responder_answer) is
used by the process method to read the answers to the questions asked.

ticket: 7355 (new)

12 years agoAdd cred store functions to gssapi32.def
Greg Hudson [Mon, 10 Sep 2012 17:30:56 +0000 (13:30 -0400)] 
Add cred store functions to gssapi32.def

25ee704e83c2c63d4b5ecd12ea31c1979239041e added three new public GSSAPI
functions; add them to the DLL export file.

ticket: 7217

12 years agoAdd zapfreestr() helper to k5-int.h
Greg Hudson [Mon, 10 Sep 2012 16:28:09 +0000 (12:28 -0400)] 
Add zapfreestr() helper to k5-int.h

Since zapfree(str, strlen(str)) won't work for possibly-null values of
str, add a helper zapfreestr() which only calls strlen() if the string
value is non-null.

12 years agoRemoved unused leash help file
Greg Hudson [Sun, 9 Sep 2012 15:33:04 +0000 (11:33 -0400)] 
Removed unused leash help file

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

12 years agoDefine SED in util/verto/Makefile.in
Greg Hudson [Thu, 6 Sep 2012 16:42:04 +0000 (12:42 -0400)] 
Define SED in util/verto/Makefile.in

When the rules from util/k5ev/Makefile.in were moved to
util/verto/Makefile.in, the rule to make rename.h was broken on
non-gmake makes because the definition of SED wasn't carried over.
Define it now.

12 years agoAdd asn1c test vectors for alg-agility types
Greg Hudson [Thu, 6 Sep 2012 04:35:01 +0000 (00:35 -0400)] 
Add asn1c test vectors for alg-agility types

For the test-vectors target in tests/asn.1, add ASN.1 modules from RFC
4556 and draft-ietf-krb-wg-pkinit-alg-agility-06.txt, and output test
encodings for PrincipalName, KRB5PrincipalName, OtherInfo, and
PkinitSuppPubInfo.  In the alg-agility module, AuthPack and DHRepInfo
are renamed, as asn1c otherwise rejects them as conflicting with the
RFC 4556 definitions.

12 years agoAvoid libdl dependencies in bundled libverto
Greg Hudson [Sun, 8 Jul 2012 22:04:56 +0000 (18:04 -0400)] 
Avoid libdl dependencies in bundled libverto

The upstream libverto depends on dynamic loading and in particular on
dladdr(), which is not universal.  To avoid this dependency, stub out
support for module loading (by replacing module.c) and instead
integrate the k5ev module directly into the bundled verto library.

This change removes the need to link, include, and invoke libverto
differently depending on whether we're using the bundled library; we
can always just link with -lverto and call verto_default().

bigredbutton: whitespace
ticket: 7351 (new)

12 years agoUpdate bundled libverto to 0.2.5
Greg Hudson [Mon, 3 Sep 2012 23:25:48 +0000 (19:25 -0400)] 
Update bundled libverto to 0.2.5

12 years agoTry harder not to use clock_gettime in verto-k5ev
Greg Hudson [Mon, 3 Sep 2012 23:20:34 +0000 (19:20 -0400)] 
Try harder not to use clock_gettime in verto-k5ev

We already define EV_USE_REALTIME to 0 to avoid the use of
clock_gettime() (to avoid depending on librt).  But in some build
environments libev can detect support for a monotonic clock, which
also results in using clock_gettime().  Define EV_USE_MONOTONIC to 0
as well to prevent this.

ticket: 7350 (new)
target_version: 1.10.4
tags: pullup

12 years agoUse separate components for shortcuts
Ben Kaduk [Fri, 31 Aug 2012 17:41:26 +0000 (13:41 -0400)] 
Use separate components for shortcuts

Since the Start Menu and Desktop are different folders, we should
use different components for the shortcuts in those folders, given
that components operate at directory granularity.

Take the opportunity to use the newer style for installing shortcuts
and registry keys, and make the names more descriptive.

Increment the buildlevel to ensure new files are installed.

ticket: 7348 (new)
subject: Use more meaningfully named registry keys for shortcuts
queue: kfw
target_version: 1.10.4
tags: pullup

12 years agoAdd support for GSS_C_NT_COMPOSITE_EXPORT
Luke Howard [Tue, 28 Aug 2012 23:47:24 +0000 (09:47 +1000)] 
Add support for GSS_C_NT_COMPOSITE_EXPORT

ticket: 7347 (new)

12 years agoSupport kdc_timesync offsets in memory ccache
Nate Rosenblum [Wed, 29 Aug 2012 18:16:11 +0000 (11:16 -0700)] 
Support kdc_timesync offsets in memory ccache

When using v4 file credentials caches, client clock skew offsets
obtained when running with the kdc_timesync option set are persisted in
the ccache. This allows the offsets to be used across separate contexts,
e.g. when obtaining credentials using krb5 interfaces and subsequently
importing those credentials for use in gssapi. This patch adds similar
support for memory credentials caches.

[ghudson@mit.edu: Minor style corrections.]

ticket: 7346 (new)

12 years agoFix memory leak in gss_add_cred
Greg Hudson [Thu, 30 Aug 2012 17:08:34 +0000 (13:08 -0400)] 
Fix memory leak in gss_add_cred

The most recent commit to g_acquire_cred.c allocates an OID set to
pass to the mech, but never releases it.  Fix that.

12 years agoDo not emit debug printfs under NODEBUG
Ben Kaduk [Thu, 23 Aug 2012 16:38:57 +0000 (12:38 -0400)] 
Do not emit debug printfs under NODEBUG

These printfs spew to the console when command-line utilities
such as 'klist' and 'aklog' are run, reducing usability.

These printfs can also cause application hangs.
On a multiprocessor machine, when PuTTY and the ccapiserver are
running on different CPUs, PuTTY appears to deadlock with three
concurrent threads inside cci_debug_printf().

ticket: 7342 (new)
target_version: 1.10.4
tags: pullup

12 years agoFix KfW startup shortcut installation
Kevin Wasserman [Tue, 21 Aug 2012 17:48:32 +0000 (13:48 -0400)] 
Fix KfW startup shortcut installation

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

12 years agoClean out dead code from ccapi
Kevin Wasserman [Tue, 21 Aug 2012 15:45:49 +0000 (11:45 -0400)] 
Clean out dead code from ccapi

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

12 years agoFix KfW thread-local storage allocation issues
Kevin Wasserman [Tue, 21 Aug 2012 15:44:46 +0000 (11:44 -0400)] 
Fix KfW thread-local storage allocation issues

Allocate thread-local storage on demand; don't rely on
the DLL_THREAD_ATTACH case in DllMain() since pre-existing
threads will never execute that code.

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

12 years agoImprove error translation for CCAPIv3 routines
Ben Kaduk [Fri, 17 Aug 2012 23:13:14 +0000 (19:13 -0400)] 
Improve error translation for CCAPIv3 routines

We can't mix the KRB5 and CC error constants; standardize on the CC ones
and translate appropriately.

ticket: 7339 (new)
target_version: 1.10.4
tags: pullup

12 years agoReplace NIM with "MIT Kerberos" in installer text
Kevin Wasserman [Fri, 17 Aug 2012 16:15:53 +0000 (12:15 -0400)] 
Replace NIM with "MIT Kerberos" in installer text

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

12 years agoKill running processes on upgrades/uninstalls
Ben Kaduk [Thu, 16 Aug 2012 20:03:48 +0000 (16:03 -0400)] 
Kill running processes on upgrades/uninstalls

The InstallValidate action of the windows installer will bring up
a dialog informing us that some currently running processes must
be terminated before installation may proceed, and offers to do so,
but does not actually kill the processes.  We have our own code to
kill running processes which did not execute, for two reasons:
it was sequenced after InstallValidate, and we did not have a current
list of processes to look for.

Add the right processes to look for and kill, and use our own
process-killing code since it actually works.

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

12 years agoMake finding 32-bit libs easier
Ben Kaduk [Wed, 15 Aug 2012 18:50:42 +0000 (14:50 -0400)] 
Make finding 32-bit libs easier

Our 64-bit installer provides 32-bit libraries as well as 64-bit
libraries, but not all 32-bit applications (e.g., PuTTY, Pidgin)
are able to locate them in C:\Program Files\MIT\Kerberos .
Including an InstallDir key under the Wow6432Node tree lets them
work out-of-the-box; while here set all the registry keys in this
component in the compatibility tree, for consistency.

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

12 years agoAdd version info for ccapi dll
Kevin Wasserman [Thu, 16 Aug 2012 15:10:06 +0000 (11:10 -0400)] 
Add version info for ccapi dll

Without version info, this library would not get installed during
an upgrade scenario, causing the MIT Kerberos application to crash
on startup.

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

ticket: 7336 (new)
subject: Fix KfW crash on startup after upgrade
queue: kfw
target_version: 1.10.4
tags: pullup

12 years agoUpgrade 64-bit KfW installations
Ben Kaduk [Mon, 13 Aug 2012 22:01:47 +0000 (18:01 -0400)] 
Upgrade 64-bit KfW installations

We use separate UpgradeCodes for 32- and 64-bit installers, so
we must check for both of them when seeing if we are upgrading an
old/existing installation.

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

12 years agoUpgrade from KfW betas, too
Ben Kaduk [Mon, 13 Aug 2012 19:03:45 +0000 (15:03 -0400)] 
Upgrade from KfW betas, too

Instead of using 3.9.9 as a conditional for the maximum version to
upgrade from, just use the current version.
This seems to pick up beta tags properly (so we can upgrade
from, e.g., beta 6 to beta 7 using the installer's upgrade tools),
and is future-proof.

Note that a 64-bit installer will not pick up an existing 32-bit
install (or vice versa), but there does not seem to be infrastructure
to deal with this situation easily.
Also, "downgrading" by running an older installer with a newer version
already installed will cause both versions to be simultaneously
installed; only do this if you know what you're doing.

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

12 years agoFix kfw message box titles
Kevin Wasserman [Sun, 12 Aug 2012 18:35:06 +0000 (14:35 -0400)] 
Fix kfw message box titles

"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

12 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

12 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

12 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

12 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

12 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

12 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

12 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

12 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

12 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

12 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

12 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

12 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

12 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

12 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

12 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

12 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

12 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

12 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

12 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

12 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

12 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

12 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

12 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

12 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

12 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

12 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

12 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

12 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

12 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>
12 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

12 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

12 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

12 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

12 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

12 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

12 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

12 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

12 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

12 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

12 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

12 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

12 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