Subject: bin/12696: del_enctype in kadmin gets arg processing wrong.
To: None <gnats-bugs@gnats.netbsd.org>
From: Mark Davies <mark@MCS.VUW.AC.NZ>
List: netbsd-bugs
Date: 04/19/2001 13:51:31
>Number: 12696
>Category: bin
>Synopsis: del_enctype in kadmin gets arg processing wrong
>Confidential: no
>Severity: non-critical
>Priority: medium
>Responsible: bin-bug-people
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Wed Apr 18 18:52:00 PDT 2001
>Closed-Date:
>Last-Modified:
>Originator: Mark Davies
>Release: 2001/04/11
>Organization:
Dept. of Comp. Sci., Victoria Uni. of Wellington, New Zealand.
>Environment:
System: NetBSD city-art.mcs.vuw.ac.nz 1.5U NetBSD 1.5U (MCS_WORKSTATION) #0: Wed Apr 11 15:36:35 NZST 2001 mark@turakirae.mcs.vuw.ac.nz:/src/work/src/sys/arch/i386/compile/MCS_WORKSTATION i386
Architecture: i386
Machine: i386
>Description:
In kadmin the del_enctype command won't let you delete a single
enctype (but is happy with removing multiple)
>How-To-Repeat:
kadmin> get --long foobar
Principal: foobar@MCS.VUW.AC.NZ
Principal expires: never
Password expires: never
Last password change: never
Max ticket life: 1 day
Max renewable life: 1 week
Kvno: 1
Mkvno: 0
Policy: none
Last successful login: never
Last failed login: never
Failed login count: 0
Last modified: 2001-04-19 01:48:15 UTC
Modifier: kadmin/admin@MCS.VUW.AC.NZ
Attributes:
Keytypes(salttype[(salt-value)]): des3-cbc-sha1(pw-salt), des-cbc-md5(pw-salt),
des-cbc-md4(pw-salt), des-cbc-crc(pw-salt)
kadmin> del_enctype foobar des-cbc-md5
Usage: del_enctype [--help] [-h] principal enctypes...
kadmin> del_enctype foobar des-cbc-md5 des-cbc-md4
kadmin> get --long foobar
Principal: foobar@MCS.VUW.AC.NZ
Principal expires: never
Password expires: never
Last password change: never
Max ticket life: 1 day
Max renewable life: 1 week
Kvno: 2
Mkvno: 0
Policy: none
Last successful login: never
Last failed login: never
Failed login count: 0
Last modified: 2001-04-19 01:49:03 UTC
Modifier: kadmin/admin@MCS.VUW.AC.NZ
Attributes:
Keytypes(salttype[(salt-value)]): des3-cbc-sha1(pw-salt), des-cbc-crc(pw-salt)
>Fix:
Presumably the "argc - optind < 3" should actually be "argc - optind < 2"
cheers
mark
>Release-Note:
>Audit-Trail:
>Unformatted: