[2805] in Kerberos-V5-bugs

home help back first fref pref prev next nref lref last post

krb5-appl/485: getusershell() problem in gssftpd

daemon@ATHENA.MIT.EDU (danw@MIT.EDU)
Wed Oct 29 16:41:54 1997

Resent-From: gnats@rt-11.MIT.EDU (GNATS Management)
Resent-To: krb5-unassigned@RT-11.MIT.EDU
Resent-Reply-To: krb5-bugs@MIT.EDU, danw@MIT.EDU
Date: Wed, 29 Oct 1997 16:40:15 -0500
From: danw@MIT.EDU
Reply-To: danw@MIT.EDU
To: krb5-bugs@MIT.EDU


>Number:         485
>Category:       krb5-appl
>Synopsis:       commented out call to endusershell() makes second ftp login fail
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    krb5-unassigned
>State:          open
>Class:          sw-bug
>Submitter-Id:   unknown
>Arrival-Date:   Wed Oct 29 16:41:01 EST 1997
>Last-Modified:
>Originator:     Dan Winship
>Organization:
MIT Athena
>Release:        1.0
>Environment:
System: SunOS Implementor 5.5.1 Generic_103640-12 sun4m sparc SUNW,SPARCstation-5
Architecture: sun4

>Description:
	appl/gssftp/ftpd/ftpd.c has this:

#ifdef HAVE_GETUSERSHELL
                while ((cp = getusershell()) != NULL)
                        if (strcmp(cp, shell) == 0)
                                break;
                /* endusershell(); */ /* this breaks on solaris 2.4 */
#else

	Since the call to endusershell never happens, getusershell() never
	rewinds, so if you try to log in a second time, it won't find your
	shell.

>How-To-Repeat:
	220 Implementor FTP server (Version 5.60) ready.
	Name (impl:danw): 
	331 Password required for danw.
	Password: [mistype password here]
	530 Login incorrect.
	Login failed.
	ftp> user danw
	530 User danw access denied.
	Login failed.
>Fix:
	uncommenting the `endusershell' makes it work under solaris 2.5.1,
	but I don't know what the problem with 2.4 was...
>Audit-Trail:
>Unformatted:

home help back first fref pref prev next nref lref last post