[2547] in Kerberos-V5-bugs

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

pending/265: Request Help

daemon@ATHENA.MIT.EDU (YingZhaoHui)
Sat Nov 30 22:29:32 1996

Resent-From: gnats@rt-11.MIT.EDU (GNATS Management)
Resent-To: gnats-admin@rt-11.MIT.EDU
Resent-Reply-To: krb5-bugs@MIT.EDU, YingZhaoHui <s603@pdns.nudt.edu.cn>
Date: Sun, 1 Dec 1996 11:25:05 +0800
From: YingZhaoHui <s603@pdns.nudt.edu.cn>
To: krb5-bugs@MIT.EDU


>Number:         265
>Category:       pending
>Synopsis:       Request Help
>Confidential:   yes
>Severity:       serious
>Priority:       medium
>Responsible:    gnats-admin
>State:          open
>Class:          sw-bug
>Submitter-Id:   unknown
>Arrival-Date:   Sat Nov 30 22:29:01 EST 1996
>Last-Modified:
>Originator:
>Organization:
>Release:
>Environment:
>Description:
>How-To-Repeat:
>Fix:
>Audit-Trail:
>Unformatted:
--=====================_849468588==_
Content-Type: text/plain; charset="us-ascii"


--=====================_849468588==_
Content-Type: text/plain; charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
Content-Disposition: attachment; filename="MAILTM"


dear sir:
  When I installed Kerberos edition BETA 5 on a workstation
(Sun 4/75 SPARCstation 2,OS is SunOS Release 5.4 Generic),I've met the
following problems.
   1. When I executed the sample program as a command,it is proper.The=
 result is:

		sun8% sserver 4500
		sun8
		---------------------------
		sun8% sclient sun8 4500
		sendauth succeeded, reply is:
		reply len 26, contents:
		You are kerb5@NUDT.EDU.CN

		sun8%=20


      but when I treated the "sserver" as a daemon,it is wrong.Here is the=
 result:

		sun8% sclient sun8
		sclient: Software caused connection abort while using sendauth
		sun8%


    The line in file inetd.conf is as follows:

sample=
	stream=
	tcp=
	nowait	root					/home/sun8/kerb5/src/appl/sample/sserver/sserver	sserver

   2. When I executed the simple "sim_client" in first time, the display=20
is as follows:

		sun8% sim_client sun8
		Got credentials for sample.
		Sent authentication data: 421 bytes
		Sent checksummed message: 122 bytes
		Segmentation Fault (core dumped)
		sun8%

 and  when I executed it after the first time,the display=20
is proper.
   When I treated the sim_server as a command,the display is:

		sun8% sim_client sun8
		Got credentials for sample.
		Sent authentication data: 421 bytes
		Sent checksummed message: 122 bytes
		Sent encrypted message: 123 bytes
		sun8%=20

		-------------------
		sun8% sim_server sun8
		Received 421 bytes
		sim_server: Wrong principal in request while reading request
		sun8%=20


   The line in file inetd.conf is:
sample=
	dgram=
	udp	wait	root	/home/sun8/kerb5/src/appl/simple/server/sim_server	sim_server

   3. When I create an account, using "login.krb5" as the login shell,it=
 display

	Login incorrect

   when I debug the program login.krb5, I found the packet=20
(will send to kdc) is:

"\004\002tmeng\000\000NUDT.EDU.CN\0002=A0=DEV`krbtgt\000NUDT.EDU.CN", '\000
'
after send the packet,the return packet is:

