RT RT/krbdev.mit.edu: Ticket #3308 kadmin.local is killed due to segmentation fault when principal name argument is missing. Signed in as guest.
[Logout]

[Home] [Search] [Configuration]

[Display] [History] [Basics] [Dates] [People] [Links] [Jumbo]

 
 

 The Basics  
Id
3308
Status
resolved
Worked
0 min
Priority
50/0
Queue
krb5
 

 Keyword Selections  
Component
  • krb5-admin
Tags
Version_reported
  • 1.4.3
Version_Fixed
  • 1.5
Target_Version
 

 Relationships  
Depends on:
Depended on by:
Parents:
Children:

Refers to:
Referred to by:
 
 Dates  
Created: Thu Dec 22 15:41:07 2005
Starts: Not set
Started: Not set
Last Contact: Sun Jun 25 18:28:21 2006
Due: Not set
Updated: Wed Dec 16 18:02:45 2015 by tlyu
 

 People  
Owner
 raeburn
Requestors
 srahul@novell.com
Cc
 
AdminCc
 
 

 More about srahul@novell.com  
Comments about this user:
No comment entered about this user
This user's 25 highest priority tickets:
 

History   Display mode: [Brief headers] [Full headers]
      Thu Dec 22 15:41:08 2005  RT_System - Ticket created    
     
From krb5-bugs-incoming-bounces@PCH.mit.edu  Thu Dec 22 15:41:05 2005
Received: from pch.mit.edu (PCH.MIT.EDU [18.7.21.90]) by krbdev.mit.edu (8.9.3p2)
with ESMTP
	id PAA01731; Thu, 22 Dec 2005 15:41:05 -0500 (EST)
Received: from pch.mit.edu (pch.mit.edu [127.0.0.1])
	by pch.mit.edu (8.12.8p2/8.12.8) with ESMTP id jBMKeOpx005092
	for <krb5-send-pr@krbdev.mit.edu>; Thu, 22 Dec 2005 15:40:24 -0500
Received: from pacific-carrier-annex.mit.edu (PACIFIC-CARRIER-ANNEX.MIT.EDU
	[18.7.21.83])
	by pch.mit.edu (8.12.8p2/8.12.8) with ESMTP id jBKD8Ipx026084
	for <krb5-bugs-incoming@PCH.mit.edu>; Tue, 20 Dec 2005 08:08:32 -0500
Received: from sikandar.blr.novell.com (lan-202-144-95-244.maa.sify.net
	[202.144.95.244] (may be forged))
	by pacific-carrier-annex.mit.edu (8.12.4/8.9.2) with ESMTP id
	jBKD8LHv021334
	for <krb5-bugs@mit.edu>; Tue, 20 Dec 2005 08:08:26 -0500 (EST)
Received: by sikandar.blr.novell.com (Postfix, from userid 500)
	id 053FD8F40B; Tue, 20 Dec 2005 18:39:18 +0530 (IST)
To: krb5-bugs@mit.edu
Subject: kadmin.local is killed due to segmentation fault
From: srahul@novell.com
X-send-pr-version: 3.99
Message-Id: <20051220130918.053FD8F40B@sikandar.blr.novell.com>
Date: Tue, 20 Dec 2005 18:39:18 +0530 (IST)
X-Spam-Score: 5.094
X-Spam-Level: ***** (5.094)
X-Spam-Flag: NO
X-Scanned-By: MIMEDefang 2.42
X-Mailman-Approved-At: Wed, 21 Dec 2005 18:07:23 -0500
X-BeenThere: krb5-bugs-incoming@mailman.mit.edu
X-Mailman-Version: 2.1.6
Precedence: list
Reply-To: srahul@novell.com
Sender: krb5-bugs-incoming-bounces@PCH.mit.edu
Errors-To: krb5-bugs-incoming-bounces@PCH.mit.edu


>Submitter-Id:	net
>Originator:	S Rahul
>Organization:

>Confidential:	no
>Synopsis:	kadmin.local is killed due to segmentation fault when principal name
argument is missing.
>Severity:	non-critical
>Priority:	medium
>Category:
>Class:		sw-bug
>Release:	1.4.3
>Environment:

System: Linux sikandar 2.6.11.4-21.9-default #1 Fri Aug 19 11:58:59 UTC 2005 i686
i686 i386 GNU/Linux
Architecture: i686

>Description:
	kadmin.local is killed due to segmentation fault when principal name
	argument is missing.
>How-To-Repeat:
bash$ kdb5_util create -s
Loading random data
Initializing database 'REALM1.db' for realm 'REALM1',
master key name 'K/M@REALM1'
You will be prompted for the database Master Password.
It is important that you NOT FORGET this password.
Enter KDC database master key:
Re-enter KDC database master key to verify:
bash$ kadmin.local
Authenticating as principal user1/admin@REALM1 with password.
kadmin.local:  cpw -pw pass
Segmentation fault (core dumped)
>Fix:
	Apply the following patch:
--- /tmp/krb5-1.4.3/src/kadmin/cli/kadmin.c     2005-12-20 17:55:43.000000000 +0530
+++ src/kadmin/cli/kadmin.c    2005-12-20 18:00:49.000000000 +0530
@@ -628,6 +628,10 @@
        }
        goto usage;
     }
+    if (*argv == NULL) {
+       fprintf(stderr, "change_password: missing principal name\n");
+       goto usage;
+    }
     retval = kadmin_parse_name(*argv, &princ);
     if (retval) {
        com_err("change_password", retval, "while parsing principal name");


Download (untitled) 3k
      Thu Dec 22 15:41:12 2005  RT_System - Component component added    
      Fri Dec 23 17:20:26 2005  tlyu - Component component changed to krb5-admin    
      Fri Dec 23 17:21:13 2005  tlyu - Version_reported 1.4.3 added    
      Tue Jun 20 19:27:05 2006  raeburn - Status changed from open to resolved    
      Tue Jun 20 19:27:06 2006  raeburn - Tags pullup added    
      Tue Jun 20 19:27:06 2006  raeburn - Given to raeburn    
      Tue Jun 20 19:27:07 2006  raeburn - Correspondence added    
     
From: raeburn@mit.edu
Subject: SVN Commit

(kadmin_cpw): Don't crash if principal name is not given.  Based on a
patch from S Rahul.
(extended_com_err_fn): If error code is zero, don't fetch an error message.

Commit By: raeburn



Revision: 18179
Changed Files:
U   trunk/src/kadmin/cli/kadmin.c


Download (untitled) 254b
      Sun Jun 25 18:28:17 2006  tlyu - Version_Fixed 1.5 added    
      Sun Jun 25 18:28:17 2006  tlyu - Correspondence added    
     
From: tlyu@mit.edu
Subject: SVN Commit

pull up r18179 from trunk

 r18179@cathode-dark-space:  raeburn | 2006-06-20 19:27:01 -0400
 ticket: 3308
 tags: pullup

 (kadmin_cpw): Don't crash if principal name is not given.  Based on a
 patch from S Rahul.
 (extended_com_err_fn): If error code is zero, don't fetch an error message.


Commit By: tlyu



Revision: 18213
Changed Files:
U   branches/krb5-1-5/src/kadmin/cli/kadmin.c


Download (untitled) 390b
      Wed Dec 16 18:02:45 2015  tlyu - Keyword pullup deleted