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

13 years agoFactor out LDAP policy marshalling
Greg Hudson [Thu, 26 Jul 2012 16:25:01 +0000 (12:25 -0400)] 
Factor out LDAP policy marshalling

Use a helper function add_policy_mods() in
krb5_ldap_create_password_policy() and krb5_ldap_put_password_policy()
to avoid duplicating code for each field.

13 years agoRemove obsolete code in ldap_pwd_policy.c
Greg Hudson [Thu, 26 Jul 2012 15:18:35 +0000 (11:18 -0400)] 
Remove obsolete code in ldap_pwd_policy.c

r18750 refactored some policy fetching code into populate_policy(),
and left the old code in #if 0 blocks.  Get rid of those blocks now.

13 years agoMinor fixes to expand_path.c
Greg Hudson [Wed, 25 Jul 2012 23:51:49 +0000 (19:51 -0400)] 
Minor fixes to expand_path.c

Corrections to stuff noticed by kaduk:
* Eliminate a space before paren in a call to free().
* Use %lu for unsigned long in format strings.
* Simplify the tokens table definition.

13 years agoSupport changing the built-in ccache/keytab names
Greg Hudson [Tue, 24 Jul 2012 20:26:28 +0000 (16:26 -0400)] 
Support changing the built-in ccache/keytab names

* Add DEFCCNAME, DEFKTNAME, and DEFCKTNAME configure variables to
  change the built-in ccache and keytab names.
* Add krb5-config options to display the built-in ccache and keytab
  names.
* In the default build, use krb5-config to discover the system's
  built-in ccache and keytab names and use them (if not overridden).
  This can be controlled with the --with-krb5-config=PATH or
  --without-krb5-config configure options.
* Make the built-in ccache name subject to parameter expansion.

ticket: 7221 (new)

13 years agoAdd default_ccache_name profile variable
Greg Hudson [Tue, 24 Jul 2012 20:26:28 +0000 (16:26 -0400)] 
Add default_ccache_name profile variable

Like default_keytab_name and default_client_keytab_name,
default_ccache_name is subject to parameter expansion.

ticket: 7220 (new)

13 years agoRename tests/t_cccol.py to t_ccache.py
Greg Hudson [Tue, 24 Jul 2012 20:26:28 +0000 (16:26 -0400)] 
Rename tests/t_cccol.py to t_ccache.py

Generalize the ccache collection tests in t_cccol.py to multiple kinds
of ccache tests, and rename it to avoid confusion with the lower-level
lib/krb5/ccache/t_cccol.py.  Move a test from t_general.py into
t_ccache.py.

13 years agoRearrange ccdefname.c slightly
Greg Hudson [Tue, 24 Jul 2012 20:26:27 +0000 (16:26 -0400)] 
Rearrange ccdefname.c slightly

Eliminate the USE_CCAPI variant of get_from_os() which was only used
in KfM.  Make get_from_os() allocate its result (wrapping the Windows
implementation so it can continue to use a fixed-size buffer).
Simplify krb5_cc_set_default_name() and krb5_cc_default_name().  Make
some minor style adjustments.

13 years agoAdd token expansion for keytab names
Greg Hudson [Tue, 24 Jul 2012 20:26:27 +0000 (16:26 -0400)] 
Add token expansion for keytab names

Make the default_keytab_name and default_client_keytab_name variables
subject to parameter expansion.

ticket: 7219 (new)

13 years agoAdd internal path expansion functions
Greg Hudson [Tue, 24 Jul 2012 20:26:27 +0000 (16:26 -0400)] 
Add internal path expansion functions

Add an adapted version of Heimdal's expand_path.c, defining
k5_expand_path_tokens() and k5_expand_path_tokens_extra().  These
functions allow template paths like %{TEMP}/krb5cc_%{uid} to be
resolved.  Also add a test program to exercise the path expansion
code.

13 years agoMake sure that long lines are displayed in Sphinx
Zhanna Tsitkov [Tue, 24 Jul 2012 15:53:11 +0000 (11:53 -0400)] 
Make sure that long lines are displayed in Sphinx

