]> git.michaelhowe.org Git - packages/o/openafs.git/commitdiff
aklog: Return token when performing 524 conversion
authorAndrew Deason <adeason@sinenomine.net>
Thu, 21 Apr 2011 19:24:45 +0000 (14:24 -0500)
committerDerrick Brashear <shadow@dementia.org>
Fri, 22 Apr 2011 04:49:52 +0000 (21:49 -0700)
We weren't actually returning a token and username from
rxkad_get_converted_token. Do so.

This is a 1.6-specific change. This issue was fixed on master when
aklog was changed to use the new SetTokenEx family of pioctls in
commit 53837416cbed3ba4d11f63015e1f13800519f2ed.

Change-Id: I7395034c5225ca62b562ea39bd01762c74090b03
Reviewed-on: http://gerrit.openafs.org/4518
Tested-by: BuildBot <buildbot@rampaginggeek.com>
Reviewed-by: Simon Wilkinson <sxw@inf.ed.ac.uk>
Reviewed-by: Derrick Brashear <shadow@dementia.org>
src/aklog/aklog.c

index afb25b96dc58bacd0e972d5cfd4bf780f4657138..121e3f426700880408056c0b079726dfc67e630f 100644 (file)
@@ -824,6 +824,9 @@ rxkad_get_converted_token(krb5_context context, krb5_creds *v5cred,
     token->ticketLen = cred.ticket_st.length;
     memcpy(token->ticket, cred.ticket_st.dat, token->ticketLen);
 
+    *tokenPtr = token;
+    *userPtr = strdup(username);
+
     return 0;
 }
 #endif