krb5.git
17 years agoThe #if _WIN32 block threw an error with Visual Studio 2005. Bumped the _MSC_VER...
Kevin Koch [Tue, 5 Jun 2007 20:22:37 +0000 (20:22 +0000)]
The #if _WIN32 block threw an error with Visual Studio 2005.  Bumped the _MSC_VER threshold by 100

TargetVersion: 1.7
Component: krb5-libs
Ticket: new
Subj: Tweaks for 1.7 build on Windows.

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@19569 dc483132-0cff-0310-8789-dd5450dbe970

17 years agoOnly use __attribute__ on GNUC compilers
Alexandra Ellwood [Tue, 5 Jun 2007 20:09:22 +0000 (20:09 +0000)]
Only use __attribute__ on GNUC compilers

ticket: new

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@19568 dc483132-0cff-0310-8789-dd5450dbe970

17 years agoFixed bugs introduced while moving to krb5 repository
Alexandra Ellwood [Mon, 4 Jun 2007 22:24:27 +0000 (22:24 +0000)]
Fixed bugs introduced while moving to krb5 repository

Fixed memory leak in ccs_ccache_t and ccs_cache_collection_t when returning
the reply data.  Changed to "will_block" semantics for flow control in all
server function so it doesn't get confusing.  Fixed bug in
ccs_server_send_reply() which was preventing ipc from working (was using
the wrong variable for the reply stream).

ticket:new

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@19567 dc483132-0cff-0310-8789-dd5450dbe970

17 years agoConfigure libkdb_ldap directory at top level
Ken Raeburn [Thu, 31 May 2007 22:16:10 +0000 (22:16 +0000)]
Configure libkdb_ldap directory at top level

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@19566 dc483132-0cff-0310-8789-dd5450dbe970

