From s603@pdns.nudt.edu.cn Wed Dec 4 20:04:07 1996 Received: from MIT.EDU (PACIFIC-CARRIER-ANNEX.MIT.EDU [18.69.0.28]) by rt-11.MIT.EDU (8.7.5/8.7.3) with SMTP id UAA02635 for ; Wed, 4 Dec 1996 20:04:07 -0500 Received: from dns.whnet.edu.cn by MIT.EDU with SMTP id AA11661; Wed, 4 Dec 96 20:01:34 EST Received: from nudt.edu.cn ([202.197.0.180]) by dns.whnet.edu.cn (5.x/SMI-SVR4) id AA26364; Thu, 5 Dec 1996 09:00:07 +0800 Received: from j5861.nudt.edu.cn by nudt.edu.cn (SMI-8.6/SMI-SVR4) id IAA20017; Thu, 5 Dec 1996 08:58:39 +0800 Message-Id: <199612050058.IAA20017@nudt.edu.cn> Date: Thu, 5 Dec 1996 08:58:39 +0800 From: YingZhaoHui To: krb5-bugs@MIT.EDU Subject: Request Help >Number: 274 >Category: pending >Synopsis: Request Help >Confidential: yes >Severity: serious >Priority: medium >Responsible: gnats-admin >State: closed >Class: sw-bug >Submitter-Id: unknown >Arrival-Date: Wed Dec 04 20:05:01 EST 1996 >Last-Modified: Thu Dec 05 15:47:09 EST 1996 >Originator: >Organization: >Release: >Environment: >Description: >How-To-Repeat: >Fix: >Audit-Trail: State-Changed-From-To: open-closed State-Changed-By: bjaspan State-Changed-When: Thu Dec 5 15:46:41 1996 State-Changed-Why: We received two copies of this PR, this is the second. >Unformatted: --=====================_849805436==_ Content-Type: text/plain; charset="us-ascii" --=====================_849805436==_ 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:=20 sample stream tcp nowait root= /home/sun8/kerb5/src/appl/sample/sserver/sserver sserver =20 2. When I executed the simple "sim_client" in first time, the display 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%=20 and when I executed it after the first time,the display is proper. When I treated the sim_server as a command,the display is: sun8% sim_client sun8=20 Got credentials for sample. Sent authentication data: 421 bytes Sent checksummed message: 122 bytes Sent encrypted message: 123 bytes=09 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 =20 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 (will send to= kdc) is: "\004\002tmeng\000\000NUDT.EDU.CN\0002`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 =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, dat =3D= "\004\002tmeng\000\000NUDT.EDU.CN\0002=A0=DEV`krbtgt\000NUDT.EDU.CN",= '\000' , "=EF\177+p", '\000' ,= "=EF\177+p", '\000' , "=EF\177+p", '\000' ,= "\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' ,= "=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' ,=20 mbz =3D 0} (gdb) c Continuing. Login incorrect login: 4. I also want to know whether there is any special way to=20 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: 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? I'm looking forward to your help. My e-mail is s603@nudt.edu.cn. =20 Thank you! Meng Teng 96.12.5 --=====================_849805436==_--