"\004\004tmeng\000\000NUDT.EDU.CN\0002=A0=DEV\000\177=E6=C6\000\004\000h=FB\=
023;=FC=E2{\016n=AD=CA\231=D4\002=E8\032=E7W&\003=A4Rp\026=DDu\223\r71\002<\=
222f=C1=D1\020=CA4.\030\e\002~=F9=D2\"=A1\037P=ED=FCI\233=DFuPs=B6=BB;zU^T\0=
04\204=C5=A9d=E7=A1\215\212\023[=DAbMZ=C7=DA=E5\236=F0'=E8=CA/\205=CFCE=DDO=
=AF0=D1W=B5=FF=A3\230^=A1", '\000
'=20
  Here is the debug's detail step by step:

(gdb) run
The program being debugged has been started already.
Start it from the beginning? (y or n) y
Starting program: /home/sun8/kerb5/src/appl/bsd/login.krb5=20
login: tmeng
Password:=20
Breakpoint 1, send_recv (pkt=3D0xefffe5a8, rpkt=3D0xefffe0b8, f=3D3,=20
    _to=3D0xefffe020, addrs=3D0x38180) at send_to_kdc.c:328
328	    if ((numsent =3D sendto(f,(char *)(pkt->dat), pkt->length, 0,=20
(gdb) print *pkt
$4 =3D {length =3D 45,=20
  dat =3D "\004\002tmeng\000\000NUDT.EDU.CN\0002=A0=DEV`krbtgt\000NUDT.EDU.C=
N", '\000' <repeats 12 times>, "=EF\177+p", '\000' <repeats 36 times>,=
 "=EF\177+p", '\000' <repeats 92 times>, "=EF\177+p", '\000' <repeats 43=
 times>,=
 "\004=F0\001\b\230=EFo=FA8\000\003b`\000\000\001@\000\000\000\200\000\003c=
=A0=EFo=B5x\000\000\000\001=EFpB=B4\000\000\000\000\000\003b`\000\000\000\00=
0=EF=FF=EF\211=EF=FF=E7\020=EFm\236d\000\000\000\000\000\000\000\001",=
 '\000' <repeats 20 times>,=
 "=EF\177+p\000\000\000\000-&\000\005\004=BD\200+\000\003\034\177\025\004\00=
0\000\000"..., mbz =3D 0}
(gdb) c
Continuing.
Breakpoint 2, send_recv (pkt=3D0xefffde70, rpkt=3D0xefffe0b8, f=3D3,=20
    _to=3D0x8, addrs=3D0x38180) at send_to_kdc.c:365
365	    recvresult =3D recvfrom(f, (char *)(rpkt->dat), sizeof(rpkt->dat),=
 0,
(gdb) next
367	    if (recvresult < 0) {
(gdb) print *rpkt
$5 =3D {length =3D 0,=20
  dat =3D=
 "\004\004tmeng\000\000NUDT.EDU.CN\0002=A0=DEV\000\177=E6=C6\000\004\000h=FB=
\023;=FC=E2{\016n=AD=CA\231=D4\002=E8\032=E7W&\003=A4Rp\026=DDu\223\r71\002<=
\222f=C1=D1\020=CA4.\030\e\002~=F9=D2\"=A1\037P=ED=FCI\233=DFuPs=B6=BB;zU^T\=
004\204=C5=A9d=E7=A1\215\212\023[=DAbMZ=C7=DA=E5\236=F0'=E8=CA/\205=CFCE=DDO=
=AF0=D1W=B5=FF=A3\230^=A1", '\000' <repeats 1112 times>,=20
  mbz =3D 0}
(gdb) c
Continuing.
Login incorrect
login:

   4.I also want to know whether there is any special way to debug the=
 daemon "krb5kdc".
   5. I don't know what's the uses of some dirctory and configes except=
 krb5.conf. For example: \athena, \\kerberos\\k_in_tkts,
 /etc/krbhst,and so forth.
so I ask you which I must create. where can I find informations about them.
   6. After I install Kerberos on this workstation. I'll install appropriate
part on other machine,include=20
     SPARCstation 2, OS is SUNOS Release 4.1.3(generic)
     PC , OS is Windows for Workgroup
so I want to ask you whether there is some notes I should take?
=20
 I'm looking forward to your help. My e-mail is s603@nudt.edu.cn.
=20

  Thank you!

  Tengmeng=20

--=====================_849468588==_--


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