[8974] in Athena Bugs
(any) Version 7.3P: from uses wrong realm
daemon@ATHENA.MIT.EDU (Mark W. Eichin)
Sun Feb 16 08:59:46 1992
Date: Sun, 16 Feb 92 08:59:34 -0500
From: "Mark W. Eichin" <eichin@Athena.MIT.EDU>
To: bugs@Athena.MIT.EDU
System type, version: (any) Version 7.3P
System name: any
What's wrong:
from uses the realm of the local host rather than the realm of the pop
server when calling krb_sendauth. (This bug existed in the SIPB pfrom,
which Athena from is apparently derived from.
What should have happened:
Here are the diffs for the SIPB version; apply them around line 101 of
/source/athena/athena.bin/from/popmail.c.
_Mark_ <eichin@athena.mit.edu>
MIT Student Information Processing Board
diff -c -r1.2 popmail.c
*** /tmp/,RCSt1012443 Sun Feb 16 08:58:15 1992
--- popmail.c Sat Feb 15 19:25:33 1992
***************
*** 114,120 ****
#else
authopts = 0L;
#endif
! rem = krb_sendauth(authopts, s, ticket, "pop", hp->h_name, (char *)0,
0, (MSG_DAT *) 0, (CREDENTIALS *) 0,
(bit_64 *) 0, (struct sockaddr_in *)0,
(struct sockaddr_in *)0,"ZMAIL0.0");
--- 114,121 ----
#else
authopts = 0L;
#endif
! rem = krb_sendauth(authopts, s, ticket, "pop", hp->h_name,
! (char *) krb_realmofhost(hp->h_name),
0, (MSG_DAT *) 0, (CREDENTIALS *) 0,
(bit_64 *) 0, (struct sockaddr_in *)0,
(struct sockaddr_in *)0,"ZMAIL0.0");