]> git.ipfire.org Git - thirdparty/krb5.git/log
thirdparty/krb5.git
18 years agoSplit new symbols between krb5.h and k5-int.h, renaming to krb5int and referrals
Andrew Boardman [Mon, 11 Sep 2006 21:07:55 +0000 (21:07 +0000)] 
Split new symbols between krb5.h and k5-int.h, renaming to krb5int and
adding KRB5_CALLCONV as appropriate.

git-svn-id: svn://anonsvn.mit.edu/krb5/branches/referrals@18581 dc483132-0cff-0310-8789-dd5450dbe970

18 years agoComment out some previously-missed debugging output
Andrew Boardman [Mon, 11 Sep 2006 04:02:38 +0000 (04:02 +0000)] 
Comment out some previously-missed debugging output

git-svn-id: svn://anonsvn.mit.edu/krb5/branches/referrals@18580 dc483132-0cff-0310-8789-dd5450dbe970

18 years agoEight-byte occasional leak found, fixed. (It's not clear why this wasn't
Andrew Boardman [Sat, 9 Sep 2006 02:17:26 +0000 (02:17 +0000)] 
Eight-byte occasional leak found, fixed.  (It's not clear why this wasn't
being run over a lot more often; it should have been hit whenever
krb5_get_fallback_host_realm was used.)

git-svn-id: svn://anonsvn.mit.edu/krb5/branches/referrals@18579 dc483132-0cff-0310-8789-dd5450dbe970

18 years agoLeak found with tgtq reuse under some circumstances. Fixed
Andrew Boardman [Sat, 9 Sep 2006 02:08:04 +0000 (02:08 +0000)] 
Leak found with tgtq reuse under some circumstances.  Fixed

git-svn-id: svn://anonsvn.mit.edu/krb5/branches/referrals@18578 dc483132-0cff-0310-8789-dd5450dbe970

18 years ago- Added comments to krb5_get_cred_from_kdc_opt commentary about memory
Andrew Boardman [Sat, 9 Sep 2006 01:43:04 +0000 (01:43 +0000)] 
- Added comments to krb5_get_cred_from_kdc_opt commentary about memory
  management pitfalls.
- Removed a few obsolete and dangerous debugging hooks.
- Got rid of remaining C++-style comments.
- Updated state.
- Reviewed code for string-based assumptions; all that remain look OK.
  (Or, at least, were there before.  krb5_sname_to_principal returns the
  realm as a string, which since, first, it's originating the data, and
  second, ASCII NUL is a forbidden character in 4120-compliant realm
  names, and third, changing the API would be a bit of a bother, I'm
  going along with.)

git-svn-id: svn://anonsvn.mit.edu/krb5/branches/referrals@18577 dc483132-0cff-0310-8789-dd5450dbe970

18 years agoWhitespace cleanup and state update
Andrew Boardman [Fri, 8 Sep 2006 21:56:29 +0000 (21:56 +0000)] 
Whitespace cleanup and state update

git-svn-id: svn://anonsvn.mit.edu/krb5/branches/referrals@18576 dc483132-0cff-0310-8789-dd5450dbe970

18 years ago- Fixed some indentation inconsistencies.
Andrew Boardman [Fri, 8 Sep 2006 21:32:03 +0000 (21:32 +0000)] 
- Fixed some indentation inconsistencies.
- Fixed referral loop check.
- Fixed a bunch of memory leaks.
- Cleaned up whitespace.
- Updated state.

git-svn-id: svn://anonsvn.mit.edu/krb5/branches/referrals@18575 dc483132-0cff-0310-8789-dd5450dbe970

18 years ago- added referral loop checking
Andrew Boardman [Fri, 8 Sep 2006 17:39:49 +0000 (17:39 +0000)] 
- added referral loop checking
- updated state

git-svn-id: svn://anonsvn.mit.edu/krb5/branches/referrals@18574 dc483132-0cff-0310-8789-dd5450dbe970

18 years ago- krb5_parse_name now allows zero-length realms
Andrew Boardman [Fri, 8 Sep 2006 05:20:33 +0000 (05:20 +0000)] 
- krb5_parse_name now allows zero-length realms
- krb5_get_fallback_host_realm made string-safe
  (now takes *krb5_data instead of a maybe-string)
- conditionalized some previously-missed bits of debugging output
  (some of this should probably get nuked entirely since it's
  not really interesting anymore, but keeping easy debugging
  hooks for the core referral logic seems very useful)
- return first-hop referral TGT for ccache
  (but should maybe not do so if already cached?)
- fixed a couple of stupid bugs in fallback realm code
- cleaned up some memory leaks (more surely remain)
- state updated

git-svn-id: svn://anonsvn.mit.edu/krb5/branches/referrals@18573 dc483132-0cff-0310-8789-dd5450dbe970

18 years ago- Remove KRB5_REFERRAL_REALM check to separate function.
Andrew Boardman [Fri, 8 Sep 2006 00:51:52 +0000 (00:51 +0000)] 
- Remove KRB5_REFERRAL_REALM check to separate function.
- Conditionalize gc_frm_kdc out_cred freeing so it doesn't SEGV on an
  early failure before out_cred is allocated.

git-svn-id: svn://anonsvn.mit.edu/krb5/branches/referrals@18572 dc483132-0cff-0310-8789-dd5450dbe970

18 years ago* gc_frm_kdc.c (krb5_get_cred_from_kdc_opt): Replace server princ
Sam Hartman [Thu, 7 Sep 2006 18:10:18 +0000 (18:10 +0000)] 
* gc_frm_kdc.c (krb5_get_cred_from_kdc_opt): Replace server princ
in out_creds not in_creds

git-svn-id: svn://anonsvn.mit.edu/krb5/branches/referrals@18570 dc483132-0cff-0310-8789-dd5450dbe970

18 years agoAdded some known problems to bug list, removed assertion failure
Andrew Boardman [Thu, 7 Sep 2006 16:49:25 +0000 (16:49 +0000)] 
Added some known problems to bug list, removed assertion failure
fixed in #18568.

git-svn-id: svn://anonsvn.mit.edu/krb5/branches/referrals@18569 dc483132-0cff-0310-8789-dd5450dbe970

18 years ago* walk_rtree.c (dbgref_dump_principal):Move here from
Sam Hartman [Thu, 7 Sep 2006 11:12:40 +0000 (11:12 +0000)] 
* walk_rtree.c (dbgref_dump_principal):Move here from
        gc_frm_kdc.c so make check works

* gc_frm_kdc.c (krb5_get_cred_from_kdc_opt): Fill in length of
realm after populating from client

* copy_princ.c (krb5_copy_principal): Always allocate space for realms even if they are empty.  Always defensively null terminate.  Note that realms may still have internal null characters; they are not strings.

git-svn-id: svn://anonsvn.mit.edu/krb5/branches/referrals@18568 dc483132-0cff-0310-8789-dd5450dbe970

18 years ago- conditionalized and depersonalized all debugging code
Andrew Boardman [Thu, 7 Sep 2006 04:23:32 +0000 (04:23 +0000)] 
- conditionalized and depersonalized all debugging code
- fixed in_cred memory management problems (double_free/SEGV)
- rearranged storage use to leave in_cred inviolate and use temporary storage
  for referral traversal
- switched most explicit *alloc use to use library storage functions
- cleaned up referral tgt list management
- update TODO state

git-svn-id: svn://anonsvn.mit.edu/krb5/branches/referrals@18567 dc483132-0cff-0310-8789-dd5450dbe970

18 years agoDocumented current state and blocking issues
Andrew Boardman [Thu, 7 Sep 2006 03:23:53 +0000 (03:23 +0000)] 
Documented current state and blocking issues

git-svn-id: svn://anonsvn.mit.edu/krb5/branches/referrals@18566 dc483132-0cff-0310-8789-dd5450dbe970

18 years agoMerge to trunk rev 18559
Sam Hartman [Tue, 5 Sep 2006 15:30:29 +0000 (15:30 +0000)] 
Merge to trunk rev 18559

git-svn-id: svn://anonsvn.mit.edu/krb5/branches/referrals@18560 dc483132-0cff-0310-8789-dd5450dbe970

18 years agoCreate referrals branch based on Andrew's work
Sam Hartman [Tue, 5 Sep 2006 15:28:49 +0000 (15:28 +0000)] 
Create referrals branch based on Andrew's work

git-svn-id: svn://anonsvn.mit.edu/krb5/branches/referrals@18559 dc483132-0cff-0310-8789-dd5450dbe970

18 years agoReject old OpenLDAP versions with bugs tickled by this code.
Ken Raeburn [Fri, 1 Sep 2006 02:51:38 +0000 (02:51 +0000)] 
Reject old OpenLDAP versions with bugs tickled by this code.
Clean up some warnings during the build.

* ldap_misc.c (strptime) [NEED_STRPTIME_PROTO]: Declare, conditionally.
(krb5_ldap_errcode_2_string): Return string, not error code, to fit with DAL
interface spec.
* kdb_ldap.h: Error out for OpenLDAP versions before 2.2.24.
(LDAP_DEPRECATED): Define; openldap-2.3.27 defaults to undefined.
(krb5_ldap_lib_init): Prototype.
(krb5_get_policydn): Declare.
(krb5_ldap_errcode_2_string): Fix return type.

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

18 years ago(krb5_ldap_destroy_policy): krb5_ldap_delete_policy takes a mask arg, not pointer-to
Ken Raeburn [Thu, 31 Aug 2006 22:12:36 +0000 (22:12 +0000)] 
(krb5_ldap_destroy_policy): krb5_ldap_delete_policy takes a mask arg, not pointer-to

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

18 years agoDeclare get_date() used from kadmin cli code.
Ken Raeburn [Thu, 31 Aug 2006 22:08:45 +0000 (22:08 +0000)] 
Declare get_date() used from kadmin cli code.
In calls, delete the second argument that get_date doesn't take.

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

18 years agoRemove or conditionalize unused variables
Ken Raeburn [Thu, 31 Aug 2006 21:30:30 +0000 (21:30 +0000)] 
Remove or conditionalize unused variables

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

18 years agoPatches from Will Fiveash to allow for configuration and building on
Ken Raeburn [Thu, 31 Aug 2006 21:17:34 +0000 (21:17 +0000)] 
Patches from Will Fiveash to allow for configuration and building on
Solaris.  Tested (configured & built) on RHEL 4 and Solaris 10.  One
minor bugfix added.

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

18 years ago* shlib.conf (*-*-linux*): Use LDFLAGS in LDCOMBINE
Ken Raeburn [Wed, 30 Aug 2006 19:44:54 +0000 (19:44 +0000)] 
* shlib.conf (*-*-linux*): Use LDFLAGS in LDCOMBINE

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

18 years agoSome mechanical changes (mostly whitespace, like indentation levels)
Ken Raeburn [Wed, 30 Aug 2006 00:10:54 +0000 (00:10 +0000)] 
Some mechanical changes (mostly whitespace, like indentation levels)
to match up better with MIT coding style.

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

18 years agoSome mechanical changes (mainly whitespace) to match up better with
Ken Raeburn [Tue, 29 Aug 2006 22:54:46 +0000 (22:54 +0000)] 
Some mechanical changes (mainly whitespace) to match up better with
MIT coding style.

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

18 years agoRename KRB5_KDB_PLUGIN_OP_NOTSUPP to KRB5_PLUGIN_OP_NOTSUPP and move to krb5 table
Ken Raeburn [Tue, 29 Aug 2006 20:41:50 +0000 (20:41 +0000)] 
Rename KRB5_KDB_PLUGIN_OP_NOTSUPP to KRB5_PLUGIN_OP_NOTSUPP and move to krb5 table

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

18 years agowhitespace
Ken Raeburn [Tue, 29 Aug 2006 20:13:27 +0000 (20:13 +0000)] 
whitespace

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

18 years agoPatch from Savitha R:
Ken Raeburn [Tue, 29 Aug 2006 19:52:38 +0000 (19:52 +0000)] 
Patch from Savitha R:

    ldap_util
    1. Kdb5_ldap_util interface
    Removed supp enctypes, suppsalttypes from create realm and modify
    realm since they are currently not used
    2. memset passwd strings to zero when not used any more
    3. Using krb5_sname_to_principal in place of gethostbyname while
    creating the kadmin principal with hostname.

    libkdb_ldap
    1. Added mandatory functions which were missing in the LDAP plug-in
    2. Error handling changes - Setting the error message in the
    kerberos context when decryption of the service passwd fails or
    connection to the LDAP server fails during initialization.

Additional changes:

libkdb_ldap: Link against com_err library, to provide error_message().

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

18 years agoMisc commentary amb/referrals
Andrew Boardman [Sat, 26 Aug 2006 10:27:51 +0000 (10:27 +0000)] 
Misc commentary

git-svn-id: svn://anonsvn.mit.edu/krb5/users/amb/referrals@18547 dc483132-0cff-0310-8789-dd5450dbe970

18 years agoNote current state
Andrew Boardman [Sat, 26 Aug 2006 10:04:36 +0000 (10:04 +0000)] 
Note current state

git-svn-id: svn://anonsvn.mit.edu/krb5/users/amb/referrals@18546 dc483132-0cff-0310-8789-dd5450dbe970

18 years agoMostly complete. Needs memory management work
Andrew Boardman [Sat, 26 Aug 2006 10:03:41 +0000 (10:03 +0000)] 
Mostly complete.  Needs memory management work

git-svn-id: svn://anonsvn.mit.edu/krb5/users/amb/referrals@18545 dc483132-0cff-0310-8789-dd5450dbe970

18 years agoMore blather about mixed-fallback cases after today's meeting with Ken
Andrew Boardman [Fri, 25 Aug 2006 22:31:35 +0000 (22:31 +0000)] 
More blather about mixed-fallback cases after today's meeting with Ken

git-svn-id: svn://anonsvn.mit.edu/krb5/users/amb/referrals@18544 dc483132-0cff-0310-8789-dd5450dbe970

18 years agoMore to do after afternoon's meeting and testing
Andrew Boardman [Fri, 25 Aug 2006 22:31:04 +0000 (22:31 +0000)] 
More to do after afternoon's meeting and testing

git-svn-id: svn://anonsvn.mit.edu/krb5/users/amb/referrals@18543 dc483132-0cff-0310-8789-dd5450dbe970

18 years agoDebugging changes
Andrew Boardman [Fri, 25 Aug 2006 22:30:28 +0000 (22:30 +0000)] 
Debugging changes

git-svn-id: svn://anonsvn.mit.edu/krb5/users/amb/referrals@18542 dc483132-0cff-0310-8789-dd5450dbe970

18 years agoClarify remote TGT cache question, since we do want to use it in
Andrew Boardman [Fri, 25 Aug 2006 20:07:44 +0000 (20:07 +0000)] 
Clarify remote TGT cache question, since we do want to use it in
domain_realm case.

git-svn-id: svn://anonsvn.mit.edu/krb5/users/amb/referrals@18541 dc483132-0cff-0310-8789-dd5450dbe970

18 years agoUpdate for current state and assumptions; added notes from meeting
Andrew Boardman [Fri, 25 Aug 2006 20:05:32 +0000 (20:05 +0000)] 
Update for current state and assumptions; added notes from meeting

git-svn-id: svn://anonsvn.mit.edu/krb5/users/amb/referrals@18540 dc483132-0cff-0310-8789-dd5450dbe970

18 years agoMoved meeting notes to implementation notes.
Andrew Boardman [Fri, 25 Aug 2006 20:04:56 +0000 (20:04 +0000)] 
Moved meeting notes to implementation notes.
Major updates to reflect completed work and current state.

git-svn-id: svn://anonsvn.mit.edu/krb5/users/amb/referrals@18539 dc483132-0cff-0310-8789-dd5450dbe970

18 years agoReflect current state
Andrew Boardman [Fri, 25 Aug 2006 06:47:43 +0000 (06:47 +0000)] 
Reflect current state

git-svn-id: svn://anonsvn.mit.edu/krb5/users/amb/referrals@18538 dc483132-0cff-0310-8789-dd5450dbe970

18 years agoMoved debugging code to gc_frm_kdc.c
Andrew Boardman [Fri, 25 Aug 2006 06:47:11 +0000 (06:47 +0000)] 
Moved debugging code to gc_frm_kdc.c

git-svn-id: svn://anonsvn.mit.edu/krb5/users/amb/referrals@18537 dc483132-0cff-0310-8789-dd5450dbe970

18 years agoConditionalize acceptance of referral tickets on a request for same being made
Andrew Boardman [Fri, 25 Aug 2006 06:46:33 +0000 (06:46 +0000)] 
Conditionalize acceptance of referral tickets on a request for same being made

git-svn-id: svn://anonsvn.mit.edu/krb5/users/amb/referrals@18536 dc483132-0cff-0310-8789-dd5450dbe970

18 years agoRearrange and simplify logic to match decisions at 21 August meeting
Andrew Boardman [Fri, 25 Aug 2006 06:45:52 +0000 (06:45 +0000)] 
Rearrange and simplify logic to match decisions at 21 August meeting

git-svn-id: svn://anonsvn.mit.edu/krb5/users/amb/referrals@18535 dc483132-0cff-0310-8789-dd5450dbe970

18 years agoConditionalize debugging stuff
Andrew Boardman [Fri, 25 Aug 2006 06:44:10 +0000 (06:44 +0000)] 
Conditionalize debugging stuff

git-svn-id: svn://anonsvn.mit.edu/krb5/users/amb/referrals@18534 dc483132-0cff-0310-8789-dd5450dbe970

18 years agoAdd notes from meeting
Andrew Boardman [Wed, 23 Aug 2006 23:36:45 +0000 (23:36 +0000)] 
Add notes from meeting

git-svn-id: svn://anonsvn.mit.edu/krb5/users/amb/referrals@18521 dc483132-0cff-0310-8789-dd5450dbe970

18 years agomake depend
Ken Raeburn [Wed, 23 Aug 2006 22:58:02 +0000 (22:58 +0000)] 
make depend

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

18 years agoMerge Todd's TCP changepw support, with a few fixups
Ken Raeburn [Wed, 23 Aug 2006 22:56:29 +0000 (22:56 +0000)] 
Merge Todd's TCP changepw support, with a few fixups

* include/cm.h (state_strings, enum conn_states, struct incoming_krb5_message,
struct conn_state): Moved here from lib/krb5/os/sendto_kdc.c.
(stuct sendto_callback_info): New type.
* lib/krb5/os/sendto_kdc.c (set_conn_state_msg_length): New function.
(setup_connection): Deleted argument message_len_buf.  Don't store message
length; call set_conn_state_msg_length instead.
(start_connection): New arguments callback_info and callback_buffer.  Invoke
callback function if any, and set message length on success.
(maybe_send): New arguments callback_info and callback_buffer; pass them to
start_connection.
(krb5int_sendto): New arguments callback_info, remoteaddr, remoteaddrlen.  If
callback info is provided, allocate per-connection buffers, and pass them to
maybe_send.  On cleanup, invoke the cleanup callback function if any.
(krb5_sendto_kdc): Update krb5int_sendto call.
* include/k5-int.h (struct sendto_callback_info): Add forward declaration.
(krb5int_sendto, struct _krb5int_access.sendto_udp): Update for new signature.
* lib/krb5/os/send524 (krb5int_524_sendto_kdc): Update krb5int_sendto call.
* lib/krb4/send_to_kdc.c (krb5int_send_to_kdc_addr): Update sendto_udp call.

* lib/krb5/os/changepw.c (struct sendto_callback_context): New type.
(krb5_locate_kpasswd): New argument useTcp, used to select socket type in
krb5int_locate_server call.
(kpasswd_sendto_msg_cleanup, kpasswd_sendto_msg_callback): New functions.
(krb5_change_set_password): Call krb5int_sendto with callbacks, instead of
managing the exchange here.  On RESPONSE_TOO_BIG error, try again with TCP
only.

* lib/krb5/krb/chpw.c (krb5int_rd_chpw_rep): If length is wrong, check if a
buggy server sent a KRB_ERROR.

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

18 years ago Update auxiliary version number for NetIDMgr
Jeffrey Altman [Wed, 23 Aug 2006 16:33:58 +0000 (16:33 +0000)] 
Update auxiliary version number for NetIDMgr

ticket: 4172

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

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 agoModified ticket consistency check to allow for a referral ticket
Andrew Boardman [Sat, 19 Aug 2006 01:06:46 +0000 (01:06 +0000)] 
Modified ticket consistency check to allow for a referral ticket

git-svn-id: svn://anonsvn.mit.edu/krb5/users/amb/referrals@18474 dc483132-0cff-0310-8789-dd5450dbe970

18 years agoAdded core referral code that does more-or-less the right thing. Needs padata handling
Andrew Boardman [Sat, 19 Aug 2006 01:05:54 +0000 (01:05 +0000)] 
Added core referral code that does more-or-less the right thing.  Needs padata handling

git-svn-id: svn://anonsvn.mit.edu/krb5/users/amb/referrals@18473 dc483132-0cff-0310-8789-dd5450dbe970

18 years agoAnother useful cache-hacking alias
Andrew Boardman [Sat, 19 Aug 2006 01:05:11 +0000 (01:05 +0000)] 
Another useful cache-hacking alias

git-svn-id: svn://anonsvn.mit.edu/krb5/users/amb/referrals@18472 dc483132-0cff-0310-8789-dd5450dbe970

18 years agoCheckpointing state
Andrew Boardman [Fri, 18 Aug 2006 06:46:19 +0000 (06:46 +0000)] 
Checkpointing state

git-svn-id: svn://anonsvn.mit.edu/krb5/users/amb/referrals@18471 dc483132-0cff-0310-8789-dd5450dbe970

18 years agoCheckpoint state and add priorities
Andrew Boardman [Fri, 18 Aug 2006 06:43:46 +0000 (06:43 +0000)] 
Checkpoint state and add priorities

git-svn-id: svn://anonsvn.mit.edu/krb5/users/amb/referrals@18470 dc483132-0cff-0310-8789-dd5450dbe970

18 years agoDisable credential checks that otherwise-valid referrals break.
Andrew Boardman [Fri, 18 Aug 2006 06:43:20 +0000 (06:43 +0000)] 
Disable credential checks that otherwise-valid referrals break.
XXX: These need to be referral-aware, not just disabled.

git-svn-id: svn://anonsvn.mit.edu/krb5/users/amb/referrals@18469 dc483132-0cff-0310-8789-dd5450dbe970

18 years agoAdded max field length for non-null-terminated microsoft credentials
Andrew Boardman [Fri, 18 Aug 2006 06:37:49 +0000 (06:37 +0000)] 
Added max field length for non-null-terminated microsoft credentials

git-svn-id: svn://anonsvn.mit.edu/krb5/users/amb/referrals@18468 dc483132-0cff-0310-8789-dd5450dbe970

18 years agoPut svn in path
Andrew Boardman [Fri, 18 Aug 2006 06:36:47 +0000 (06:36 +0000)] 
Put svn in path

git-svn-id: svn://anonsvn.mit.edu/krb5/users/amb/referrals@18467 dc483132-0cff-0310-8789-dd5450dbe970

18 years agoFormatting fixups and debugging removal
Andrew Boardman [Fri, 18 Aug 2006 06:36:22 +0000 (06:36 +0000)] 
Formatting fixups and debugging removal

git-svn-id: svn://anonsvn.mit.edu/krb5/users/amb/referrals@18466 dc483132-0cff-0310-8789-dd5450dbe970

18 years agoMake debugging traversal work properly
Andrew Boardman [Fri, 18 Aug 2006 06:34:41 +0000 (06:34 +0000)] 
Make debugging traversal work properly

git-svn-id: svn://anonsvn.mit.edu/krb5/users/amb/referrals@18465 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 agoRemove old debugging stuff
Andrew Boardman [Wed, 16 Aug 2006 21:47:25 +0000 (21:47 +0000)] 
Remove old debugging stuff

git-svn-id: svn://anonsvn.mit.edu/krb5/users/amb/referrals@18463 dc483132-0cff-0310-8789-dd5450dbe970

18 years agoNote do_traversal work needed
Andrew Boardman [Wed, 16 Aug 2006 21:45:34 +0000 (21:45 +0000)] 
Note do_traversal work needed

git-svn-id: svn://anonsvn.mit.edu/krb5/users/amb/referrals@18462 dc483132-0cff-0310-8789-dd5450dbe970

18 years agoTweak debugging code a bit. (Tree traversal still busted.)
Andrew Boardman [Wed, 16 Aug 2006 21:44:27 +0000 (21:44 +0000)] 
Tweak debugging code a bit.  (Tree traversal still busted.)

git-svn-id: svn://anonsvn.mit.edu/krb5/users/amb/referrals@18461 dc483132-0cff-0310-8789-dd5450dbe970

18 years agoClean up string handling
Andrew Boardman [Wed, 16 Aug 2006 21:43:38 +0000 (21:43 +0000)] 
Clean up string handling

git-svn-id: svn://anonsvn.mit.edu/krb5/users/amb/referrals@18460 dc483132-0cff-0310-8789-dd5450dbe970

18 years agoRemove duplicate entry, add argument to krb5_clean_realm for string length
Andrew Boardman [Wed, 16 Aug 2006 21:43:05 +0000 (21:43 +0000)] 
Remove duplicate entry, add argument to krb5_clean_realm for string length

git-svn-id: svn://anonsvn.mit.edu/krb5/users/amb/referrals@18459 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 agoAdded diagnostics
Andrew Boardman [Tue, 15 Aug 2006 22:52:45 +0000 (22:52 +0000)] 
Added diagnostics

git-svn-id: svn://anonsvn.mit.edu/krb5/users/amb/referrals@18447 dc483132-0cff-0310-8789-dd5450dbe970

18 years agoSplit off hostname munging code into krb5_clean_hostname. Currently
Andrew Boardman [Tue, 15 Aug 2006 22:51:55 +0000 (22:51 +0000)] 
Split off hostname munging code into krb5_clean_hostname.  Currently
broken work-in-progress.

git-svn-id: svn://anonsvn.mit.edu/krb5/users/amb/referrals@18446 dc483132-0cff-0310-8789-dd5450dbe970

18 years agoAdd declarations for krb5_get_fallback_host_realm (wasn't this already
Andrew Boardman [Tue, 15 Aug 2006 22:50:50 +0000 (22:50 +0000)] 
Add declarations for krb5_get_fallback_host_realm (wasn't this already
checked in?  wtf?) and krb5_clean_hostname.

git-svn-id: svn://anonsvn.mit.edu/krb5/users/amb/referrals@18445 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 agoNotes on hostname munging
Andrew Boardman [Tue, 15 Aug 2006 22:49:48 +0000 (22:49 +0000)] 
Notes on hostname munging

git-svn-id: svn://anonsvn.mit.edu/krb5/users/amb/referrals@18443 dc483132-0cff-0310-8789-dd5450dbe970

18 years agoAdd ccache reset hack
Andrew Boardman [Tue, 15 Aug 2006 22:49:21 +0000 (22:49 +0000)] 
Add ccache reset hack

git-svn-id: svn://anonsvn.mit.edu/krb5/users/amb/referrals@18442 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

19 years agoLots of detailed notes on krb5_get_cred_from_kdc_opt functionality added
Andrew Boardman [Fri, 11 Aug 2006 22:14:17 +0000 (22:14 +0000)] 
Lots of detailed notes on krb5_get_cred_from_kdc_opt functionality added

git-svn-id: svn://anonsvn.mit.edu/krb5/users/amb/referrals@18437 dc483132-0cff-0310-8789-dd5450dbe970

19 years agoMost of the framework for basic server referrals.
Andrew Boardman [Fri, 11 Aug 2006 22:13:34 +0000 (22:13 +0000)] 
Most of the framework for basic server referrals.
(Currently broken, though.)

git-svn-id: svn://anonsvn.mit.edu/krb5/users/amb/referrals@18436 dc483132-0cff-0310-8789-dd5450dbe970

19 years agoImmediate task tracking
Andrew Boardman [Fri, 11 Aug 2006 22:12:18 +0000 (22:12 +0000)] 
Immediate task tracking

git-svn-id: svn://anonsvn.mit.edu/krb5/users/amb/referrals@18435 dc483132-0cff-0310-8789-dd5450dbe970

19 years agoPortablized ptest paths
Andrew Boardman [Fri, 11 Aug 2006 05:24:16 +0000 (05:24 +0000)] 
Portablized ptest paths

git-svn-id: svn://anonsvn.mit.edu/krb5/users/amb/referrals@18434 dc483132-0cff-0310-8789-dd5450dbe970

19 years agoAdded fallback case for realm determination on referral failure
Andrew Boardman [Fri, 11 Aug 2006 05:20:19 +0000 (05:20 +0000)] 
Added fallback case for realm determination on referral failure

git-svn-id: svn://anonsvn.mit.edu/krb5/users/amb/referrals@18433 dc483132-0cff-0310-8789-dd5450dbe970

19 years agoSplit fallback realm code into krb5_get_fallback_host_realm
Andrew Boardman [Fri, 11 Aug 2006 05:19:07 +0000 (05:19 +0000)] 
Split fallback realm code into krb5_get_fallback_host_realm

git-svn-id: svn://anonsvn.mit.edu/krb5/users/amb/referrals@18432 dc483132-0cff-0310-8789-dd5450dbe970

19 years agoSwitched back to using compatible KDC option flag for referrals.
Andrew Boardman [Fri, 11 Aug 2006 05:18:12 +0000 (05:18 +0000)] 
Switched back to using compatible KDC option flag for referrals.
Added declaration of krb5_get_fallback_host_realm.

git-svn-id: svn://anonsvn.mit.edu/krb5/users/amb/referrals@18431 dc483132-0cff-0310-8789-dd5450dbe970

19 years agoWork (adding server referrals) in progress
Andrew Boardman [Wed, 9 Aug 2006 22:47:53 +0000 (22:47 +0000)] 
Work (adding server referrals) in progress

git-svn-id: svn://anonsvn.mit.edu/krb5/users/amb/referrals@18430 dc483132-0cff-0310-8789-dd5450dbe970

19 years agoNote namespace issues
Andrew Boardman [Wed, 9 Aug 2006 22:47:10 +0000 (22:47 +0000)] 
Note namespace issues

git-svn-id: svn://anonsvn.mit.edu/krb5/users/amb/referrals@18429 dc483132-0cff-0310-8789-dd5450dbe970

19 years agoAdded various flag and type bits from referrals draft
Andrew Boardman [Wed, 9 Aug 2006 22:43:38 +0000 (22:43 +0000)] 
Added various flag and type bits from referrals draft

git-svn-id: svn://anonsvn.mit.edu/krb5/users/amb/referrals@18428 dc483132-0cff-0310-8789-dd5450dbe970

19 years agoMisc useful build definitions
Andrew Boardman [Tue, 8 Aug 2006 23:01:00 +0000 (23:01 +0000)] 
Misc useful build definitions

git-svn-id: svn://anonsvn.mit.edu/krb5/users/amb/referrals@18425 dc483132-0cff-0310-8789-dd5450dbe970

19 years agoRemove deprecated text
Andrew Boardman [Tue, 8 Aug 2006 22:41:52 +0000 (22:41 +0000)] 
Remove deprecated text

git-svn-id: svn://anonsvn.mit.edu/krb5/users/amb/referrals@18424 dc483132-0cff-0310-8789-dd5450dbe970

19 years agoDefinitions for referral realm and max number of referral hops
Andrew Boardman [Tue, 8 Aug 2006 22:41:30 +0000 (22:41 +0000)] 
Definitions for referral realm and max number of referral hops

git-svn-id: svn://anonsvn.mit.edu/krb5/users/amb/referrals@18423 dc483132-0cff-0310-8789-dd5450dbe970

19 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

19 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

19 years agoMerge of old development work for referrals. Also includes a
Andrew Boardman [Mon, 7 Aug 2006 21:54:51 +0000 (21:54 +0000)] 
Merge of old development work for referrals.  Also includes a
great deal of debugging code for eventual removal.

git-svn-id: svn://anonsvn.mit.edu/krb5/users/amb/referrals@18416 dc483132-0cff-0310-8789-dd5450dbe970

19 years agoCommentary on what's here
Andrew Boardman [Mon, 7 Aug 2006 21:50:29 +0000 (21:50 +0000)] 
Commentary on what's here

git-svn-id: svn://anonsvn.mit.edu/krb5/users/amb/referrals@18415 dc483132-0cff-0310-8789-dd5450dbe970

19 years agoFor building ptest and friends
Andrew Boardman [Mon, 7 Aug 2006 21:50:14 +0000 (21:50 +0000)] 
For building ptest and friends

git-svn-id: svn://anonsvn.mit.edu/krb5/users/amb/referrals@18414 dc483132-0cff-0310-8789-dd5450dbe970

19 years agoScript to integrate uninstalled build artifacts into environment
Andrew Boardman [Mon, 7 Aug 2006 21:49:25 +0000 (21:49 +0000)] 
Script to integrate uninstalled build artifacts into environment

git-svn-id: svn://anonsvn.mit.edu/krb5/users/amb/referrals@18413 dc483132-0cff-0310-8789-dd5450dbe970

19 years agoHacked version of kvno for fetching service tickets.
Andrew Boardman [Mon, 7 Aug 2006 21:47:50 +0000 (21:47 +0000)] 
Hacked version of kvno for fetching service tickets.
For testing purposes only.

git-svn-id: svn://anonsvn.mit.edu/krb5/users/amb/referrals@18412 dc483132-0cff-0310-8789-dd5450dbe970

19 years agoMisc updates from non-versioned working copies
Andrew Boardman [Mon, 7 Aug 2006 21:46:10 +0000 (21:46 +0000)] 
Misc updates from non-versioned working copies

git-svn-id: svn://anonsvn.mit.edu/krb5/users/amb/referrals@18411 dc483132-0cff-0310-8789-dd5450dbe970