kerberos 5 login (krb 5.1.2-5)
Jerry Heyman
jerry at scosco.raleigh.tivoli.com
Thu Jul 18 16:07:40 EDT 2002
In article <ah74fd$5v4$1 at tivnews.tivoli.com>,
jerry at scosco.raleigh.tivoli.com (Jerry Heyman) writes:
>In article <tslvg7evwi6.fsf at konishi-polis.mit.edu>,
> hartmans at mit.edu (Sam Hartman) writes:
>>I'd step through login in a debugger and see where it hangs. If you
>>cannot do that, then start inserting debugging print statements and
>>binary search where it hangs.
>
>
>#ifdef __hpux
> strcpy(utmp_id, cp);
>#else
> if (len > 2 && *(cp - 1) != '/')
> sprintf(utmp_id, "k%s", cp - 1);
> else
> sprintf(utmp_id, "k0%s", cp);
>#endif
> strncpy(utx.ut_id, utmp_id, sizeof(utx.ut_id));
Hate to follow up my own post, but the above strncpy resolves
to
strncpy (utx.ut_id, utmp_id, 0)
And the quite a bit more is being copied than anticipated. The
modification I made is:
strncpy(utx.ut_id, utmp_id, sizeof(utmp_id));
And I can now login in successfully.
bash-2.04$ appl/bsd/login.krb5 jheyman
Password for jheyman:
login: Cannot contact any KDC for requested realm while getting initial credentials
No directory /tivoli/homes/j/jheyman!
Logging in with home = "/".
login.krb5: tiocspgrp: Not a typewriter
DYNIX/ptx(R) V4.4.4 #2 (root): Thu Aug 31 16:31:10 CDT 2000
Copyright 1988 - 1998 Sequent Computer Systems, Inc.
U.S. Patents Numbers 5,185,861; 5,261,053
DYNIX/ptx(R) V4.4.4 #2 (root): Thu Aug 31 16:31:10 CDT 2000
Copyright 1988 - 1998 Sequent Computer Systems, Inc.
U.S. Patents Numbers 5,185,861; 5,261,053
Now back to my original question of why it gets the login error about
not being able to contact any KDC :-)
jerry
--
Jerry Heyman 919.224.1442 | IBM SWG/Tivoli Software|"Software is the
Build Infrastructure Architect| 3901 S Miami Blvd | difference between
jheyman at dev.tivoli.com | Durham, NC 27703 | hardware and reality"
http://vcard.acm.org/~heymanj
More information about the Kerberos
mailing list