]> git.ipfire.org Git - thirdparty/krb5.git/log
thirdparty/krb5.git
16 years agoUpdate kdb5_util purge_mkey's messaging behavior to be more informative mkey_migrate
Will Fiveash [Fri, 30 Jan 2009 21:36:09 +0000 (21:36 +0000)] 
Update kdb5_util purge_mkey's messaging behavior to be more informative

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

16 years agomerge to trunk r21838; no conflicts; tested on mac, and partially tested on linux
Ken Raeburn [Fri, 30 Jan 2009 21:12:30 +0000 (21:12 +0000)] 
merge to trunk r21838; no conflicts; tested on mac, and partially tested on linux

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

16 years agoexport krb5_dbe_lookup_mkey_aux
Ken Raeburn [Fri, 30 Jan 2009 20:27:48 +0000 (20:27 +0000)] 
export krb5_dbe_lookup_mkey_aux

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

16 years agoImplemented kdb5_util purge_meys
Will Fiveash [Fri, 30 Jan 2009 20:07:37 +0000 (20:07 +0000)] 
Implemented kdb5_util purge_meys

Fixed a number of memleaks where the master key list was refetched.

Modified the initial actkvno TL entry to set the act_time to 0 in case
the kdc's clock is moved back after the initial entry is created.  This
way the initial mkey will always be active.

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

16 years agomerge to trunk r21834; no conflicts; tested on mac and linux
Ken Raeburn [Fri, 30 Jan 2009 16:45:10 +0000 (16:45 +0000)] 
merge to trunk r21834; no conflicts; tested on mac and linux

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

16 years agoWhen listing master key versions, if none of them appears to be active
Ken Raeburn [Thu, 29 Jan 2009 23:47:47 +0000 (23:47 +0000)] 
When listing master key versions, if none of them appears to be active
(can currently happen in certain time-warp cases), print a message to
that effect and keep going with the listing.

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

16 years agoSupport -n (dry-run) and -v (verbose) options for update_princ_encryption
Ken Raeburn [Thu, 29 Jan 2009 23:06:31 +0000 (23:06 +0000)] 
Support -n (dry-run) and -v (verbose) options for update_princ_encryption

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

16 years agohandle updating an activation time for a mkvno that already has one
Ken Raeburn [Thu, 29 Jan 2009 22:36:04 +0000 (22:36 +0000)] 
handle updating an activation time for a mkvno that already has one

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

16 years agoreport error if time string doesn't parse
Ken Raeburn [Thu, 29 Jan 2009 21:23:09 +0000 (21:23 +0000)] 
report error if time string doesn't parse

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

16 years agoImplement "kdb5_util update_princ_encryption"
Ken Raeburn [Thu, 29 Jan 2009 20:28:58 +0000 (20:28 +0000)] 
Implement "kdb5_util update_princ_encryption"

Duplicates glob-to-regexp code from libkadm5srv for now (noted in
comments in both places).

Updated kdb5_util.M for update_princ_encryption, and added
placeholders for add_mkey, use_mkey, and list_mkeys.

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

16 years agoUnlock mutex for principal-iterator callback. (Bug still present for policies.)
Ken Raeburn [Thu, 29 Jan 2009 19:54:21 +0000 (19:54 +0000)] 
Unlock mutex for principal-iterator callback.  (Bug still present for policies.)

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

16 years agoImplement krb5_db_store_master_key_list.
Greg Hudson [Thu, 29 Jan 2009 19:07:52 +0000 (19:07 +0000)] 
Implement krb5_db_store_master_key_list.
Make "kdb5_util stash" store the full master key list.
Make "kdb5_util stash" use a preexisting stashed key if available.

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

16 years agoFix an issue Ken noted with the kdb5_util dump -mkey_convert logic
Will Fiveash [Thu, 29 Jan 2009 00:08:12 +0000 (00:08 +0000)] 
Fix an issue Ken noted with the kdb5_util dump -mkey_convert logic

Also tweaked the add_mkey code to call krb5_dbe_update_mkvno to update
the mkvno stored in the K/M princ so the kadmin getprinc will output the
right value.

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

16 years agosvn merge -r21791:21820 svn+ssh://wfiveash@svn.mit.edu/krb5/trunk
Will Fiveash [Wed, 28 Jan 2009 21:15:46 +0000 (21:15 +0000)] 
svn merge -r21791:21820 svn+ssh://wfiveash@svn.mit.edu/krb5/trunk

