forwarding tokens to other machine
Love
lha at stacken.kth.se
Fri Jul 30 17:19:12 CEST 1999
Herbert Huber <Herbert.Huber at lrz-muenchen.de> writes:
> please excuse the late reply. I have now tested your two
> proof-of-concept programs under arla-0.25 with linux-2.2.10 Kernel
> running on my Intel machines and it works perfectly - Thanks a lot!
> So the free AFS client arla can now also be used in CODINE 4.2.8
> clusters where the two binaries GetToken and SetToken are needed for
> token forwarding to batch machines.
Yes, right. There might be some missing things in VIOCGETTOK (paranoia),
it has been discussed earlier in the list.
The following patch (against 0.26) might help.
Love
Index: messages.c
===================================================================
RCS file: /afs/stacken.kth.se/src/SourceRepository/arla/arlad/messages.c,v
retrieving revision 1.133
retrieving revision 1.150
diff -u -w -r1.133 -r1.150
--- messages.c 1999/06/23 01:43:32 1.133
+++ messages.c 1999/07/29 14:14:34 1.150
@@ -2446,13 +2315,15 @@
ct.AuthHandle = cred->kvno;
memcpy (ct.HandShakeKey, cred->session, sizeof(cred->session));
- ct.ViceId = h->cred.uid;
+ ct.ViceId = ce->uid;
ct.BeginTimestamp = cred->issue_date + 1;
ct.EndTimestamp = ce->expire;
- tmp = 0;
+ tmp = cred->ticket_st.length;
memcpy (p, &tmp, sizeof(tmp));
p += sizeof(tmp);
+ memcpy (p, cred->ticket_st.dat, tmp);
+ p += tmp;
tmp = sizeof(ct);
memcpy (p, &tmp, sizeof(tmp));
p += sizeof(tmp);
More information about the Arla-drinkers
mailing list