Before this fix the very long lines (110+ symbols) under the
preformatted text <pre> tag would be cut short in Sphinx HTML output.

13 years agoFix references, typo and formating
Zhanna Tsitkov [Tue, 24 Jul 2012 15:22:49 +0000 (11:22 -0400)] 
Fix references, typo and formating

13 years agoRemove outdated file migration.doc
Zhanna Tsitkov [Fri, 20 Jul 2012 20:58:28 +0000 (16:58 -0400)] 
Remove outdated file migration.doc

13 years agoAdd basic test for credstore extentions
Simo Sorce [Tue, 6 Mar 2012 17:17:09 +0000 (12:17 -0500)] 
Add basic test for credstore extentions

13 years agoImplement credential store support in spnego
Simo Sorce [Sat, 3 Mar 2012 04:21:04 +0000 (23:21 -0500)] 
Implement credential store support in spnego

13 years agoImplement credential store support for krb5 mech
Simo Sorce [Sat, 3 Mar 2012 04:11:32 +0000 (23:11 -0500)] 
Implement credential store support for krb5 mech

13 years agoIntroduce credential store extensions
Simo Sorce [Fri, 2 Mar 2012 23:27:49 +0000 (18:27 -0500)] 
Introduce credential store extensions

Add new APIs gss_acquire_cred_from, gss_add_cred_from, and
gss_store_cred_into, which take additional argments to specify the
location of the credential storage using a key-value map, where keys
are interpreted by the mechanisms.

ticket: 7217 (new)

13 years agoUse internal release function in oid_ops.c
Simo Sorce [Fri, 11 May 2012 23:31:23 +0000 (19:31 -0400)] 
Use internal release function in oid_ops.c

In the end the internal one is called in all cases, but it seem
cleaner to use the internal one instead of relying on the redirection.

13 years agoRevise philosopy.rst and fix doc typo
Zhanna Tsitkov [Wed, 18 Jul 2012 15:45:18 +0000 (11:45 -0400)] 
Revise philosopy.rst and fix doc typo

13 years agoIn g_oid_ops.c, remove an unneeded declaration
Simo Sorce [Fri, 11 May 2012 23:14:12 +0000 (19:14 -0400)] 
In g_oid_ops.c, remove an unneeded declaration

The code that used it is no longer in this file.

13 years agoDocument references to date-time formats
Zhanna Tsitkov [Mon, 16 Jul 2012 19:15:52 +0000 (15:15 -0400)] 
Document references to date-time formats

13 years agoDoc introduced version for krb5_kt_client_default
Zhanna Tsitkov [Mon, 16 Jul 2012 15:31:03 +0000 (11:31 -0400)] 
Doc introduced version for krb5_kt_client_default

13 years agoAdd kinit/klist -i options to use client keytab
Greg Hudson [Mon, 16 Jul 2012 14:13:29 +0000 (10:13 -0400)] 
Add kinit/klist -i options to use client keytab

In combination with -k, -i will cause kinit or klist to use the
default client keytab instead of the default acceptor keytab.  This
gives an easy way to figure out what default client keytab name is in
use and to get credentials using it.

ticket: 7216 (new)

13 years agoRemove DISABLE_TRACING from windows build
Kevin Wasserman [Fri, 13 Jul 2012 02:13:53 +0000 (22:13 -0400)] 
Remove DISABLE_TRACING from windows build

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

13 years agokrb5_stdccv3_get_principal error handling fixup
Kevin Wasserman [Sun, 6 May 2012 21:50:20 +0000 (17:50 -0400)] 
krb5_stdccv3_get_principal error handling fixup

Don't treat an error returned by krb5_parse_name as a cc-internal error.

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

13 years agofix leak in cc_mslsa.c
Kevin Wasserman [Tue, 29 May 2012 17:29:14 +0000 (13:29 -0400)] 
fix leak in cc_mslsa.c

