summaryrefslogtreecommitdiffstats
path: root/src/kim
Commit message (Collapse)AuthorAgeFilesLines
...
* First pass at KLL shim layer. (no private apis)Alexandra Ellwood2008-10-018-9/+2072
| | | | | | | | | | | 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
* Fixed typo where kpasswd was prompting for the new passwordAlexandra Ellwood2008-10-011-1/+1
| | | | | | | | 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
* krb5 library-side changes for com_err based error stringsAlexandra Ellwood2008-09-3012-144/+80
| | | | | | ticket: 6138 git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@20786 dc483132-0cff-0310-8789-dd5450dbe970
* kim_os_identity_get_saved_password should always return an error whenAlexandra Ellwood2008-09-301-1/+5
| | | | | | | | no password is returned. ticket: 6055 git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@20785 dc483132-0cff-0310-8789-dd5450dbe970
* Check for null saved password in kim_ui_prompter. Just because ↵Justin Anderson2008-09-301-1/+1
| | | | | | | | 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
* Fixed a bug where getting addressless tickets would cause kimAlexandra Ellwood2008-09-301-5/+5
| | | | | | | | 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
* Support legacy KerberosAgent preference for save passwordsAlexandra Ellwood2008-09-294-6/+21
| | | | | | | | | 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
* Added support for disabling password saving, both globallyAlexandra Ellwood2008-09-2914-28/+166
| | | | | | | | and also per prompt via the UI. ticket: 6055 git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@20781 dc483132-0cff-0310-8789-dd5450dbe970
* UI should lazy init so that init and fini are only called if oneAlexandra Ellwood2008-09-293-92/+138
| | | | | | | | | | | 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
* test harness for KerberosAgent IPC layerAlexandra Ellwood2008-09-292-7/+46
| | | | | | ticket: 6055 git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@20779 dc483132-0cff-0310-8789-dd5450dbe970
* If in_identity is NULL, use the identity the user entered.Alexandra Ellwood2008-09-291-3/+3
| | | | | | | | (Fixed typo) ticket: 6055 git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@20777 dc483132-0cff-0310-8789-dd5450dbe970
* Fixed KerberosAgent plists so it is loading the correct server andAlexandra Ellwood2008-09-292-11/+27
| | | | | | | | so they are both in plist format. ticket: 6055 git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@20776 dc483132-0cff-0310-8789-dd5450dbe970
* kim_credential_create_new should support NULL in_identity.Alexandra Ellwood2008-09-291-5/+13
| | | | | | | | Prompt for it. ticket: 6055 git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@20775 dc483132-0cff-0310-8789-dd5450dbe970
* Actually make [Identity -componentsString] use ↵Justin Anderson2008-09-284-18/+30
| | | | | | | | | | 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
* Place structure in thread specific data to store client connectionAlexandra Ellwood2008-09-281-21/+33
| | | | | | | | 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
* Make [Identity -componentsString] use kim_identity_get_components_stringJustin Anderson2008-09-281-2/+1
| | | | | | ticket: 6055 git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@20772 dc483132-0cff-0310-8789-dd5450dbe970
* Flesh out KerberosAgent Select Identity dialog. Can now add, edit, and ↵Justin Anderson2008-09-2810-602/+3110
| | | | | | | | | | | | 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
* Added kim_selection_hints_create_from_stream andAlexandra Ellwood2008-09-287-5/+329
| | | | | | | | | 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
* Create common stream and ipc layer for CCAPI and KIM. Alexandra Ellwood2008-09-288-1187/+701
| | | | | | | | | 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
* Make kim_credential_get_options set correct renewal lifetimeJustin Anderson2008-09-281-1/+4
| | | | | | ticket: 6055 git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@20768 dc483132-0cff-0310-8789-dd5450dbe970
* Added launchd plist file for KerberosAgent Alexandra Ellwood2008-09-271-0/+10
| | | | | | ticket: 6055 git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@20767 dc483132-0cff-0310-8789-dd5450dbe970
* Renamed kim_identity_get_components to kim_identity_get_components_stringAlexandra Ellwood2008-09-279-181/+208
| | | | | | | | | | | | 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
* Add kim_preferences_get/set_minimum/maximum_lifetime functions to export listsJustin Anderson2008-09-272-0/+16
| | | | | | ticket:6055 git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@20765 dc483132-0cff-0310-8789-dd5450dbe970
* kim_credential_get_options was setting the lifetime a second time instead of ↵Justin Anderson2008-09-271-1/+1
| | | | | | | | setting the renewal lifetime ticket: 6055 git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@20764 dc483132-0cff-0310-8789-dd5450dbe970
* KerberosAgent MachIPC supportAlexandra Ellwood2008-09-2714-45/+1289
| | | | | | ticket: 6055 git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@20763 dc483132-0cff-0310-8789-dd5450dbe970
* C90 complianceAlexandra Ellwood2008-09-271-9/+10
| | | | | | ticket: new git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@20762 dc483132-0cff-0310-8789-dd5450dbe970
* kim_options_set_service_name should be able to take a service name of NULLAlexandra Ellwood2008-09-261-2/+1
| | | | | | ticket: 6055 git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@20761 dc483132-0cff-0310-8789-dd5450dbe970
* Added kim_credential_get_options and kim_ccache_get_optionsAlexandra Ellwood2008-09-264-0/+126
| | | | | | | | for KerberosAgent to use to create new favorite identities ticket: 6055 git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@20760 dc483132-0cff-0310-8789-dd5450dbe970
* Initial checkin of Mac OS X ipc support. Alexandra Ellwood2008-09-2613-58/+434
| | | | | | | | | | | | Also moved "set application name" functionality to kim_library_ because most applications do not need to call it and their name doesn't usually change over time or per thread By putting it in a global setting apps that do need to call it only have to call it once instead of every time they want to authenticate. ticket: 6055 git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@20757 dc483132-0cff-0310-8789-dd5450dbe970
* Add test for recently fixed kim_preferences_remove_favorite_identity bugJustin Anderson2008-09-253-0/+341
| | | | | | ticket: 6055 git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@20756 dc483132-0cff-0310-8789-dd5450dbe970
* Update kim_test to use new error string functionJustin Anderson2008-09-251-1/+1
| | | | | | ticket: 6055 git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@20755 dc483132-0cff-0310-8789-dd5450dbe970
* Fixed a typo in kim_preferences.c which preventedAlexandra Ellwood2008-09-251-1/+1
| | | | | | | | | | | | the fix to kim_preferences_remove_favorite_identity from working. (Accidentally tested in one source tree and committed from another. whoops.) ticket: 6055 git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@20754 dc483132-0cff-0310-8789-dd5450dbe970
* Fixed a bug where kim_preferences_remove_favorite_identityAlexandra Ellwood2008-09-251-7/+10
| | | | | | | | | was removing the first identity which did not match the one being passed in. ticket: 6055 git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@20753 dc483132-0cff-0310-8789-dd5450dbe970
* Added support to track number of prompts so UIs do not try again unlessAlexandra Ellwood2008-09-257-39/+121
| | | | | | | | there is something the user can do differently the next time. ticket: 6055 git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@20752 dc483132-0cff-0310-8789-dd5450dbe970
* Modified kim_ccache_compare to match the behavior of other kim compareAlexandra Ellwood2008-09-251-49/+40
| | | | | | | | functions. ticket: 6055 git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@20751 dc483132-0cff-0310-8789-dd5450dbe970
* Fixed bugs in command line change password support.Alexandra Ellwood2008-09-2414-418/+459
| | | | | | | | | | Removed low level change password functions from export list because they require a UI context. Added kim_ccache functions needed by klist to export list. ticket: 6055 git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@20749 dc483132-0cff-0310-8789-dd5450dbe970
* KIM Identity selection dialog work. Updated to match changes to KIM APIJustin Anderson2008-09-238-40/+484
| | | | | | ticket: 6055 git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@20748 dc483132-0cff-0310-8789-dd5450dbe970
* Renamed error handling files to reflect what they do now.Alexandra Ellwood2008-09-2311-246/+275
| | | | | | | | | | Moved GUI code into OS-specific directory. Fixed bugs in cache collection iterator routines where it was mishandling the magic empty ccache created when the cache collection is empty. ticket: 6055 git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@20747 dc483132-0cff-0310-8789-dd5450dbe970
* kim_ccache_get_display_name was calling kim_ccache_create_resolve_name with ↵Justin Anderson2008-09-231-5/+5
| | | | | | | | | | its parameters in the wrong order kim_ccache_iterator_next wasn't handling the end of iteration correctly. ticket:6055 git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@20746 dc483132-0cff-0310-8789-dd5450dbe970
* Added command line UI support.Alexandra Ellwood2008-09-2218-303/+1134
| | | | | | | | | | | Added change password and acquire credentials UI harness support. API changes to the change password support to reflect these changes. Removed callback prompter interfaces since there is now plugin support. Updated documentation. ticket: 6055 git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@20745 dc483132-0cff-0310-8789-dd5450dbe970
* KIM ui plugin support and gui selection harnessAlexandra Ellwood2008-09-1914-4/+1329
| | | | | | ticket: 6055 git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@20740 dc483132-0cff-0310-8789-dd5450dbe970
* Remove kim_identity_get_gss_name from the export listsAlexandra Ellwood2008-09-192-2/+0
| | | | | | ticket: 6055 git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@20739 dc483132-0cff-0310-8789-dd5450dbe970
* Added functions to save and get password from keychainAlexandra Ellwood2008-09-183-27/+222
| | | | | | ticket: 6055 git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@20732 dc483132-0cff-0310-8789-dd5450dbe970
* Removed kim_identity_get_gss_name and updated documentationAlexandra Ellwood2008-09-181-2/+11
| | | | | | ticket: 6055 git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@20729 dc483132-0cff-0310-8789-dd5450dbe970
* Added support for options in favorite identities.Alexandra Ellwood2008-09-179-463/+1009
| | | | | | | | | | | | Fixed KLL preference reading support to not read keys from the wrong locations. Updated prompter function prototype. Updated tests to reflect these changes. ticket: 6055 git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@20727 dc483132-0cff-0310-8789-dd5450dbe970
* Fixed KIM export list for KerberosLite (forgot there were two)Alexandra Ellwood2008-09-121-11/+5
| | | | | | ticket: 6055 git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@20713 dc483132-0cff-0310-8789-dd5450dbe970
* Removed favorite identities object from public API and merged functionalityAlexandra Ellwood2008-09-1112-787/+613
| | | | | | | | | | | into the preferences API to reduce function calls. Added options parameter to favorite identities (Mac OS X support still needed for options though). Updated test cases to reflect these changes. ticket: 6055 git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@20712 dc483132-0cff-0310-8789-dd5450dbe970
* Use krb5 threading functions.Alexandra Ellwood2008-09-0821-587/+653
| | | | | | | | | | | Remove use of ECODE since errors are no longer objects. Fixed bug where bundle error strings were not returned when homedir access was off. Switched to using UTF8 unconditionally. ticket: 6055 git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@20709 dc483132-0cff-0310-8789-dd5450dbe970
* Additional code for KerberosAgent. Checking in so Justin can work on itAlexandra Ellwood2008-08-284-312/+168
| | | | | | ticket: 6055 git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@20700 dc483132-0cff-0310-8789-dd5450dbe970
* Based on patch from lxs, with some changes:Ken Raeburn2008-08-272-2/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Add several new gcc warning flags, used in the KfM build process. Put declarations before code. Fix a bunch of signed/unsigned type mixes, mostly by changing variable types to unsigned int. Fix constness in handling name of default ccache name. Make sure functions get declared with prototypes: krb5int_pthread_loaded krb5int_gmt_mktime krb5int_aes_encrypt krb5int_aes_decrypt gssint_mecherrmap_init gssint_mecherramp_get. Don't shadow global names: stat accept index open encrypt. Fix variable shadowing in LDAP ASN.1 support. Don't define unused krb5int_local_addresses. Don't export internal krb5_change_set_password. Fix error return indications from gssint_oid_to_mech. Create and use k5-gmt_mktime.h to provide one global declaration of krb5int_gmt_mktime, needed before we've generated krb5.h on some platforms. Not incorporated from initial patch: const changes in function signatures. ticket: 6096 status: open git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@20697 dc483132-0cff-0310-8789-dd5450dbe970