]> git.michaelhowe.org Git - packages/o/openafs.git/commitdiff
STABLE14-aix-lam-aklog-set-token-name-20071213
authorDerrick Brashear <shadow@dementia.org>
Thu, 13 Dec 2007 23:07:05 +0000 (23:07 +0000)
committerDerrick Brashear <shadow@dementia.org>
Thu, 13 Dec 2007 23:07:05 +0000 (23:07 +0000)
LICENSE IPL10

so we set an afs id in the tokens here also

(cherry picked from commit bf26bc9486de7831ae298b11e9ca33ac14ed92a7)

src/tsm41/aix_aklog.c

index e14b0b5cd7ca30ae99566139adcb074b807601dd..25226a6ea764ed000574f5949caad5c5f1da6e1d 100644 (file)
@@ -32,6 +32,7 @@ RCSID
 #include <afs/dirpath.h>
 #include <rx/rxkad.h>
 #include <afs/auth.h>
+#include <afs/ptserver.h>
 #include "aix_auth_prototypes.h"
 
 struct afsconf_cell ak_cellconfig; /* General information about the cell */
@@ -525,6 +526,10 @@ static int auth_to_cell(krb5_context context, char *cell, char *realm)
      * not work if you change %d to something else.
      */
     
+    /* Don't do first-time registration. Handle only the simple case */
+    if ((status == 0) && (viceId != ANONYMOUSID))
+       sprintf (username, "AFS ID %d", (int) viceId);
+
     /* Reset the "aclient" structure before we call ktc_SetToken.
      * This structure was first set by the ktc_GetToken call when
      * we were comparing whether identical tokens already existed.