Thanks to the people who responded to my last message.
Evidently I was not clear enough about what I needed.
At any rate, I have now solved the problem.  The code is this:

    ka_Init(0);
    ka_GetAuthToken("www", "", realm, &key, 260000, &j);
    ka_GetServerToken("afs", "", realm, 260000, &token, 1);
    ktc_SetToken(&service, &token, &client, 0);

The differences are these: Since 3.3, or whenever I got the
specifications of these functions, both ka_GetAuthToken and
ka_GetServerToken have acquired additional parameters.  The
first requires a pointer to an int32 which apparently must be
initialised to 0, and the second requires the constant 1.
I have also changed the null realm in the second call to the
current realm.  This code now appears to work properly.

     -- Owen
     [EMAIL PROTECTED]

Reply via email to