krb5.git
18 years ago * install NetIDMgr plug-in sample as part of SDK
Jeffrey Altman [Wed, 23 Aug 2006 02:28:05 +0000 (02:28 +0000)]
* install NetIDMgr plug-in sample as part of SDK
* install netidmgr.exe (win2000 version)

ticket: 4172

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

18 years ago * newcredwnd.c - erase the password field on error
Jeffrey Altman [Wed, 23 Aug 2006 02:18:00 +0000 (02:18 +0000)]
* newcredwnd.c - erase the password field on error
          during new credential acquisition

ticket: 4172

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

18 years ago * Fix auto-registration of plug-in modules
Jeffrey Altman [Wed, 23 Aug 2006 02:17:12 +0000 (02:17 +0000)]
* Fix auto-registration of plug-in modules
     if there is no plug-in list specified

ticket: 4172

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

18 years ago * Makefile - do not etag the Win2000 version of
Jeffrey Altman [Wed, 23 Aug 2006 02:15:52 +0000 (02:15 +0000)]
* Makefile - do not etag the Win2000 version of
          the NetIDMgr.exe

ticket: 4172

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

18 years agoimprovements to netidmgr dialogs
Jeffrey Altman [Tue, 22 Aug 2006 22:12:15 +0000 (22:12 +0000)]
improvements to netidmgr dialogs

   * ensure that buttons are disabled while
          actions are in process

   * allow plug-ins to specify italic text

   * fix some documentation

* reformat langres.rc

ticket: new

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

18 years agoclean up mkrel patchlevel.h editing etc
Tom Yu [Mon, 21 Aug 2006 20:31:51 +0000 (20:31 +0000)]
clean up mkrel patchlevel.h editing etc

* src/util/mkrel: Be more careful editing KRB5_RELDATE.  Delete
'$ac_config_fragdir' autoconf droppings.

ticket: new
tags: pullup
target_version: 1.5.1

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

18 years agoNetIDMgr Credential Provider Sample Code and Documentation
Jeffrey Altman [Thu, 17 Aug 2006 01:21:00 +0000 (01:21 +0000)]
NetIDMgr Credential Provider Sample Code and Documentation

   This commit provides a template for a Network Identity Manager
   Credential Provider.  It doesn't provide any real functionality
   but it does provide all of the functions that need to be specified
   and filled in as part of the process of producing a NetIdMgr plug-in.

   This code should be pulled up to 1.4.x for inclusion in the KFW 3.1
   SDK as well as to 1.5.x.

ticket: new
tags: pullup

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

18 years agocc_err_xlate: Updated error mappings to generate the same errors as ccapiv2.
Alexandra Ellwood [Wed, 16 Aug 2006 21:01:43 +0000 (21:01 +0000)]
cc_err_xlate: Updated error mappings to generate the same errors as ccapiv2.
stdccv3_setup: Don't translate errors since cc_err_xlate isn't idempotent.
krb5_stdccv3_resolve: Don't fail if we can't open the ccache.

ticket: 3936
status: open

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

18 years ago* kdb5_ldap_realm.c (kdb5_ldap_create): In assertion test of hardcoded char
Ken Raeburn [Tue, 15 Aug 2006 23:45:54 +0000 (23:45 +0000)]
* kdb5_ldap_realm.c (kdb5_ldap_create): In assertion test of hardcoded char
array sizes, test against the size we actually need.

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

18 years ago* kdb_default.c (krb5_def_store_mkey): If the file can't be opened, construct
Ken Raeburn [Tue, 15 Aug 2006 23:43:27 +0000 (23:43 +0000)]
* kdb_default.c (krb5_def_store_mkey): If the file can't be opened, construct
an error message that includes the file's name.

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

18 years agoSet datarootdir in each Makefile to make Autoconf 2.60 happier
Russ Allbery [Tue, 15 Aug 2006 22:49:57 +0000 (22:49 +0000)]
Set datarootdir in each Makefile to make Autoconf 2.60 happier

Ticket: 3965
Component: krb5-build
Version_Reported: 1.5
Tags: pullup
Target_Version: 1.5.1

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

18 years agoDocument prerequisites for make check
Russ Allbery [Tue, 15 Aug 2006 22:27:17 +0000 (22:27 +0000)]
Document prerequisites for make check

Document the prerequisites for running make check, since some of them are
a bit surprising.

Ticket: new
Component: krb5-doc
Tags: pullup
Version_Reported: 1.5
Target_Version: 1.5.1

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

18 years ago * src/clients/ksu/main.c (sweep_up): Don't check return value of
Tom Yu [Tue, 15 Aug 2006 19:27:08 +0000 (19:27 +0000)]
* src/clients/ksu/main.c (sweep_up): Don't check return value of
krb5_seteuid(0), as it is not harmful for it to fail, and it will
fail after setuid(target_user).  Correct error message.

ticket: 4137

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

18 years agofix MITKRB5-SA-2006-001: multiple local privilege escalation vulnerabilities
Tom Yu [Tue, 8 Aug 2006 19:26:40 +0000 (19:26 +0000)]
fix MITKRB5-SA-2006-001: multiple local privilege escalation vulnerabilities

