Date: Thu, 13 Jul 2000 16:12:12 +1000 (EST) From: Gregory Bond <gnb@itga.com.au> To: FreeBSD-gnats-submit@freebsd.org Subject: bin/19886: skey won't work for usernames > 8 characters Message-ID: <200007130612.QAA75928@hellcat.itga.com.au>
next in thread | raw e-mail | index | archive | help
>Number: 19886 >Category: bin >Synopsis: skey won't work for usernames > 8 characters >Confidential: no >Severity: serious >Priority: low >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Wed Jul 12 23:20:01 PDT 2000 >Closed-Date: >Last-Modified: >Originator: Gregory Bond >Release: FreeBSD 4.0-STABLE i386 >Organization: ITG Australia Limited >Environment: 4-Stable >Description: skey will not authenticate usernames longer than 8 characters. >How-To-Repeat: adduser "testuser123" and try and use s/key to log in. >Fix: Index: skeylogin.c =================================================================== RCS file: /usr/ncvs/src/lib/libskey/skeylogin.c,v retrieving revision 1.14 diff -u -r1.14 skeylogin.c --- skeylogin.c 1998/10/26 13:33:39 1.14 +++ skeylogin.c 2000/07/13 06:05:43 @@ -19,6 +19,8 @@ #include <time.h> #include <errno.h> +#include <utmp.h> + #include "skey.h" #include "pathnames.h" @@ -124,7 +126,7 @@ /* Look up user name in database */ len = strlen(name); - if( len > 8 ) len = 8; /* Added 8/2/91 - nmh */ + if( len > UT_NAMESIZE ) len = UT_NAMESIZE; found = 0; while(!feof(mp->keyfile)){ recstart = ftell(mp->keyfile); >Release-Note: >Audit-Trail: >Unformatted: To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200007130612.QAA75928>