All conflicts resolved, everything builds.  Did a quick test, seems to
work ok.

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

16 years agoAdd code to refetch master key list if the matching mkey to decrypt a
Will Fiveash [Wed, 28 Jan 2009 20:15:53 +0000 (20:15 +0000)] 
Add code to refetch master key list if the matching mkey to decrypt a
princ isn't found on the current mkey list.  This is useful if the mkey
princ has a new key but the running krb5kdc/kamind was started prior to
that.

Fix another issue related to nentries and krb5_db_get_principal() in
kdb5_mkey.c.

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

16 years agoMake sure nentries == 1 after calling krb5_db_get_principal() in
Will Fiveash [Wed, 28 Jan 2009 02:18:28 +0000 (02:18 +0000)] 
Make sure nentries == 1 after calling krb5_db_get_principal() in
kdb5_mkey.c.

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

16 years agoFixed bad free logic in krb5_dbe_free_key_list which was causing krb5kdc
Will Fiveash [Wed, 28 Jan 2009 01:58:59 +0000 (01:58 +0000)] 
Fixed bad free logic in krb5_dbe_free_key_list which was causing krb5kdc
to crash on exit when memory corruption detection is on.

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

16 years agoModified the ldap plugin so the mkvno slot in the krbprincipalkey
Will Fiveash [Tue, 27 Jan 2009 23:31:19 +0000 (23:31 +0000)] 
Modified the ldap plugin so the mkvno slot in the krbprincipalkey
attribute is used.

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

16 years agoMore review changes:
Will Fiveash [Tue, 27 Jan 2009 20:24:37 +0000 (20:24 +0000)] 
More review changes:

If I use "kdb5_util dump -mkey_convert" after using the master key rollover
support, does something reasonably sane happen?  E.g., process all the old
keys properly, leave just one new master key value in the output database,
reset the mkvno values attached to principals, etc.

    Done.  Note I may have to update the dump code to deal with the
    various mkey input options which I'll do in a follow on commit.
    Also note that I removed the locking around the krb5_db2_alloc and
    free functions.

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

16 years agoMore review changes:
Will Fiveash [Tue, 27 Jan 2009 04:16:26 +0000 (04:16 +0000)] 
More review changes:

Have both LDAP and DB2 back ends been tried with Will's new code?  Looks
like some default routines like kdb_def_get_mkey_list won't do anything; is
that okay?

    Done but not tested.

"XXX" comments in kdc/extern.h and elsewhere need to be looked into,
obviously.

    Almost done (working on the mkey_convert issue).

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

16 years agoRevert an #include of <kdb.h> in kfree.c which stuck around after the
Greg Hudson [Mon, 26 Jan 2009 22:03:52 +0000 (22:03 +0000)] 
Revert an #include of <kdb.h> in kfree.c which stuck around after the
code which needed it moved away.

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

16 years agoBah, forgot to remove the -lkdb5 dependency in the kadm5clnt
Will Fiveash [Mon, 26 Jan 2009 21:48:43 +0000 (21:48 +0000)] 
Bah, forgot to remove the -lkdb5 dependency in the kadm5clnt
Makefile.in.

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

16 years agoRestore krb5_free_key_data_contents() as it was in
Will Fiveash [Mon, 26 Jan 2009 21:42:23 +0000 (21:42 +0000)] 
Restore krb5_free_key_data_contents() as it was in
src/lib/kadm5/misc_free.c and rename the version of that function in
kdb5.c to krb5_dbe_free_key_data_contents.  Eventually this needs to be
consolidated somewhere.

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

16 years agoNamespace-protect get_key_data_kvno
Greg Hudson [Mon, 26 Jan 2009 21:26:15 +0000 (21:26 +0000)] 
Namespace-protect get_key_data_kvno

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

16 years agoWork to address some of Ken's review comments. This doesn't address all
Will Fiveash [Mon, 26 Jan 2009 19:24:03 +0000 (19:24 +0000)] 
Work to address some of Ken's review comments.  This doesn't address all
of his issues so there will be a follow up commit.

The type krb5_keylist_node shouldn't go into krb5.hin, as it's not part of
the library (or any other) public API.  Maybe k5-int.h as a catch-all, if
there's not a more appropriate internal header?

    Done.

