]> git.ipfire.org Git - thirdparty/krb5.git/log
thirdparty/krb5.git
15 years agofix previous commit lhoward/lockout2
Luke Howard [Sat, 24 Oct 2009 16:35:02 +0000 (16:35 +0000)] 
fix previous commit

git-svn-id: svn://anonsvn.mit.edu/krb5/users/lhoward/lockout2@23016 dc483132-0cff-0310-8789-dd5450dbe970

15 years agoReassign lockout OIDs under PADL enterprise arc
Luke Howard [Sat, 24 Oct 2009 16:32:53 +0000 (16:32 +0000)] 
Reassign lockout OIDs under PADL enterprise arc

git-svn-id: svn://anonsvn.mit.edu/krb5/users/lhoward/lockout2@23015 dc483132-0cff-0310-8789-dd5450dbe970

15 years agoClarify has_rootdse_ava logic
Luke Howard [Fri, 23 Oct 2009 19:47:20 +0000 (19:47 +0000)] 
Clarify has_rootdse_ava logic

git-svn-id: svn://anonsvn.mit.edu/krb5/users/lhoward/lockout2@22998 dc483132-0cff-0310-8789-dd5450dbe970

15 years agoRemove comment that no longer applies to present behaviour
Luke Howard [Fri, 23 Oct 2009 19:47:06 +0000 (19:47 +0000)] 
Remove comment that no longer applies to present behaviour

git-svn-id: svn://anonsvn.mit.edu/krb5/users/lhoward/lockout2@22997 dc483132-0cff-0310-8789-dd5450dbe970

15 years agoSync with trunk
Luke Howard [Fri, 23 Oct 2009 19:46:55 +0000 (19:46 +0000)] 
Sync with trunk

git-svn-id: svn://anonsvn.mit.edu/krb5/users/lhoward/lockout2@22996 dc483132-0cff-0310-8789-dd5450dbe970

15 years agomerge trunk 22850:22975 into lockout2 branch
Luke Howard [Thu, 22 Oct 2009 22:20:46 +0000 (22:20 +0000)] 
merge trunk 22850:22975 into lockout2 branch

git-svn-id: svn://anonsvn.mit.edu/krb5/users/lhoward/lockout2@22976 dc483132-0cff-0310-8789-dd5450dbe970

15 years agoremove LOCKED_TIME attribute
Luke Howard [Mon, 19 Oct 2009 17:31:56 +0000 (17:31 +0000)] 
remove LOCKED_TIME attribute

git-svn-id: svn://anonsvn.mit.edu/krb5/users/lhoward/lockout2@22936 dc483132-0cff-0310-8789-dd5450dbe970

15 years agoCreating a branch for lockout without explicit lockout time
Luke Howard [Mon, 19 Oct 2009 16:38:50 +0000 (16:38 +0000)] 
Creating a branch for lockout without explicit lockout time

git-svn-id: svn://anonsvn.mit.edu/krb5/users/lhoward/lockout2@22934 dc483132-0cff-0310-8789-dd5450dbe970

15 years agofix some indentation issues lhoward/lockout
Luke Howard [Tue, 6 Oct 2009 14:12:57 +0000 (14:12 +0000)] 
fix some indentation issues

git-svn-id: svn://anonsvn.mit.edu/krb5/users/lhoward/lockout@22852 dc483132-0cff-0310-8789-dd5450dbe970

15 years agoremove hash_provider, somehow its removal did not sync from trunk
Luke Howard [Tue, 6 Oct 2009 13:41:52 +0000 (13:41 +0000)] 
remove hash_provider, somehow its removal did not sync from trunk

git-svn-id: svn://anonsvn.mit.edu/krb5/users/lhoward/lockout@22851 dc483132-0cff-0310-8789-dd5450dbe970

15 years agomerge trunk from r22835 to r22849 to lockout branch
Luke Howard [Tue, 6 Oct 2009 13:25:43 +0000 (13:25 +0000)] 
merge trunk from r22835 to r22849 to lockout branch

git-svn-id: svn://anonsvn.mit.edu/krb5/users/lhoward/lockout@22850 dc483132-0cff-0310-8789-dd5450dbe970

15 years agoadd changes for v3 kadm5 API tests
Luke Howard [Tue, 6 Oct 2009 13:22:38 +0000 (13:22 +0000)] 
add changes for v3 kadm5 API tests

git-svn-id: svn://anonsvn.mit.edu/krb5/users/lhoward/lockout@22849 dc483132-0cff-0310-8789-dd5450dbe970

15 years agoclone api.2 tests for api.3
Luke Howard [Tue, 6 Oct 2009 13:21:39 +0000 (13:21 +0000)] 
clone api.2 tests for api.3

