Received: from fort-point-station.mit.edu (FORT-POINT-STATION.MIT.EDU [18.7.7.76]) by krbdev.mit.edu (8.9.3p2) with ESMTP id NAA08528; Sat, 26 Aug 2006 13:47:12 -0400 (EDT) From: petesea@bigfoot.com Received: from mit.edu (W92-130-BARRACUDA-3.MIT.EDU [18.7.21.224]) by fort-point-station.mit.edu (8.13.6/8.9.2) with ESMTP id k7QHl5N3023826 for ; Sat, 26 Aug 2006 13:47:05 -0400 (EDT) X-Barracuda-Connect: vms044pub.verizon.net[206.46.252.44] X-Barracuda-Start-Time: 1156614424 Received: from vms044pub.verizon.net (vms044pub.verizon.net [206.46.252.44]) by mit.edu (Spam Firewall) with ESMTP id 0763815836A for ; Sat, 26 Aug 2006 13:47:04 -0400 (EDT) Received: from gort.home.org ([64.236.128.14]) by vms044.mailsrvcs.net (Sun Java System Messaging Server 6.2-4.02 (built Sep 9 2005)) with ESMTPA id <0J4M00MV29EFQ794@vms044.mailsrvcs.net> for kfw-bugs@mit.edu; Sat, 26 Aug 2006 12:47:04 -0500 (CDT) Received: from oberon.home.org (oberon [192.168.0.5]) by gort.home.org (8.11.6/8.11.6) with ESMTP id k7QHl1l02113 for ; Sat, 26 Aug 2006 10:47:02 -0700 Date: Sat, 26 Aug 2006 10:47:01 -0700 (Pacific Daylight Time) Subject: Kerberos for Windows 3.1 beta and spaces before/after principal X-X-Sender: pete@gort.home.org To: kfw-bugs@mit.edu Message-Id: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed X-Barracuda-Virus-Scanned: by Barracuda Spam Firewall at edu X-Spam-Score: 0.55 X-Spam-Flag: NO X-Scanned-BY: MIMEDefang 2.42 X-RT-Original-Encoding: us-ascii Content-Length: 678 In the New Credentials dialog, if a user puts a space before or after the Username (most likely by mistake or because of a cut-and-paste), the Username will be considered invalid: Krb5: Client not found in Kerberos database Would it be possible to pre-validate the Username to make sure it doesn't begin/end with spaces? Then either explicitly say the Username shouldn't begin/end with spaces or just silently strip them. Along the same lines, if the Realm begins/ends with a space the user will get the following message: Krb5: Cannot resolve network address for KDC in requested realm Same thing here... report an error or strip the leading/trailing spaces.