17 years agoConfigure cksum_body and wpse in top-level configure script. (Still don't build...
Ken Raeburn [Thu, 31 May 2007 21:25:56 +0000 (21:25 +0000)]
Configure cksum_body and wpse in top-level configure script.  (Still don't build by default.)

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@19565 dc483132-0cff-0310-8789-dd5450dbe970

17 years agoMove CCAPI sources to krb5 repository
Alexandra Ellwood [Thu, 31 May 2007 21:06:54 +0000 (21:06 +0000)]
Move CCAPI sources to krb5 repository

ticket: new
status: open

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@19564 dc483132-0cff-0310-8789-dd5450dbe970

17 years agodon't check for readability resolving SRVTAB: keytab
Ken Raeburn [Thu, 31 May 2007 15:56:49 +0000 (15:56 +0000)]
don't check for readability resolving SRVTAB: keytab

Greg Hudson has pointed out that the FILE: and SRVTAB: keytab types differ in
when they report errors for files not existing.  The implementations of ANY:
floating around cope better if they consistently accept names of files that
aren't present, and report the error later when fetching information.

ticket: new

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@19563 dc483132-0cff-0310-8789-dd5450dbe970

17 years agoRemove unused macro
Ken Raeburn [Wed, 23 May 2007 20:03:53 +0000 (20:03 +0000)]
Remove unused macro

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@19558 dc483132-0cff-0310-8789-dd5450dbe970

17 years agoUpdate dependencies
Ken Raeburn [Wed, 23 May 2007 04:52:48 +0000 (04:52 +0000)]
Update dependencies

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@19557 dc483132-0cff-0310-8789-dd5450dbe970

17 years agoOn Solaris 10, define NO_WEAK_PTHREADS for the build. When that symbol is
Ken Raeburn [Wed, 23 May 2007 03:54:20 +0000 (03:54 +0000)]
On Solaris 10, define NO_WEAK_PTHREADS for the build.  When that symbol is
defined, skip the weak and conditional references in k5-thread.h and always
use the real pthread functions.

ticket: 5560

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@19556 dc483132-0cff-0310-8789-dd5450dbe970

17 years agoFix up declarations of some static functions.
Ken Raeburn [Wed, 23 May 2007 03:32:08 +0000 (03:32 +0000)]
Fix up declarations of some static functions.
Now the eDirectory support compiles on Mac OS X 10.4.9 (but doesn't link
because "ldap_explode_dn" is not found).

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@19555 dc483132-0cff-0310-8789-dd5450dbe970

17 years agoChange struct _krb5_context.os_context into a single element instead of array[1]
Ken Raeburn [Mon, 21 May 2007 21:58:24 +0000 (21:58 +0000)]
Change struct _krb5_context.os_context into a single element instead of array[1]

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@19554 dc483132-0cff-0310-8789-dd5450dbe970

17 years agoSimplify UNIX krb5int_zap_data a little. Omit volatile cast, just call memset,
Ken Raeburn [Mon, 21 May 2007 21:44:40 +0000 (21:44 +0000)]
Simplify UNIX krb5int_zap_data a little.  Omit volatile cast, just call memset,
but for gcc, use a volatile asm afterwards to make the memory appear to be
referenced and deter optimizations that would remove the memset.

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@19553 dc483132-0cff-0310-8789-dd5450dbe970

17 years agoRemove unused files
Ken Raeburn [Fri, 18 May 2007 05:56:13 +0000 (05:56 +0000)]
Remove unused files

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@19551 dc483132-0cff-0310-8789-dd5450dbe970

17 years agoRemove unused file
Ken Raeburn [Fri, 18 May 2007 05:51:49 +0000 (05:51 +0000)]
Remove unused file

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@19550 dc483132-0cff-0310-8789-dd5450dbe970

17 years agoFix various gcc warnings about pointer target signedness and qualifiers
Ken Raeburn [Thu, 10 May 2007 04:24:38 +0000 (04:24 +0000)]
Fix various gcc warnings about pointer target signedness and qualifiers

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@19548 dc483132-0cff-0310-8789-dd5450dbe970

17 years agoRewrite weak key check to use a small custom struct instead of wedging
Ken Raeburn [Thu, 10 May 2007 03:58:07 +0000 (03:58 +0000)]
Rewrite weak key check to use a small custom struct instead of wedging
data into krb5_data, and use the array size rather than a sentinel for
loop control.

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@19547 dc483132-0cff-0310-8789-dd5450dbe970

17 years agoWe're requiring that 'inline' work nowadays, so don't conditionalize its use
Ken Raeburn [Thu, 10 May 2007 03:52:05 +0000 (03:52 +0000)]
We're requiring that 'inline' work nowadays, so don't conditionalize its use

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@19546 dc483132-0cff-0310-8789-dd5450dbe970

17 years agoUse new comparison inline fn
Ken Raeburn [Thu, 10 May 2007 02:45:42 +0000 (02:45 +0000)]
Use new comparison inline fn

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@19545 dc483132-0cff-0310-8789-dd5450dbe970

17 years agoDefine and use some inline helper functions for comparing data and authdata structure...
Ken Raeburn [Thu, 10 May 2007 02:37:22 +0000 (02:37 +0000)]
Define and use some inline helper functions for comparing data and authdata structures, instead
of open-coding checks of multiple fields everywhere.

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@19544 dc483132-0cff-0310-8789-dd5450dbe970

17 years agoRemove some unused macros
Ken Raeburn [Thu, 10 May 2007 00:00:07 +0000 (00:00 +0000)]
Remove some unused macros

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@19543 dc483132-0cff-0310-8789-dd5450dbe970

17 years agoRemove unused file
Ken Raeburn [Mon, 7 May 2007 19:12:44 +0000 (19:12 +0000)]
Remove unused file

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@19542 dc483132-0cff-0310-8789-dd5450dbe970

17 years agoModify WIX installer to better support upgrading betas
Jeffrey Altman [Thu, 3 May 2007 22:57:05 +0000 (22:57 +0000)]
Modify WIX installer to better support upgrading betas

The WIX installers did not upgrade previous installations with the same
version number as the current package being installed.  This would leave
multiple installations of KFW x.y.z registered as being installed on the
machine even though only the most recent install is being used.

This commit instructs the Windows Installer to uninstall previous installations
with the same version number (the Maximum Upgrade version) as the package
that is being installed while ensuring that the package being installed
will not be uninstalled if the installation is being modified or repaired.

ticket: new
component: windows
tags: pullup

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@19541 dc483132-0cff-0310-8789-dd5450dbe970

17 years ago k5-int.h, gic_opt.c
Jeffrey Altman [Wed, 2 May 2007 01:31:50 +0000 (01:31 +0000)]
  k5-int.h, gic_opt.c

  The krb5_get_init_creds_password() and krb5_get_init_creds_keytab()
  functions permit the gic_opts parameter to be NULL.   This is not
  taken into account when testing the value with the macros
  krb5_gic_opt_is_extended() and krb5_gic_opt_is_shadowed().
  Nor is it taken into account within krb5int_gic_opte_copy() which
  is called by krb5int_gic_opt_to_opte() when the input parameter is
  not a krb5_gic_opt_ext structure.

  This commit makes two changes:

  (1) it modifies the macros to ensure that the value is non-NULL
      before evaluation.

  (2) it modifies krb5int_gic_opte_copy() to avoid copying the
      original values with memcpy() when the input is NULL.

  In addition, the code was audited to ensure that the flag
  KRB5_GET_INIT_CREDS_OPT_SHADOWED is properly set and that when
  it is set, that the allocated krb5_gic_opt_ext structure is
  freed by krb5_get_init_creds_password() and
  krb5_get_init_creds_keytab().

ticket: 5552
tags: pullup

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@19537 dc483132-0cff-0310-8789-dd5450dbe970

17 years agord_req_decoded needs to deal with referral realms
Sam Hartman [Sun, 29 Apr 2007 21:55:04 +0000 (21:55 +0000)]
rd_req_decoded needs to deal with referral realms

  * Fix handling of null realm in krb5_rd_req_decoded; now we treat a
null realm as a default realm there, as we do in the keytab code.

ticket: new
Target_Version: 1.6.2
Tags: pullup

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@19536 dc483132-0cff-0310-8789-dd5450dbe970

17 years agoMove the code for queueing an outgoing response on a TCP stream into a separate
Ken Raeburn [Fri, 27 Apr 2007 23:27:31 +0000 (23:27 +0000)]
Move the code for queueing an outgoing response on a TCP stream into a separate
function.

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@19535 dc483132-0cff-0310-8789-dd5450dbe970

17 years agoLook for unix find command in multiple places
Kevin Koch [Thu, 26 Apr 2007 13:02:32 +0000 (13:02 +0000)]
Look for unix find command in multiple places

Not tagged yet in case it should not go in 3.2.

Look for the unix find command in a list of directories instead of in only one place.  This way Jeff can install cygwin in c:\tools\cygwin and Ken can have it in C:\cygwin.  The two places in the list are for those two possibilities.  c:\cygwin\bin and c:\tools\cygwin\bin.

Move some prints below where logging starts, so the messages will be in the log.

Ticket: new
Target_Version: 1.6.1

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@19534 dc483132-0cff-0310-8789-dd5450dbe970

17 years agoprofile stores empty string values without double quotes
Jeffrey Altman [Wed, 25 Apr 2007 22:55:58 +0000 (22:55 +0000)]
profile stores empty string values without double quotes

        prof_parse.c (need_double_quotes):
        The profile library will happily read in right hand values
        that represent the empty string by parsing "".  However,
        when storing the same empty string back to a file, the
        empty string is written without the double quotes.

        This means that

                [section] foo = ""

        becomes

                [section] foo =

        which is invalid input.  A subsequent attempt to parse the
        profile will result in an invalid input error.

        KFW and KFM's realm editors can inadvertently produce an
        invalid krb5 profile if one of the ignored sections of the
        input profile contains a right hand value that is "".

        This patch was produced by Asanka Herath and it was reviewed
        by jaltman and lxs.

ticket: new
tags: pullup

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@19529 dc483132-0cff-0310-8789-dd5450dbe970

17 years agorace condition in referrals fallback
Tom Yu [Wed, 25 Apr 2007 21:19:07 +0000 (21:19 +0000)]
race condition in referrals fallback

* src/lib/krb5/krb/gc_frm_kdc.c (krb5_get_cred_from_kdc_opt):
During referrals fallback, set *tgts to NULL after freeing.  This
avoids returning a pointer to freed memory when the first call to
do_traversal() obtains some TGTs and the subsequent
krb5_cc_retrieve_cred() of the final-hop TGT succeeds (due to some
other thread or process storing that TGT into the ccache), causing
second do_traversal() call (which would re-initialize *tgts) to
not execute.  Race condition found during KfW-3.2 testing.

ticket: new
target_version: 1.6.2
tags: pullup

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@19526 dc483132-0cff-0310-8789-dd5450dbe970

17 years agoOptimize file/directory pruning
Kevin Koch [Mon, 23 Apr 2007 15:54:19 +0000 (15:54 +0000)]
Optimize file/directory pruning

Not tagged yet so it can be evaluated first.

Consolidate find and rm operations in prunefiles.pl as suggested by Ken.

Remove pruning of SDK files.  This hasn't been needed since the installer builds moved from staging to temp directories.

Remove debug statement not cleaned up previously.

Add a troubleshooting tip to the doc.

Ticket: new
Target_Version: 1.6.1

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@19521 dc483132-0cff-0310-8789-dd5450dbe970

17 years agoremove debugging code accidentally left in ftp/cmds.c
Ken Raeburn [Mon, 23 Apr 2007 00:30:40 +0000 (00:30 +0000)]
remove debugging code accidentally left in ftp/cmds.c

Debugging code I added months ago in ftp/cmds.c and forgot to remove
has apparently escaped notice until now.  Markus Moeller reports
seeing a bunch of "cmds.c: at line (number)" lines printed when he
connects to a server.

This patch removes those lines.  A couple other debugging statements
that test for the debug flag being set on the command line are left
in.

ticket: new

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@19520 dc483132-0cff-0310-8789-dd5450dbe970

17 years agoRemove unused old .cvsignore files
Ken Raeburn [Sat, 21 Apr 2007 00:13:07 +0000 (00:13 +0000)]
Remove unused old .cvsignore files

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@19519 dc483132-0cff-0310-8789-dd5450dbe970

17 years agoAdd /REPOSITORY EXPORT option
Kevin Koch [Fri, 20 Apr 2007 20:41:42 +0000 (20:41 +0000)]
Add /REPOSITORY EXPORT option

Adjust abbreviations: /svntag is now 't' so /src can be 's' so /repository can have the abbreviation 'r.'

Process /NOLOG.

Write out ignored command line options as ones being passed to NMAKE (via build.pl).

Generate GetOptions argument from the <Config> section of the config.xml file.

Ticket: new
Tags: Pullup
Target_Version: 1.6.1

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@19513 dc483132-0cff-0310-8789-dd5450dbe970

17 years agoDon't use sendmsg/recvmsg paths if CMSG_SPACE isn't defined
Ken Raeburn [Fri, 20 Apr 2007 07:43:28 +0000 (07:43 +0000)]
Don't use sendmsg/recvmsg paths if CMSG_SPACE isn't defined

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@19510 dc483132-0cff-0310-8789-dd5450dbe970

17 years agoModify Unix find test to only check the current directory for the non-existent a.tmp
Kevin Koch [Thu, 19 Apr 2007 20:04:08 +0000 (20:04 +0000)]
Modify Unix find test to only check the current directory for the non-existent a.tmp

When the pismere area is under the script area (as in Jeff's setup on afs), the find test slogs through 100MB of files and occasionally finds an a.tmp.

This correct the erroneous 'unix find not found' errors and improves performance noticeably when using afs.

Ticket: new

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@19509 dc483132-0cff-0310-8789-dd5450dbe970

17 years agoRollback previous change. This version is the same as R19472
Kevin Koch [Thu, 19 Apr 2007 18:03:16 +0000 (18:03 +0000)]
Rollback previous change.  This version is the same as R19472

Target_Version: 1.6.1
Ticket: 5521
Tags: pullup

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@19507 dc483132-0cff-0310-8789-dd5450dbe970

17 years agoMore NIM Developer documentation updates
Jeffrey Altman [Wed, 18 Apr 2007 21:45:22 +0000 (21:45 +0000)]
More NIM Developer documentation updates

Revisions to the plug-in architecture documentation.

Adds a graphic showing the plug-in architecture

Defines "ALIASES" in the Makefile so that the current
NIM API Version number will be used within the docs
at build time.

ticket: new

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@19490 dc483132-0cff-0310-8789-dd5450dbe970

17 years agoFactor repository access out of bkw.pl into repository1.pl
Kevin Koch [Wed, 18 Apr 2007 03:00:49 +0000 (03:00 +0000)]
Factor repository access out of bkw.pl into repository1.pl

Modify bkw.pl to use an initial config file to fetch the sources and then use the config file from those sources to do the build.  This way, the description of how to build the sources is in the config file that is part of the sources.  It is possible and probably reasonable for the initial config file to be the same as the tagged version.  Output all the options used.

Add bootstrap.xml - a sample minimal config file, sufficient to fetch the sources from a repository.

Target_Version: 1.6.1
Ticket: 5521
Tags: pullup

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@19489 dc483132-0cff-0310-8789-dd5450dbe970

17 years agokfwlogon corrections for XP
Jeffrey Altman [Wed, 18 Apr 2007 01:47:08 +0000 (01:47 +0000)]
kfwlogon corrections for XP

This patch addresses a problem discovered on some XP systems.
After rundll32.exe starts, the CreateProcess can fail to
start kfwcpcc.exe if the current directory is not %WinDir%\System32.
CreateProcess() should be called with the lpApplicationName parameter
set to NULL in order to permit the use of the PATH.

Also, in ConfigureLogonScript ensure that the trailing NUL of the
constructed command line is processed when producing the wide
character version of the string.

ticket: new
component: windows
tags: pullup

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@19488 dc483132-0cff-0310-8789-dd5450dbe970

17 years agoupdates for NIM developer documentation
Jeffrey Altman [Tue, 17 Apr 2007 21:37:16 +0000 (21:37 +0000)]
updates for NIM developer documentation

Add the use of Tabs and Frames to the resulting output (doxyfile.cfg)

Stylesheet changes to improve readability (stylesheet.css)

Copyright updates (all files)

Language Editing (all files)

Version History (main_page.h)

There are still a number of missing sections that need to be filled
in as time permits:

 - Writing the dialog procedure for a cred type panel
 - Credential messages
 - configuration provider details
 - Actions
 - Menus

ticket: new
component: windows
tags: pullup

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@19481 dc483132-0cff-0310-8789-dd5450dbe970

17 years agoIn testing it has been observed that remote desktop connections
Jeffrey Altman [Tue, 17 Apr 2007 18:06:15 +0000 (18:06 +0000)]
In testing it has been observed that remote desktop connections
will execute the NPLogonNotify function but if the logon is
re-connecting to an existing session, the LogonScript is ignored.
This leaves orphaned credential cache files.

This commit adds a function, KFW_cleanup_orphaned_caches, which
is called by NPLogonNotify to delete any orphaned cache files.
An orphaned cache file is one that is older than five minutes.

ticket: 5532
tags: pullup

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@19477 dc483132-0cff-0310-8789-dd5450dbe970

17 years agoKFW Network Provider Improvements
Jeffrey Altman [Tue, 17 Apr 2007 04:00:28 +0000 (04:00 +0000)]
KFW Network Provider Improvements

Change event log name from "KFW Logon" to "MIT Kerberos".  This
is being done to avoid confusion with the "KFW Logon" functionality
that was provided by older versions of OpenAFS. (kfwlogon.h)

Remove logging of the inability to access the "Debug" registry value.
On Vista, kfwlogon.dll is no longer loaded by winlogin.exe.  Instead
it is loaded by mpnotify.exe which is spawned once for each logon
request.  (kfwcommon.c)

Add a test to ensure that RegisterEventSource succeeded before calling
ReportEvent.  (kfwcommon.c)

Absolutely make sure that krb5_init_context() succeeded before calling
any other krb5 functions.  (kfwcommon.c)

Add a comment explaining why NPGetCaps() says we are a file system even
though we are not.  "It won't work otherwise."  (kfwlogon.c)

Change all comparisions for Windows Station and AuthentInfoType names
to case insensitive comparisons.  Vista does not use the same case as XP.
(kfwlogon.c)

Change the requested access to the temporary cache file from "All" to
"Read | Delete" when importing its contents into the API cache.
Otherwise, the access test will fail on Vista.  (kfwlogon.c)

ticket: new
component: windows
tags: pullup

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@19476 dc483132-0cff-0310-8789-dd5450dbe970

17 years agoAdd the new kadm5srv function krb5_get_principal_keys to the export list
Russ Allbery [Mon, 16 Apr 2007 22:03:54 +0000 (22:03 +0000)]
Add the new kadm5srv function krb5_get_principal_keys to the export list

Build a separate copy of kadmin/cli/keytab.c for kadmin.local that exposes
the -norandkey flag in a way that doesn't require the compiler support -c
and -o at the same time.

Ticket: 914

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@19475 dc483132-0cff-0310-8789-dd5450dbe970

17 years agoAdd support for extracting existing keys from the KDC with kadmin.local.
Russ Allbery [Mon, 16 Apr 2007 21:35:01 +0000 (21:35 +0000)]
Add support for extracting existing keys from the KDC with kadmin.local.
Adds a -norandkey option to the ktadd command only in kadmin.local, and
adds a new function to the libkadm5srv library that kadmin.local can
call.  There is no protocol or network access to this function.

Ticket: 914

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@19474 dc483132-0cff-0310-8789-dd5450dbe970

17 years agoThe about dialog box did not respond to Alt-F4 because the
Jeffrey Altman [Sun, 15 Apr 2007 14:51:30 +0000 (14:51 +0000)]
The about dialog box did not respond to Alt-F4 because the
WM_CLOSE message was not being processed.

ticket: 5530

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@19473 dc483132-0cff-0310-8789-dd5450dbe970

17 years agoLeave built installers in their temp areas and change final copy step to copy them...
Kevin Koch [Sat, 14 Apr 2007 18:06:26 +0000 (18:06 +0000)]
Leave built installers in their temp areas and change final copy step to copy them into <out> from their new location.  Delay cleaning up the temp areas until after that copy

Target_Version: 1.6.1
Ticket: 5521
Tags: pullup

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@19472 dc483132-0cff-0310-8789-dd5450dbe970

17 years agoAdd resource data windows/version.rc for:
Jeffrey Altman [Sat, 14 Apr 2007 16:38:50 +0000 (16:38 +0000)]
Add resource data windows/version.rc for:
   kinit.exe, klist.exe, kdestroy.exe, kvno.exe
   kdeltkt.exe, kcpytkt.exe, kfwlogon.dll, kfwcpcc.exe
   gss-client.exe, gss-server.exe, kpasswd.exe

Remove resource files: kfwcpcc.rc kfwlogon.rc and use
windows/version.rc in their place

Add resource make rules to Makefile.in files included
in this commit

Add missing _VC_MANIFEST_EMBED_EXE rule to kpasswd/Makefile.in

Comment out addition Windows only make rules with ##WIN32##

ticket: 5529
tags: pullup

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@19471 dc483132-0cff-0310-8789-dd5450dbe970

17 years agoImplement environment variable settings from the config xml file. See notes in bkwco...
Kevin Koch [Fri, 13 Apr 2007 22:29:58 +0000 (22:29 +0000)]
Implement environment variable settings from the config xml file.  See notes in bkwconfig.xml

Target_Version: 1.6.1
Ticket: 5521
Tags: pullup

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@19469 dc483132-0cff-0310-8789-dd5450dbe970

17 years agoAdd vertical scrollbars to realm fields in dialogs
Jeffrey Altman [Fri, 13 Apr 2007 20:42:08 +0000 (20:42 +0000)]
Add vertical scrollbars to realm fields in dialogs

The obtain new credentials dialog and the change password
dialog provide a "Realm" combo-box.  These controls were
not configured to display a vertical scroll bar if there
were more than five realms in the list.

Version number remains 1.2.0.2

ticket: new
component: windows
tags: pullup

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@19468 dc483132-0cff-0310-8789-dd5450dbe970

17 years agoupdate copyrights and team members
Tom Yu [Fri, 13 Apr 2007 20:28:23 +0000 (20:28 +0000)]
update copyrights and team members

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@19467 dc483132-0cff-0310-8789-dd5450dbe970

17 years agoAdd BUILD_KFW=1 & DEBUG_SYMBOL=1 to build.pl invocation.
Kevin Koch [Fri, 13 Apr 2007 18:11:35 +0000 (18:11 +0000)]
Add BUILD_KFW=1 & DEBUG_SYMBOL=1 to build.pl invocation.
Align setting of RELEASE/DEBUG/BETA with release notes.

Target_Version: 1.6.1
Ticket: 5521
Tags: pullup

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@19465 dc483132-0cff-0310-8789-dd5450dbe970

17 years agoTypo
Kevin Koch [Fri, 13 Apr 2007 13:00:30 +0000 (13:00 +0000)]
Typo

Target_Version: 1.6.1
Ticket: 5521
Tags: pullup

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@19464 dc483132-0cff-0310-8789-dd5450dbe970

17 years agoIgnore deltat.output
Ken Raeburn [Fri, 13 Apr 2007 10:18:40 +0000 (10:18 +0000)]
Ignore deltat.output

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@19463 dc483132-0cff-0310-8789-dd5450dbe970

17 years agoRemove redundant check for null pointer
Ken Raeburn [Fri, 13 Apr 2007 09:37:14 +0000 (09:37 +0000)]
Remove redundant check for null pointer

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@19462 dc483132-0cff-0310-8789-dd5450dbe970

17 years agoAdd a few comments on k5_mutex_t handling
Ken Raeburn [Fri, 13 Apr 2007 09:19:04 +0000 (09:19 +0000)]
Add a few comments on k5_mutex_t handling

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@19460 dc483132-0cff-0310-8789-dd5450dbe970

17 years agoupdate copyright
Ken Raeburn [Fri, 13 Apr 2007 08:33:58 +0000 (08:33 +0000)]
update copyright

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@19459 dc483132-0cff-0310-8789-dd5450dbe970

17 years ago sdkfiles.xml - add msi-deployment-guide.txt
Jeffrey Altman [Fri, 13 Apr 2007 07:21:25 +0000 (07:21 +0000)]
 sdkfiles.xml - add msi-deployment-guide.txt

     copyfiles.xml - add msi-deployment-guide.txt
        and do not copy netiddev.chm twice

ticket: 5527

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@19458 dc483132-0cff-0310-8789-dd5450dbe970

17 years agoRevert previous change; krb5int_cm_call_select is used by the KDC, and should
Ken Raeburn [Fri, 13 Apr 2007 07:04:39 +0000 (07:04 +0000)]
Revert previous change; krb5int_cm_call_select is used by the KDC, and should
return when interrupted by a signal.  Instead, check for EINTR in service_fds
and call krb5int_cm_call_select again.

ticket: 5440

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@19457 dc483132-0cff-0310-8789-dd5450dbe970

17 years agoProduce a more informative error message for KDC_UNREACH with KDC not responding
Ken Raeburn [Fri, 13 Apr 2007 05:44:38 +0000 (05:44 +0000)]
Produce a more informative error message for KDC_UNREACH with KDC not responding

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@19456 dc483132-0cff-0310-8789-dd5450dbe970

17 years agoProvide more detailed error message for 'client not found in kdb'
Ken Raeburn [Fri, 13 Apr 2007 05:31:24 +0000 (05:31 +0000)]
Provide more detailed error message for 'client not found in kdb'

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@19455 dc483132-0cff-0310-8789-dd5450dbe970

17 years agokfw build - include netidmgr_userdoc.pdf in zip file
Jeffrey Altman [Fri, 13 Apr 2007 05:20:43 +0000 (05:20 +0000)]
kfw build - include netidmgr_userdoc.pdf in zip file

Include netidmgr_userdoc.pdf in zip file.  The leash_userdoc.pdf
should be pulled from the zip when leash32.exe is removed.

ticket: new
component: windows
tags: pullup

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@19454 dc483132-0cff-0310-8789-dd5450dbe970

17 years agoClean up usage message a little
Ken Raeburn [Fri, 13 Apr 2007 05:13:54 +0000 (05:13 +0000)]
Clean up usage message a little

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@19453 dc483132-0cff-0310-8789-dd5450dbe970

17 years agoIf select returns EINTR, recompute the expiration time and call it again
Ken Raeburn [Fri, 13 Apr 2007 04:22:14 +0000 (04:22 +0000)]
If select returns EINTR, recompute the expiration time and call it again

ticket: 5440
status: open

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@19452 dc483132-0cff-0310-8789-dd5450dbe970

17 years agoOnly copy install/[wix|nsi] areas into install builder temp areas.
Kevin Koch [Fri, 13 Apr 2007 03:00:21 +0000 (03:00 +0000)]
Only copy install/[wix|nsi] areas into install builder temp areas.
Write site-local files to those temp areas.  Now tagged files stay in the staging area and are incorporated into the installers.  The substituted files are only in the installer build temp areas.

Target_Version: 1.6.1
Ticket: 5521
Tags: pullup

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@19451 dc483132-0cff-0310-8789-dd5450dbe970

17 years agoNIM - Fix taskbar button visibility on Vista
Jeffrey Altman [Thu, 12 Apr 2007 21:19:33 +0000 (21:19 +0000)]
NIM - Fix taskbar button visibility on Vista

Although the Platform SDK docs suggest using ITaskbarList to add/remove
a taskbar button on the fly, it doesn't work on Vista.  Instead we will
just set the window style to use WS_EX_APPWINDOW and be done with it.

No change in the NIM version number.

ticket: new
component: windows
tags: pullup

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@19440 dc483132-0cff-0310-8789-dd5450dbe970

17 years agoLocate unixfind correctly in $config, again
Kevin Koch [Thu, 12 Apr 2007 17:28:36 +0000 (17:28 +0000)]
Locate unixfind correctly in $config, again

Target_Version: 1.6.1
Ticket: 5521
Tags: pullup

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@19434 dc483132-0cff-0310-8789-dd5450dbe970

17 years agoLocate unixfind correctly in $config
Kevin Koch [Thu, 12 Apr 2007 16:30:03 +0000 (16:30 +0000)]
Locate unixfind correctly in $config

Target_Version: 1.6.1
Ticket: 5521
Tags: pullup

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@19433 dc483132-0cff-0310-8789-dd5450dbe970

17 years ago[From previous commit]
Kevin Koch [Thu, 12 Apr 2007 16:07:30 +0000 (16:07 +0000)]
[From previous commit]
Make case of username in config.xml and presence test match what's passed to GETOPTS!

Update doc for new config structure in config xml.

For case of username in one more place.

Target_Version: 1.6.1
Ticket: 5521
Tags: pullup

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@19432 dc483132-0cff-0310-8789-dd5450dbe970

17 years agoMake case of username in config.xml and presence test match what's passed to GETOPTS!
Kevin Koch [Thu, 12 Apr 2007 15:48:12 +0000 (15:48 +0000)]
Make case of username in config.xml and presence test match what's passed to GETOPTS!

Update doc for new config structure in config xml.

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@19431 dc483132-0cff-0310-8789-dd5450dbe970

17 years agoKfW build automation:
Kevin Koch [Thu, 12 Apr 2007 14:29:07 +0000 (14:29 +0000)]
KfW build automation:

Consolidate all command line switch info in one section of the config.xml, flatten structure.
Don't prune .../site/... .
Use getopts negate option where possible.
New method of dealing with repository options, driven from config xml.
Adjust code to find switches in new place.

Hardwire default config to bkwconfig.xml.  Makes "bkw.pl" the out-of-the-box command line.
Hardwire unixfind path to C:\tools\cygwin\bin.
Add filver to required programs list.

Update documentation.

Target_Version: 1.6.1
Ticket: 5521
Tags: pullup

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@19430 dc483132-0cff-0310-8789-dd5450dbe970

17 years agoFix some typos and most importantly add Indexing
Jeffrey Altman [Thu, 12 Apr 2007 07:44:55 +0000 (07:44 +0000)]
Fix some typos and most importantly add Indexing

ticket: 5525

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@19429 dc483132-0cff-0310-8789-dd5450dbe970

17 years agoNIM 1.2 HtmlHelp User Documentation
Jeffrey Altman [Thu, 12 Apr 2007 05:32:20 +0000 (05:32 +0000)]
NIM 1.2 HtmlHelp User Documentation

Update all text for NIM 1.2.

Update most screen images.

Convert all images to PNG format from BMP in order to reduce the
size of the files.

Ensure that all pages are accessible via a path beginning at the
welcome.htm page.

ticket: new
component: windows
tags: pullup

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@19428 dc483132-0cff-0310-8789-dd5450dbe970

17 years agoNIM doxyfile.cfg - update to Doxygen 1.5.2
Jeffrey Altman [Thu, 12 Apr 2007 03:45:02 +0000 (03:45 +0000)]
NIM doxyfile.cfg - update to Doxygen 1.5.2

The doxyfile.cfg file was generated using Doxygen 1.2 which is years
old.  There have been significant improvements in the quality of the
Html output since then.  As of this commit, the current version is 1.5.2.

ticket: new
component: windows
tags: pullup

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@19427 dc483132-0cff-0310-8789-dd5450dbe970

17 years agoKFW 3.2 Beta 2 commits
Jeffrey Altman [Thu, 12 Apr 2007 03:40:25 +0000 (03:40 +0000)]
KFW 3.2 Beta 2 commits

NetIDMgr 1.2.0.2
================

nidmgr32.dll

- When the root credential set is touched, trigger an identity
  refresh.  This is necessary to ensure that the identity list
  has a complete state of the world when the identity provider
  attempts to initialize an initial default identity when none
  previously existed.  (see krb5cred.dll section)

- Don't set the enabled state for KHUI_ACTION_DESTROY_CRED and
  KHUI_ACTION_RENEW_CRED actions.  They are set elsewhere.

krb5common.obj

- Initialize variables to prevent uninitialized use.

krb4cred.dll

- Re-order controls and use CheckRadioButton() for manipulating the
  radio buttons which select the ticket acquisition method.

- Use symbolic constants instead of numbers.

- If Kerberos 4 is enabled for a specific identity, then that setting
  takes precedence over the global setting.  The global setting is
  merely a default if a per-identity setting is not specified.
  However, a per-identity setting is only read for the default
  identity.

- If the validity of an identity is not known, assume that it is still
  being checked and don't display any credential text.

- When handling WM_COMMAND messages for the new credentials panel,
  only update the data when a BN_CLICKED message is received and only
  update the display if the IDC_NCK4_OBTAIN checkbox is toggled.

- Remove unused symbols from langres.h

krb5cred.dll

- When renewing an identity which was imported, first try to import it
  again.  If that fails to obtain newer tickets, then try initializing
  the MSLSA cache and then importing again.

- Correct spelling: k5_ident_valiate_name() ->
  k5_ident_validate_name().

- Refactor the code for setting an identity as the default so we can
  call it internally.

- When setting the initial default identity, if there is no current
  default ccache and no known last default identity, then look through
  the list of ccaches with credentials and pick one with valid
  tickets.  If all else fails, then pick any of the ccaches.

netidmgr.exe

- Credentials Window

  - Consistently use KHUI_CW_O_RELIDENT as a necessary and sufficient
    indicator that the identity needs to be released when freeing an
    outline node.

  - Properly initialize an outline node.

  - Don't group similar credentials if we aren't sorting/grouping by
    any specific column.

  - Use the KHUI_CW_O_EMPTY flag to indicate that an outline node
    contains no children.

  - Handle the case where we aren't sorting/grouping by any column.

  - Make sure outline nodes have valid idx_start and idx_end values.

  - Use consistent logic when painting and handling mouse hotspots.

  - Don't use WS_EX_TRANSPARENT when creating the notification window.

  - Use a fixed height for the notification window.

  - Update the outline when the default identity changes.

- Hypertext Window

  - Correctly handle the "center" attribute in the "p" element.

  - Use a system brush for painting the background instead of creating
    one of our own.

  - Correct the handling of scroll_left and scroll_top when
    calculating the coordinates for text.

  - Don't check if the rectangle for the text is inside the visible
    area of the window before drawing.

  - Handle WM_ERASEBKGND and use a system color brush to erase the
    background.

  - When the size changes, force the extents to be recomputed.  This
    will also update the scroll bars.

  - Use the proper return value after handling WM_PAINT.

  - The scrollbar messages send the operation code in the low word of
    wParam, not the high word.

  - Use GetScrollInfo() with SIF_POS when the operation is
    SB_ENDSCROLL or SB_THUMBPOSITION.

  - When the hottracked link changes for a transparent window, don't
    invalidate the entire parent window.  Instead use
    MapWindowPoints() to calculate the affected rectangle and
    invalidate that.

- Misc

  - Change the text of the IDS_NO_CREDS message so that it renders
    better on a small window.

  - Initialize COM when starting the GUI.

  - When showing and hiding the main window and the new credentials
    window, add a button to the task bar.  This allows the user to
    switch focus to the window if it's obstructed.

  - Remove unused symbols from resource.h

- New Credentials Window

  - Ignore the validity state of the identity when showing a password
    change dialog.  We don't expect the identity provider to validate
    the identity when changing the password.

ticket: new
component: windows
tags: pullup

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@19426 dc483132-0cff-0310-8789-dd5450dbe970

17 years agoNIM 3.2 documentation update
Jeffrey Altman [Thu, 12 Apr 2007 02:27:10 +0000 (02:27 +0000)]
NIM 3.2 documentation update

        Replace the notification icon action menu image with the latest
        menu structure.

ticket: new
component: windows
tags: pullup

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@19425 dc483132-0cff-0310-8789-dd5450dbe970

17 years agoMove autoconf.h inclusion before tests for HAVE_UNISTD_H and HAVE_SYS_TIME_H
Ezra Peisach [Wed, 11 Apr 2007 04:31:52 +0000 (04:31 +0000)]
Move autoconf.h inclusion before tests for HAVE_UNISTD_H and HAVE_SYS_TIME_H

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@19423 dc483132-0cff-0310-8789-dd5450dbe970

17 years agoMissed part of last checkin.
Ken Raeburn [Tue, 10 Apr 2007 19:43:50 +0000 (19:43 +0000)]
Missed part of last checkin.
Check for cmsghdr and pktinfo structures.

ticket: 5517

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@19411 dc483132-0cff-0310-8789-dd5450dbe970

17 years agoEAI_NODATA deprecated, not always defined
Ken Raeburn [Mon, 9 Apr 2007 20:58:13 +0000 (20:58 +0000)]
EAI_NODATA deprecated, not always defined

Brian Kantor reports (on the kerberos@mit list today) that krb5-1.6
doesn't build on FreeBSD 6.1 because they've done away with
EAI_NODATA, which was removed from the getaddrinfo API in RFC 3943.

This patch conditionalizes two tests for EAI_NODATA on the macro being
defined, and also adds handling for EAI_OVERFLOW, a new error code
added in RFC 3943.

ticket: new
tags: pullup
target_version: 1.6.1

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@19410 dc483132-0cff-0310-8789-dd5450dbe970

17 years agouse IP(V6)_PKTINFO in KDC for UDP sockets
Ken Raeburn [Sat, 7 Apr 2007 05:15:31 +0000 (05:15 +0000)]
use IP(V6)_PKTINFO in KDC for UDP sockets

As Denis Vlasenko pointed out in ticket 3306, using IP(V6)_PKTINFO to
get or set the local address in UDP communications instead of
allocating one socket for each address seen at startup will behave
better in environments where the addresses may change while the KDC is
running, or in certain unusual network configurations.

The patch from Denis was specific to Linux (didn't do IPV6_PKTINFO if
IP_PKTINFO wasn't defined).  I've reworked it a fair amount, and
tested the results briefly on Mac OS X (which has IPV6_PKTINFO but not
IP_PKTINFO) and Linux (which has both).

With this change, on systems like Linux supporting both socket
options, the KDC should be able to use just two UDP sockets, one for
IPv4 and one for IPv6.  (And if we turned off IPV6_V6ONLY, we might do
with one.)

Filed as a separate ticket, because Denis's complaint and patch in
3306 cover the RPC code as well.

ticket: new

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@19408 dc483132-0cff-0310-8789-dd5450dbe970

17 years agoNIM 1.2.0.1 corrections
Jeffrey Altman [Sat, 7 Apr 2007 01:02:00 +0000 (01:02 +0000)]
NIM 1.2.0.1 corrections

NetIdMgr Version 1.2.0.1

netidmgr.exe:

 - add functionality to implement previously defined "DefaultSticky"
   registry based configuration parameter.  This value is can be added to
   an installer by a transform or pushed by Group Policy.  When set, it
   controls the default setting of the "sticky" flag for new identities.

nidmgr32.dll:

 - fix the version resources: FileVersion, ProductName, and ProductVersion

krb5cred.dll:

 - when importing an identity from the MSLSA, if there has never been a
   default identity, configure the MSLSA identity to be the default.

ticket: new
component: windows
tags: pullup

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@19407 dc483132-0cff-0310-8789-dd5450dbe970

17 years agoKFW NSIS installer - copyright updates and aklog removal
Jeffrey Altman [Sat, 7 Apr 2007 00:33:15 +0000 (00:33 +0000)]
KFW NSIS installer - copyright updates and aklog removal

        Update copyrights to include 2007

        Removal all references to aklog

        Correct generation of Product Version

ticket: new
component: windows
tags: pullup

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@19406 dc483132-0cff-0310-8789-dd5450dbe970

17 years agoAdd some notes on -Bsymbolic on ELF, and why we can't use it
Ken Raeburn [Sat, 7 Apr 2007 00:20:44 +0000 (00:20 +0000)]
Add some notes on -Bsymbolic on ELF, and why we can't use it

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@19405 dc483132-0cff-0310-8789-dd5450dbe970

17 years agowix installer - modify file list
Jeffrey Altman [Fri, 6 Apr 2007 19:56:31 +0000 (19:56 +0000)]
wix installer - modify file list

    for build script changes:

        site-local.nsi -> site-local-tagged.nsi
        site-local.wxi -> site-local-tagged.wxi

    add missing file:

        nsi-includes.nsi

ticket: new
component: windows
tags: pullup

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@19402 dc483132-0cff-0310-8789-dd5450dbe970

17 years agokrb5int_open_plugin_dirs errors out if directory does not exist
Alexandra Ellwood [Thu, 5 Apr 2007 20:33:40 +0000 (20:33 +0000)]
krb5int_open_plugin_dirs errors out if directory does not exist

If one of the directories in the list doesn't exist and no filenames are
passed in because opendir fails and then the code gets an error.  opendir()
failing should not be a fatal error.  The function should just move on to
the next directory.

ticket: new

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@19400 dc483132-0cff-0310-8789-dd5450dbe970

17 years agoservice location plugin returning no addresses handled incorrectly
Ken Raeburn [Thu, 5 Apr 2007 20:22:28 +0000 (20:22 +0000)]
service location plugin returning no addresses handled incorrectly

If a locate plugin (e.g., the Python sample plugin and script, when
given realm BOBO.MIT.EDU) returns no error but no addresses, the library
won't report an error, but will try to make contact, and eventually
crash with a null pointer dereference.

Fix: If a plugin returns a value other than PLUGIN_NO_HANDLE, including
success, continue into the code that checks for an empty address list.

ticket: new

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@19399 dc483132-0cff-0310-8789-dd5450dbe970

17 years agoMITKRB5-SA-2007-001: telnetd allows login as arbitrary user
Tom Yu [Tue, 3 Apr 2007 21:27:25 +0000 (21:27 +0000)]
MITKRB5-SA-2007-001: telnetd allows login as arbitrary user

Fix MITKRB5-SA-2007-001:

* src/appl/telnet/telnetd/sys_term.c (start_login): Add "--"
argument preceding username, in addition to the original patch.
Explicitly check for leading hyphen in username.

* src/appl/telnet/telnetd/state.c (envvarok): Check for leading
hyphen in environment variables.  On advice from Shawn Emery, not
using strchr() as in the original patch.

ticket: new
tags: pullup
target_version: 1.6.1

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@19396 dc483132-0cff-0310-8789-dd5450dbe970

17 years agoMITKRB5-SA-2007-002: buffer overflow in krb5_klog_syslog
Tom Yu [Tue, 3 Apr 2007 19:23:52 +0000 (19:23 +0000)]
MITKRB5-SA-2007-002: buffer overflow in krb5_klog_syslog

Fix MITKRB5-SA-2007-002: buffer overflow in krb5_klog_syslog.

* src/lib/krb5/krb/get_in_tkt.c (krb5_klog_syslog): Use vsnprintf
if available.

Everything else: use precision fields on "%s" specifiers to truncate
logged strings, in case someone doesn't have vsnprintf.

ticket: new
target_version: 1.6.1
tags: pullup

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@19395 dc483132-0cff-0310-8789-dd5450dbe970

17 years agoCorrect usage to track implementation
Kevin Koch [Tue, 3 Apr 2007 03:04:52 +0000 (03:04 +0000)]
Correct usage to track implementation

Split repository action into two parts; setting kerveros.ver variables goes in the middle, no longer conditioned on repository access.  This ensures that all substitution variables set correctly, even when the repository action is SKIP.

Avoid 'file not found' msg when deleting temp file.

BETA version not marked as RELEASE.

Create installer sandboxes from the staging area.  Build there and copy results back to staging area.  NSI build no longer picks up WIX build products.

Target_Version: 1.6.1
Ticket: 5490
Tags: pullup

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@19394 dc483132-0cff-0310-8789-dd5450dbe970

17 years agoAdd svnbranch; change internal names to svntag and svnbranch. Implement cvs tags...
Kevin Koch [Mon, 2 Apr 2007 21:03:36 +0000 (21:03 +0000)]
Add svnbranch; change internal names to svntag and svnbranch.  Implement cvs tags and svn tags and branches.

Move reading of kerberos.ver to after files are fetched.

Target_Version: 1.6.1
Ticket: 5490
Tags: pullup

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@19389 dc483132-0cff-0310-8789-dd5450dbe970

17 years agoMore commits for NIM 1.2 Beta 1
Jeffrey Altman [Mon, 2 Apr 2007 17:49:08 +0000 (17:49 +0000)]
More commits for NIM 1.2 Beta 1

netidmgr.exe

- Credentials display :

  - When picking out the mouse hit rectangles, correctly handle the
    case where a sticky identity doesn't have any outline controls.

  - Move code to check and uncheck view layout action to
    cw_load_view() for consistency.

  - Initialize outlines properly when creating them.

  - cw_select_row_creds() should be called on all rows that are being
    selected or unselected.

- Actions :

  - Remove the 'Contents' item from the 'Help' menu.  The
    KHUI_ACTION_HELP_CTX action already opens the 'Contents' section.

  - Add 'Change password', 'Import', 'Help contents', and 'About' to
    the notification icon context menu.

  - Move the 'Import' action to be between 'Renew' and 'Destroy' for
    consistency.

- Resources :

  - "Run Network Identity Manager in System Tray" -> "Run from taskbar
    notification area"

  - "New Credentials" -> "Obtain new credentials"

- Main window :

  - Don't switch the window mode when handling a
    KHUI_ACTION_LAYOUT_RELOAD.

  - Refresh the action tables after changing the window state actions.

- Main Menu :

  - Call khm_refresh_identity_menus() when initializing the menus so
    that they have a consistent initial state.

  - When refreshing menus, the checked/unchecked state needs to be set
    explicitly by turning off flags that are no longer necessary.

  - Refresh the identities before refreshing the identity menus.

  - If there are no identities with credentials, disable renew/destroy
    menus and actions.

  - Don't bother adding 'renew/destroy all' menu items to the
    per-identity action menus if there is only one identity.

krb5cred.dll

- Resources :

  - Expand the 'Credential flags' control so that it's big enough to
    hold the contents.

source

- ccsv.pl :

  - Handle comment lines before the actual content.

- csvschema.cfg :

  - Don't bother embedding documentation in the data strucutre now.
    We don't use it.

  - Convert '[~]' to '\0' before we send it back to the parser.

ticket: new
component: windows
tags: pullup

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@19376 dc483132-0cff-0310-8789-dd5450dbe970

17 years agoUncomment w2k files in corebinaries.xml
Kevin Koch [Mon, 2 Apr 2007 16:13:58 +0000 (16:13 +0000)]
Uncomment w2k files in corebinaries.xml

Factor processing of <Prunes> xml into pruneFiles.pl.

Factor processing of <Zips> xml into zipXML.pl.

Move SRC zip XML to <FetchSources> section of config file.

Call zipXML in /REPOSITORY CHECKOUT section of script.

Keep track of cleaning of OUTDIR so SRC zip isn't removed during packaging.

Remove UNIXFIND from config file.  If UNIXFIND isn't present in the config file, set the in-memory UNIXFIND to c:\tools\cygwin\bin.  UNIXFIND is now an implementation detail stored in the in-memory config XML, like the versions read from kerberos.ver.

Prune more temporary files before making SDK zip.

Remove redundant custom files from sdkfiles.xml.  Copy *.* from staging/inc instead of *.h -- one .c file is also required.

Target_Version: 1.6.1
Ticket: 5490
Tags: pullup

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@19375 dc483132-0cff-0310-8789-dd5450dbe970

17 years agoCorrect some poor grammar in the opening paragraph of the
Jeffrey Altman [Mon, 2 Apr 2007 13:22:03 +0000 (13:22 +0000)]
Correct some poor grammar in the opening paragraph of the
what is NIM section.

ticket: 5504

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@19374 dc483132-0cff-0310-8789-dd5450dbe970

17 years agoNetwork Identity Manager 1.2 User Manual
Jeffrey Altman [Mon, 2 Apr 2007 02:58:13 +0000 (02:58 +0000)]
Network Identity Manager 1.2 User Manual

The NIM 1.2 User Manual includes a completely re-written
introduction to what is NIM as well as new text describing
the new default "basic" view mode and the revised "new credentials"
dialog.  Updates to the menu structures, the toolbar, and
the modifications to the options pages are all provided.

All images have been updated with the new color scheme.
Image shots were taken on XP SP2 with the Silver XP Theme.

ticket: new
component: windows
tags: pullup

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@19373 dc483132-0cff-0310-8789-dd5450dbe970

17 years agomsi deployment guide updates for KFW 3.2
Jeffrey Altman [Sun, 1 Apr 2007 22:41:18 +0000 (22:41 +0000)]
msi deployment guide updates for KFW 3.2

        Update the registry value lists for KFW 3.2

ticket: new
component: windows
tags: pullup

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@19372 dc483132-0cff-0310-8789-dd5450dbe970

17 years agoBe smarter about cleaning the staging area.
Kevin Koch [Sun, 1 Apr 2007 18:42:18 +0000 (18:42 +0000)]
Be smarter about cleaning the staging area.
Clean output area if packaging.  (Will not clean if -nopackage specified.)

Pull corebinaries from staging area instead of from target area.

Don't sign before making zips.  Build products are only signed in the staging area before any packaging is done.  (Packaging products are signed when copied to the output area.)

Previous change: Add relnotes.html to output area.

Target_Version: 1.6.1
Ticket: 5490
Tags: pullup

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@19371 dc483132-0cff-0310-8789-dd5450dbe970

17 years agoCorrect directory structure in zip files
Kevin Koch [Sun, 1 Apr 2007 03:28:07 +0000 (03:28 +0000)]
Correct directory structure in zip files

Make main config file match today's usage & implementation wrt /sign.

Clean staging area before using it.
Just clean output area instead of removing it.
Clean ziptemp area after each zip.

Target_Version: 1.6.1
Ticket: 5490
Tags: pullup

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@19370 dc483132-0cff-0310-8789-dd5450dbe970

17 years agoEliminate getopt abbreviation for vverbose, which collided with the shortcut for...
Kevin Koch [Sat, 31 Mar 2007 23:20:00 +0000 (23:20 +0000)]
Eliminate getopt abbreviation for vverbose, which collided with the shortcut for verbose

Target_Version: 1.6.1
Ticket: 5490
Tags: pullup

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@19369 dc483132-0cff-0310-8789-dd5450dbe970

17 years agoAdd signing in staging area before building installers
Kevin Koch [Sat, 31 Mar 2007 22:31:33 +0000 (22:31 +0000)]
Add signing in staging area before building installers

Target_Version: 1.6.1
Ticket: 5490
Tags: pullup

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@19368 dc483132-0cff-0310-8789-dd5450dbe970

17 years agoMake /OUTDIR absolute instead of relative
Kevin Koch [Sat, 31 Mar 2007 22:09:23 +0000 (22:09 +0000)]
Make /OUTDIR absolute instead of relative

Target_Version: 1.6.1
Ticket: 5490
Tags: pullup

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@19367 dc483132-0cff-0310-8789-dd5450dbe970

17 years agoPruning no longer required before make
Kevin Koch [Sat, 31 Mar 2007 03:33:23 +0000 (03:33 +0000)]
Pruning no longer required before make

Target_Version: 1.6.1
Ticket: 5490
Tags: pullup

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@19366 dc483132-0cff-0310-8789-dd5450dbe970