[1757] in Kerberos-V5-bugs

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

Re: possible bug in b5 src/appl/bsd/login.c

daemon@ATHENA.MIT.EDU (Theodore Ts'o)
Fri Dec 22 17:44:05 1995

Date: Fri, 22 Dec 1995 17:44:01 -0500
From: Theodore Ts'o <tytso@MIT.EDU>
To: Paul Pomes <ppomes@Qualcomm.com>
Cc: krb5-bugs@MIT.EDU, daphnaz@zelkova.qualcomm.com
In-Reply-To: Paul Pomes's message of Fri, 22 Dec 1995 14:13:49 -0800 (PST),
	<199512222213.OAA21737@zelkova.qualcomm.com>

Yup, absolutely; that's a bug alright.  I believe the code should read:

#ifdef HAVE_SHADOW
		if (spwd)
		    lpass_ok = !strcmp(namep, spwd->sp_pwdp);
		else
#endif
		    lpass_ok = !strcmp (namep, pwd->pw_passwd);

		if (pwd->pw_uid != 0) { /* Don't get tickets for root */
		    if (krb_get_lrealm(realm, 1) != KSUCCESS) {

Thanks for reporting it!

							- Ted

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