MacOS X 10.2.2, Kerberos, and Pine

Josh Larios jdlarios at cac.washington.edu
Wed Nov 20 00:07:10 EST 2002


On Tue, 19 Nov 2002, Josh Larios wrote:

> This is with the same Pine source, mind you. Compiling it on 10.1 with
> Kerberos for Macintosh 4.0.x results in a Pine which invokes the graphical
> login utility. Compiling it on 10.2 with whatever kerberos comes with that
> results in a Pine which attempts to use terminal i/o and fails.

Here's a backtrace from running pine in gdb and killing it when it's
frozen. It looks to me like KLAcquireNewInitialTickets, which isn't in the
API online at
http://web.mit.edu/macdev/Development/MITKerberos/MITKerberosLib/LoginLib/Documentation/API.html,
is what decides whether to get them from the terminal or from the
LoginHelper, and is deciding to use the Terminal. The last call in the
trace that's part of the Pine source is #14, gss_init_sec_context(). Is
there maybe a way to call that which forces the gui instead of the
terminal?

(gdb) bt
#0  0x900013e4 in read ()
#1  0x9000dcdc in __sread ()
#2  0x9000db58 in __srefill ()
#3  0x9000d980 in fgets ()
#4  0x943aae84 in krb5_prompter_posix ()
#5  0x943c6ea0 in KLReadStringFromTerminal(char const*, signed char) ()
#6  0x943c4d44 in KLAcquireNewInitialTicketsTerminal(OpaqueKLPrincipal*, OpaqueKLLoginOptions*, OpaqueKLPrincipal**, char**) ()
#7  0x943c439c in KLAcquireNewInitialTickets ()
#8  0x943cd004 in __KLInternalAcquireInitialTicketsForCache ()
#9  0x9438715c in krb5int_cc_default ()
#10 0x943aec40 in acquire_init_cred ()
#11 0x943af0b0 in krb5_gss_acquire_cred ()
#12 0x943b06c8 in kg_get_defcred ()
#13 0x943b13a8 in krb5_gss_init_sec_context ()
#14 0x943b3818 in gss_init_sec_context ()
#15 0x0021c480 in auth_gssapi_client (challenger=0x23b994 <imap_challenge>, responder=0x23ba6c <imap_response>, service=0x27a470 "imap", mb=0xbfffe1b0, stream=0x6f78d0, trial=0x0, user=0xbfffddb0 "") at auth_gss.c:126
#16 0x0023b5e4 in imap_auth (stream=0x6f78d0, mb=0xbfffe1b0, tmp=0xbfffd9b0 "00000000 AUTHENTICATE GSSAPI", usr=0xbfffddb0 "") at imap4r1.c:884
#17 0x0023ac60 in imap_open (stream=0x6f78d0) at imap4r1.c:666
#18 0x00229b54 in mail_open (stream=0x6f78d0, name=0xbfffee40 "{jdlarios.deskmail.washington.edu/ssl/user=jdlarios/imap}INBOX", options=0) at mail.c:1058
#19 0x0017605c in pine_mail_open (stream=0x0, mailbox=0xbfffee40 "{jdlarios.deskmail.washington.edu/ssl/user=jdlarios/imap}INBOX", flags=0) at pine.c:3857
#20 0x00057af4 in context_open (context=0x0, old=0x0, name=0x6f57b0 "{jdlarios.deskmail.washington.edu/ssl/user=jdlarios/imap}INBOX", opt=0) at context.c:273
#21 0x000db704 in do_broach_folder (newfolder=0x6eb2a8 "INBOX", new_context=0x6f72b0) at mailcmd.c:5470
#22 0x0016dfe8 in main (argc=1, argv=0xbffffe8c) at pine.c:1049
#23 0x0000214c in _start (argc=1, argv=0xbffffe8c, envp=0xbffffe94) at /SourceCache/Csu/Csu-45/crt.c:267
#24 0x00001fcc in start ()


--
Josh Larios                   Computing & Communications Client Services
University of Washington      Box 352830, Mary Gates Hall 011A
jdlarios at cac.washington.edu   Seattle, WA 98195-2830





More information about the krbdev mailing list