]> git.ipfire.org Git - thirdparty/krb5.git/log
thirdparty/krb5.git
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.

13 years agoUpdated Supported Versions document
Zhanna Tsitkov [Tue, 21 Aug 2012 15:10:49 +0000 (11:10 -0400)] 
Updated Supported Versions document

13 years agoFix apply_keysalt_policy bug
Greg Hudson [Wed, 15 Aug 2012 19:12:12 +0000 (15:12 -0400)] 
Fix apply_keysalt_policy bug

If apply_keysalt_policy is called with null result arguments (as from
kadm5_setkey_principal_3), we would dereference a null pointer if the
principal has no policy or no policy allowed_keysalts field, due to an
incorrect optimization.  Reported by Nico.

ticket: 7223

13 years agoCross-reference documents in mitK5defaults.rst
Zhanna Tsitkov [Wed, 15 Aug 2012 16:54:43 +0000 (12:54 -0400)] 
Cross-reference documents in mitK5defaults.rst

13 years agoEdit rcache_def.rst for spelling and grammar
Greg Hudson [Wed, 15 Aug 2012 16:19:30 +0000 (12:19 -0400)] 
Edit rcache_def.rst for spelling and grammar

13 years agoNew Replay Cache rst documentation
Zhanna Tsitkov [Wed, 15 Aug 2012 16:08:27 +0000 (12:08 -0400)] 
New Replay Cache rst documentation

13 years agoRemove obsolete function krb5_secure_config_files
Zhanna Tsitkov [Tue, 14 Aug 2012 14:28:46 +0000 (10:28 -0400)] 
Remove obsolete function krb5_secure_config_files

13 years agoSilence a gcc warning in t_export_name
Greg Hudson [Mon, 13 Aug 2012 02:50:33 +0000 (22:50 -0400)] 
Silence a gcc warning in t_export_name

gcc warnings that nametype may be used uninitialized, presumably
failing to deduce that usage() never returns.  Initialize nametype to
make it build.

13 years agoAdd test coverage for gss_export_name
Greg Hudson [Sat, 11 Aug 2012 22:18:51 +0000 (18:18 -0400)] 
Add test coverage for gss_export_name

Exercise gss_export_name and importing of exported name tokens in
t_gssapi.py.

13 years agoUse gssalloc in krb5_gss_export_name
Greg Hudson [Sat, 11 Aug 2012 22:17:42 +0000 (18:17 -0400)] 
Use gssalloc in krb5_gss_export_name

krb5_gss_export_name uses malloc to construct a gss_buffer_desc value,
and should use gssalloc_malloc instead.

ticket: 7233

13 years agoFix nitpicky bugs in t_inq_cred
Greg Hudson [Sat, 11 Aug 2012 21:57:40 +0000 (17:57 -0400)] 
Fix nitpicky bugs in t_inq_cred

13 years agoStop misusing gss_release_buffer in test programs
Greg Hudson [Sat, 11 Aug 2012 04:17:50 +0000 (00:17 -0400)] 
Stop misusing gss_release_buffer in test programs