git-svn-id: svn://anonsvn.mit.edu/krb5/users/lhoward/lockout@22848 dc483132-0cff-0310-8789-dd5450dbe970

15 years agoadd V3 kadm5 test infrastructure
Luke Howard [Tue, 6 Oct 2009 13:20:31 +0000 (13:20 +0000)] 
add V3 kadm5 test infrastructure

git-svn-id: svn://anonsvn.mit.edu/krb5/users/lhoward/lockout@22847 dc483132-0cff-0310-8789-dd5450dbe970

15 years agoadd some tests for V3 kadm5 API
Luke Howard [Tue, 6 Oct 2009 13:19:38 +0000 (13:19 +0000)] 
add some tests for V3 kadm5 API

git-svn-id: svn://anonsvn.mit.edu/krb5/users/lhoward/lockout@22846 dc483132-0cff-0310-8789-dd5450dbe970

15 years agocorrect types for lockout policy; was failing on 64-bit builds
Luke Howard [Mon, 5 Oct 2009 18:08:47 +0000 (18:08 +0000)] 
correct types for lockout policy; was failing on 64-bit builds

git-svn-id: svn://anonsvn.mit.edu/krb5/users/lhoward/lockout@22844 dc483132-0cff-0310-8789-dd5450dbe970

15 years agomerge trunk from r22715 to r22835 to lockout branch
Luke Howard [Fri, 2 Oct 2009 17:22:12 +0000 (17:22 +0000)] 
merge trunk from r22715 to r22835 to lockout branch

git-svn-id: svn://anonsvn.mit.edu/krb5/users/lhoward/lockout@22836 dc483132-0cff-0310-8789-dd5450dbe970

15 years agoadd an assertion check
Luke Howard [Fri, 2 Oct 2009 15:43:57 +0000 (15:43 +0000)] 
add an assertion check

git-svn-id: svn://anonsvn.mit.edu/krb5/users/lhoward/lockout@22835 dc483132-0cff-0310-8789-dd5450dbe970

15 years agocareful not to conflate locked_time and fail_auth_count; the former is reset after...
Luke Howard [Fri, 2 Oct 2009 14:02:31 +0000 (14:02 +0000)] 
careful not to conflate locked_time and fail_auth_count; the former is reset after lockout_duration, the latter after failcnt_interval

git-svn-id: svn://anonsvn.mit.edu/krb5/users/lhoward/lockout@22833 dc483132-0cff-0310-8789-dd5450dbe970

15 years agoensure fail_auth_count is reset when unlocking an account automatically
Luke Howard [Fri, 2 Oct 2009 13:28:43 +0000 (13:28 +0000)] 
ensure fail_auth_count is reset when unlocking an account automatically

git-svn-id: svn://anonsvn.mit.edu/krb5/users/lhoward/lockout@22832 dc483132-0cff-0310-8789-dd5450dbe970

15 years agoadd lockout attributes to Novell Kerbero schema LDIF
Luke Howard [Fri, 2 Oct 2009 13:09:56 +0000 (13:09 +0000)] 
add lockout attributes to Novell Kerbero schema LDIF

git-svn-id: svn://anonsvn.mit.edu/krb5/users/lhoward/lockout@22831 dc483132-0cff-0310-8789-dd5450dbe970

15 years agodon't attempt to remove locked time if unset; fix fail_auth_count logic error (becaus...
Luke Howard [Fri, 2 Oct 2009 12:48:06 +0000 (12:48 +0000)] 
don't attempt to remove locked time if unset; fix fail_auth_count logic error (because it did not account for increment)

git-svn-id: svn://anonsvn.mit.edu/krb5/users/lhoward/lockout@22830 dc483132-0cff-0310-8789-dd5450dbe970

15 years agocleanup
Luke Howard [Fri, 2 Oct 2009 12:23:47 +0000 (12:23 +0000)] 
cleanup

git-svn-id: svn://anonsvn.mit.edu/krb5/users/lhoward/lockout@22829 dc483132-0cff-0310-8789-dd5450dbe970

15 years agofix arguments to ldap_sasl_bind_s() not to cause a decoding error with OpenLDAP;...
Luke Howard [Fri, 2 Oct 2009 12:17:05 +0000 (12:17 +0000)] 
fix arguments to ldap_sasl_bind_s() not to cause a decoding error with OpenLDAP; modify increment is advertised as supportedFeatures not supportedExtension

git-svn-id: svn://anonsvn.mit.edu/krb5/users/lhoward/lockout@22828 dc483132-0cff-0310-8789-dd5450dbe970

15 years agofix some OID conflicts in kerberos.schema
Luke Howard [Fri, 2 Oct 2009 12:15:30 +0000 (12:15 +0000)] 
fix some OID conflicts in kerberos.schema