cc_name needs to be freed in krb5_lcc_close().

Signed-off-by: Kevin Wasserman <kevin.wasserman@painless-security.com>
ticket: 7213

13 years agoFix macro redefinition warnings in cc_mslsa.c
Kevin Wasserman [Fri, 13 Jul 2012 14:20:10 +0000 (10:20 -0400)] 
Fix macro redefinition warnings in cc_mslsa.c

Include ntstatus.h and define WIN32_NO_STATUS before including winnt.h

Signed-off-by: Kevin Wasserman <kevin.wasserman@painless-security.com>
ticket: 7213

13 years agoImplement cccol iterators for mslsa
Kevin Wasserman [Mon, 21 May 2012 11:39:33 +0000 (07:39 -0400)] 
Implement cccol iterators for mslsa

Also implement  switch_to stub

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

13 years agoMSLSA Don't use lstrcpy on ANSI strings
Kevin Wasserman [Fri, 11 May 2012 15:36:19 +0000 (11:36 -0400)] 
MSLSA Don't use lstrcpy on ANSI strings

Also change parameter types to eliminate casts.

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

13 years agodefine USE_HEAPALLOC in gssapi_alloc.h
Kevin Wasserman [Wed, 26 Oct 2011 11:24:23 +0000 (07:24 -0400)] 
define USE_HEAPALLOC in gssapi_alloc.h

Easier to disable for testing.

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

13 years agoRemove the UNICODE defines from wshelper
Alexey Melnikov [Thu, 22 Sep 2011 17:12:47 +0000 (18:12 +0100)] 
Remove the UNICODE defines from wshelper

wshelper is clearly not intended to use unicode:
wprintf is used extensively and exclusively to write to char[] buffers and
fields in dns structs are used as explicitly ASCII text.

Signed-off-by: Alexey Melnikov <aamelnikov@gmail.com>
ticket: 7210 (new)
tags: pullup

13 years agoBuild lib/krb5/ccache/ccapi on Windows only
Kevin Wasserman [Thu, 12 Jul 2012 20:27:08 +0000 (16:27 -0400)] 
Build lib/krb5/ccache/ccapi on Windows only

Signed-off-by: Kevin Wasserman <kevin.wasserman@painless-security.com>
ticket: 7209

13 years agoDefine USE_CCAPI_V3 in krb5/ccache on windows
Kevin Wasserman [Thu, 12 Jul 2012 20:23:21 +0000 (16:23 -0400)] 
Define USE_CCAPI_V3 in krb5/ccache on windows

USE_CCAPI_V3 provides cccol iteration support for ccapi.

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

13 years ago__func__ -> __FUNCTION__ in disp_status.c
Kevin Wasserman [Tue, 15 May 2012 18:23:59 +0000 (14:23 -0400)] 
__func__ -> __FUNCTION__ in disp_status.c

For MSVC compatibility

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

13 years agoDon't use syslog / LOG_DEBUG when they don't exist
Kevin Wasserman [Tue, 15 May 2012 18:38:05 +0000 (14:38 -0400)] 
Don't use syslog / LOG_DEBUG when they don't exist

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

13 years agoUse %i, not %s to Tprintf GetLastError()
Kevin Wasserman [Mon, 21 May 2012 11:40:43 +0000 (07:40 -0400)] 
Use %i, not %s to Tprintf GetLastError()

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

13 years agoRename 'free' -> 'free_func' in asn1_encode.c/.h
Kevin Wasserman [Tue, 15 May 2012 18:42:24 +0000 (14:42 -0400)] 
Rename 'free' -> 'free_func' in asn1_encode.c/.h

MSVC memory tracking tools do '#define free(p) _dbg_free(...)'.

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

13 years agoKFW win-mac.h fixes
Kevin Wasserman [Wed, 6 Jun 2012 22:22:22 +0000 (18:22 -0400)] 
KFW win-mac.h fixes

kfw: add int16_t, uint16_t typedefs to win-mac.h
uint16_t is used in chpw.c

