sized types and more krb lib lossage...

Assar Westerlund assar at sics.se
Mon Mar 2 21:06:06 CET 1998


John Hawkinson <jhawk at MIT.EDU> writes:
> Almost, but fs.c doesn't include appl_locl.h. I added it at the head
> and it seems fine:

Right.  I did as well.

> | I would think it's this code in arla.c that fails for athena.mit.edu.
> | But wouldn't it fail for sipb.mit.edu as well?  The realm should be
> | MIT.EDU in both cases, right?
> 
> Ah, nope, it should be ATHENA.MIT.EDU in both cases.
> 
> | 	      char *realm = strdup(cell_getthiscell ());
> | 
> | 	      strupr(realm);
> | 	    
> | 	      if (get_cred("afs","",realm, &krbdata.c)) {
> | 		  ARLADEB(ADEBINIT, ("error getting ticket for %s\n",
> | 				     realm));
> | 	      } else if (cred_add_krb4(getuid(), &krbdata.c) == NULL) {
> 
> So that code appears to be doing the right thing.

For the athena.mit.edu-case it would be `afs at ATHENA.MIT.EDU' which is
correct, but for the sipb.mit.edu-case it would try with
`afs at SIPB.MIT.EDU' which is wrong?

And why is it getting wrong key version against athena.mit.edu?

/assar





More information about the Arla-drinkers mailing list