Many thanks to those who replied to my earlier message, which was
evidently not clear enough to provoke the explanation I am trying
to get, though I did learn something, particularly from Marcus
Watts.
I want a program which will give me a token for afs@(my local cell).
This is how I begin the current version:
time_t now;
struct ktc_encryptionKey key;
struct ktc_token token;
struct ubik_client *conn;
int i, local;
char realm[MAXKTCREALMLEN];
time(&now);
setpag();
/* At this point key.data actually holds the key for adm.admin, as
confirmed by 'kas exa adm.admin'. */
i = ka_CellToRealm(NULL, realm, &local);
/* i == 0 and realm contains my cell name, uppercased */
i = ka_AuthServerConn(realm, KA_AUTHENTICATION_SERVICE,
(struct ktc_token *) 0, &conn);
/* i == 0 */
i = ka_Authenticate("adm", "admin", conn, KA_TICKET_GRANTING_SERVICE,
&key, now, now + 90000, &token);
/* i == 180490 */
Please note that I am aware that translate_et returns
180490 (ka).10 = request packet in error
Also please note that I am aware that what I want can be done using
ka_UserAuthenticateGeneral, providing I have the password, but that
I do not want to have the password, only the key. Please note also
that the key is the correct key for adm.admin, that this question has
no direct relevance to the ADM programs, and that I would like to know
what I am doing wrong in the above fragment. Incidentally, the same
error number (180490) seems to result from most of my variations on
this fragment.
I am deeply grateful for those who have suggested ways in which I could
rephrase this question more clearly.
-- Owen
[EMAIL PROTECTED]