[19008] in Kerberos

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

Re: krb5_get_init_creds_password code question

daemon@ATHENA.MIT.EDU (Scott T.)
Thu Apr 3 12:54:38 2003

From: scottt35@hotmail.com (Scott T.)
Date: 3 Apr 2003 09:45:28 -0800
Message-ID: <3022fbee.0304030945.190b5b88@posting.google.com>
To: kerberos@MIT.EDU
Errors-To: kerberos-bounces@mit.edu

Eek! I was led to believe that the version I had was original MIT
code.  Turns out it is not; its a somewhat "edited" version. My
apologies! Thanks for looking into it and taking the time to explain
it thoroughly. It is greatly appreciated. -Scott

mdw@umich.edu (Marcus Watts) wrote in message news:<200304030654.BAA11374@quince.ifs.umich.edu>...
> scottt35@hotmail.com (Scott T.) writes:
> ...
> > 
> > In the following code segment, pw1 and chpw_cred are never used. What gives? -Scott
> > 
> 
> You're right, they're not used.  Where did this code come from?
> 
> The ancestor of this code appears to be
> 	krb5/src/lib/krb5/krb/gic_pwd.c
> and what I think is the 20021102 snapshot and (as best I can tell) all
> previous releases including 1.2.1, 1.2,5, and all the way back to
> 19980604 which is the oldest snapshot I have handy, the 2 variables you
> mentioned are used for handling doing an automatic password change if
> the password has expired (KRB5KDC_ERR_KEY_EXP).
> 
> I can only guess that in the code you have, somebody hacked this out
> and failed to clean up all the cruft.  Is this code actually direct
> from MIT?  I suppose it's possible they have decided to put this logic
> elsewhere...
> 
> If this is important to you, then you can obviously clean that up (and
> remove pw1array also).
> 
> For future reference, it is probably useful to identify what version &
> file you're talking about, when you post code frags like this.
> 
> 					-Marcus Watts
> 					UM ITCS Umich Systems Group
> ________________________________________________
> Kerberos mailing list           Kerberos@mit.edu
> https://mailman.mit.edu/mailman/listinfo/kerberos
________________________________________________
Kerberos mailing list           Kerberos@mit.edu
https://mailman.mit.edu/mailman/listinfo/kerberos

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