Danilo Almeida [Tue, 18 Apr 2000 18:28:03 +0000 (18:28 +0000)]
Actually clean gss-sample on Windows
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@12173
dc483132-0cff-0310-8789-
dd5450dbe970
Jeffrey Altman [Sat, 15 Apr 2000 06:06:03 +0000 (06:06 +0000)]
Jeffrey Altman <jaltman@columbia.edu>
- typo "==" should have been "="
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@12172
dc483132-0cff-0310-8789-
dd5450dbe970
Alexandra Ellwood [Thu, 13 Apr 2000 22:07:07 +0000 (22:07 +0000)]
2000-4-13 Alexandra Ellwood <lxs@mit.edu>
* ccdefault.c: Added Kerberos Login library support (with ifdefs to control
whether or not it is on. Also added support to store a krb5_principal in the
os_context along with the default ccache name (if known, this principal is
the same as the last time we looked at the ccache.
* ccdefname.c: Added support to store a krb5_principal in the os_context
along with the default ccache name (if known, this principal is the same
as the last time we looked at the ccache.
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@12170
dc483132-0cff-0310-8789-
dd5450dbe970
Alexandra Ellwood [Thu, 13 Apr 2000 22:06:53 +0000 (22:06 +0000)]
2000-4-13 Alexandra Ellwood <lxs@mit.edu>
* init_os_ctx.c: Added support to store a krb5_principal in the os_context
along with the default ccache name (if known, this principal is the same
as the last time we looked at the ccache.
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@12169
dc483132-0cff-0310-8789-
dd5450dbe970
Alexandra Ellwood [Thu, 13 Apr 2000 22:06:38 +0000 (22:06 +0000)]
2000-4-13 Alexandra Ellwood <lxs@mit.edu>
* krb5-int.h: Added support to store a krb5_principal in the os_context
along with the default ccache name (if known, this principal is the same
as the last time we looked at the ccache.
* win-mac.h: Set up the macintosh build to use KerberosLogin.
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@12168
dc483132-0cff-0310-8789-
dd5450dbe970
Alexandra Ellwood [Thu, 13 Apr 2000 22:05:57 +0000 (22:05 +0000)]
2000-4-13 Alexandra Ellwood <lxs@mit.edu>
* ccdefname.c: Added support to store a krb5_principal in the os_context
along with the default ccache name (if known, this principal is the same
as the last time we looked at the ccache.
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@12167
dc483132-0cff-0310-8789-
dd5450dbe970
Alexandra Ellwood [Thu, 13 Apr 2000 22:05:46 +0000 (22:05 +0000)]
2000-4-13 Alexandra Ellwood <lxs@mit.edu>
* ccdefault.c: Added Kerberos Login library support (with ifdefs to control
whether or not it is on. Also added support to store a krb5_principal in the
os_context along with the default ccache name (if known, this principal is
the same as the last time we looked at the ccache.
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@12166
dc483132-0cff-0310-8789-
dd5450dbe970
Alexandra Ellwood [Thu, 13 Apr 2000 22:04:39 +0000 (22:04 +0000)]
2000-4-13 Alexandra Ellwood <lxs@mit.edu>
* win-mac.h: Set up the macintosh build to use KerberosLogin.
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@12165
dc483132-0cff-0310-8789-
dd5450dbe970
Alexandra Ellwood [Thu, 13 Apr 2000 22:04:20 +0000 (22:04 +0000)]
2000-4-13 Alexandra Ellwood <lxs@mit.edu>
* krb5-int.h: Added support to store a krb5_principal in the os_context
along with the default ccache name (if known, this principal is the same
as the last time we looked at the ccache.
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@12164
dc483132-0cff-0310-8789-
dd5450dbe970
Alexandra Ellwood [Thu, 13 Apr 2000 22:02:08 +0000 (22:02 +0000)]
Added LoginLib, UtilitiesLib to Kerberos5Lib for popup dialog support
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@12163
dc483132-0cff-0310-8789-
dd5450dbe970
Danilo Almeida [Tue, 11 Apr 2000 21:22:24 +0000 (21:22 +0000)]
Clean gss-sample on Windows
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@12158
dc483132-0cff-0310-8789-
dd5450dbe970
Tom Yu [Sat, 8 Apr 2000 07:37:37 +0000 (07:37 +0000)]
* vfy_increds.c (krb5_verify_init_creds): appdefault_boolean ->
libdefault_boolean; it somehow got missed earlier.
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@12156
dc483132-0cff-0310-8789-
dd5450dbe970
Tom Yu [Sat, 8 Apr 2000 07:36:03 +0000 (07:36 +0000)]
* wrap_size_limit.c (krb5_gss_wrap_size_limit): Fix up
wrap_size_limit() to deal with integrity wrap tokens properly.
The rfc1964 mech always pads and confounds regardless of whether
confidentiality is requested.
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@12155
dc483132-0cff-0310-8789-
dd5450dbe970
Jeffrey Altman [Fri, 7 Apr 2000 19:14:20 +0000 (19:14 +0000)]
2000-04-07 Jeffrey Altman <jaltman@columbia.edu>
* gic_pwd.c (krb5_get_init_creds_keytab), gic_pwd.c (krb5_get_init_creds_password)
when determining whether or not to retry with a "master kdc" do not retry if
the return value from the first attempt was KRB5_REALM_CANT_RESOLV. Also, do
not overwrite the return code if the return value from the access to the "master
kdc" was KRB5_REALM_CANT_RESOLV.
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@12154
dc483132-0cff-0310-8789-
dd5450dbe970
Jeffrey Altman [Fri, 7 Apr 2000 18:44:34 +0000 (18:44 +0000)]
2000-04-07 Jeffrey Altman <jaltman@columbia.edu>
* stdcc_util.c (copyCCDataArrayToK5, copyCCDataArrayToK5):
* stdcc_util.c (dupCCtoK5, dupK5toCC):
memory was being allocated as (sizeof(foo) * count + 1)
instead of (sizeof(foo) * (count + 1))
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@12153
dc483132-0cff-0310-8789-
dd5450dbe970
Jeffrey Altman [Tue, 4 Apr 2000 03:58:22 +0000 (03:58 +0000)]
2000-04-03 Jeffrey Altman <jaltman@columbia.edu>
* stdcc_util.c (copyCCDataArrayToK5, copyCCDataArrayToK5):
* stdcc_util.c (dupCCtoK5, dupK5toCC):
Changed all references to the type UInt32 to unsigned int
since UInt32 is not a standard type on Unix or Win32
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@12149
dc483132-0cff-0310-8789-
dd5450dbe970
Jeffrey Altman [Tue, 4 Apr 2000 03:56:09 +0000 (03:56 +0000)]
2000-04-03 Jeffrey Altman <jaltman@columbia.edu>
* prof_get.c:
profile_get_boolean() was calling prof_parse_boolean()
instead of profile_get_boolean()
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@12148
dc483132-0cff-0310-8789-
dd5450dbe970
Jeffrey Altman [Tue, 4 Apr 2000 03:39:53 +0000 (03:39 +0000)]
2000-04-03 Jeffrey Altman <jaltman@columbia.edu>
* prof_get.c:
. Added #include <limits.h> for definitions of INT_MAX, etc.
. Changed 'ret_int' to 'ret_boolean' in prof_get_boolean
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@12147
dc483132-0cff-0310-8789-
dd5450dbe970
Miro Jurisic [Sun, 26 Mar 2000 04:07:26 +0000 (04:07 +0000)]
Upped CFM interface version on v5 lib because we mucked with the export file and removed stuff
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@12145
dc483132-0cff-0310-8789-
dd5450dbe970
Miro Jurisic [Sun, 26 Mar 2000 04:06:07 +0000 (04:06 +0000)]
Readded other crypto library calls needed by GSSLib (grumble grumble)
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@12144
dc483132-0cff-0310-8789-
dd5450dbe970
Miro Jurisic [Sun, 26 Mar 2000 03:59:34 +0000 (03:59 +0000)]
Oops, extra '
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@12143
dc483132-0cff-0310-8789-
dd5450dbe970
Miro Jurisic [Sun, 26 Mar 2000 03:56:28 +0000 (03:56 +0000)]
Readded krb5_c_keyed_checksum_types for GSSLib
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@12142
dc483132-0cff-0310-8789-
dd5450dbe970
Miro Jurisic [Sun, 26 Mar 2000 03:26:08 +0000 (03:26 +0000)]
Fixed protos for krb5_locate_srv_*
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@12141
dc483132-0cff-0310-8789-
dd5450dbe970
Alexandra Ellwood [Fri, 24 Mar 2000 23:40:13 +0000 (23:40 +0000)]
2000-03-24 Alexandra Ellwood <lxs@mit.edu>
* stdcc_util.c (copyCCDataArrayToK5, copyCCDataArrayToK5):
Modified to copy authdata as well... this code may have
bugs since I couldn't get a good case where authdata != NULL
* stdcc_util.c (dupCCtoK5, dupK5toCC):
Added code to store times in localtime, not in kdc time.
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@12139
dc483132-0cff-0310-8789-
dd5450dbe970
Jeffrey Altman [Fri, 24 Mar 2000 22:04:41 +0000 (22:04 +0000)]
jaltman@columbia.edu Mar 24, 2000:
In conjunction with the patch to alter the handling of "master" kdc's
this patch updates the prototypes of the private functions.
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@12138
dc483132-0cff-0310-8789-
dd5450dbe970
Jeffrey Altman [Fri, 24 Mar 2000 22:02:59 +0000 (22:02 +0000)]
jaltman@columbia.edu Mar 24, 2000:
In 1.0.6, the code was altered to provide a fallback mechanism to
try the "master" kdc's in case the normal kdc's did not have the
most up to date password information. The original implementation
had significant conflicts with the use of DNS SRV records. In
addition, it often performed a lot of unneeded work.
The new code still performs a fallback to the "master" kdc but
only does the computation of the "master kdc list" if we are
in fact going to attempt to use a master.
For DNS SRV we introduce a new _kerberos-master.<proto>.<REALM>
record to list the master kdc's and the priorities to be used
when contacting a master. This allows for a multi-tiered implementation.
---
The other change is local to krb/get_in_tkt.c. In preparation for
adding public krb5_appdefault_boolean and krb5_appdefault_string
functions, the static functions by that name in get_in_tkt.c are
renamed to krb5_libdefault_xxxxx since they currently access the
[libdefault] section of the code.
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@12137
dc483132-0cff-0310-8789-
dd5450dbe970
Miro Jurisic [Fri, 24 Mar 2000 21:09:05 +0000 (21:09 +0000)]
Added profile_get_boolean
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@12136
dc483132-0cff-0310-8789-
dd5450dbe970
Miro Jurisic [Fri, 24 Mar 2000 21:00:53 +0000 (21:00 +0000)]
Cleaned up the Mac export file: removed replay cache exports, added new functions for 1.2
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@12135
dc483132-0cff-0310-8789-
dd5450dbe970
Miro Jurisic [Mon, 20 Mar 2000 19:53:36 +0000 (19:53 +0000)]
Added krb5_free_default_realm
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@12133
dc483132-0cff-0310-8789-
dd5450dbe970
Miro Jurisic [Mon, 20 Mar 2000 19:21:51 +0000 (19:21 +0000)]
Added krb5_free_default_realm
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@12132
dc483132-0cff-0310-8789-
dd5450dbe970
Ken Raeburn [Mon, 20 Mar 2000 07:25:11 +0000 (07:25 +0000)]
jaltman fix for off-by-one error
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@12128
dc483132-0cff-0310-8789-
dd5450dbe970
Ezra Peisach [Sat, 18 Mar 2000 19:24:33 +0000 (19:24 +0000)]
Include string.h for strlen prototype
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@12127
dc483132-0cff-0310-8789-
dd5450dbe970
Ezra Peisach [Thu, 16 Mar 2000 15:24:45 +0000 (15:24 +0000)]
* cr_tkt.c (krb_cr_tkt_int): Add static prototype.
* decomp_tkt.c: (dcmp_tkt_int): Add static prototype
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@12125
dc483132-0cff-0310-8789-
dd5450dbe970
Ezra Peisach [Thu, 16 Mar 2000 15:08:49 +0000 (15:08 +0000)]
Clean up unsed variables when V4 compatibility is not defined
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@12124
dc483132-0cff-0310-8789-
dd5450dbe970
Ezra Peisach [Thu, 16 Mar 2000 15:07:02 +0000 (15:07 +0000)]
Remove unused variables
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@12123
dc483132-0cff-0310-8789-
dd5450dbe970
Ezra Peisach [Thu, 16 Mar 2000 14:57:59 +0000 (14:57 +0000)]
* kinit.c (k4_kinit): Fix the code that was broken with
krb5_get_prompt_types code changes. Also - cleanup unused
variables when krb4 not compiled in.
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@12122
dc483132-0cff-0310-8789-
dd5450dbe970
Ken Raeburn [Thu, 16 Mar 2000 13:05:17 +0000 (13:05 +0000)]
Matt Crawford's kadm acl fixes & enhancements
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@12121
dc483132-0cff-0310-8789-
dd5450dbe970
Ezra Peisach [Thu, 16 Mar 2000 11:38:04 +0000 (11:38 +0000)]
Get rid of unused variable
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@12120
dc483132-0cff-0310-8789-
dd5450dbe970
Ken Raeburn [Thu, 16 Mar 2000 04:45:13 +0000 (04:45 +0000)]
* login.c (update_ref_count): Copy passwd info before calling getuserattr, to
keep data from getting clobbered. Patch from Mark Roth.
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@12119
dc483132-0cff-0310-8789-
dd5450dbe970
Danilo Almeida [Thu, 16 Mar 2000 00:47:21 +0000 (00:47 +0000)]
Add krb5_get_prompt_types() functionality
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@12118
dc483132-0cff-0310-8789-
dd5450dbe970
Danilo Almeida [Thu, 16 Mar 2000 00:44:18 +0000 (00:44 +0000)]
* stdcc.c (krb5_stdcc_destroy): Do not mask KRB5_FCC_NOFILE error
on destroy.
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@12117
dc483132-0cff-0310-8789-
dd5450dbe970
Ken Raeburn [Wed, 15 Mar 2000 08:48:38 +0000 (08:48 +0000)]
* aclocal.m4 (KRB5_AC_ENABLE_DNS): Fix typo that caused the DNS code to never get enabled
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@12116
dc483132-0cff-0310-8789-
dd5450dbe970
Miro Jurisic [Wed, 15 Mar 2000 07:48:00 +0000 (07:48 +0000)]
Use MIT runtime instead of metrowerks
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@12114
dc483132-0cff-0310-8789-
dd5450dbe970
Ken Raeburn [Wed, 15 Mar 2000 04:53:07 +0000 (04:53 +0000)]
volatile fixes
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@12113
dc483132-0cff-0310-8789-
dd5450dbe970
Ken Raeburn [Tue, 14 Mar 2000 17:20:49 +0000 (17:20 +0000)]
* init_os_ctx.c (os_get_default_config_files): Remove unused variable
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@12112
dc483132-0cff-0310-8789-
dd5450dbe970
Ken Raeburn [Tue, 14 Mar 2000 17:18:29 +0000 (17:18 +0000)]
* def_realm.c: Include netinet/in.h if available
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@12111
dc483132-0cff-0310-8789-
dd5450dbe970
Ken Raeburn [Tue, 14 Mar 2000 17:10:37 +0000 (17:10 +0000)]
* configure.in: Check for gethostbyname2
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@12110
dc483132-0cff-0310-8789-
dd5450dbe970
Ken Raeburn [Tue, 14 Mar 2000 16:13:53 +0000 (16:13 +0000)]
* sock2p.c: New file.
(inet_ntop): Define if system doesn't provide it.
(sockaddr2p): New function.
* Makefile.in (SRCS, OBJS): Add sock2p.
* kdc_util.h (inet_ntop, sockaddr2p): Declare them.
* network.c (add_fd): New function. Reallocate udp_port_fds array as needed
here.
(setup_port): Use add_fd to record new sockets. Use inet_ntop unconditionally.
Disable ipv6 support until process_packet and friends will support it.
(process_packet): Ignore ECONNREFUSED when reading UDP packets. Fill in port
field of faddr properly, dependent on address family. Use sockaddr2p when
logging source address.
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@12109
dc483132-0cff-0310-8789-
dd5450dbe970
Danilo Almeida [Tue, 14 Mar 2000 00:59:36 +0000 (00:59 +0000)]
* kinit.c: Add support for using both -4 and -5. Default to krb5
only. Add KINIT_DEFAULT_BOTH support. Tweak usage info.
* kinit.M: Fix a couple of typos. Document new default
behavior. Document that -4 and -5 may be combined.
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@12108
dc483132-0cff-0310-8789-
dd5450dbe970
Danilo Almeida [Tue, 14 Mar 2000 00:58:54 +0000 (00:58 +0000)]
* klist.M: Get man page up-to-date
* klist.c: Add support for combining -4 and -5. Tweak usage info.
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@12107
dc483132-0cff-0310-8789-
dd5450dbe970
Danilo Almeida [Tue, 14 Mar 2000 00:58:28 +0000 (00:58 +0000)]
* kdestroy.M: Make up-to-date
* kdestroy.c: Add support for combining -5 and -4. Add ability to
easily change defaults in terms of whether to use 5, 4 or both.
Expand usage info.
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@12106
dc483132-0cff-0310-8789-
dd5450dbe970
Tom Yu [Mon, 13 Mar 2000 20:26:04 +0000 (20:26 +0000)]
* k5-int.h: Update prototype to sync with changes in preauth2.c
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@12105
dc483132-0cff-0310-8789-
dd5450dbe970
Ken Raeburn [Mon, 13 Mar 2000 07:30:40 +0000 (07:30 +0000)]
Fix one of the bugs discovered at Connectathon: etype specified in preauth
data is ignored under get_in_tkt interface.
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@12104
dc483132-0cff-0310-8789-
dd5450dbe970
Ezra Peisach [Sun, 12 Mar 2000 20:42:21 +0000 (20:42 +0000)]
Also change kdc_insert_lookaside() to take a const krb5_fulladdr *
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@12103
dc483132-0cff-0310-8789-
dd5450dbe970
Ezra Peisach [Sun, 12 Mar 2000 20:34:28 +0000 (20:34 +0000)]
* replay.c, kdb_util.h (kdc_check_lookaside): Make second argument
const to allow passing a const krb5_fulladdr * and keeping the compiler happy.
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@12102
dc483132-0cff-0310-8789-
dd5450dbe970
Ezra Peisach [Sun, 12 Mar 2000 19:23:09 +0000 (19:23 +0000)]
Change function prototypes to match the entries in krb5.hin - specifically
use krb5_const instead of const. Under ultrix they are not the same.
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@12101
dc483132-0cff-0310-8789-
dd5450dbe970
Ezra Peisach [Sun, 12 Mar 2000 19:18:52 +0000 (19:18 +0000)]
* kdb_xdr.c (krb5_dbe_lookup_mod_princ_data): In casting argument
to krb5_parse_name, use krb5_const not const.
Under ultrix, krb5_const is not the same as const
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@12100
dc483132-0cff-0310-8789-
dd5450dbe970
Miro Jurisic [Sun, 12 Mar 2000 01:38:10 +0000 (01:38 +0000)]
Updated for 3.0d3
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@12098
dc483132-0cff-0310-8789-
dd5450dbe970
Miro Jurisic [Fri, 10 Mar 2000 21:16:28 +0000 (21:16 +0000)]
get_in_tkt.c (krb5_get_init_creds): Always initialize local_as_reply to avoid returning garbage on error returns
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@12097
dc483132-0cff-0310-8789-
dd5450dbe970
Tom Yu [Wed, 1 Mar 2000 12:51:11 +0000 (12:51 +0000)]
* aclocal.m4: Tweak the HPUX shared lib build some more. Don't
use $(INSTALL_PROGRAM) for shared libs, since it strips them! We
should fix this at some point.
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@12096
dc483132-0cff-0310-8789-
dd5450dbe970
Tom Yu [Wed, 1 Mar 2000 11:33:47 +0000 (11:33 +0000)]
Tweak build system to deal somewhat better with HPUX shared libs
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@12095
dc483132-0cff-0310-8789-
dd5450dbe970
Tom Yu [Wed, 1 Mar 2000 11:26:20 +0000 (11:26 +0000)]
* kadmin.c (kadmin_cpw): Initialize ks_tuple to NULL
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@12094
dc483132-0cff-0310-8789-
dd5450dbe970
Tom Yu [Wed, 1 Mar 2000 10:42:16 +0000 (10:42 +0000)]
* main.c: Move kdc_initialize_rcache() to kdc_util.c
* kdc_util.c (kdc_initialize_rcache): Move kdc_initialize_rcache()
back here since it's needed for rtest to work. process_tgs_req()
which is called from rtest needs to call kdc_intiialize_rcache()
and we can't very well link rtest with main.o
* kdc_preauth.c (verify_sam_response): Ooops. Get rc_lifetime
from kdc_util, since it's actually declared there.
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@12093
dc483132-0cff-0310-8789-
dd5450dbe970
Tom Yu [Wed, 1 Mar 2000 10:07:26 +0000 (10:07 +0000)]
* configure.in: Fix --enable-kdc-replay-cache to actually default
to "yes".
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@12092
dc483132-0cff-0310-8789-
dd5450dbe970
Tom Yu [Wed, 1 Mar 2000 05:15:31 +0000 (05:15 +0000)]
* kdc_preauth.c (verify_sam_response): Declare and set rc_lifetime
for real.
* dispatch.c: Include some more net-related headers.
(dispatch): Fix ifndef HAVE_INET_NTOP branch.
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@12091
dc483132-0cff-0310-8789-
dd5450dbe970
Ken Raeburn [Mon, 28 Feb 2000 22:10:17 +0000 (22:10 +0000)]
new --enable/--disable-kdc-replay-cache configure hooks
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@12090
dc483132-0cff-0310-8789-
dd5450dbe970
Ken Raeburn [Mon, 28 Feb 2000 22:03:07 +0000 (22:03 +0000)]
* Makefile.in (com_err.o): Depends on com_err.c
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@12089
dc483132-0cff-0310-8789-
dd5450dbe970
Ken Raeburn [Mon, 28 Feb 2000 21:54:26 +0000 (21:54 +0000)]
* krlogin.c (main): Don't output debugging messages if debugging wasn't turned on
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@12088
dc483132-0cff-0310-8789-
dd5450dbe970
Ezra Peisach [Mon, 28 Feb 2000 16:32:47 +0000 (16:32 +0000)]
* proto_serv.c (proto_serv): For error return,strdup the returned
value from error_message to maintain its const status.
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@12087
dc483132-0cff-0310-8789-
dd5450dbe970
Ezra Peisach [Mon, 28 Feb 2000 16:24:02 +0000 (16:24 +0000)]
* aclocal.m4: Define DES425_LIB and DES425_DEPLIB all the time. We
build the des425 library all the time and these need to be define
for "make check."
This is required when compiling --without-krb4
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@12086
dc483132-0cff-0310-8789-
dd5450dbe970
Miro Jurisic [Mon, 28 Feb 2000 02:46:07 +0000 (02:46 +0000)]
Updated for 3.0d2
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@12084
dc483132-0cff-0310-8789-
dd5450dbe970
Tom Yu [Sun, 27 Feb 2000 22:22:49 +0000 (22:22 +0000)]
Update client and server to reflect removal of keepold argument from
create_principal_3.
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@12083
dc483132-0cff-0310-8789-
dd5450dbe970
Tom Yu [Sun, 27 Feb 2000 22:18:16 +0000 (22:18 +0000)]
Remove keepold argument from create_principal_3, since it is rather
useless. Update library version numbers, xdr functions,
etc. accordingly.
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@12082
dc483132-0cff-0310-8789-
dd5450dbe970
Ken Raeburn [Sat, 26 Feb 2000 03:44:56 +0000 (03:44 +0000)]
* server_acl.c (acl_get_line): Patch from Matt Crawford to permit line continuation by ending a line with a backslash
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@12081
dc483132-0cff-0310-8789-
dd5450dbe970
Ken Raeburn [Sat, 26 Feb 2000 03:24:44 +0000 (03:24 +0000)]
* kadmin.c (kadmin_modprinc): Complain if -pw option is given,
since it's ignored. Patch from Matt Crawford.
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@12080
dc483132-0cff-0310-8789-
dd5450dbe970
Ezra Peisach [Sat, 26 Feb 2000 03:07:56 +0000 (03:07 +0000)]
main() returns int - not void. Also cleanup unused variables
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@12079
dc483132-0cff-0310-8789-
dd5450dbe970
Ken Raeburn [Sat, 26 Feb 2000 02:17:14 +0000 (02:17 +0000)]
comment out doc on non-existent fn
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@12078
dc483132-0cff-0310-8789-
dd5450dbe970
Ken Raeburn [Sat, 26 Feb 2000 01:31:26 +0000 (01:31 +0000)]
* preauth2.c (krb5_do_preauth): Check paorder[h] not h for PA_REAL. Fix from Matt Crawford
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@12077
dc483132-0cff-0310-8789-
dd5450dbe970
Ken Raeburn [Sat, 26 Feb 2000 01:25:45 +0000 (01:25 +0000)]
fix email addr
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@12076
dc483132-0cff-0310-8789-
dd5450dbe970
Ken Raeburn [Sat, 26 Feb 2000 01:25:19 +0000 (01:25 +0000)]
forgot room for null pointer at end of local addr array
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@12075
dc483132-0cff-0310-8789-
dd5450dbe970
Tom Yu [Fri, 25 Feb 2000 22:11:12 +0000 (22:11 +0000)]
* configure.in: Check for sys/sockio.h
* network.c: Conditionally include sys/sockio.h for SIOC* if
necessary.
(process_packet): Bracket AF_INET6 branch of a switch statement
with an ifdef.
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@12074
dc483132-0cff-0310-8789-
dd5450dbe970
Ken Raeburn [Fri, 25 Feb 2000 22:05:02 +0000 (22:05 +0000)]
fix udp_port_fds allocation bug; partial ipv6 support
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@12073
dc483132-0cff-0310-8789-
dd5450dbe970
Ken Raeburn [Fri, 25 Feb 2000 20:52:17 +0000 (20:52 +0000)]
oops, update changelog for bug fix
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@12072
dc483132-0cff-0310-8789-
dd5450dbe970
Ken Raeburn [Fri, 25 Feb 2000 20:51:59 +0000 (20:51 +0000)]
Fix off-by-one error in previous code, spotted at the last minute.
This is why things weren't working without the loopback addresses,
which showed up last in the list, after the address my client was
trying to use, thus hiding the error.
(I tried to abort the previous checkin, but cvs went ahead with it
despite the "editor session failed" report...hm.)
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@12071
dc483132-0cff-0310-8789-
dd5450dbe970
Ken Raeburn [Fri, 25 Feb 2000 20:46:35 +0000 (20:46 +0000)]
Patches from Alec Peterson, plus some work of my own, to let a multihomed
KDC respond to requests from the same IP address that the requests were sent
to.
**N.B. This will perform worse in the case of addresses dynamically added
and removed after the KDC has started, since it will be incapable of using
any new addresses.
I'm unclear on why the loopback interface address needs to be included in
the list of addresses. Apparently, on NetBSD-current, if it's not, packets
sent to other local addresses but over the loopback interface are queued but
not received?? Needs further investigation; could just be a NetBSD bug.
* configure.in: Invoke KRB5_SOCKADDR_SA_LEN.
* network.c: Include <sys/ioctl.h>, <syslog.h>, <net/if.h>.
(foreach_localaddr): New function, copied from
lib/krb5/os/localaddr.c. Tweaked to not exclude loopback
interface.
(NEED_SOCKETS): Define before including k5-int.h.
(n_sockets): New variable.
(setup_port): New function; creates listening udp ports given an
address.
(setup_network): Call foreach_localaddr to set up listening
sockets on each local address, so we can always respond from the
receiving address.
(listen_and_process): Use n_sockets as upper bound of loop.
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@12070
dc483132-0cff-0310-8789-
dd5450dbe970
Ken Raeburn [Fri, 25 Feb 2000 20:27:43 +0000 (20:27 +0000)]
Separate interface address processing from Kerberos-related functions.
* localaddr.c (foreach_localaddr): Broken out from old krb5_os_localaddr.
Iterates over all active interface addresses, invoking callback functions;
knows nothing about Kerberos.
(count_addrs, allocate, add_addr): New callback functions.
(krb5_os_localaddr): Use the above.
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@12069
dc483132-0cff-0310-8789-
dd5450dbe970
Ezra Peisach [Fri, 25 Feb 2000 17:04:16 +0000 (17:04 +0000)]
* t_verify.c: Add "const" to casts in calls to mit_des_cbc_encrypt()
* destest.c: Declare zeroblock as krb5_octet * instead of char * as
argument to mit_des_cbc_encrypt.
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@12068
dc483132-0cff-0310-8789-
dd5450dbe970
Ken Raeburn [Fri, 25 Feb 2000 00:00:50 +0000 (00:00 +0000)]
* kerberos_v4.c (v4_klog): Don't treat the formatted text as a format string
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@12067
dc483132-0cff-0310-8789-
dd5450dbe970
Ezra Peisach [Thu, 24 Feb 2000 21:18:45 +0000 (21:18 +0000)]
* configure.in: Remove dependency on libdes425 when krb4 support
is not compiled in.
Linking with des425 is not required when krb4 is not compiled in. This
cleans up the configure.in as we use WITH_KRB4 already
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@12066
dc483132-0cff-0310-8789-
dd5450dbe970
Ezra Peisach [Thu, 24 Feb 2000 14:19:25 +0000 (14:19 +0000)]
Test for <arpa/inet.h> for possible inet_ntop prototype
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@12065
dc483132-0cff-0310-8789-
dd5450dbe970
Tom Yu [Wed, 23 Feb 2000 05:18:48 +0000 (05:18 +0000)]
* kpasswd.0/changing.exp: Add a sleep to avoid a race with the
setup script. If this isn't here, it is possible that the initial
change of pol2's password may happen too soon.
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@12064
dc483132-0cff-0310-8789-
dd5450dbe970
Ken Raeburn [Tue, 22 Feb 2000 21:15:46 +0000 (21:15 +0000)]
fix for vpath and du4.0 make
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@12063
dc483132-0cff-0310-8789-
dd5450dbe970
Ezra Peisach [Tue, 22 Feb 2000 15:24:36 +0000 (15:24 +0000)]
Makefile.in (clean-unix): Add clean-libobjs
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@12062
dc483132-0cff-0310-8789-
dd5450dbe970
Ken Raeburn [Mon, 21 Feb 2000 21:39:11 +0000 (21:39 +0000)]
from Bear Giles:
* fetch_mkey.c (krb5_db_fetch_mkey): Don't attempt to override type of key read
from stash file.
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@12061
dc483132-0cff-0310-8789-
dd5450dbe970
Ken Raeburn [Mon, 21 Feb 2000 21:38:01 +0000 (21:38 +0000)]
from Bear Giles:
* alt_prof.c (krb5_read_realm_params): Permit realm supported enctypes to be
unspecified, letting the KDC produce defaults. Don't look up enctypes at all
if an error is to be returned.
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@12060
dc483132-0cff-0310-8789-
dd5450dbe970
Ken Raeburn [Mon, 21 Feb 2000 21:36:53 +0000 (21:36 +0000)]
From Bear Giles:
* telnetd.c (doit): Provide a more useful error message than
"authentication failed" if no authentication was even attempted.
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@12059
dc483132-0cff-0310-8789-
dd5450dbe970
Ken Raeburn [Sat, 19 Feb 2000 02:34:19 +0000 (02:34 +0000)]
Volatile decls as needed.
Format attribute declarations for gcc.
Deleting some unused variables.
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@12058
dc483132-0cff-0310-8789-
dd5450dbe970
Tom Yu [Sat, 19 Feb 2000 02:05:53 +0000 (02:05 +0000)]
* kadm_rpc_svc.c (kadm_1): Update to include new api functions
* ovsec_kadmd.c (log_badverf): Update proc_names.
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@12057
dc483132-0cff-0310-8789-
dd5450dbe970
Tom Yu [Sat, 19 Feb 2000 01:57:07 +0000 (01:57 +0000)]
* keytab.c (add_usage): Update usage message.
(kadmin_keytab_add): Update to deal with explicit keysalt lists.
(add_principal): Update to deal with explicit keysalt lists.
* kadmin.c (kadmin_cpw): Add support for new api.
(kadmin_parse_princ_args): Add support for new api, particularly
-keepold to keep old keys around and -e to explicitly specify
key-salt tuples.
(kadmin_addprinc_usage): Update usage accordingly.
(kadmin_addprinc): Add support for new api.
(kadmin_modprinc): Update to call new parse_princ_args reasonably.
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@12056
dc483132-0cff-0310-8789-
dd5450dbe970
Tom Yu [Sat, 19 Feb 2000 01:50:53 +0000 (01:50 +0000)]
* kadm_rpc_xdr.c (xdr_chpass3_arg):
(xdr_chrand3_arg): Fix up calls to xdr_array.
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@12055
dc483132-0cff-0310-8789-
dd5450dbe970