Received: from pch.mit.edu (PCH.MIT.EDU [18.7.21.90]) by krbdev.mit.edu (8.9.3p2) with ESMTP id OAA00060; Tue, 6 Jun 2006 14:41:04 -0400 (EDT) Received: from pch.mit.edu (pch.mit.edu [127.0.0.1]) by pch.mit.edu (8.13.6/8.12.8) with ESMTP id k56IeQwn021450 for ; Tue, 6 Jun 2006 14:40:26 -0400 Received: from fort-point-station.mit.edu (FORT-POINT-STATION.MIT.EDU [18.7.7.76]) by pch.mit.edu (8.13.6/8.12.8) with ESMTP id k56D6Bgg002417 for ; Tue, 6 Jun 2006 09:06:11 -0400 Received: from sineb-mail-1.sun.com (sineb-mail-1.sun.com [192.18.19.6]) by fort-point-station.mit.edu (8.13.6/8.9.2) with ESMTP id k56D6FAG014666 for ; Tue, 6 Jun 2006 09:06:16 -0400 (EDT) Received: from fe-apac-02.sun.com (fe-apac-02.sun.com [192.18.19.173] (may be forged)) by sineb-mail-1.sun.com (8.13.6+Sun/8.12.9) with ESMTP id k56D6D3h003680 for ; Tue, 6 Jun 2006 21:06:14 +0800 (SGT) Received: from conversion-daemon.mail-apac.sun.com by mail-apac.sun.com (Sun Java System Messaging Server 6.2-4.02 (built Sep 9 2005)) id <0J0F00G01W956H00@mail-apac.sun.com> (original mail from Gangadhar.M@Sun.COM) for krb5-bugs@mit.edu; Tue, 06 Jun 2006 21:06:13 +0800 (SGT) Received: from [129.158.226.172] by mail-apac.sun.com (Sun Java System Messaging Server 6.2-4.02 (built Sep 9 2005)) with ESMTPSA id <0J0F00L5IWEDG4P3@mail-apac.sun.com> for krb5-bugs@mit.edu; Tue, 06 Jun 2006 21:06:13 +0800 (SGT) Date: Tue, 06 Jun 2006 18:49:06 +0530 From: Gangadhar Mylapuram Subject: rlogin client bug. To: krb5-bugs@mit.edu Message-Id: <448580CA.8010202@sun.com> MIME-Version: 1.0 Content-Type: text/plain; format=flowed; charset=ISO-8859-1 Content-Transfer-Encoding: 7BIT X-Accept-Language: en-us, en User-Agent: Mozilla Thunderbird 1.0.2 (X11/20050322) X-Spam-Score: -2.598 X-Spam-Flag: NO X-Scanned-BY: MIMEDefang 2.42 X-Mailman-Approved-At: Tue, 06 Jun 2006 14:40:25 -0400 Cc: sanjay pandit X-Beenthere: krb5-bugs-incoming@mailman.mit.edu X-Mailman-Version: 2.1.6 Precedence: list Reply-To: Gangadhar.M@Sun.COM Sender: krb5-bugs-incoming-bounces@PCH.mit.edu Errors-To: krb5-bugs-incoming-bounces@PCH.mit.edu X-RT-Original-Encoding: iso-8859-1 Content-Length: 2097 Hi, I think this is the correct alias to submit bugs on MIT kerberos. Here is one misbehavior I found from rlogin client code. Problem: ------- I have a Red Hat v4 client using rlogin to a Sunbox 2.10. I am using kerberos for authentication. From the Red hat rlogin, user logs into the sunbox, he types "stty" in the window and does not get the rows and columns of the current window. rlogin -x -F phobos This rlogin session is using encryption for all data transmissions. Last login: Wed Jan 18 08:44:18 from gplserv.atco.ca phobos$ stty speed 38400 baud; -parity erase = ^h; swtch = ; brkint -inpck -istrip icrnl -ixany imaxbel onlcr echo echoe echok echoctl echoke iexten Should look like: stty speed 9600 baud; -parity hupcl rows = 41; columns = 112; ypixels = 625; xpixels = 1018; erase = ^h; swtch = ; -brkint -inpck -istrip ixoff crt iexten Evaluation : --------- I root caused the problem. I have gone through the MIT kerberos krlogin.c (krb5-1.4.3/src/appl/bsd/krlogin.c)code. This code has written in such way the if the protocol is KCMD_NEW_PROTOCOL it sets the do_inband variable to 1. 702 if (kcmd_proto == KCMD_NEW_PROTOCOL) { 703 do_inband = 1; This causes to ignore urget bytes that will be received through 'excset'. The below code avoids setting excset descriptor. 1574 } 1575 if (!do_inband) 1576 FD_SET(rem,&excset); 1577 if (select(rem+1, &readset, &writeset, &excset, 0) > 0 ) { So you will be able to see the rows and colums information if and only if the protocol is not a KCMD_NEW_PROTOCOL. This can be tested easily on your linux system. Kerberos Rlogin server (S10) Kerberos Rlogin client (Redhat system) On client # rlogin -PO server-name. #stty -a Here you will be able to see the rows and colums information. On client #rlogin -PN server-name. # stty -a No information shown Question: ------- Observed from the MIT rlogin client code that accepting the urgent data is based on the new/old kcmd protocol. Do you think it is the right behavior?