Can we avoid moving krb5_free_key_data_contents, which deals with a data
structure used only in the KDC-related libraries, into libkrb5 and
k5-int.h?  (Exception: The libkrb5 asn.1 code does encode/decode the data
structure and thus may allocate it.  But I think we can assume the same C
runtime for kadm5srv/kdb and krb5 libs, so it's kind of okay.  And the
asn.1 setup should be "modularized" at some point, so the ldap support can
move out into the ldap kdb plugin.)  I think it can probably go into
libkdb?

    Done.

If possible, k5-int.h shouldn't include kdb.h, so updating kdb.h doesn't
cause recompilation of (for example) all of the crypto library code.

    Done.

After printing "master keys for principal", if enctype_to_string fails, we
haven't set retval to the error code but use it anyways.  Later, asprintf
isn't checked for failure.

    Done.

Some cases of indentation not matching MIT style, in particular,
continuation lines in function calls being indented four columns instead of
indented to make function arguments line up.

    Done.

krb5_dbe_lookup_mkvno, krb5_dbe_lookup_mkey_aux, krb5_dbe_lookup_actkvno
need to verify lengths before decoding data.

    Done.

kdb5_add_mkey should use the "zap" macro on key data instead of memset
before directly freeing it; some compilers (one reference I found mentions
the Microsoft C++ .NET compiler) may optimize away scribbles over storage
about to be freed, leaving the values to be retained in core dumps or
uninitialized heap allocations, and "zap" is intended to be where we dump
any necessary hacks to defeat that.  Similarly for any other places where
key data is stored (e.g., within tl_data).

    Done.

krb5_dbe_update_actkvno (and probably elsewhere in our existing code): Note
that failure in realloc (NULL return when size is nonzero) leaves the old
storage un-freed.  So "x=realloc(x,sz)" is a good way to leak memory if
reallocation fails, since you no longer have a handle on the orignial "x".

    Done.

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

16 years agoMerge with head of trunk. Pulled in Ken's fix for db2 hash bug on
Will Fiveash [Fri, 23 Jan 2009 19:57:08 +0000 (19:57 +0000)] 
Merge with head of trunk.  Pulled in Ken's fix for db2 hash bug on
filesystems whose record size is > 64K.  All make check tests pass on my
Solaris test system using ZFS with recordsize=128K.

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

16 years agoChange the name of the krb5_dbe_act_mkey_list function to
Will Fiveash [Thu, 22 Jan 2009 19:48:38 +0000 (19:48 +0000)] 
Change the name of the krb5_dbe_act_mkey_list function to
krb5_dbe_act_key_list to indicate it is a generic function of use on any
princ.  I also modified the process_tgs_req function to use the
master_keylist and look up the proper mkey when decrypting the server
key.

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

16 years agoFixed problem that was causing the src/tests/mkeystash_compat to fail
Will Fiveash [Thu, 22 Jan 2009 01:03:16 +0000 (01:03 +0000)] 
Fixed problem that was causing the src/tests/mkeystash_compat to fail

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

16 years agoModified krb5_db_fetch_mkey() to use the enctype in the stash file.
Will Fiveash [Wed, 21 Jan 2009 22:30:56 +0000 (22:30 +0000)] 
Modified krb5_db_fetch_mkey() to use the enctype in the stash file.
After making this modification 917 dejagnu tests pass (did not see any
failures on my Solaris test system).

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

16 years agoMerge with current head of trunk:
Will Fiveash [Wed, 21 Jan 2009 19:16:22 +0000 (19:16 +0000)] 
Merge with current head of trunk:
svn merge -r21722:HEAD svn+ssh://wfiveash@svn.mit.edu/krb5/trunk

Everything compiles.

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

16 years agoMade a change to the code reading the mkey stash to use the enctype
Will Fiveash [Wed, 21 Jan 2009 01:22:44 +0000 (01:22 +0000)] 
Made a change to the code reading the mkey stash to use the enctype
stored in the stash instead of overriding that with what is set in the
gobal parameter.  This allows a stashed mkey's enctype to differ from
the current mkey stored in the K/M princ.  I also updated
krb5_def_fetch_mkey_list() to avoid a crash when trying to decrypt data
encrypted with a des-cbc-crc key with a aes-128 key.

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