git-svn-id: svn://anonsvn.mit.edu/krb5/users/lhoward/lockout@22827 dc483132-0cff-0310-8789-dd5450dbe970

15 years agoremove assertion check; may not be true if policy has been updated between verify...
Luke Howard [Tue, 15 Sep 2009 06:42:01 +0000 (06:42 +0000)] 
remove assertion check; may not be true if policy has been updated between verify and audit callbacks

git-svn-id: svn://anonsvn.mit.edu/krb5/users/lhoward/lockout@22764 dc483132-0cff-0310-8789-dd5450dbe970

15 years agowhen unlocking an account, delete krbPwdPrincipalLockedTime attribute
Luke Howard [Tue, 15 Sep 2009 06:19:32 +0000 (06:19 +0000)] 
when unlocking an account, delete krbPwdPrincipalLockedTime attribute

git-svn-id: svn://anonsvn.mit.edu/krb5/users/lhoward/lockout@22763 dc483132-0cff-0310-8789-dd5450dbe970

15 years agoDon't allow KADM5_FAIL_AUTH_COUNT to be set; account can only
Luke Howard [Tue, 15 Sep 2009 06:14:54 +0000 (06:14 +0000)] 
Don't allow KADM5_FAIL_AUTH_COUNT to be set; account can only
be unlocked by setting KADM5_LOCKED_TIME.

When a password is changed, also unlock the account, albeit
only on the local server.

Always propagate KADM5_LOCKED_TIME flag to DB provider when
resetting lock time.

Always propagate KADM5_TL_DATA flag to DB provider when
updating entry.

git-svn-id: svn://anonsvn.mit.edu/krb5/users/lhoward/lockout@22760 dc483132-0cff-0310-8789-dd5450dbe970

15 years agomake sure KADM5_TL_DATA is set when updating lockout time
Luke Howard [Tue, 15 Sep 2009 05:53:05 +0000 (05:53 +0000)] 
make sure KADM5_TL_DATA is set when updating lockout time

git-svn-id: svn://anonsvn.mit.edu/krb5/users/lhoward/lockout@22759 dc483132-0cff-0310-8789-dd5450dbe970

15 years agoif lockout_duration is 0, account is permanently locked
Luke Howard [Tue, 15 Sep 2009 05:40:52 +0000 (05:40 +0000)] 
if lockout_duration is 0, account is permanently locked

git-svn-id: svn://anonsvn.mit.edu/krb5/users/lhoward/lockout@22758 dc483132-0cff-0310-8789-dd5450dbe970

15 years agoadd support for RFC 4525 (modify increment) for updating krbLoginFailedCount
Luke Howard [Mon, 14 Sep 2009 20:22:21 +0000 (20:22 +0000)] 
add support for RFC 4525 (modify increment) for updating krbLoginFailedCount

git-svn-id: svn://anonsvn.mit.edu/krb5/users/lhoward/lockout@22757 dc483132-0cff-0310-8789-dd5450dbe970

15 years agoadd KDB_LOCKED_TIME_ATTR
Luke Howard [Mon, 14 Sep 2009 19:34:55 +0000 (19:34 +0000)] 
add KDB_LOCKED_TIME_ATTR

git-svn-id: svn://anonsvn.mit.edu/krb5/users/lhoward/lockout@22756 dc483132-0cff-0310-8789-dd5450dbe970

15 years agosupport retrieval of krbPwdPrincipalLockedTime
Luke Howard [Mon, 14 Sep 2009 19:29:51 +0000 (19:29 +0000)] 
support retrieval of krbPwdPrincipalLockedTime

git-svn-id: svn://anonsvn.mit.edu/krb5/users/lhoward/lockout@22755 dc483132-0cff-0310-8789-dd5450dbe970

15 years agocleanup
Luke Howard [Mon, 14 Sep 2009 18:26:22 +0000 (18:26 +0000)] 
cleanup

git-svn-id: svn://anonsvn.mit.edu/krb5/users/lhoward/lockout@22754 dc483132-0cff-0310-8789-dd5450dbe970

15 years agohonour KADM5 mask for last_success/last_failed/fail_auth_count
Luke Howard [Mon, 14 Sep 2009 17:10:37 +0000 (17:10 +0000)] 
honour KADM5 mask for last_success/last_failed/fail_auth_count

git-svn-id: svn://anonsvn.mit.edu/krb5/users/lhoward/lockout@22753 dc483132-0cff-0310-8789-dd5450dbe970

15 years agopreliminary, untested, and possibly quite inefficient implementation of LDAP lockout
Luke Howard [Mon, 14 Sep 2009 16:44:40 +0000 (16:44 +0000)] 
preliminary, untested, and possibly quite inefficient implementation of LDAP lockout

