I have a program which tries to renew the token for a group
of processes with a common PAG; it is simply executed by
one of the processes.  The operative bit of the code is this:

    rc(ka_Init(0), "Bad KAS initialisation");
    rc(ka_GetAuthToken(username, "", realm, &key, 260000),
      "Can't get auth token");
    rc(ka_GetServerToken("afs", "", NULL, 260000, &token),
      "Can't get server token");
    rc(ktc_SetToken(&service, &token, &client, 0), "Can't set token");

(rc is a function which aborts with the given error message if the
first argument returns an unsuccessful return code.)

The problem is that the new token does not seem to extend the
time that the old token is valid.  I am getting a new token,
since if I run the program with token for 123, I get a token for
user 456.  But the new token expires at the same time as the
previous token expired; it does not extend the time of validity.

     -- Owen
     [EMAIL PROTECTED]

Reply via email to