16 years agoMore bug fixes. There were several bugs in the existing new commands.
Will Fiveash [Tue, 20 Jan 2009 22:52:29 +0000 (22:52 +0000)] 
More bug fixes.  There were several bugs in the existing new commands.
At this point the add_mkey, use_mkey and list_mkeys commands appear to
work generally.  I've noticed however that specifying a non-default
enctype when using add_mkey and stashing the result (add_mkey -e
aes128-cts-hmac-sha1-96 -s) causes problems when the new mkey is fetched
from the stash file.  I'll fix this in another commit.

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

16 years agoFixed the kdb5_util list_mkeys command (wasn't printing mkey info)
Will Fiveash [Fri, 16 Jan 2009 22:41:26 +0000 (22:41 +0000)] 
Fixed the kdb5_util list_mkeys command (wasn't printing mkey info)

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

16 years agoFixed several more places where type mismatches could cause corruption
Will Fiveash [Fri, 16 Jan 2009 21:57:00 +0000 (21:57 +0000)] 
Fixed several more places where type mismatches could cause corruption
with the encoding/decoding of the new TL data types.

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

16 years agoFixed several bugs discovered during initial debugging of KDB
Will Fiveash [Fri, 16 Jan 2009 21:28:38 +0000 (21:28 +0000)] 
Fixed several bugs discovered during initial debugging of KDB
creation.

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

16 years agoFixed some compiler warning issues
Will Fiveash [Tue, 13 Jan 2009 23:10:48 +0000 (23:10 +0000)] 
Fixed some compiler warning issues

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

16 years agoAdded kdb5_util list_mkeys command, cleaned up some code formatting
Will Fiveash [Tue, 13 Jan 2009 01:17:16 +0000 (01:17 +0000)] 
Added kdb5_util list_mkeys command, cleaned up some code formatting
(removed hard tabs), added logic to add default actkvno tl_data when
creating a new mkey princ.

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

16 years agoMerged with current trunk, no new function added. Everything builds
Will Fiveash [Sat, 10 Jan 2009 01:06:45 +0000 (01:06 +0000)] 
Merged with current trunk, no new function added.  Everything builds

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

16 years agoFirst commit. This project is not completely finished (the list_mkeys,
Will Fiveash [Fri, 9 Jan 2009 20:11:57 +0000 (20:11 +0000)] 
First commit.  This project is not completely finished (the list_mkeys,
purge_mkeys, sync_stash and update_princ_encryption still need to be
written) so the purpose of this commit is to allow early review of the
addition of support for > 1 master key and the "active" master keylist.
This commit does not include any changes required to sync this level of
the branch with the current level of the trunk.  That will follow this
commit.

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

16 years agoBranch for the Master Key Migration project
Will Fiveash [Fri, 3 Oct 2008 21:14:12 +0000 (21:14 +0000)] 
Branch for the Master Key Migration project

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

16 years agoOnly close windows in response to fini messages from clients.
Justin Anderson [Fri, 3 Oct 2008 15:56:54 +0000 (15:56 +0000)] 
Only close windows in response to fini messages from clients.
Only center the windows the first time they are shown for a client.
Improve the math on the NSRect sent to -[NSWindow setFrame:] so dialog windows don't jump around the screen and the title bar stays in the same place.
Refactor repeated view swapping code to -[AuthenticationController swapView:].

ticket: 6142

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

16 years agoMake select identity dialog remember its size, but not the table column widths. Make...
Justin Anderson [Thu, 2 Oct 2008 21:19:16 +0000 (21:19 +0000)] 
Make select identity dialog remember its size, but not the table column widths. Make its default width 500px

ticket: 6055

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

16 years agoLocalization fix for change password dialog
Justin Anderson [Thu, 2 Oct 2008 21:00:18 +0000 (21:00 +0000)] 
Localization fix for change password dialog

ticket: 6055

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

16 years agoSelect identity switched to using new NSDictionary based options and change password...
Justin Anderson [Thu, 2 Oct 2008 20:56:14 +0000 (20:56 +0000)] 
Select identity switched to using new NSDictionary based options and change password menu item support

ticket: 6055

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

16 years agoPassword is not expired when changing password from select and
Alexandra Ellwood [Thu, 2 Oct 2008 19:29:18 +0000 (19:29 +0000)] 
Password is not expired when changing password from select and
enter identity dialogs.

ticket: 6055

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

16 years agoDon't write NULL name and path over stream. Just send empty strings
Alexandra Ellwood [Thu, 2 Oct 2008 19:13:48 +0000 (19:13 +0000)] 
Don't write NULL name and path over stream.  Just send empty strings

ticket: 6055

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

16 years agoFix to get application name correctly. Was dropping argument
Alexandra Ellwood [Thu, 2 Oct 2008 19:12:59 +0000 (19:12 +0000)] 
Fix to get application name correctly.  Was dropping argument
from launchservices and not removing extension from path in
fallback code.

ticket: 6055

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

16 years agoUpdate to allow change password from select and enter identity dialogs
Justin Anderson [Thu, 2 Oct 2008 18:03:06 +0000 (18:03 +0000)] 
Update to allow change password from select and enter identity dialogs

ticket: 6055

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

16 years agoSupport for change password checkbox in enter and select
Alexandra Ellwood [Thu, 2 Oct 2008 17:38:36 +0000 (17:38 +0000)] 
Support for change password checkbox in enter and select
identity ui elements.

ticket: 6055

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

16 years agoResize dialogs better, added progress indicator to show KerberosAgent is working...
Justin Anderson [Thu, 2 Oct 2008 17:34:17 +0000 (17:34 +0000)] 
Resize dialogs better, added progress indicator to show KerberosAgent is working between interactions

Make Identity and Identities classes use NSDictionary representations of kim_options like the rest of KerberosAgent.

ticket: 6055

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

16 years agoIncrease the default RPC timeout for kadmin from 25 seconds to 120
Greg Hudson [Thu, 2 Oct 2008 17:23:54 +0000 (17:23 +0000)] 
Increase the default RPC timeout for kadmin from 25 seconds to 120
seconds.  Code changes from a patch submitted by umich.

ticket: 6120

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

16 years agoIn clntudp_call, fix a bug in the handling of an error case (it failed
Greg Hudson [Thu, 2 Oct 2008 16:53:57 +0000 (16:53 +0000)] 
In clntudp_call, fix a bug in the handling of an error case (it failed
to set the error status field and generated a dead code warning).

ticket: 6121

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

16 years agoMake enter identity dialog's smarter about matching a string with a set of favorite...
Justin Anderson [Thu, 2 Oct 2008 13:20:04 +0000 (13:20 +0000)] 
Make enter identity dialog's smarter about matching a string with a set of favorite options

ticket:6055

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

16 years agoMake Enter Identity dialog have one auto-completing, auto-validating text field for...
Justin Anderson [Thu, 2 Oct 2008 03:48:48 +0000 (03:48 +0000)] 
Make Enter Identity dialog have one auto-completing, auto-validating text field for principals drawn from KIM's list of favorites.
Changed options for a favorite identity get saved out to kim_preferences.

Also, include copyright on more files.

ticket:6055

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

16 years agoUpdated documentation to reflect new APIs and re-ran Doxygen
Alexandra Ellwood [Wed, 1 Oct 2008 22:43:19 +0000 (22:43 +0000)] 
Updated documentation to reflect new APIs and re-ran Doxygen

ticket: 6055

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

16 years agoFixed a bug in kim_identity_get_components string where it
Alexandra Ellwood [Wed, 1 Oct 2008 22:33:32 +0000 (22:33 +0000)] 
Fixed a bug in kim_identity_get_components string where it
would return the first component multiple times.

ticket: 6055

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

16 years agoMake unset strings in kim_options and kim_selection_hints
Alexandra Ellwood [Wed, 1 Oct 2008 21:59:16 +0000 (21:59 +0000)] 
Make unset strings in kim_options and kim_selection_hints
be empty strings rather than NULL.  This simplifies the
stream code (and makes it easier to read and debug).
In order to prevent copying tons of NUL bytes around,
special case kim_string functions to use a special
constant kim_empty_string.

ticket: 6055

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

16 years agoFixed crash in kim_options_write_to_stream
Alexandra Ellwood [Wed, 1 Oct 2008 21:16:44 +0000 (21:16 +0000)] 
Fixed crash in kim_options_write_to_stream
when in_options is KIM_OPTIONS_DEFAULT.

ticket: 6055

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

16 years agoReversed sense of checks for NUL character in empty string. Fixed
Alexandra Ellwood [Wed, 1 Oct 2008 21:00:49 +0000 (21:00 +0000)] 
Reversed sense of checks for NUL character in empty string.  Fixed

ticket: 6055

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

16 years agoCorrectly parse KIM_IDENTITY_ANY in error handler
Alexandra Ellwood [Wed, 1 Oct 2008 20:58:56 +0000 (20:58 +0000)] 
Correctly parse KIM_IDENTITY_ANY in error handler

ticket: 6055

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

16 years agoLoop on enter identity if auth fails
Alexandra Ellwood [Wed, 1 Oct 2008 20:56:57 +0000 (20:56 +0000)] 
Loop on enter identity if auth fails

ticket: 6055

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

16 years agoCorrectly translate NULL hints when reading from a stream
Alexandra Ellwood [Wed, 1 Oct 2008 20:55:49 +0000 (20:55 +0000)] 
Correctly translate NULL hints when reading from a stream

ticket: 6055

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

16 years agoRelaunch KerberosAgent more quickly so UI is more responsive
Alexandra Ellwood [Wed, 1 Oct 2008 20:55:04 +0000 (20:55 +0000)] 
Relaunch KerberosAgent more quickly so UI is more responsive

ticket: 6055

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

16 years agoUpdate enterIdentity handler to support passing and setting ticket options.
Justin Anderson [Wed, 1 Oct 2008 20:38:26 +0000 (20:38 +0000)] 
Update enterIdentity handler to support passing and setting ticket options.
Readded ticket options sheet to Enter Identity dialog.
Added helper methods to convert between kim_option and NSDictionary.

ticket: 6055

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

16 years agoFinished KLL to KIM shim.
Alexandra Ellwood [Wed, 1 Oct 2008 19:34:06 +0000 (19:34 +0000)] 
Finished KLL to KIM shim.
Switched krb5 code to using it.

ticket: 6134

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

16 years agoFill out credentials when getting tickets with changed password
Alexandra Ellwood [Wed, 1 Oct 2008 17:11:22 +0000 (17:11 +0000)] 
Fill out credentials when getting tickets with changed password

ticket: 6055

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

16 years agoSupport for passing options back and forth for enter_identity and
Alexandra Ellwood [Wed, 1 Oct 2008 15:35:48 +0000 (15:35 +0000)] 
Support for passing options back and forth for enter_identity and
hints back for select_identity.

ticket: 6055

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

16 years agoA working KIM-based KerberosAgent to handle all of KIM's built-in GUI prompting.
Justin Anderson [Wed, 1 Oct 2008 14:12:31 +0000 (14:12 +0000)] 
A working KIM-based KerberosAgent to handle all of KIM's built-in GUI prompting.

A few outstanding issues remain, like the ability to add duplicate entries to the list of favorite identities.

ticket: 6055

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

16 years agoWhen kim_options_write_to_stream is given NULL options, create default options in...
Justin Anderson [Wed, 1 Oct 2008 14:01:03 +0000 (14:01 +0000)] 
When kim_options_write_to_stream is given NULL options, create default options in its place instead of erroring out

ticket: 6055

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

16 years agokim_selection_hints_get_identity should call kim_ui_fini even when kim_ui_select_iden...
Justin Anderson [Wed, 1 Oct 2008 14:00:16 +0000 (14:00 +0000)] 
kim_selection_hints_get_identity should call kim_ui_fini even when kim_ui_select_identity returns an error, e.g. KIM_USER_CANCELED_ERR

ticket: 6055

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

16 years agoCheck for NULL hints_array passed back from kim_os_selection_hints_get_selection_hint...
Justin Anderson [Wed, 1 Oct 2008 13:57:19 +0000 (13:57 +0000)] 
Check for NULL hints_array passed back from kim_os_selection_hints_get_selection_hints_array in kim_os_selection_hints_lookup_identity

ticket: 6055

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

16 years agoFirst pass at KLL shim layer. (no private apis)
Alexandra Ellwood [Wed, 1 Oct 2008 07:56:57 +0000 (07:56 +0000)] 
First pass at KLL shim layer. (no private apis)
KIM support for KLL shim layer.

Fixed a bug where the cli support was double freeing a credential
in the change password case.

ticket: 6055

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

16 years agoFixed typo where kpasswd was prompting for the new password
Alexandra Ellwood [Wed, 1 Oct 2008 07:53:37 +0000 (07:53 +0000)] 
Fixed typo where kpasswd was prompting for the new password
twice rather than once for new and once for verify.

ticket: 6055

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

16 years agoCCAPI should use common ipc and stream code
Alexandra Ellwood [Tue, 30 Sep 2008 21:23:17 +0000 (21:23 +0000)] 
CCAPI should use common ipc and stream code

KIM and CCAPI should share the same IPC and stream object types.
Modified CCAPI to use code in src/util (stream) and src/util/mac (ipc)

ticket: new

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

16 years agokrb5 library-side changes for com_err based error strings
Alexandra Ellwood [Tue, 30 Sep 2008 20:05:17 +0000 (20:05 +0000)] 
krb5 library-side changes for com_err based error strings

ticket: 6138

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

16 years agokim_os_identity_get_saved_password should always return an error when
Alexandra Ellwood [Tue, 30 Sep 2008 19:26:56 +0000 (19:26 +0000)] 
kim_os_identity_get_saved_password should always return an error when
no password is returned.

ticket: 6055

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

16 years agoCheck for null saved password in kim_ui_prompter. Just because kim_os_get_saved_passw...
Justin Anderson [Tue, 30 Sep 2008 19:13:30 +0000 (19:13 +0000)] 
Check for null saved password in kim_ui_prompter. Just because kim_os_get_saved_password didn't return an error doesn't mean it successfully got a password

ticket:6055

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

16 years agoFixed a bug where getting addressless tickets would cause kim
Alexandra Ellwood [Tue, 30 Sep 2008 05:11:58 +0000 (05:11 +0000)] 
Fixed a bug where getting addressless tickets would cause kim
to pass a NULL krb5_context into krb5_os_localaddr

ticket: 6055

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

16 years agoSupport legacy KerberosAgent preference for save passwords
Alexandra Ellwood [Mon, 29 Sep 2008 21:39:42 +0000 (21:39 +0000)] 
Support legacy KerberosAgent preference for save passwords
and a new preference in the KIM preferences.
Updated test harness for save password arguments.

ticket: 6055

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

16 years agoAdded support for disabling password saving, both globally
Alexandra Ellwood [Mon, 29 Sep 2008 20:48:43 +0000 (20:48 +0000)] 
Added support for disabling password saving, both globally
and also per prompt via the UI.

ticket: 6055

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

16 years agoUI should lazy init so that init and fini are only called if one
Alexandra Ellwood [Mon, 29 Sep 2008 18:52:53 +0000 (18:52 +0000)] 
UI should lazy init so that init and fini are only called if one
of the UI calls is called.  The problem is that when you call
krb5_get_init_creds_* you don't know if it will call the prompter
or not.  (It won't if the password is saved in the keychain or
if pkinit succeeds.)

ticket: 6055

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

16 years agotest harness for KerberosAgent IPC layer
Alexandra Ellwood [Mon, 29 Sep 2008 05:25:02 +0000 (05:25 +0000)] 
test harness for KerberosAgent IPC layer

ticket: 6055

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

16 years agoRemoved useless init and cleanup functions.
Alexandra Ellwood [Mon, 29 Sep 2008 05:21:46 +0000 (05:21 +0000)] 
Removed useless init and cleanup functions.
Fixed request port list handling.

ticket: 6055

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

16 years agoIf in_identity is NULL, use the identity the user entered.
Alexandra Ellwood [Mon, 29 Sep 2008 05:20:22 +0000 (05:20 +0000)] 
If in_identity is NULL, use the identity the user entered.
(Fixed typo)

ticket: 6055

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

16 years agoFixed KerberosAgent plists so it is loading the correct server and
Alexandra Ellwood [Mon, 29 Sep 2008 05:19:37 +0000 (05:19 +0000)] 
Fixed KerberosAgent plists so it is loading the correct server and
so they are both in plist format.

ticket: 6055

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

16 years agokim_credential_create_new should support NULL in_identity.
Alexandra Ellwood [Mon, 29 Sep 2008 02:40:24 +0000 (02:40 +0000)] 
kim_credential_create_new should support NULL in_identity.
Prompt for it.

ticket: 6055

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

16 years agoActually make [Identity -componentsString] use kim_identity_get_components_string
Justin Anderson [Sun, 28 Sep 2008 23:51:09 +0000 (23:51 +0000)] 
Actually make [Identity -componentsString] use kim_identity_get_components_string

Also, better error handling in Identity and Identities classes.

ticket: 6055

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

16 years agoPlace structure in thread specific data to store client connection
Alexandra Ellwood [Sun, 28 Sep 2008 23:39:25 +0000 (23:39 +0000)] 
Place structure in thread specific data to store client connection
port so that multiple services can be supported simultaneously.

ticket: 6055

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

16 years agoMake [Identity -componentsString] use kim_identity_get_components_string
Justin Anderson [Sun, 28 Sep 2008 22:38:20 +0000 (22:38 +0000)] 
Make [Identity -componentsString] use kim_identity_get_components_string

ticket: 6055

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

16 years agoFlesh out KerberosAgent Select Identity dialog. Can now add, edit, and remove favorit...
Justin Anderson [Sun, 28 Sep 2008 22:16:09 +0000 (22:16 +0000)] 
Flesh out KerberosAgent Select Identity dialog. Can now add, edit, and remove favorite identities

Also, make formatters in KerberosFormatters.[hm] localizable.

Still need to add principal validation and prevent duplicates.

ticket: 6055

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

16 years agoAdded kim_selection_hints_create_from_stream and
Alexandra Ellwood [Sun, 28 Sep 2008 20:53:12 +0000 (20:53 +0000)] 
Added kim_selection_hints_create_from_stream and
kim_selection_hints_write_to_stream for client/server
communication.

ticket: 6055

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

16 years agoCreate common stream and ipc layer for CCAPI and KIM.
Alexandra Ellwood [Sun, 28 Sep 2008 19:43:47 +0000 (19:43 +0000)] 
Create common stream and ipc layer for CCAPI and KIM.
Will switch CCAPI to this new code later though, so as
not to destabilize KfM and the Windows builds.

ticket: 6055

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

16 years agoMake kim_credential_get_options set correct renewal lifetime
Justin Anderson [Sun, 28 Sep 2008 03:59:55 +0000 (03:59 +0000)] 
Make kim_credential_get_options set correct renewal lifetime

ticket: 6055

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

16 years agoAdded launchd plist file for KerberosAgent
Alexandra Ellwood [Sat, 27 Sep 2008 23:14:40 +0000 (23:14 +0000)] 
Added launchd plist file for KerberosAgent

ticket: 6055

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

16 years agoRenamed kim_identity_get_components to kim_identity_get_components_string
Alexandra Ellwood [Sat, 27 Sep 2008 21:31:06 +0000 (21:31 +0000)] 
Renamed kim_identity_get_components to kim_identity_get_components_string
to better reflect what it does (a string of everything but the realm, not
an array of components like the old name might imply).

Added private functions which will be used by KLL to shim on top of KIM.
Private functions also reduce memory allocations inside of KIM.

ticket: 6055

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

16 years agoAdd kim_preferences_get/set_minimum/maximum_lifetime functions to export lists
Justin Anderson [Sat, 27 Sep 2008 19:22:10 +0000 (19:22 +0000)] 
Add kim_preferences_get/set_minimum/maximum_lifetime functions to export lists

ticket:6055

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

16 years agokim_credential_get_options was setting the lifetime a second time instead of setting...
Justin Anderson [Sat, 27 Sep 2008 19:18:48 +0000 (19:18 +0000)] 
kim_credential_get_options was setting the lifetime a second time instead of setting the renewal lifetime

ticket: 6055

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

16 years agoKerberosAgent MachIPC support
Alexandra Ellwood [Sat, 27 Sep 2008 00:46:39 +0000 (00:46 +0000)] 
KerberosAgent MachIPC support

ticket: 6055

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

16 years agoC90 compliance
Alexandra Ellwood [Sat, 27 Sep 2008 00:44:39 +0000 (00:44 +0000)] 
C90 compliance

ticket: new

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

16 years agokim_options_set_service_name should be able to take a service name of NULL
Alexandra Ellwood [Fri, 26 Sep 2008 20:49:23 +0000 (20:49 +0000)] 
kim_options_set_service_name should be able to take a service name of NULL

ticket: 6055

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