* src/appl/gssftp/ftpd/ftpd.c (getdatasock, passive):
* src/appl/bsd/v4rcp.c (main):
* src/appl/bsd/krcp.c (main):
* src/appl/bsd/krshd.c (doit):
* src/appl/bsd/login.c (main):
* src/clients/ksu/main.c (sweep_up):
* src/lib/krb4/kuserok.c (kuserok): Check return values from
setuid() and related functions to avoid privilege escalation
vulnerabilities.  Fixes MITKRB5-SA-2006-001. [CVE-2006-3083,
VU#580124, CVE-2006-3084, VU#401660]

ticket: new
target_version: 1.5.1
tags: pullup

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

18 years ago * src/lib/gssapi/mechglue/mglueP.h: Add loopback field to opaque
Tom Yu [Mon, 7 Aug 2006 23:33:39 +0000 (23:33 +0000)]
* src/lib/gssapi/mechglue/mglueP.h: Add loopback field to opaque
structs of gss_ctx_id_t, gss_name_t, gss_cred_id_t to catch some
application programming errors.  Add new macro GSSINT_CHK_LOOP()
which returns non-zero if loopback field doesn't point to itself.

* src/lib/gssapi/mechglue/g_accept_sec_context.c
(gss_accept_sec_context):
* src/lib/gssapi/mechglue/g_acquire_cred.c (gss_add_cred)
(gss_acquire_cred):
* src/lib/gssapi/mechglue/g_delete_sec_context.c
(gss_delete_sec_context):
* src/lib/gssapi/mechglue/g_glue.c
(gssint_convert_name_to_union_name):
* src/lib/gssapi/mechglue/g_imp_name.c (gss_import_name):
* src/lib/gssapi/mechglue/g_imp_sec_context.c
(gss_import_sec_context):
* src/lib/gssapi/mechglue/g_init_sec_context.c
(gss_init_sec_context): Set loopback pointers.

* src/lib/gssapi/mechglue/g_delete_sec_context.c
(gss_delete_sec_context):
* src/lib/gssapi/mechglue/g_rel_cred.c (gss_release_cred):
* src/lib/gssapi/mechglue/g_rel_name.c (gss_release_name): Call
GSSINT_CHK_LOOP() to validate loopback pointer.

ticket: 4063
tags: pullup

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

18 years agoApply patch from Michael Calmer to fix some uninitialized variables
Tom Yu [Wed, 2 Aug 2006 20:51:50 +0000 (20:51 +0000)]
Apply patch from Michael Calmer to fix some uninitialized variables

* src/appl/gssftp/ftpd/ftpd.c (auth_data): Initialize stat_maj,
accept_maj, acquire_maj.

* src/appl/telnet/libtelnet/kerberos5.c (kerberos5_send):
Intialize rdata.

* src/kdc/do_tgs_req.c (process_tgs_req): Initialize magic and
tr_contents.magic.

* src/lib/krb5/asn.1/krb5_decode.c (decode_krb5_safe_with_body):
Initialize tmpbody.magic.

* src/plugins/kdb/db2/libdb2/hash/dbm.c (kdb2_fetch)
(kdb2_firstkey, kdb2_nextkey): Initialize dsize.

ticket: 3904
tags: pullup

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

18 years ago * src/lib/gssapi/mechglue/g_initialize.c (gss_release_oid): Call
Tom Yu [Tue, 1 Aug 2006 21:09:43 +0000 (21:09 +0000)]
* src/lib/gssapi/mechglue/g_initialize.c (gss_release_oid): Call
gssint_initialize_library to ensure mutex is initialized.

ticket: 4088
status: open

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

18 years agoChanged GSSAPI opaque types (gss_name_t, gss_cred_id_t, gss_ctx_id_t) from
Alexandra Ellwood [Tue, 25 Jul 2006 20:29:43 +0000 (20:29 +0000)]
Changed GSSAPI opaque types (gss_name_t, gss_cred_id_t, gss_ctx_id_t) from
void* to pointers to opaque structs.  This change removed some casts and
introduced or changed a bunch of other casts to suppress warnings.

krb5_gss_accept_sec_context(): Fixed a bug found by the above changes
where krb5_gss_release_cred() was being called with the wrong argument 2
(gss_cred_id_t instead of gss_cred_id_t*).

ticket: 4057
status: open

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

18 years agogss_canonicalize_name(): Added parens to remove
Alexandra Ellwood [Tue, 25 Jul 2006 18:51:54 +0000 (18:51 +0000)]
gss_canonicalize_name(): Added parens to remove
warning from if statement.

ticket: new

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

18 years agoRemoved unused Metrowerks compiler support.
Alexandra Ellwood [Tue, 25 Jul 2006 17:58:25 +0000 (17:58 +0000)]
Removed unused Metrowerks compiler support.
(Since there's no universal binary support for CodeWarrior there's
no point in having this here.)

ticket: new

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

18 years agoSwitched from "#pragma options align" to "#pragma pack".
Alexandra Ellwood [Tue, 25 Jul 2006 17:56:18 +0000 (17:56 +0000)]
Switched from "#pragma options align" to "#pragma pack".
Removed Metrowerks "#pragma import" since other framework
headers don't specify it.

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

18 years agoWindows - fix kfwlogon for Windows 2000
Jeffrey Altman [Tue, 25 Jul 2006 13:59:30 +0000 (13:59 +0000)]
Windows - fix kfwlogon for Windows 2000

    Windows 2000 does not support the ability to generate SIDs
    from symbolic names.

    Add more debugging and error condition checks.

ticket: new
tags: pullup

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

18 years ago commit again without using patch to apply the diff
Jeffrey Altman [Mon, 24 Jul 2006 20:39:31 +0000 (20:39 +0000)]
commit again without using patch to apply the diff

ticket: 4048

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

18 years ago undo previous commit due to EOL issues
Jeffrey Altman [Mon, 24 Jul 2006 20:37:36 +0000 (20:37 +0000)]
  undo previous commit due to EOL issues

ticket: 4048

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

18 years agoSwitched from "#pragma options align" to "#pragma pack".
Alexandra Ellwood [Mon, 24 Jul 2006 19:27:04 +0000 (19:27 +0000)]
Switched from "#pragma options align" to "#pragma pack".
Removed Metrowerks "#pragma import" since other framework
headers don't specify it.

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

18 years agoWindows Integrated Login Fixes for KFW 3.1
Jeffrey Altman [Mon, 24 Jul 2006 06:58:23 +0000 (06:58 +0000)]
Windows Integrated Login Fixes for KFW 3.1

    KFW integrated login was failing when the user is
    not a power user or administrator.  This was occurring
    because the temporary file ccache was being created in
    a directory the user could not read.  While fixing this
    it was noticed that the ACLs on the ccache were too broad.
    Instead of applying a fix to the FILE: krb5_ccache
    implementation it was decided that simply applying a new
    set of ACLs (SYSTEM and "user" with no inheritance) to
    the file immediately after the krb5_cc_initialize() call
    would close the broadest security issues.

    The file is initially created in the SYSTEM %TEMP% directory
    with "SYSTEM" ACL only.  Then it is moved to the user's %TEMP%
    directory with "SYSTEM" and "user" ACLs.  Finally, after
    copying the credentials to the API: ccache, the file is deleted.

ticket: new
tags: pullup
component: windows

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

18 years ago* aclocal.m4 (KRB5_LIB_AUX): Disallow --enable-profiled and --disable-shared
Ken Raeburn [Fri, 21 Jul 2006 19:03:02 +0000 (19:03 +0000)]
* aclocal.m4 (KRB5_LIB_AUX): Disallow --enable-profiled and --disable-shared
options as well.  Don't generate help messages for these options.

ticket: 4036

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

18 years ago* ldap_service_stash.c (krb5_ldap_readpassword): Don't require strerror_r, fall
Ken Raeburn [Fri, 21 Jul 2006 18:29:25 +0000 (18:29 +0000)]
* ldap_service_stash.c (krb5_ldap_readpassword): Don't require strerror_r, fall
back to strerror if needed.

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

18 years agorespect LDFLAGS in NetBSD build
Ken Raeburn [Fri, 21 Jul 2006 17:49:07 +0000 (17:49 +0000)]
respect LDFLAGS in NetBSD build

An LDFLAGS setting at configure time is ignored in parts of the build.

* shlib.conf (*-*-netbsd*): Use $(CC) for LDCOMBINE, and include $(LDFLAGS).

ticket: new
target: 1.5.1
tags: pullup

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

18 years agoreject configure option for static libraries
Ken Raeburn [Fri, 21 Jul 2006 17:41:43 +0000 (17:41 +0000)]
reject configure option for static libraries

We shouldn't accept --enable-static at configure time when we know
it's not going to work at build time.

* aclocal.m4 (KRB5_LIB_AUX): Error out if --enable-static.

ticket: new
target_version: 1.5.1
tags: pullup

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

18 years agoWindows - kfw 3.1 msi deployment guide updates
Jeffrey Altman [Fri, 21 Jul 2006 13:48:37 +0000 (13:48 +0000)]
Windows - kfw 3.1 msi deployment guide updates

documentation updates for the kfw 3.1 msi deployment guide.

ticket: new

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

18 years agoWindows NetIDMgr documentation
Jeffrey Altman [Fri, 21 Jul 2006 03:12:00 +0000 (03:12 +0000)]
Windows NetIDMgr documentation

NetIDMgr 1.1 documentation for KFW 3.1 release

ticket: new

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

18 years agoWindows NetIDMgr post-1.5 branch commits
Jeffrey Altman [Wed, 19 Jul 2006 22:36:00 +0000 (22:36 +0000)]
Windows NetIDMgr post-1.5 branch commits

The following patch updates the NetIDMgr:

 * allow plug-ins to be marked "do not unload" in order
   to support DLLs that create threads that are not
   properly cleaned up as part of library unload.

 * allow plug-ins to be marked "disabled"

 * Additional changes to deal with Microsoft's efforts
   to deprecate all of the str C runtime functions.

 * Improvements to Manifest processing in the build
   system

 * Addition of Tooltip support to the Toolbar.  Dragging
   the mouse over toolbar buttons displays textual
   descriptions.

 * Correct the behavior of the New Credentials Dialog
   to disable the "Ok" button after it has been pressed.

 * Add support to allow plugin configuration data to
   be distributed as part of transforms to the MSI
   installer.

ticket: new

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

18 years agoacquire_cred(), kg_caller_provided_ccache_name(): On further reflection
Alexandra Ellwood [Wed, 19 Jul 2006 18:14:01 +0000 (18:14 +0000)]
acquire_cred(), kg_caller_provided_ccache_name(): On further reflection
and testing the correct thing appears to be to have gss_krb5_ccache_name()
stop gss_acquire_cred() from searching for the desired name in the cache
collection.  If the caller sets the ccache name then gss_acquire_cred will only
look in that ccache.  Added kg_caller_provided_ccache_name() to tell whether
or not the caller has actually set the ccache.  This should fix the problem for
both Mac OS X and Windows.

ticket: 4024

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

18 years agoneed to look harder for tclConfig.sh
Ken Raeburn [Wed, 19 Jul 2006 16:14:57 +0000 (16:14 +0000)]
need to look harder for tclConfig.sh

Our current scheme doesn't find tclConfig.sh as installed by NetBSD's
pkg system, even if it finds tclsh and gets the library pathname from
it.  The problem is that tclConfig.sh is one directory up.

* aclocal.m4 (AC_KRB5_TCL_FIND_CONFIG): Check $tcl_dir/.. for tclConfig.sh.

ticket: new

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

18 years agoacquire_cred(): Realized that my previous patch now basically favors the
Alexandra Ellwood [Wed, 19 Jul 2006 02:28:24 +0000 (02:28 +0000)]
acquire_cred(): Realized that my previous patch now basically favors the
ccache over the desired name.  Added a KLL function to search for the
desired name, favoring the default ccache.

ticket: 4024
status: open

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

18 years agoacquire_cred(): Fixed KLL support to try the default ccache first if
Alexandra Ellwood [Tue, 18 Jul 2006 20:11:39 +0000 (20:11 +0000)]
acquire_cred(): Fixed KLL support to try the default ccache first if
it is set.

ticket: 4024
status: open

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

18 years agokadmin_startup(): Turn off KLL automatic prompting support in kadmin
Alexandra Ellwood [Tue, 18 Jul 2006 20:03:10 +0000 (20:03 +0000)]
kadmin_startup(): Turn off KLL automatic prompting support in kadmin

ticket: 4023

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

18 years agoProject cleanup:
Alexandra Ellwood [Tue, 18 Jul 2006 19:51:37 +0000 (19:51 +0000)]
Project cleanup:
Removed kipc APIs and deleted files.

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

18 years agoauthgss_refresh(): Use GSS_C_NO_CHANNEL_BINDINGS macro
Alexandra Ellwood [Tue, 18 Jul 2006 19:43:52 +0000 (19:43 +0000)]
authgss_refresh(): Use GSS_C_NO_CHANNEL_BINDINGS macro
instead of NULL with gss_init_sec_context to increase readbility.

ticket: new

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

18 years agoWindows: NSIS updates for 2.18 release
Jeffrey Altman [Tue, 18 Jul 2006 19:29:32 +0000 (19:29 +0000)]
Windows: NSIS updates for 2.18 release

This commit corrects errors in the NSIS installer scripts
that prevent installer builds using NSIS 2.18.

ticket: new

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

18 years agoWindows: Wix 2.0.4221 updates
Jeffrey Altman [Tue, 18 Jul 2006 19:24:23 +0000 (19:24 +0000)]
Windows: Wix 2.0.4221 updates

This commit corrects errors in the Wix installer script
files that violate the Wix schema but which were not
caught by earlier releases of the Wix 2.0 installer.

ticket: new

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

18 years agoMerge remaining changes from LDAP integration branch
Ken Raeburn [Tue, 18 Jul 2006 00:40:19 +0000 (00:40 +0000)]
Merge remaining changes from LDAP integration branch
svn+ssh://svn.mit.edu/krb5/branches/ldap-integ@18333.

* plugins/kdb/ldap: New directory.

* aclocal.m4 (WITH_LDAP): New macro.
(CONFIG_RULES): Invoke it.
* configure.in: Test ldap option, maybe configure and generate makefiles for
new directories, and set and substitute ldap_plugin_dir.
* Makefile.in (SUBDIRS): Add @ldap_plugin_dir@.

* kdc/krb5kdc.M, kadmin/server/kadmind.M, kadmin/cli/kadmin.M,
config-files/krb5.conf.M: Document LDAP changes (new options, config file
entries, etc).

* lib/kdb/kdb5.c (kdb_load_library): Put more info in error message.

* lib/kadm5/admin.h (KADM5_CPW_FUNCTION, KADM5_RANDKEY_USED,
KADM5_CONFIG_PASSWD_SERVER): New macros, disabled for now.
(struct _kadm5_config_params): New field kpasswd_server, commented out for now.
* lib/krb5/error_tables/kdb5_err.et: Add error codes KRB5_KDB_ACCESS_ERROR,
KRB5_KDB_INTERNAL_ERROR, KRB5_KDB_CONSTRAINT_VIOLATION.

ticket: 2935

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

18 years agomake depend
Ken Raeburn [Mon, 17 Jul 2006 19:25:02 +0000 (19:25 +0000)]
make depend

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

18 years ago(KRB5_AC_FIND_DLOPEN): Use AC_SEARCH_LIBS
Ken Raeburn [Mon, 17 Jul 2006 17:55:54 +0000 (17:55 +0000)]
(KRB5_AC_FIND_DLOPEN): Use AC_SEARCH_LIBS

ticket: 3971
target_version: 1.5.1
tags: pullup

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

18 years agoreverse test for copy_oid_set in lib/gssapi/krb5/indicate_mechs.c
Tom Yu [Mon, 17 Jul 2006 16:39:35 +0000 (16:39 +0000)]
reverse test for copy_oid_set in lib/gssapi/krb5/indicate_mechs.c

* src/lib/gssapi/krb5/indicate_mechs.c: Reverse sense of test,
since gssint_copy_oid_set() returns 0 on success.

ticket: new
target_version: 1.5.1
tags: pullup

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

18 years ago stdcc.c: fix v2 version of krb5_stdcc_resolve()
Jeffrey Altman [Mon, 17 Jul 2006 15:44:24 +0000 (15:44 +0000)]
  stdcc.c: fix v2 version of krb5_stdcc_resolve()
      cc_open() returning CC_NOEXIST should not be
      considered fatal.

ticket: 3961

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

18 years agoDocument add_entry in ktutil man page
Russ Allbery [Wed, 12 Jul 2006 22:17:34 +0000 (22:17 +0000)]
Document add_entry in ktutil man page

Apply patch from Mike Dopheide to document ktutil add_entry in the man
page and fix some other spelling errors in the ktutil man page.

Ticket: new
Version_Reported: 1.3.6
Target_Version: 1.5.2
Tags: pullup

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

18 years agoCleaned up CCAPI v3 code to remove memory leaks. Fixed crashes in
Alexandra Ellwood [Tue, 11 Jul 2006 17:28:07 +0000 (17:28 +0000)]
Cleaned up CCAPI v3 code to remove memory leaks.  Fixed crashes in
cc_ccache <-> krb5_ccache translation code.  Still testing edge cases but
the code seems to work now with the KfM CCAPI implementation.

ticket: 3936
status: open

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

18 years agoFixed up warnings and whitespace issues which were confusing the
Alexandra Ellwood [Mon, 10 Jul 2006 18:52:37 +0000 (18:52 +0000)]
Fixed up warnings and whitespace issues which were confusing the
Xcode auto-indenter.

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

18 years agoFixed up warnings and converted to Unix line endings
Alexandra Ellwood [Mon, 10 Jul 2006 18:51:23 +0000 (18:51 +0000)]
Fixed up warnings and converted to Unix line endings

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

18 years agoRemoved user preferences which were accidentally added
Alexandra Ellwood [Mon, 10 Jul 2006 18:34:19 +0000 (18:34 +0000)]
Removed user preferences which were accidentally added

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

18 years agoGetModuleHandle needs extension on Win64
Jeffrey Altman [Mon, 3 Jul 2006 05:23:16 +0000 (05:23 +0000)]
GetModuleHandle needs extension on Win64

  cc_mslsa.c:  some versions of Win64 require the extension
    to be specified as part of the parameter to GetModuleHandle()
    in order to find a match.

ticket: new

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

18 years agowork around failure to load into nonexistent db
Tom Yu [Sat, 1 Jul 2006 01:50:37 +0000 (01:50 +0000)]
work around failure to load into nonexistent db

* src/tests/Makefile.in (kdb_check): Run kdb5_util create after
destroying to work around a behavior change from DAL integration.

ticket: new
target_version: 1.5
tags: pullup
version_reported: 1.5
component: test

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

18 years agomake gss_unwrap match prototype
Tom Yu [Sat, 1 Jul 2006 01:18:53 +0000 (01:18 +0000)]
make gss_unwrap match prototype

* src/lib/gssapi/mechglue/g_unseal.c (gss_unwrap): Make match
prototype.

ticket: new
tags: pullup
target_version: 1.5
version_reported: 1.5
component: krb5-libs

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

18 years agotest kdb5_util dump/load functionality in dejagnu
Ken Raeburn [Fri, 30 Jun 2006 23:22:32 +0000 (23:22 +0000)]
test kdb5_util dump/load functionality in dejagnu

This new test just dumps and reloads the database.  It doesn't examine
the resulting database, but kinit and other tests are run after it,
using the reloaded database.

* standalone.exp (dump_and_reload): New proc.
(doit): Invoke it.

ticket: new
target_version: 1.5
tags: pullup

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

18 years agocopyright dates
Ken Raeburn [Fri, 30 Jun 2006 21:39:36 +0000 (21:39 +0000)]
copyright dates

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

18 years ago* dump.c (load_db): Call krb5_db_promote instead of krb5_db_fini
Ken Raeburn [Fri, 30 Jun 2006 21:07:25 +0000 (21:07 +0000)]
* dump.c (load_db): Call krb5_db_promote instead of krb5_db_fini

ticket: 3964
status: open

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

18 years ago* kdb_db2.c: Don't include kdb_compat.h.
Ken Raeburn [Fri, 30 Jun 2006 21:05:21 +0000 (21:05 +0000)]
* kdb_db2.c: Don't include kdb_compat.h.
(OLD_COMPAT_VERSION_1): Don't define.
(krb5_db2_db_create): For temporary db, use different names for all files.
(krb5_db2_open, krb5_db2_create, krb5_db2_destroy): Fix check for "temporary"
in supplied db_args.
(krb5_db2_db_rename): New function, restored from pre-DAL code and hacked up
a lot to mostly work.
(krb5_db2_promote_db): New function.
* db2_exp.c: Add promote_db entry.

ticket: 3964
status: open

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

18 years ago* kdb_default.c (krb5_def_promote_db): New function.
Ken Raeburn [Fri, 30 Jun 2006 20:18:39 +0000 (20:18 +0000)]
* kdb_default.c (krb5_def_promote_db): New function.
* kdb5.c (kdb_setup_opt_functions): Use it if promote_db is null.

* libkdb5.exports: Export krb5_db_promote.

ticket: 3964
status: open

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

18 years ago* kdb.h (krb5_def_promote_db): Declare
Ken Raeburn [Fri, 30 Jun 2006 20:17:04 +0000 (20:17 +0000)]
* kdb.h (krb5_def_promote_db): Declare

ticket: 3964
status: open

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

18 years ago g_delete_sec_context.c: undo type cast change from last
Jeffrey Altman [Fri, 30 Jun 2006 18:20:26 +0000 (18:20 +0000)]
g_delete_sec_context.c: undo type cast change from last
    commit that is wrong.

ticket: 3968

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

18 years agocorrections to gssapi mechglue
Jeffrey Altman [Fri, 30 Jun 2006 09:22:32 +0000 (09:22 +0000)]
corrections to gssapi mechglue

g_delete_sec_context.c: use the correct type during assignment

g_init_sec_context.c; prevent memory leak and make code more
   readable

ticket: new

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

18 years ago stdcc.c: undo change which broke the opening of ccaches
Jeffrey Altman [Fri, 30 Jun 2006 09:20:59 +0000 (09:20 +0000)]
  stdcc.c: undo change which broke the opening of ccaches

ticket: 3961

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

18 years ago * src/lib/krb5/krb/srv_rcache.c (krb5_get_server_rcache):
Tom Yu [Fri, 30 Jun 2006 05:59:46 +0000 (05:59 +0000)]
* src/lib/krb5/krb/srv_rcache.c (krb5_get_server_rcache):
Oops, krb5_rc_close actually does free rcache, so actually do null
rcache on error from krb5_rc_recover_or_initialize.  Thanks to
Shawn Emery for noticing.

ticket: 3962

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

18 years ago * plugins/kdb/db2/kdb_db2.c (krb5_db2_db_init): Support tempdb
Sam Hartman [Fri, 30 Jun 2006 05:43:40 +0000 (05:43 +0000)]
* plugins/kdb/db2/kdb_db2.c (krb5_db2_db_init): Support tempdb
(krb5_db2_db_set_name): likewise
(krb5_db2_open): likewise
(krb5_db2_create): likewise
(krb5_db2_db_create): likewise
(krb5_db2_db_set_option): likewise
(krb5_db2_destroy): likewise

* plugins/kdb/db2/kdb_db2.h: Add tempdb to db context

* plugins/kdb/db2/kdb_db2.c (k5db2_dbopen): Take flag for
temporary databases.

Ticket: 3964
Status: open

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

18 years ago * src/lib/krb5/krb/srv_rcache.c (krb5_get_server_rcache): Adapted
Tom Yu [Fri, 30 Jun 2006 03:57:20 +0000 (03:57 +0000)]
* src/lib/krb5/krb/srv_rcache.c (krb5_get_server_rcache): Adapted
patch from Shawn Emery to set rcache = 0 in case of
krb5_rc_resolve_full failure because krb5_rc_resolve_full frees
but doesn't null rcache.  Also restore free of rcache in cleanup
code.  Continue to not null rcache in failure on
krb5_rc_recover_or_initialize because krb5_rc_close doesn't free
rcache.

ticket: 3962
tags: pullup

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

18 years agoNew kdb backend operation promote_db, makes a temporary database become the
Ken Raeburn [Fri, 30 Jun 2006 03:51:48 +0000 (03:51 +0000)]
New kdb backend operation promote_db, makes a temporary database become the
live database.  New function krb5_db_promote invokes it.

ticket: 3964
status: open

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

18 years ago * plugins/kdb/db2/kdb_db2.c (krb5_db2_create): Remove incorrect
Sam Hartman [Fri, 30 Jun 2006 03:02:23 +0000 (03:02 +0000)]
    * plugins/kdb/db2/kdb_db2.c (krb5_db2_create): Remove incorrect
        comment.

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

18 years ago * lib/kdb/kdb5.h: Remove macros also defined in include/kdb5.h
Sam Hartman [Fri, 30 Jun 2006 02:42:22 +0000 (02:42 +0000)]
    * lib/kdb/kdb5.h: Remove macros also defined in include/kdb5.h

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

18 years agofix stdcc.c to build without USE_CCAPI_V3
Jeffrey Altman [Fri, 30 Jun 2006 00:46:14 +0000 (00:46 +0000)]
fix stdcc.c to build without USE_CCAPI_V3

stdcc.c: should build without USE_CCAPI_V3

ticket: new

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

18 years ago(add_db_arg): Fix silly bug.
Ken Raeburn [Fri, 30 Jun 2006 00:17:43 +0000 (00:17 +0000)]
(add_db_arg): Fix silly bug.
(extended_com_err_fn): Don't look up or print error message if the error code
is 0.

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

18 years ago* kdb5_util.c (add_db_arg): New function.
Ken Raeburn [Thu, 29 Jun 2006 23:51:55 +0000 (23:51 +0000)]
* kdb5_util.c (add_db_arg): New function.
(main): Use it.
* kdb5_util.h (add_db_arg): Declare it.
* kdb5_create.c (kdb5_create): Use it.
* dump.c (load_db): Use it.

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

18 years ago* kerberos_v4.c: Don't include kdc.h.
Ken Raeburn [Thu, 29 Jun 2006 22:52:55 +0000 (22:52 +0000)]
* kerberos_v4.c: Don't include kdc.h.
(kerberos_v4, kerb_err_reply): Replace uses of S_AD_SZ with sizeof(struct
sockaddr_in).
(kerb_get_principal): Delete fourth argument MAXN, which was always 1.  Callers
updated.
* Makefile.in: Updated dependencies.

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

18 years agore-order inclusions in spnego_mech.c to avoid breaking system headers
Tom Yu [Thu, 29 Jun 2006 22:12:19 +0000 (22:12 +0000)]
re-order inclusions in spnego_mech.c to avoid breaking system headers

* src/lib/gssapi/spnego/spnego_mech.c: Move inclusion of
gssapiP_spnego.h to after mglueP.h.  mglueP.h includes
k5-thread.h, which pulls in the pthread headers, which on at least
some Tru64 versions is vulnerable to definitions of non-reserved
macro names such as CONTEXT, which is defined in
gssapiP_spnego.h.

ticket: new
tags: pullup
target_version: 1.5
version_reported: 1.5
component: krb5-build

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

18 years ago* lib/gssapi/Makefile.in: Merge the new target into the existing
Ken Raeburn [Thu, 29 Jun 2006 21:29:03 +0000 (21:29 +0000)]
* lib/gssapi/Makefile.in: Merge the new target into the existing
target list with generated headers mostly in subdirectories, which
happens to be inside a "##DOS##!if 0" block, since the all-recurse
target isn't defined for Windows.

ticket: 3955

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

18 years agomake depend
Tom Yu [Thu, 29 Jun 2006 20:06:43 +0000 (20:06 +0000)]
make depend

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

18 years agoMakefile.in: Change T_STD_CONF_OBJS to only list t_std_conf.o and pull in the
Ezra Peisach [Thu, 29 Jun 2006 13:26:42 +0000 (13:26 +0000)]
Makefile.in:  Change T_STD_CONF_OBJS to only list t_std_conf.o and pull in the
rest from libkrb5.  This fixes the problem of linking in init_os_ctx.o which
was trying to use the private copy_profile() that was not exported.

Also - updated dependencies - init_os_ctx.c now includes prof-int.h...

ticket: 3953
tags: pullup

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

18 years agoremove unused lib/gssapi/mechglue/g_utils.c
Tom Yu [Thu, 29 Jun 2006 04:47:11 +0000 (04:47 +0000)]
remove unused lib/gssapi/mechglue/g_utils.c

* src/lib/gssapi/mechglue/g_utils.c: Remove.
* src/lib/gssapi/mechglue/Makefile.in (SRCS, OBJS, STLIBOBJS):
Remove g_utils.*.

ticket: new
version_reported: 1.5
target_version: 1.5
tags: pullup

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

18 years ago * src/lib/gssapi/mechglue/mglueP.h (struct gss_config): Remove
Tom Yu [Thu, 29 Jun 2006 04:38:48 +0000 (04:38 +0000)]
* src/lib/gssapi/mechglue/mglueP.h (struct gss_config): Remove
gssint_userok and pname_to_uid, as we don't implement things which
use them.

* src/lib/gssapi/krb5/krb5_gss_glue.c (KRB5_GSS_CONFIG_INIT):
* src/lib/gssapi/spnego/spnego_mech.c (spnego_mechanism): Update
for struct gss_config changes.

ticket: 3954
tags: pullup
target_version: 1.5
version_reported: 1.5
component: krb5-libs

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

18 years ago * src/lib/gssapi/mechglue/g_initialize.c: Remove various unused
Tom Yu [Thu, 29 Jun 2006 04:21:08 +0000 (04:21 +0000)]
* src/lib/gssapi/mechglue/g_initialize.c: Remove various unused
header inclusions, local variables, and macro definitions.
(gss_indicate_mechs):
(build_mechSet):
(updateMechList):
(gssint_get_mechanism):
(loadConfigFile): Remove disabled code.

ticket: 3951
tags: pullup

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

18 years agoback out r18245; it breaks under gcc + GNU ld on Solaris
Tom Yu [Thu, 29 Jun 2006 04:15:37 +0000 (04:15 +0000)]
back out r18245; it breaks under gcc + GNU ld on Solaris

ticket: 3946
status: open

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

18 years agogssapi compilation errors on Windows
Jeffrey Altman [Thu, 29 Jun 2006 01:48:31 +0000 (01:48 +0000)]
gssapi compilation errors on Windows

src/Makefile.in:  generate lib/gssapi/spnego/Makefile

src/lib/gssapi/Makefile.in: build mechglue and spnego

src/lib/gssapi/krb5/init_sec_context.c: do not include
kdc only symbols on windows

src/lib/gssapi/mechglue/g_utils.c: no strings.h on Windows

src/lib/gssapi/mechglue/Makefile.in: construct mechglue.lst

src/lib/gssapi/spnego/Makefile.in: construct spnego.lst

src/lib/gssapi/spnego/spnego_mech.c: k5-int.h must be
included before krb5.h in order to prevent mixed definitions
of time_t on windows

ticket: new
tags: pullup

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

18 years agocheck calling conventions specified for Windows
Ken Raeburn [Thu, 29 Jun 2006 01:42:42 +0000 (01:42 +0000)]
check calling conventions specified for Windows

When we're making changes on UNIX, sometimes we update the Windows
export list but forget to make sure we've annotated the function
declaration in the header file with a calling convention
specification.

This patch checks the krb5 and gssapi public headers against the
Windows export lists (which are annotated with calling-convention and
other info in comments), and flags any inconsistencies in public
interfaces.

* util/def-check.pl: Be quiet about normal stuff by default; accept a
"-v" option to be verbose.  Exit with non-zero status if something
wrong is detected.  Fix some problems in parsing gssapi header files.
Handle DECSCRIPTION and HEAPSIZE directives in .def files, and DATA
annotation in comments.

* include/Makefile.in (verify-calling-conventions-krb5): New target.
(all-unix): Depend on it in maintainer mode.

* lib/gssapi/Makefile.in (verify-calling-conventions-gssapi): New target.
(all-unix): Depend on it in maintainer mode.
(merged-gssapi-header.h): New target; assemble public headers into one input
file.
(clean-misc-unix): New target; delete merged-gssapi-header.h.
(clean-unix): Depend on it.

ticket: new

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

18 years agoFix comment style in public header
Ken Raeburn [Thu, 29 Jun 2006 00:12:21 +0000 (00:12 +0000)]
Fix comment style in public header

ticket: 3952

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

18 years agofix calling convention for krb5 error-message routines, document usage of krb5_get_er...
Ken Raeburn [Thu, 29 Jun 2006 00:03:36 +0000 (00:03 +0000)]
fix calling convention for krb5 error-message routines, document usage of krb5_get_error_message

* lib/krb5/krb/kerrs.c (krb5_*_error_message): Annotate with correct calling
conventions for Windows.
* include/krb5/krb5.hin: Update declarations.  Add comment on
krb5_get_error_message usage.

ticket: new
target_version: 1.5
tags: pullup

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

18 years ago cc_mslsa.c: The WOW64 environment on 64-bit versions of
Jeffrey Altman [Wed, 28 Jun 2006 23:00:09 +0000 (23:00 +0000)]
cc_mslsa.c:  The WOW64 environment on 64-bit versions of
   Windows prior to Vista Beta 2 did not implement the Lsa
functions used by the MSLSA: ccache.   This patch disables
the MSLSA: ccache in broken WOW64 environments by checking
the Windows version and the existence and response of the
IsWow64Process API.

ticket: 3940
tags: pullup

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

18 years agoautoconf 2.60 compatibility
Ken Raeburn [Wed, 28 Jun 2006 22:07:00 +0000 (22:07 +0000)]
autoconf 2.60 compatibility

Change all file substitutions so that @-patterns start at the beginning
of their lines, as now required by autoconf 2.60 (released Monday).

ticket: new
target_version: 1.5
tags: pullup

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

18 years agofix plugin.c to compile on Windows
Jeffrey Altman [Wed, 28 Jun 2006 21:45:20 +0000 (21:45 +0000)]
fix plugin.c to compile on Windows

 plugins.c: Move a brace so that the Windows case falls
            within the conditional

ticket: new
tags: pullup

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

18 years agoWindows: fix krb5.h generation
Jeffrey Altman [Wed, 28 Jun 2006 21:41:43 +0000 (21:41 +0000)]
Windows: fix krb5.h generation

Generate krb5.h into the new location and install it

ticket: new
tags: pullup

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

18 years agoallow multiple calls to krb5_get_error_message to retrieve message
Ken Raeburn [Wed, 28 Jun 2006 05:31:52 +0000 (05:31 +0000)]
allow multiple calls to krb5_get_error_message to retrieve message

(krb5int_get_error): Don't discard old message if the error codes don't match.
Try a little harder not to keep messages in the scratch buffer.  Return a copy
of the message, or "out of memory" in the scratch buffer.
(krb5int_vset_error): Try a little harder not to keep messages in the scratch
buffer.

ticket: new
target_version: 1.5

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

18 years agoimplement symbol export restrictions for Solaris
Ken Raeburn [Wed, 28 Jun 2006 05:18:38 +0000 (05:18 +0000)]
implement symbol export restrictions for Solaris

* lib.in (solaris.versions): New target.  Currently no version id, just a
symbol list.
* libnover.in (solaris.versions): New target.
(clean-libs): Delete it.
* shlib.conf (*-*-solaris*): Use solaris.versions as map file.
(clean-libs): Delete it.

ticket: new

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

18 years agomkrel should only generate doc/CHANGES for checkouts
Tom Yu [Tue, 27 Jun 2006 22:01:22 +0000 (22:01 +0000)]
mkrel should only generate doc/CHANGES for checkouts

* src/util/mkrel: Only write doc/CHANGES if doing a checkout.
This makes nightly snapshots saner.

ticket: new
tags: pullup
target_version: 1.5

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

18 years agowrite svn log output when building release
Tom Yu [Tue, 27 Jun 2006 02:26:11 +0000 (02:26 +0000)]
write svn log output when building release

* src/util/mkrel: Write output of svn log -v to doc/CHANGES.

ticket: new
target_version: 1.5
tags: pullup

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

18 years agoRevise comment on when we should switch from writing back to reading
Ken Raeburn [Tue, 27 Jun 2006 00:00:03 +0000 (00:00 +0000)]
Revise comment on when we should switch from writing back to reading
on a TCP stream.  (We don't currently, ever, and we probably should
eventually, but sometimes closing the connection is required.)

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

18 years ago* kdc/network.c (make_toolong_error): New function.
Ken Raeburn [Mon, 26 Jun 2006 23:47:03 +0000 (23:47 +0000)]
* kdc/network.c (make_toolong_error): New function.
(process_tcp_connection): If the specified length exceeds the internal limit,
stop reading and send back a FIELD_TOOLONG error.
* tests/dejagnu/krb-standalone/standalone.exp (doit): When testing TCP mode,
connect to the KDC and send a length of -1, and check that it sends back a
non-empty message.

ticket: 3923
tags: pullup

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

18 years agomake gssint_get_mechanism match prototype
Tom Yu [Mon, 26 Jun 2006 23:09:51 +0000 (23:09 +0000)]
make gssint_get_mechanism match prototype

* src/lib/gssapi/mechglue/g_initialize.c (gssint_get_mechanism):
Protoize, and make match mglueP.h.

ticket: new
target_version: 1.5
tags: pullup
component: krb5-libs

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

18 years ago * src/lib/krb5_32.def: Export krb5_copy_context
Tom Yu [Mon, 26 Jun 2006 22:04:51 +0000 (22:04 +0000)]
* src/lib/krb5_32.def: Export krb5_copy_context

* src/lib/krb5/libkrb5.exports: Export krb5_copy_context.

* src/lib/krb5/krb/init_ctx.c (krb5_copy_context): Fix malloc
argument for nctx.  Handle null default_ccname case.

ticket: 2856

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

18 years ago * src/include/krb5/krb5.hin: Add prototype for krb5_copy_context
Tom Yu [Mon, 26 Jun 2006 21:03:04 +0000 (21:03 +0000)]
* src/include/krb5/krb5.hin: Add prototype for krb5_copy_context

* src/lib/krb5/krb/init_ctx.c (krb5_copy_context): New function to
copy/clone an existing krb5 context.
(copy_ktypes): Local helper function.

ticket: 2856
tags: pullup

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

18 years agoNetIDMgr updates
Jeffrey Altman [Sun, 25 Jun 2006 19:21:41 +0000 (19:21 +0000)]
NetIDMgr updates

* add scrollbars to option tree pane in configuration dialog

* convert to using Microsoft's safe string library both to ensure
  safe string manipulation and to avoid deprecation warnings

* disable deprecation warnings for Platform SDK header shlwapi.h
  which cannot otherwise be compiled

* add kerberos 5 kvno property to tickets.  display in properties
  dialog and main window if column selected by user

* improve manifest handling in order to support both manifests
  generated by the compiler and those hand crafted in order to
  specify the correct versions of the custom control libraries.

* update khimaira message types and credential acquisition
  documentation

ticket: new

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