Use free() instead of gss_release_buffer() when freeing the locally
allocated context_token in the sample gss-server program.  Use
gssalloc_free() instead of free when freeing buffers in
t_kgss_kernel.c (where we can't use gss_release_buffer).

13 years agoStop misusing gss_release_buffer in libgssrpc
Greg Hudson [Sat, 11 Aug 2012 04:16:25 +0000 (00:16 -0400)] 
Stop misusing gss_release_buffer in libgssrpc

Use free() instead of gss_release_buffer() when freeing buffers in
libgssrpc which weren't constructed by GSSAPI.  This mixing is
harmless in normal configurations (since libgssrpc is only used on
Unix), but fails with DEBUG_GSSALLOC.

13 years agoUse gssalloc in more parts of GSSAPI
Greg Hudson [Sat, 11 Aug 2012 04:13:05 +0000 (00:13 -0400)] 
Use gssalloc in more parts of GSSAPI

Fix some GSSAPI buffer allocations which were missed in
800358b1790ef82710af0b6021c6ff2dca2b0de7: gss_export_sec_context,
gss_display_name, and IAKERB and SPNEGO token construction.

ticket: 7233 (new)
tags: pullup

13 years agoAdd debug mode to gssapi_alloc.h
Greg Hudson [Sat, 11 Aug 2012 04:05:24 +0000 (00:05 -0400)] 
Add debug mode to gssapi_alloc.h

Because the gssalloc macros are normally equivalent to malloc and free
on Unix, we cannot use the full test suite to find cases where we
allocate with malloc and free with gssalloc_free or vice versa.
Provide a way to test for this kind of bug (if only in a special build
configuration) by supporting a DEBUG_GSSALLOC symbol, which causes the
gssalloc wrappers to be deliberately incompatible with malloc and
free.

13 years agoRemove irrelevant to current code Novell copyright
Zhanna Tsitkov [Fri, 10 Aug 2012 19:07:52 +0000 (15:07 -0400)] 
Remove irrelevant to current code Novell copyright

13 years agoAdd tests for gss_inquire_cred
Greg Hudson [Fri, 10 Aug 2012 17:04:06 +0000 (13:04 -0400)] 
Add tests for gss_inquire_cred

Now that we're doing a kind of deferred credential acquisition for
krb5, the behavior of gss_inquire_cred is a bit more subtle because
(per RFC 2743 section 2.1.4) we have to choose a credential cache or
acceptor name sooner than we would otherwise do so.  Add a C program
to invoke gss_acquire_cred/gss_inquire_cred and some Python tests
using it.

13 years agoRename Kerberos Concepts section in Sphinx doc
Zhanna Tsitkov [Thu, 9 Aug 2012 15:05:59 +0000 (11:05 -0400)] 
Rename Kerberos Concepts section in Sphinx doc

13 years agoRemove gss_mechanism_ext
Simo Sorce [Mon, 6 Aug 2012 20:11:17 +0000 (16:11 -0400)] 
Remove gss_mechanism_ext

This function did not serve any useful purpose.  Remove it and the
special case it creates; move the only function it contained to the
main gss_mechanism structure where it belongs.  Note that the function
name is preserved so that loadable modules are not affected by this
change.

13 years agoRegression tests for CVE-2012-1014, CVE-2012-1015
Tom Yu [Wed, 8 Aug 2012 03:14:03 +0000 (23:14 -0400)] 
Regression tests for CVE-2012-1014, CVE-2012-1015

ticket: 7231 (new)
target_version: 1.10.3
tags: pullup

13 years agoAdd missing quote to install-windows
Tom Yu [Tue, 7 Aug 2012 22:04:29 +0000 (18:04 -0400)] 
Add missing quote to install-windows

ticket: 7230 (new)
target_version: 1.10.3
tags: pullup

13 years agoMinor Sphinx html style modification
Zhanna Tsitkov [Tue, 7 Aug 2012 20:30:21 +0000 (16:30 -0400)] 
Minor Sphinx html style modification

13 years agoFix memory leak parsing name with default realm
Greg Hudson [Tue, 7 Aug 2012 04:54:46 +0000 (00:54 -0400)] 
Fix memory leak parsing name with default realm

After 74beb75bb07e3921d10c8eec05eacb1f393e5e44, allocate_princ()
allocates a one-byte realm field even if the principal doesn't have
one, so if we're replacing it with the default realm, we need to free
that.

13 years agoFix HTML rendering of long-form options
Benjamin Kaduk [Thu, 19 Jul 2012 17:37:04 +0000 (13:37 -0400)] 
Fix HTML rendering of long-form options

We at present only have long-form options for configure, the scope
of the change is somewhat limited.  Our SmartyPants config for Sphinx
causes these options to appear as prefixed with an en dash, instead
of the two hyphens that demarcate the (GNU-style) long-form options.
Using a different type of markup for command options could work around
this, but that would be a much larger patch.
Instead, apply a workaround in the markup for display purposes, which
makes the source a bit more ugly but the output correct.
Man page output is unaffected.

This patch was automatically generated with:
git grep -- -- doc/rst_source | grep -v -- --- | cut -d ':' -f 1
 | uniq | xargs sed -i '' -e 's/\*\*--\([a-zA-Z]\)/**-**\\ **-\1/g'
and manually reviewed for correctness.

ticket: 7187

13 years agoRemove dash from man page rst source
Ben Kaduk [Mon, 16 Jul 2012 16:21:09 +0000 (12:21 -0400)] 
Remove dash from man page rst source

This page gets rendered for the web with Sphinx but is also turned
into the krb5_conf.5 manual page.  We need to use three-hyphen
em dashes for the Sphynx config, but those are a bit long for
monospace terminal output.  Since the dash here can easily be
changed to a comma, do so, and avoid the conflict of formatting.

13 years agoUse '---' for em dashes in rst source
Ben Kaduk [Tue, 3 Jul 2012 15:41:56 +0000 (11:41 -0400)] 
Use '---' for em dashes in rst source

Our sphinx configuration uses SmartyPants, which produces smart
quotes and dashes in HTML output, using '--' for en dash and
'---' for em dash.  (This is also the LaTeX convention.)
These points in the text are meant to be em dashes, so format them
as such.  Also standardize on no spaces around the dash per
Chicago Manual of Style (and others).

13 years agoTurn off replay cache in krb5_verify_init_creds()
Nalin Dahyabhai [Wed, 18 Apr 2012 18:01:39 +0000 (14:01 -0400)] 
Turn off replay cache in krb5_verify_init_creds()

The library isn't attempting a replay attack on itself, so any detected
replays are only going to be false-positives.

ticket: 7229 (new)

13 years agoPass the actual mech oid in creds functions
Simo Sorce [Thu, 7 Jun 2012 16:54:43 +0000 (12:54 -0400)] 
Pass the actual mech oid in creds functions

This way the mechanism handler knows what mech type is intended.
This allows plugin that implement multiple mechanisms or interposer
plugins to know what they are being asked to do.

13 years agoAlways consider desired_mechs empty in spnego (2)
Simo Sorce [Mon, 6 Aug 2012 19:41:27 +0000 (15:41 -0400)] 
Always consider desired_mechs empty in spnego (2)

Follow previous change to add_cred_from.
The only case where the spnego gss_*_cred_* functions can be called
with specific OIDs is if the mechglue calls spnego with the spengo
oid, which we never want to loop on anyway. So always consider it as
null, it's the correct behavior with current semantics.

13 years agoDoc "version introduced" for some kdc.conf tags
Zhanna Tsitkov [Mon, 6 Aug 2012 16:30:08 +0000 (12:30 -0400)] 
Doc "version introduced" for some kdc.conf tags

Also, move [logging] section documentation after [dbmodules]
documentation.

13 years agoClarify example in kadm5.acl document
Zhanna Tsitkov [Mon, 6 Aug 2012 14:47:21 +0000 (10:47 -0400)] 
Clarify example in kadm5.acl document

13 years agoReuse code to free gss_mech_info structure
Simo Sorce [Mon, 30 Jul 2012 18:12:03 +0000 (14:12 -0400)] 
Reuse code to free gss_mech_info structure

13 years agoAnnounce myself as a member of the Kerberos Team
Benjamin Kaduk [Fri, 20 Jul 2012 15:18:30 +0000 (11:18 -0400)] 
Announce myself as a member of the Kerberos Team

13 years agoAdd "feedback" button to the header in Sphinx HTML
Zhanna Tsitkov [Fri, 3 Aug 2012 21:05:04 +0000 (17:05 -0400)] 
Add "feedback" button to the header in Sphinx HTML

13 years agoAlways consider desired_mechs empty in spnego
Simo Sorce [Tue, 12 Jun 2012 18:46:24 +0000 (14:46 -0400)] 
Always consider desired_mechs empty in spnego

The only case where the spnego gss_aquire_cred function can be called
with specific OIDs is if the mechglue calls spenego with the spengo
oid, which we never want to loop on anyway. So always consider it as
null, it's the correct behavior with current semantics.

13 years agoMake gss_ctx_id_t truly opaque
Simo Sorce [Wed, 9 May 2012 18:50:35 +0000 (14:50 -0400)] 
Make gss_ctx_id_t truly opaque

This allows us to still use it for type safety in the APIs while at
the same time prevent code from trying to dereference internal_ctx_id
by mistake.

13 years agoRemove "Synopsis" from .k5login .k5identity docs
Zhanna Tsitkov [Fri, 3 Aug 2012 16:38:29 +0000 (12:38 -0400)] 
Remove "Synopsis" from .k5login .k5identity docs

13 years agoProduce man page for kadm5.acl
Zhanna Tsitkov [Fri, 3 Aug 2012 16:27:58 +0000 (12:27 -0400)] 
Produce man page for kadm5.acl

13 years agoCross-reference to kadm5.acl in documentation
Zhanna Tsitkov [Fri, 3 Aug 2012 16:14:32 +0000 (12:14 -0400)] 
Cross-reference to  kadm5.acl in documentation

13 years agoNew documention for kadm5.acl
Zhanna Tsitkov [Fri, 3 Aug 2012 14:45:00 +0000 (10:45 -0400)] 
New documention for kadm5.acl

13 years agoFurther fixes for WSA/Posix error translation
Kevin Wasserman [Sun, 29 Jul 2012 13:27:02 +0000 (09:27 -0400)] 
Further fixes for WSA/Posix error translation

Don't translate '0' (no error).
Handle WSAEAFNOSUPPORT and WSAEINVAL.
Add Posix->WSA translation.
Add default translation for unrecognized errors.

[ghudson@mit.edu: Merged with master and adjusted comments.]

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

13 years agoFix malformed Parameter Expansion table in docs
Zhanna Tsitkov [Thu, 2 Aug 2012 16:34:14 +0000 (12:34 -0400)] 
Fix malformed Parameter Expansion table in docs

13 years agoFix oid set construction in gss_inquire_cred()
Kevin Wasserman [Wed, 1 Aug 2012 22:30:02 +0000 (18:30 -0400)] 
Fix oid set construction in gss_inquire_cred()

Use gssapi calls to construct the oid sets.  It is not safe on windows
to use malloc to hand-construct the set and then call gss_release_oid_set()
to clean it up.

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

13 years agoMinor correction of [realms] text of kdc.conf
Zhanna Tsitkov [Thu, 2 Aug 2012 14:45:41 +0000 (10:45 -0400)] 
Minor correction of [realms] text of kdc.conf

13 years agoChange default client keytab name
Greg Hudson [Thu, 2 Aug 2012 05:27:47 +0000 (01:27 -0400)] 
Change default client keytab name

Change the default client keytab name, if not overridden at build
time, to FILE:$localstatedir/krb5/user/%{euid}/client.keytab.
Introduce a second file from the autoconf archives in order to
recursively expand $localstatedir within configure.in.

13 years agoFix default substitution of ccache/keytab names
Greg Hudson [Thu, 2 Aug 2012 05:05:31 +0000 (01:05 -0400)] 
Fix default substitution of ccache/keytab names

Tie up some loose ends in substitution of the default ccache/keytab
names after 688a2702d2045abf5f99acfb59f3f372391e5be4:

* Fix the substhtml target in src/doc/Makefile.in
* Don't add FILE: when substituting the default keytab and client
  keytab names, as the defaults already have it.

13 years agoGrammar and spelling
Benjamin Kaduk [Wed, 1 Aug 2012 20:49:33 +0000 (16:49 -0400)] 
Grammar and spelling

13 years agoOur kadmind uses its assigned port by default
Benjamin Kaduk [Wed, 1 Aug 2012 20:46:29 +0000 (16:46 -0400)] 
Our kadmind uses its assigned port by default

Do not leave anyone thinking that they might have to specify it
in the config file to get the standard behavior.

13 years agoExplain memory allocation policy in oid_ops.c
Greg Hudson [Wed, 1 Aug 2012 18:43:43 +0000 (14:43 -0400)] 
Explain memory allocation policy in oid_ops.c

13 years agoAdd %{username} token to path expansion
Greg Hudson [Wed, 1 Aug 2012 18:05:52 +0000 (14:05 -0400)] 
Add %{username} token to path expansion

For Unix-like platforms, add %{username} to the path expansion
facility, expanding to the result of getpwuid on the euid.

Also, for manual testing convenience, make t_expand_path print the
result if no second argument is given.

13 years agoFix KDC heap corruption vuln [CVE-2012-1015]
Tom Yu [Wed, 1 Aug 2012 02:45:08 +0000 (22:45 -0400)] 
Fix KDC heap corruption vuln [CVE-2012-1015]

Fix KDC heap corruption vulnerability [MITKRB5-SA-2012-001
CVE-2012-1015].  The cleanup code in
kdc_handle_protected_negotiation() in kdc_util.c could free an
uninitialized pointer in some error conditions involving "similar"
enctypes and a failure in krb5_c_make_checksum().

Additionally, adjust the handling of "similar" enctypes to avoid
advertising enctypes that could lead to inadvertent triggering of this
vulnerability (possibly in unpatched KDCs).

Note that CVE-2012-1014 (also described in MITKRB5-SA-2012-001) only
applies to the krb5-1.10 branch and doesn't affect the master branch
or releases prior to krb5-1.10.

ticket: 7225 (new)
target_version: 1.9.5
tags: pullup

13 years agoDoc the need to restart KDC if kdc.conf changed
Zhanna Tsitkov [Wed, 1 Aug 2012 15:44:32 +0000 (11:44 -0400)] 
Doc the need to restart KDC if kdc.conf changed

13 years agoUpdated logs URL for #krbdev channel
Zhanna Tsitkov [Wed, 1 Aug 2012 14:08:21 +0000 (10:08 -0400)] 
Updated logs URL for #krbdev channel

13 years agoFix edge-case bugs in kdb5_util load
Greg Hudson [Tue, 31 Jul 2012 18:05:56 +0000 (14:05 -0400)] 
Fix edge-case bugs in kdb5_util load

* fscanf field widths must be less than the buffer size, not equal to
  it.
* Check for negative values of lengths we're going to allocate.
* Eliminate a warning in the comparison of the regexp end offset.
* process_r1_8 policy doesn't actually ignore additional values, so
  get rid of the comment and inequality test suggesting that it does.

ticket: 7224 (new)

13 years agoRevert an out-of-scope change in policy extensions
Greg Hudson [Tue, 31 Jul 2012 16:59:29 +0000 (12:59 -0400)] 
Revert an out-of-scope change in policy extensions

13 years agoAdd LDAP back end support for policy extensions
Greg Hudson [Fri, 27 Jul 2012 00:11:55 +0000 (20:11 -0400)] 
Add LDAP back end support for policy extensions

ticket: 7223

13 years agoConstify krb5_string_to_keysalts()'s string arg
Nicolas Williams [Thu, 26 Jul 2012 04:00:49 +0000 (23:00 -0500)] 
Constify krb5_string_to_keysalts()'s string arg

13 years agoPolicy extensions + new policy: allowed ks types
Nicolas Williams [Wed, 18 Jul 2012 21:27:35 +0000 (16:27 -0500)] 
Policy extensions + new policy: allowed ks types

This simply adds KADM5_API_VERSION_4 and various fields to the
policy structures:

 - attributes         (policy-ish principal attributes)
 - max_life           (max ticket life)
 - max_renewable_life (max ticket renewable life)
 - allowed_keysalts   (allowed key/salt types)
 - TL data            (future policy extensions)

Of these only allowed_keysalts is currently implemented.

Some refactoring of TL data handling is also done.

ticket: 7223 (new)

13 years agoFix ugly ladder in src/kadmin/cli/kadmin.c
Nicolas Williams [Thu, 19 Jul 2012 03:55:22 +0000 (22:55 -0500)] 
Fix ugly ladder in src/kadmin/cli/kadmin.c

13 years agoDe-indent process_k5beta6_record()
Nicolas Williams [Mon, 23 Jul 2012 21:14:52 +0000 (16:14 -0500)] 
De-indent process_k5beta6_record()

13 years agoRemove eDirectory support code in LDAP KDB module
Greg Hudson [Sun, 29 Jul 2012 16:03:44 +0000 (12:03 -0400)] 
Remove eDirectory support code in LDAP KDB module