git-svn-id: svn://anonsvn.mit.edu/krb5/users/lhoward/lockout@22752 dc483132-0cff-0310-8789-dd5450dbe970

15 years agocleanup
Luke Howard [Mon, 14 Sep 2009 15:01:48 +0000 (15:01 +0000)] 
cleanup

git-svn-id: svn://anonsvn.mit.edu/krb5/users/lhoward/lockout@22751 dc483132-0cff-0310-8789-dd5450dbe970

15 years agoadd some debugging about API version
Luke Howard [Sun, 13 Sep 2009 22:37:40 +0000 (22:37 +0000)] 
add some debugging about API version

git-svn-id: svn://anonsvn.mit.edu/krb5/users/lhoward/lockout@22749 dc483132-0cff-0310-8789-dd5450dbe970

15 years agoadd support for merging in non-replicated attributes to db2 backend
Luke Howard [Sun, 13 Sep 2009 20:21:44 +0000 (20:21 +0000)] 
add support for merging in non-replicated attributes to db2 backend

git-svn-id: svn://anonsvn.mit.edu/krb5/users/lhoward/lockout@22748 dc483132-0cff-0310-8789-dd5450dbe970

15 years agocleanup, don't dump non-replicated attributes if -i option is given
Luke Howard [Sun, 13 Sep 2009 20:21:23 +0000 (20:21 +0000)] 
cleanup, don't dump non-replicated attributes if -i option is given

git-svn-id: svn://anonsvn.mit.edu/krb5/users/lhoward/lockout@22747 dc483132-0cff-0310-8789-dd5450dbe970

15 years agoremove -merge option, this is implied by iprop dump format
Luke Howard [Sun, 13 Sep 2009 20:20:47 +0000 (20:20 +0000)] 
remove -merge option, this is implied by iprop dump format

git-svn-id: svn://anonsvn.mit.edu/krb5/users/lhoward/lockout@22746 dc483132-0cff-0310-8789-dd5450dbe970

15 years agoclean usage, document usage extensions
Luke Howard [Sun, 13 Sep 2009 15:49:20 +0000 (15:49 +0000)] 
clean usage, document usage extensions

git-svn-id: svn://anonsvn.mit.edu/krb5/users/lhoward/lockout@22745 dc483132-0cff-0310-8789-dd5450dbe970

15 years agowork on dump versioning
Luke Howard [Sun, 13 Sep 2009 14:09:33 +0000 (14:09 +0000)] 
work on dump versioning

git-svn-id: svn://anonsvn.mit.edu/krb5/users/lhoward/lockout@22743 dc483132-0cff-0310-8789-dd5450dbe970

15 years agouse negative numbers for non-replicated TL data
Luke Howard [Wed, 9 Sep 2009 10:49:35 +0000 (10:49 +0000)] 
use negative numbers for non-replicated TL data

git-svn-id: svn://anonsvn.mit.edu/krb5/users/lhoward/lockout@22717 dc483132-0cff-0310-8789-dd5450dbe970

15 years agoInitial work on lockout
Luke Howard [Tue, 8 Sep 2009 20:47:17 +0000 (20:47 +0000)] 
Initial work on lockout

git-svn-id: svn://anonsvn.mit.edu/krb5/users/lhoward/lockout@22716 dc483132-0cff-0310-8789-dd5450dbe970

15 years agoCreating a branch for account lockout work
Luke Howard [Tue, 8 Sep 2009 12:42:43 +0000 (12:42 +0000)] 
Creating a branch for account lockout work

git-svn-id: svn://anonsvn.mit.edu/krb5/users/lhoward/lockout@22715 dc483132-0cff-0310-8789-dd5450dbe970

15 years agoSupply canonical name if present in LDAP iteration
Greg Hudson [Thu, 3 Sep 2009 20:41:56 +0000 (20:41 +0000)] 
Supply canonical name if present in LDAP iteration

In the presence of aliases, LDAP iteration was supplying the first
principal it found within the expected realm, which is not necessarily
the same as the canonical name.  If the entry has a canonical name
field, use that in preference to any of the principal names.

ticket: 6557
target_version: 1.7.1
tags: pullup

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

