Fill out credentials when getting tickets with changed password
authorAlexandra Ellwood <lxs@mit.edu>
Wed, 1 Oct 2008 17:11:22 +0000 (17:11 +0000)
committerAlexandra Ellwood <lxs@mit.edu>
Wed, 1 Oct 2008 17:11:22 +0000 (17:11 +0000)
ticket: 6055

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

src/kim/lib/kim_credential.c

index 3dc88e57661d764b3e21f30dd173b294515f8b73..249582c9d9000c58b2989175b5bca5ebc7f316cc 100644 (file)
@@ -323,6 +323,13 @@ kim_error kim_credential_create_new_with_password (kim_credential *out_credentia
                 
                 prompt_count = context.prompt_count; /* remember if we got prompts */
                 if (!err) { free_creds = 1; }
+                
+                if (!err) {
+                    err = krb5_error (credential->context,
+                                      krb5_copy_creds (credential->context,
+                                                       &creds, 
+                                                       &credential->creds));
+                }                
             }
             
             kim_string_free (&new_password);