[5473] in Kerberos

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

No subject found in mail header

daemon@ATHENA.MIT.EDU (jkhuon@MIT.EDU)
Fri Jul 7 11:54:31 1995

From: jkhuon@MIT.EDU
To: kerberos@MIT.EDU
Date: Fri, 07 Jul 1995 11:43:21 EDT


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