15 years agoCrypto modularity proj: OpemSSL crypto feed for hmac/md5/md4/sha1/rc4/des/des3(w...
Zhanna Tsitkov [Thu, 3 Sep 2009 18:33:13 +0000 (18:33 +0000)] 
Crypto modularity proj: OpemSSL crypto feed for hmac/md5/md4/sha1/rc4/des/des3(w/o iov)

bigredbutton: whitespace

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

15 years agoSupply LDAP service principal aliases to non-referrals clients
Greg Hudson [Thu, 3 Sep 2009 17:39:50 +0000 (17:39 +0000)] 
Supply LDAP service principal aliases to non-referrals clients

In the LDAP back end, return aliases when the CLIENT_REFERRALS_ONLY
flag isn't set (abusing that flag to recognize a client name lookup).
Based on a patch from Luke Howard.

ticket: 6556
target_version: 1.7
tags: pullup

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

15 years agoCrypto modularity proj: Move enc_provider into builtin dir. Adjust builtin make syste...
Zhanna Tsitkov [Wed, 2 Sep 2009 20:21:36 +0000 (20:21 +0000)] 
Crypto modularity proj: Move enc_provider into builtin dir. Adjust builtin make system  to handle new crypto implementations

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

15 years agoldap master key migration test's input files
HaoQi Li [Mon, 31 Aug 2009 22:44:15 +0000 (22:44 +0000)] 
ldap master key migration test's input files

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

15 years agoldap master key migration stuff
HaoQi Li [Mon, 31 Aug 2009 22:42:08 +0000 (22:42 +0000)] 
ldap master key migration stuff

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

15 years agoThis time I actually added the files
HaoQi Li [Mon, 31 Aug 2009 20:57:41 +0000 (20:57 +0000)] 
This time I actually added the files

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

15 years agoAdded Master Key Migration db2 backend stuff
HaoQi Li [Mon, 31 Aug 2009 20:06:03 +0000 (20:06 +0000)] 
Added Master Key Migration db2 backend stuff

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

15 years agouse perror instead of error in kadm5 test suite
Tom Yu [Fri, 28 Aug 2009 21:36:28 +0000 (21:36 +0000)] 
use perror instead of error in kadm5 test suite

Use "perror" instead of "error" to ensure that framework error
conditions actually cause "make check" to report failure.

ticket: 6553
target_version: 1.7.1
tags: pullup

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

15 years agoClean up a little bit of test suite spew in env-setup: first, when
Greg Hudson [Fri, 28 Aug 2009 21:22:10 +0000 (21:22 +0000)] 
Clean up a little bit of test suite spew in env-setup: first, when
using BSD options with ps, they should not be prefixed with a '-';
second, the Linux ps supports both BSD and System V options, so change
the structure of the tests not to warn when both forms work.

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

15 years agoUpdate a kadm5 testing library function which was calling
Greg Hudson [Fri, 28 Aug 2009 21:02:51 +0000 (21:02 +0000)] 
Update a kadm5 testing library function which was calling
kadm5_get_principal without a mask argment.  This was causing many
lib/kadm5 tests to fail, but the failures weren't being recorded
properly, so "make check" was still exiting successfully.

ticket: 6544

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

15 years agoRemove bogus conditional from tcl_kadm5_randkey_principal(), which was
Tom Yu [Fri, 28 Aug 2009 20:29:24 +0000 (20:29 +0000)] 
Remove bogus conditional from tcl_kadm5_randkey_principal(), which was
causing unparse_keyblocks() to get stack garbage as num_keys when
num_var was "null", thus overrunning the end of the array.

ticket: 6544

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

15 years agoDocument kinit -C and -E options
Greg Hudson [Fri, 28 Aug 2009 17:23:20 +0000 (17:23 +0000)] 
Document kinit -C and -E options

kinit -C (canonicalize name) and -E (enterprise principal name)
weren't documented in the man page.

ticket: 6552
target_version: 1.7.1
tags: pullup

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

15 years agoDisable the COPY_FIRST_CANONNAME workaround on Linux glibc 2.4 and
Greg Hudson [Fri, 28 Aug 2009 16:00:54 +0000 (16:00 +0000)] 
Disable the COPY_FIRST_CANONNAME workaround on Linux glibc 2.4 and
later, since it leaks memory on fixed glibc versions.  We will still
leak memory on glibc 2.3.4 through 2.3.6 (e.g. RHEL 4) but that's
harder to detect.

ticket: 6534

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

15 years agoMemory leak in spnego accept_sec_context error path
Greg Hudson [Thu, 27 Aug 2009 13:40:50 +0000 (13:40 +0000)] 
Memory leak in spnego accept_sec_context error path

If the underlying mechanism's accept_sec_context returns an error, the
spnego accept_sec_context was leaving allocated data in
*context_handle, which is incorrect for the first call according to
RFC 2744.

Fix this by mirroring some code from the spnego init_sec_context,
which always cleans up the half-constructed context in case of error.
This is allowed (though not encouraged) by RFC 2744 for second and
subsequent calls; since we were already doing it in init_sec_context,
it seems simpler to do that than keep track of whether this is a first
call or not.

ticket: 6551
tags: pullup
target_version: 1.7

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

15 years agoRename db2 header files db.h and db-config.h in the source tree, so
Ken Raeburn [Fri, 21 Aug 2009 22:37:55 +0000 (22:37 +0000)] 
Rename db2 header files db.h and db-config.h in the source tree, so
that there will always be only one version of each name in the include
path (namely, the copy made in the build tree, or the generated db.h
if not using the in-tree one).  This should fix some minor problems
with different dependency lists generated on different systems.

Sort and uniquify dependency header names before doing substitutions,
as well as after.  Look for the db2 headers listed in sorted order.

Don't copy db-ndbm.h into the build tree; let libdb2 find it from the
source tree only.

Update dependencies.

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

15 years agoupdate dependencies
Ken Raeburn [Fri, 21 Aug 2009 22:30:43 +0000 (22:30 +0000)] 
update dependencies

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

15 years agoUse load_32_be processing length in TCP reply
Ken Raeburn [Fri, 21 Aug 2009 18:32:53 +0000 (18:32 +0000)] 
Use load_32_be processing length in TCP reply

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

15 years agoChange "vague-errors" compile-time conditionals into run-time
Ken Raeburn [Fri, 21 Aug 2009 18:32:50 +0000 (18:32 +0000)] 
Change "vague-errors" compile-time conditionals into run-time
conditionals, based on a variable initialized based on the
compile-time conditional (but probably eventually set from the config
file or command line).

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

15 years agoUse {load,store}_{16,32}_be for big-endian integers
Ken Raeburn [Fri, 21 Aug 2009 18:32:46 +0000 (18:32 +0000)] 
Use {load,store}_{16,32}_be for big-endian integers

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

15 years agoMinor code cleanups in pkinit plugin, mostly around malloc/free
Greg Hudson [Tue, 18 Aug 2009 03:05:16 +0000 (03:05 +0000)] 
Minor code cleanups in pkinit plugin, mostly around malloc/free
invocations.  No functional changes.

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

15 years agoBump sonames of libkadm5 libraries, since r22527 changed their ABIs
Greg Hudson [Mon, 17 Aug 2009 20:07:21 +0000 (20:07 +0000)] 
Bump sonames of libkadm5 libraries, since r22527 changed their ABIs

ticket: 6547

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

15 years agoModify kadm5 initializers to accept krb5 contexts
Greg Hudson [Mon, 17 Aug 2009 19:40:48 +0000 (19:40 +0000)] 
Modify kadm5 initializers to accept krb5 contexts

Add krb5_context parameters to all kadm5 initialization functions.
This allows extended error information to be retrieved by the caller
when an error is returned.

ticket: 6547

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

15 years agoRemove unused variables resulting from r22521, and also remove the
Greg Hudson [Mon, 17 Aug 2009 14:39:44 +0000 (14:39 +0000)] 
Remove unused variables resulting from r22521, and also remove the
unused file svr_misc_free.c.

ticket: 6544

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

16 years agoIn doc/Makefile, specify the new location of the kpasswd man page (the
Greg Hudson [Fri, 14 Aug 2009 16:24:36 +0000 (16:24 +0000)] 
In doc/Makefile, specify the new location of the kpasswd man page (the
old one was removed in r22521.

ticket: 6544

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

16 years agoRemove kadmin v1 API support
Greg Hudson [Thu, 13 Aug 2009 21:25:54 +0000 (21:25 +0000)] 
Remove kadmin v1 API support

The kadmin v1 API and the even older ovsec_kadm_* API were legacy when
kadmin was first incorporated in 1996, and compatibility with them is
no longer believed to be necessary.

The uninstalled kadmin/passwd has been removed (since it used the ovsec
API).  The test suite has been updated to use the v2 API where
appropriate, and the parts specifically designed to test the old API
have been excised.

ticket: 6544

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

16 years agoFix lib/crypto/krb/dk/Makefile.in mydir value
Greg Hudson [Thu, 13 Aug 2009 18:48:46 +0000 (18:48 +0000)] 
Fix lib/crypto/krb/dk/Makefile.in mydir value

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

16 years agoReply message ordering bug in ftpd
Greg Hudson [Wed, 12 Aug 2009 18:53:47 +0000 (18:53 +0000)] 
Reply message ordering bug in ftpd

user() was replying to the user command and then calling login(),
which could send a continuation reply if it fails to chdir to the
user's homedir.  Continuation replies must come before the actual
reply; the mis-ordering was causing ftp and ftpd to deadlock.  To fix
the bug, invoke login() before reply() so that the continuation reply
comes first.

ticket: 6543
tags: pullup
target_version: 1.7

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

16 years ago r22529@squish: raeburn | 2009-08-12 13:49:45 -0400
Ken Raeburn [Wed, 12 Aug 2009 17:58:24 +0000 (17:58 +0000)] 
 r22529@squish:  raeburn | 2009-08-12 13:49:45 -0400
 .
 r22530@squish:  raeburn | 2009-08-12 13:55:57 -0400
 Change KRBCONF_KDC_MODIFIES_KDB to a mostly run-time option.

 Change all code conditionals to test a new global variable, the
 initial value of which is based on KRBCONF_KDC_MODIFIES_KDB.  There is
 currently no way to alter the value from the command line; that will
 presumably be desired later.

 Change initialize_realms to store db_args in a global variable.  In
 process_as_req, call db_open instead of the old set_name + init.
 Don't reopen if an error is reported by krb5_db_fini.

 Add a test of running kinit with an incorrect password, to trigger a
 kdb update if enabled.
 r22531@squish:  raeburn | 2009-08-12 13:58:13 -0400
 Fix trailing whitespace.

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

16 years agoCorrect the t_nfold build rules again. We don't have a simple way of
Greg Hudson [Mon, 10 Aug 2009 19:35:34 +0000 (19:35 +0000)] 
Correct the t_nfold build rules again.  We don't have a simple way of
plucking object files from other directories (we don't know for sure
what extension to use), so build an nfold.o in this directory from the
nfold.c in the ../krb source directory.

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

16 years agoCheck for null characters in pkinit cert fields
Greg Hudson [Mon, 10 Aug 2009 19:12:47 +0000 (19:12 +0000)] 
Check for null characters in pkinit cert fields

When processing DNS names or MS UPNs in pkinit certs, disallow
embedded null characters.

ticket: 6542
tags: pullup
target_version: 1.7

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

16 years agoNarrow the contract of pkinit_client_profile by passing in the realm
Greg Hudson [Mon, 10 Aug 2009 05:26:05 +0000 (05:26 +0000)] 
Narrow the contract of pkinit_client_profile by passing in the realm
instead of the whole request.

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

16 years agoIn pkinit_clnt.c, make private functions static. There and in
Greg Hudson [Mon, 10 Aug 2009 05:16:24 +0000 (05:16 +0000)] 
In pkinit_clnt.c, make private functions static.  There and in
pkinit_srv.c, only declare static functions when necessary for forward
references (as is consistent with the other pkinit sources).  Remove
the empty functions pkinit_init_client_profile and
pkinit_fini_client_profile.

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

16 years agoConvert all uses of strtok() in libraries to strtok_r() for thread
Greg Hudson [Mon, 10 Aug 2009 05:02:43 +0000 (05:02 +0000)] 
Convert all uses of strtok() in libraries to strtok_r() for thread
safety.

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

16 years agoRemove pkinit_identity_process_option, which wasn't doing anything
Greg Hudson [Mon, 10 Aug 2009 04:42:44 +0000 (04:42 +0000)] 
Remove pkinit_identity_process_option, which wasn't doing anything
besides picking a subsidiary function based on the (constant) input
argument.  Remove the associated constants from pkinit.h as well.  No
functional change.

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

16 years agoFix the LDAP build, which was broken by the build reordering in
Greg Hudson [Fri, 7 Aug 2009 19:17:57 +0000 (19:17 +0000)] 
Fix the LDAP build, which was broken by the build reordering in
r22406.  Build kdb5_util's getdate from the kadmin/cli getdate
source, instead of borrowing the object file from the kadmin/cli
build directory.

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

16 years agoIn crypto_tests: for t_nfold, link against an nfold object file in the
Greg Hudson [Mon, 3 Aug 2009 23:18:42 +0000 (23:18 +0000)] 
In crypto_tests: for t_nfold, link against an nfold object file in the
build directory, not the source directory.  Remove the nfold object
from the t_encrypt dependency list since we don't directly use it in
the linking rule.

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

16 years agoBe a little more verbose about errors from mit_des_key_sched(), and
Tom Yu [Mon, 3 Aug 2009 21:58:15 +0000 (21:58 +0000)] 
Be a little more verbose about errors from mit_des_key_sched(), and
remember to print newlines.

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

16 years agoFix deplibs for t_crc
Tom Yu [Mon, 3 Aug 2009 21:19:46 +0000 (21:19 +0000)] 
Fix deplibs for t_crc

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

16 years agoGet "make depend" to work in an unbuilt source tree, since bad deps
Greg Hudson [Mon, 3 Aug 2009 20:27:03 +0000 (20:27 +0000)] 
Get "make depend" to work in an unbuilt source tree, since bad deps
files can make it difficult to build the tree.  To do this, make the
depends target depend on generated header files and on header file
copies or links into the main include directory.

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

16 years agoRe-run make depend. (I am not certain why the dependencies from
Greg Hudson [Mon, 3 Aug 2009 18:40:22 +0000 (18:40 +0000)] 
Re-run make depend.  (I am not certain why the dependencies from
r22477 didn't work for me.)

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

16 years agoIn the crypto-tests check target, refer to t_cf2.expected in the
Greg Hudson [Mon, 3 Aug 2009 18:00:18 +0000 (18:00 +0000)] 
In the crypto-tests check target, refer to t_cf2.expected in the
source tree (where it lives) instead of the cwd.

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

16 years agoIn configure.in's list of Makefiles to generate, remove the trailing
Greg Hudson [Mon, 3 Aug 2009 17:57:05 +0000 (17:57 +0000)] 
In configure.in's list of Makefiles to generate, remove the trailing
slash from lib/crypto/krb as it breaks Makefile auto-regeneration.
While here, wrap the list to fit within 80 columns and use tab indents
to match the surrounding lines.

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

16 years agoCrypto modularity proj: Separate files under crypto directory based on their function...
Zhanna Tsitkov [Mon, 3 Aug 2009 14:19:16 +0000 (14:19 +0000)] 
Crypto modularity proj: Separate files under crypto directory based on their functionality. Move  Kerberos specific files into krb subdir and MIT specific - into builtin subdir. Place all tests into crypto_tests subfolder.

bigredbutton: whitespace

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

16 years agoFix of the test cleanup
Zhanna Tsitkov [Sat, 1 Aug 2009 02:25:56 +0000 (02:25 +0000)] 
Fix of the test cleanup

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

16 years agoInclude <assert.h> in k5-platform.h, since we use assertions in some
Greg Hudson [Thu, 30 Jul 2009 19:06:37 +0000 (19:06 +0000)] 
Include <assert.h> in k5-platform.h, since we use assertions in some
of the macros defined there, as well as in many source files which do
not themselves include <assert.h>.  Report and fix by Rainer Weikusat.

ticket: 6533
tags: pullup
target_version: 1.7

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

16 years agoFix memory leak in k5_pac_verify_server_checksum
Ezra Peisach [Thu, 30 Jul 2009 17:22:28 +0000 (17:22 +0000)] 
Fix memory leak in k5_pac_verify_server_checksum

k5_pac_verify_server_checksum was leaking memory when the checksum was valid.

t_pac.c: Fix memory leak by forgetting to release memory.

ticket: 6541

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

16 years agomemory leak in test code t_authdata
Ezra Peisach [Thu, 30 Jul 2009 17:12:20 +0000 (17:12 +0000)] 
memory leak in test code t_authdata

Free the krb5_context at the end to release memory.

ticket: 6540

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

16 years agoFix memory leak by release context at end of test code
Ezra Peisach [Thu, 30 Jul 2009 01:07:03 +0000 (01:07 +0000)] 
Fix memory leak by release context at end of test code

ticket: 6539

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

16 years agoEnctype list configuration enhancements
Greg Hudson [Wed, 29 Jul 2009 16:10:32 +0000 (16:10 +0000)] 
Enctype list configuration enhancements

In the processing code for enctype lists, add support for "DEFAULT"
to indicate the default list, for families (des/des3/aes/rc4), and
for removing entries from the current list (-foo).  Also add unit
tests and document.

ticket: 6539

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

16 years agoCrypto Modularity proj: Added an option --with-crypto-impl to configure.in to specify...
Zhanna Tsitkov [Tue, 28 Jul 2009 16:21:19 +0000 (16:21 +0000)] 
Crypto Modularity proj: Added an option --with-crypto-impl to configure.in to specify crypto impl

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

16 years agoUse zero-terminated enctype lists in the context structure instead of
Greg Hudson [Mon, 27 Jul 2009 17:41:19 +0000 (17:41 +0000)] 
Use zero-terminated enctype lists in the context structure instead of
counted lists, to reduce impedance mismatches.

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

16 years agoinclude win-mac.h in gssftp/ftp/cmds.c for HAVE_STDLIB_H
Tom Yu [Fri, 17 Jul 2009 01:35:58 +0000 (01:35 +0000)] 
include win-mac.h in gssftp/ftp/cmds.c for HAVE_STDLIB_H

gssftp/ftp/cmds.c had a preprocessor conditional on HAVE_STDLIB_H that
will not evaluate correctly on WIN32 unless win-mac.h is included first.

ticket: 6531
target_version: 1.6.4
tags: pullup

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

16 years agocheck for slogin failure in setup_root_shell
Tom Yu [Fri, 10 Jul 2009 19:46:20 +0000 (19:46 +0000)] 
check for slogin failure in setup_root_shell

Add a check for a slogin message that indicates an unknown public key
fingerprint, as rlogin looks like it points to slogin by default on
Debian Lenny.

ticket: 6530
target_version: 1.7.1
tags: pullup

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