[5472] in Kerberos

home help back first fref pref prev next nref lref last post

kerberos ticket file set up

daemon@ATHENA.MIT.EDU (Chia-Lan Jenny Khuon)
Fri Jul 7 11:44:49 1995

To: kerberos@MIT.EDU
Date: 7 Jul 1995 15:29:28 GMT
From: jkhuon@MIT.EDU (Chia-Lan Jenny Khuon)




Hi!

Would anyone please help me the kerberos tikcet??

The following is  part of my program, it is running on wondows pc.


long sendAuth(char *tosend, long *sendLen)
{
  long code=0L; int sendlength; KTEXT_ST ktxt;
  char message[oneKSize];

   code = (long) krb_mk_req(&ktxt, "rcmd",
                           INSTANCE, "ATHENA.MIT.EDU",
                           (int)NULL);
  if (code) {
     return code;     <==== here, the return code is 76. According to the
  }                         error codes returned by ticket file utilities
                            in krb.h file, it is defined as:
                            #define  NO_TKT_FIL  76 /* No ticket file found */
                            How do I set up the tkt file for kerberos,
                            where the file should be located and what does the
                            file contain.


  sprintf(tosend, "998:%d:", ktxt.length);
  sendlength = strlen(tosend);

  bcopy(ktxt.dat, tosend+sendlength, ktxt.length);
  tosend[sendlength+ktxt.length] = '\n';
  tosend[sendlength+ktxt.length+1] = '\0';
  sendlength += ktxt.length +1;
  *sendLen = sendlength;
  debugPrint("before printf");
  debugPrint(tosend);
  debugPrint("after printf\n");
  return 0;
}



Thanks a lot     -Jenny   jkhuon@mit.edu






home help back first fref pref prev next nref lref last post