Subject: lib/11010: 'su' hangs on kerberos lookup without -K
To: None <gnats-bugs@gnats.netbsd.org>
From: None <abs@mono.org>
List: netbsd-bugs
Date: 09/13/2000 14:16:13
>Number:         11010
>Category:       lib
>Synopsis:       'su' hangs on kerberos lookup without -K
>Confidential:   no
>Severity:       serious
>Priority:       high
>Responsible:    lib-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Wed Sep 13 14:17:00 PDT 2000
>Closed-Date:
>Last-Modified:
>Originator:     
>Release:        1.5_ALPHA2
>Organization:

		David/absolute
				       -- www.netbsd.org: No hype required --
>Environment:
	
System: NetBSD odysseus.mono.org 1.5_ALPHA2 NetBSD 1.5_ALPHA2 (_ODYSSEUS_) #0: Tue Sep 12 08:55:50 BST 2000 root@odysseus.mono.org:/home/netbsd/src/sys/arch/i386/compile/_ODYSSEUS_ i386


>Description:
	Running 1.5_ALPHA2 without kerberos configured, su without -K
	will sit for a very long time (longer than its taking to have
	a quick browse through the source tree and write this PR).

	Compiling -g and running under gdb gives:

#0  0x481b8367 in poll ()
#1  0x481b5ff8 in res_send ()
#2  0x481ad627 in _res_query ()
#3  0x481ada1b in res_querydomain ()
#4  0x481ad7b2 in res_search ()
#5  0x4814b76c in dns_free_data ()
#6  0x4814b837 in dns_lookup ()
#7  0x48080519 in krb_get_config_bool ()
#8  0x48080796 in krb_realmofhost ()
#9  0x48080b0f in krb_get_default_realm ()
#10 0x48080a98 in krb_get_lrealm ()
#11 0x804a13f in kerberos (username=0x8064150 "abs", user=0x804a8c9 "root", 
    uid=0) at su.c:556
#12 0x8049a6f in main (argc=1, argv=0xbfbfd718) at su.c:230
#13 0x80493e9 in ___start ()

>How-To-Repeat:
	Install 1.5_ALPHA2 without enabling kerberos, type su.

>Fix:
	Make libraries not try to perform kerberos lookup if no kerberos
	config file in /etc? (or workaround with 'su -K')
>Release-Note:
>Audit-Trail:
>Unformatted: