summaryrefslogtreecommitdiffstats
path: root/src/kim
Commit message (Collapse)AuthorAgeFilesLines
* KIM: window settingsZhanna Tsitkov2008-12-182-3/+3
| | | | | | Ticket: 6290 git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@21543 dc483132-0cff-0310-8789-dd5450dbe970
* Add _with_password credential acquisition functions to KIM APIAlexandra Ellwood2008-11-034-48/+3
| | | | | | | | Needed for kinit password option. ticket: new git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@20963 dc483132-0cff-0310-8789-dd5450dbe970
* BIND_8_COMPAT no longer needed in LeopardAlexandra Ellwood2008-11-031-2/+0
| | | | | | ticket: new git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@20962 dc483132-0cff-0310-8789-dd5450dbe970
* KerberosAgent bindings causing crashesJustin Anderson2008-10-313-37/+62
| | | | | | | | Attempting to fix a hard to reproduce bug with bindings by handling not applicable keys a little better. ticket: new git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@20945 dc483132-0cff-0310-8789-dd5450dbe970
* No . at end of stringsAlexandra Ellwood2008-10-311-1/+1
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@20944 dc483132-0cff-0310-8789-dd5450dbe970
* Avoid duplicate identical dialogs in KIMAlexandra Ellwood2008-10-314-6/+34
| | | | | | | | | Added KIM_DUPLICATE_UI_REQUEST_ERR error so UI can indicate it cancelled its dialog due to getting multiple identical dialogs at the same time. ticket: new git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@20942 dc483132-0cff-0310-8789-dd5450dbe970
* KerberosAgent now saves successfully authenticated identities to favorites ↵Justin Anderson2008-10-293-1/+26
| | | | | | | | automatically when they were acquired through the Enter Identity dialog ticket: 6222 git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@20940 dc483132-0cff-0310-8789-dd5450dbe970
* Clear auth prompt on success or cancel. Leave change password fields filled ↵Justin Anderson2008-10-292-0/+26
| | | | | | | | in when password is incorrect, to save user from reentering new password ticket: 6221 git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@20939 dc483132-0cff-0310-8789-dd5450dbe970
* Removed unnecessary code that was resetting options whenever theAlexandra Ellwood2008-10-292-18/+0
| | | | | | | | | | | | array changes in the background. The problem is that any external change to the ticket list will cause this to happen, even when the options dialog is open. Also removed unused function resetOptions. ticket: 6224 git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@20938 dc483132-0cff-0310-8789-dd5450dbe970
* Only prompt automatically from GUI appsAlexandra Ellwood2008-10-293-15/+31
| | | | | | | | | | Direct callers such as kinit need command line prompts. Do not automatically prompt (via krb5 or gssapi calls) unless the caller has loaded GUI libraries. ticket: new git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@20937 dc483132-0cff-0310-8789-dd5450dbe970
* Remove saved password if it fails to get ticketsAlexandra Ellwood2008-10-291-0/+10
| | | | | | | | | | | Note that if preauth is turned on the password may be removed for other reasons. This is because preauth failing can mean several things. Better to always remove it than have the user sometimes get stuck though. ticket: new git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@20936 dc483132-0cff-0310-8789-dd5450dbe970
* KerberosAgent hangs changing pw for passwordless identitiesJustin Anderson2008-10-293-0/+11
| | | | | | | | Trying to change the password for an identity which only uses non-password authentication methods left KerberosAgent with a spinning progress indicator. Problem was with auth sheet not being ended. ticket: new git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@20935 dc483132-0cff-0310-8789-dd5450dbe970
* krb5_build_principal_va does not allocate krb5_principalAlexandra Ellwood2008-10-241-52/+10
| | | | | | | | | | | | | | | | | krb5_build_principal_va does not allocate the outer krb5_principal, making it useless for generating krb5_principals which can be freed with krb5_free_principal. Added krb5_build_principal_alloc_va which allocates the krb5_principal. Added krb5int_build_principal_alloc_va which is used by KIM to avoid code duplication. KIM's kim_identity_create_from_components takes the first component as an argument because principals with no components cannot be represented with the KIM UI. Modified KIM to use this new API. ticket: new git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@20918 dc483132-0cff-0310-8789-dd5450dbe970
* Add test for kim_identity_create_from_componentsAlexandra Ellwood2008-10-243-0/+54
| | | | | | ticket: new git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@20917 dc483132-0cff-0310-8789-dd5450dbe970
* Use CFStringGetCStringPtr if possible to avoid wasting memoryAlexandra Ellwood2008-10-241-12/+25
| | | | | | | | since CFStringGetMaximumSizeForEncoding is wasteful for UTF8. ticket: new git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@20914 dc483132-0cff-0310-8789-dd5450dbe970
* KIM should only display error dialogs if it has displayed UI alreadyAlexandra Ellwood2008-10-221-21/+11
| | | | | | ticket: new git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@20909 dc483132-0cff-0310-8789-dd5450dbe970
* kim_identity_change_password_with_credential leaks krb5_credsAlexandra Ellwood2008-10-211-0/+3
| | | | | | ticket: new git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@20907 dc483132-0cff-0310-8789-dd5450dbe970
* kim_os_library_get_caller_name leaks file pathAlexandra Ellwood2008-10-211-0/+1
| | | | | | ticket: new git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@20906 dc483132-0cff-0310-8789-dd5450dbe970
* kim_ccache_iterator_next leaks principalAlexandra Ellwood2008-10-211-0/+3
| | | | | | ticket: new git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@20905 dc483132-0cff-0310-8789-dd5450dbe970
* kim_preferences should free old identity before overwritingAlexandra Ellwood2008-10-211-1/+9
| | | | | | ticket: new git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@20904 dc483132-0cff-0310-8789-dd5450dbe970
* Free data in tests so leaks checking is easierAlexandra Ellwood2008-10-212-3/+21
| | | | | | ticket: new git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@20903 dc483132-0cff-0310-8789-dd5450dbe970
* Make all dialogs beyond the change password sheet also appear as sheetsJustin Anderson2008-10-174-89/+147
| | | | | | ticket:6145 git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@20894 dc483132-0cff-0310-8789-dd5450dbe970
* Stop using -[NSWindow setIgnoresMouseEvents:] and manage enabled state of ↵Justin Anderson2008-10-173-16/+342
| | | | | | | | each control individually with bindings ticket:6198 git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@20890 dc483132-0cff-0310-8789-dd5450dbe970
* KerberosAgent continues to ignore mouse events after errorJustin Anderson2008-10-171-0/+1
| | | | | | | | Problem when trying to change password from behind a NAT. The ensuing error dialog ignores mouse events, making it impossible to dismiss. ticket:new git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@20889 dc483132-0cff-0310-8789-dd5450dbe970
* temporary testing codeAlexandra Ellwood2008-10-171-5/+9
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@20888 dc483132-0cff-0310-8789-dd5450dbe970
* KLCreatePrincipalFromTriplet should work with empty instanceAlexandra Ellwood2008-10-171-5/+12
| | | | | | | | | Fixed bug where shim layer was calling kim_identity_create_from_components incorrectly in this case. ticket: new git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@20887 dc483132-0cff-0310-8789-dd5450dbe970
* Added back KLL test programsAlexandra Ellwood2008-10-172-0/+583
| | | | | | ticket: new git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@20886 dc483132-0cff-0310-8789-dd5450dbe970
* Double free and leak in kim_os_library_get_application_pathAlexandra Ellwood2008-10-171-1/+1
| | | | | | ticket: new git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@20885 dc483132-0cff-0310-8789-dd5450dbe970
* Remap some of the more confusing krb5 errorsAlexandra Ellwood2008-10-172-23/+56
| | | | | | | | Also enlarged last error buffer for UTF8 strings with multibyte chars. ticket: new git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@20884 dc483132-0cff-0310-8789-dd5450dbe970
* Treat unreadable terminal as user cancelled so regression tests workAlexandra Ellwood2008-10-171-3/+12
| | | | | | ticket: new git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@20883 dc483132-0cff-0310-8789-dd5450dbe970
* Make sure identity is set when using kim prompterAlexandra Ellwood2008-10-171-0/+1
| | | | | | ticket: new git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@20882 dc483132-0cff-0310-8789-dd5450dbe970
* Use a context to store error table infoAlexandra Ellwood2008-10-171-8/+18
| | | | | | | | | | Just sticking an einfo on the stack doesn't work because it's not initialized. Also the detailed error message doesn't end up propogated back to KIM. ticket: new git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@20881 dc483132-0cff-0310-8789-dd5450dbe970
* When change password is called from the Select Identity dialog, it appears ↵Justin Anderson2008-10-163-14/+64
| | | | | | | | as a sheet on that dialog instead of popping up as a separate window ticket:6145 git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@20880 dc483132-0cff-0310-8789-dd5450dbe970
* Make it possible to make identities use default ticket optionsJustin Anderson2008-10-1610-293/+755
| | | | | | | | | | - Made KerberosAgent compatible with KIM's way of passing about NULL to mean "Use default options" - Added "Use default ticket options" checkbox to both ticket options dialogs. - Hid ticket options of select identity dialog by default, visible via the "Show Options" "Hide Options" toggle. ticket:6147 git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@20878 dc483132-0cff-0310-8789-dd5450dbe970
* remove unused variable in kim_ui_cli_ask_change_passwordAlexandra Ellwood2008-10-151-2/+0
| | | | | | ticket: new git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@20877 dc483132-0cff-0310-8789-dd5450dbe970
* use KIM_BUILTIN_UI instead of LEAN_CLIENT for builtin UIAlexandra Ellwood2008-10-155-27/+26
| | | | | | ticket: new git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@20875 dc483132-0cff-0310-8789-dd5450dbe970
* Move GUI/CLI detection from KerberosIPC into KIMAlexandra Ellwood2008-10-151-8/+39
| | | | | | ticket: new git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@20874 dc483132-0cff-0310-8789-dd5450dbe970
* Pre-populate new clients with default client identity if that is set, as ↵Justin Anderson2008-10-141-0/+22
| | | | | | | | found by kim_preferences_get_client_identity() ticket:6183 git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@20869 dc483132-0cff-0310-8789-dd5450dbe970
* Don't wipe out previously entered information with each new call from clientsJustin Anderson2008-10-141-6/+9
| | | | | | ticket: 6143 git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@20868 dc483132-0cff-0310-8789-dd5450dbe970
* kim test suite reports error messages incorrectlyAlexandra Ellwood2008-10-141-1/+1
| | | | | | ticket: new git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@20867 dc483132-0cff-0310-8789-dd5450dbe970
* Free error message returned by krb5_get_error_messageAlexandra Ellwood2008-10-141-0/+2
| | | | | | ticket: new git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@20866 dc483132-0cff-0310-8789-dd5450dbe970
* kim_os_string_create_localized leaks CFStringRefAlexandra Ellwood2008-10-101-0/+2
| | | | | | ticket: new git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@20865 dc483132-0cff-0310-8789-dd5450dbe970
* Test KIM pluginAlexandra Ellwood2008-10-101-0/+472
| | | | | | ticket: new git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@20864 dc483132-0cff-0310-8789-dd5450dbe970
* always zero out authentication stringsAlexandra Ellwood2008-10-101-3/+6
| | | | | | | | | strings returned by the UI are usually passwords or pins and should not get dripped all over memory. ticket: new git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@20863 dc483132-0cff-0310-8789-dd5450dbe970
* kim_ui_plugin_fini sends pointer to context instead of contextAlexandra Ellwood2008-10-101-1/+1
| | | | | | ticket: new git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@20862 dc483132-0cff-0310-8789-dd5450dbe970
* allow kim ui plugins to have any nameAlexandra Ellwood2008-10-101-2/+1
| | | | | | | | | | Note that there can still only be one, it will just use the first one it finds. Just want to have different names for them so that we can distinguish between different plugins. ticket: new git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@20861 dc483132-0cff-0310-8789-dd5450dbe970
* change password should always reprompt on errorAlexandra Ellwood2008-10-101-12/+8
| | | | | | | | | | Since it collects the password ahead of time, the prompt count won't get incremented. Checking whether it called auth_prompt is useless. ticket: new git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@20860 dc483132-0cff-0310-8789-dd5450dbe970
* Missing keys in KerberosAgent Info.plistAlexandra Ellwood2008-10-091-0/+4
| | | | | | ticket: new git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@20856 dc483132-0cff-0310-8789-dd5450dbe970
* prefs should not create empty dictionary for KIM_OPTIONS_DEFAULTAlexandra Ellwood2008-10-091-6/+7
| | | | | | ticket: new git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@20855 dc483132-0cff-0310-8789-dd5450dbe970
* preferences should handle KIM_OPTIONS_DEFAULTAlexandra Ellwood2008-10-093-9/+5
| | | | | | ticket: new git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@20854 dc483132-0cff-0310-8789-dd5450dbe970