include stdlib.h, crtdbg.h in win-mac.h

Allows leak-tracking using built-in msvc tools on windows.
crtdbg.h needs to come _after_ stdlib.h, but _before_ checking for
strdup.  Define DEBUG and CRTDBG_MAP_ALLOC for full tracking.

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

13 years agokfw add preauth_sam2 to OBJS for windows build
Kevin Wasserman [Wed, 6 Jun 2012 22:17:35 +0000 (18:17 -0400)] 
kfw add preauth_sam2 to OBJS for windows build

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

13 years agoClarify date-time format in admin documentation
Zhanna Tsitkov [Fri, 13 Jul 2012 20:09:39 +0000 (16:09 -0400)] 
Clarify date-time format in admin documentation

13 years agoFix typo in "Supported date and type formats" doc
Zhanna Tsitkov [Fri, 13 Jul 2012 18:23:59 +0000 (14:23 -0400)] 
Fix typo in "Supported date and type formats" doc

13 years agoFix error handling in allocate_princ()
Greg Hudson [Fri, 13 Jul 2012 16:03:08 +0000 (12:03 -0400)] 
Fix error handling in allocate_princ()

The most recent change could leak memory when trying to parse an
invalid principal because of a failure to use the cleanup handler.

13 years agoReplace // comment in ccdefname.c
Greg Hudson [Fri, 13 Jul 2012 07:39:00 +0000 (03:39 -0400)] 
Replace // comment in ccdefname.c

13 years agoNew "Supported date and time formats" document
Zhanna Tsitkov [Thu, 12 Jul 2012 19:19:27 +0000 (15:19 -0400)] 
New "Supported date and time formats" document

13 years agoTidy up configure options documentation
Ben Kaduk [Mon, 9 Jul 2012 20:02:29 +0000 (16:02 -0400)] 
Tidy up configure options documentation

Our only C++ code is under src/tests/misc/.

Infodir is only referenced in send-pr's makefile but not used
in any rules therein.

Docdir and its descendants ({html,dvi,pdf,ps}dir) are not used
in any install rules.

We do not have anything to install into libexecdir or sharedstatedir,
and oldincludedir simply has no effect.

13 years agoStandardize on commas after "e.g.", "i.e."
Ben Kaduk [Fri, 29 Jun 2012 18:50:36 +0000 (14:50 -0400)] 
Standardize on commas after "e.g.", "i.e."

It seems to be "more correct".

13 years agoSync configure options with configure
Ben Kaduk [Fri, 29 Jun 2012 18:33:20 +0000 (14:33 -0400)] 
Sync configure options with configure

We should try to stay coupled with the actual configure options, as
documented by 'configure --help'.
Remove an option which is no longer present and add several that
were missing.

13 years agoOnly list --enable-dns-for-realm once
Ben Kaduk [Fri, 29 Jun 2012 18:13:05 +0000 (14:13 -0400)] 
Only list --enable-dns-for-realm once

If we list something as "commonly used", we seem to not also
list it with the rest of the options.  This has the advantage
of not requiring us to remember to update two things for future
changes, but the disadvantage of requiring users to look in two
places for options.  Stick with the prevailing form for now.

13 years agoSort configure options
Ben Kaduk [Fri, 29 Jun 2012 18:10:07 +0000 (14:10 -0400)] 
Sort configure options

Stick to the order of 'configure --help' for most sections, but
sort environment variables alphabetically (since, e.g.,
configure --help does not list CPPFLAGS and there is not a good
way to add that).
Note that this does not add or remove any content, even though
some options are missing/extra.

13 years agoCleanup docs for DNS lookup configure options
Ben Kaduk [Wed, 27 Jun 2012 18:35:30 +0000 (14:35 -0400)] 
Cleanup docs for DNS lookup configure options

DNS lookups for KDCs have been unconditionally enabled in
configure since 2003; configure options only affect whether
DNS lookups are used for realm names.
Change the RST documentation of configure options to catch up.