Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 156087 - app-crypt/mit-krb5-1.4.3-r3 don't generate principal kadmin/changepw by default.
Summary: app-crypt/mit-krb5-1.4.3-r3 don't generate principal kadmin/changepw by default.
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo Kerberos Maintainers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-11-23 22:11 UTC by Nont Banditwong
Modified: 2007-04-03 23:46 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Nont Banditwong 2006-11-23 22:11:01 UTC
Portage 2.1.1-r2 (default-linux/x86/2006.1, gcc-4.1.1, glibc-2.4-r4, 2.6.18-gentoo-r2 i686)
=================================================================
System uname: 2.6.18-gentoo-r2 i686 Intel(R) Pentium(R) 4 CPU 2.80GHz
Gentoo Base System version 1.12.6
Last Sync: Thu, 23 Nov 2006 23:30:01 +0000
app-admin/eselect-compiler: [Not Present]
dev-java/java-config: 1.3.7, 2.0.30
dev-lang/python:     2.4.3-r4
dev-python/pycrypto: 2.0.1-r5
dev-util/ccache:     [Not Present]
dev-util/confcache:  [Not Present]
sys-apps/sandbox:    1.2.17
sys-devel/autoconf:  2.13, 2.60
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2
sys-devel/binutils:  2.16.1-r3
sys-devel/gcc-config: 1.3.13-r4
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.17-r1
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -march=pentium4 -pipe -fomit-frame-pointer"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /var/qmail/alias /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/gconf /etc/java-config/vms/ /etc/terminfo"
CXXFLAGS="-O2 -march=pentium4 -pipe -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig distlocks metadata-transfer sandbox sfperms strict"
GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --delete-after --stats --timeout=180 --exclude='/distfiles' --exclude='/local' --exclude='/packages'"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="x86 berkdb bitmap-fonts cli cracklib crypt cups dlloader dri elibc_glibc fortran gdbm gpm iconv input_devices_evdev input_devices_keyboard input_devices_mouse ipv6 isdnlog kernel_linux libg++ ncurses nls nptl nptlonly pam pcre perl ppds pppd python readline reflection session spl ssl tcpd truetype-fonts type1-fonts udev unicode userland_GNU video_cards_apm video_cards_ark video_cards_ati video_cards_chips video_cards_cirrus video_cards_cyrix video_cards_dummy video_cards_fbdev video_cards_glint video_cards_i128 video_cards_i740 video_cards_i810 video_cards_imstt video_cards_mga video_cards_neomagic video_cards_nsc video_cards_nv video_cards_rendition video_cards_s3 video_cards_s3virge video_cards_savage video_cards_siliconmotion video_cards_sis video_cards_sisusb video_cards_tdfx video_cards_tga video_cards_trident video_cards_tseng video_cards_v4l video_cards_vesa video_cards_vga video_cards_via video_cards_vmware video_cards_voodoo xorg zlib"
Unset:  CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, LDFLAGS, LINGUAS, PORTAGE_RSYNC_EXTRA_OPTS, PORTDIR_OVERLAY
Comment 1 norbert 2007-01-01 03:01:25 UTC
if gethostbyname() cannot resolve what gethostname() rtrun on the machine, kdb5_util create -s return without error but the administrative principals are not created.

the patch below make kdb5_util return an error.

diff -ur krb5-1.4.3/src/kadmin/dbutil/kadm5_create.c
krb5-1.4.3-gethostbyname/src/kadmin/dbutil/kadm5_create.c
--- krb5-1.4.3/src/kadmin/dbutil/kadm5_create.c 2004-06-16 05:11:54.000000000 +0200
+++ krb5-1.4.3-gethostbyname/src/kadmin/dbutil/kadm5_create.c   2007-01-01
11:31:15.000000000 +0100
@@ -184,8 +184,8 @@
   }
   hp = gethostbyname(localname);
   if (hp == NULL) {
-      ret = errno;
-      perror("gethostbyname");
+      ret = h_errno;
+      fprintf(stderr, "gethostbyname error: %i\n", ret);
       goto clean_and_exit;
   }
   sprintf(service_name, "kadmin/%s", hp->h_name);

The patch has been submited upstream...
Comment 2 Seemant Kulleen (RETIRED) gentoo-dev 2007-04-03 20:47:16 UTC
norbert,

was the patch accepted upstream?
Comment 3 norbert 2007-04-03 22:34:56 UTC
seemant,
not as such, but they have reworked the impacted section in order not to use gethostbyname anymore, but rather getaddrinfo ( a cleaner, but more intrusive way to address the issue)

see upstream svn commit r19226 
Comment 4 Seemant Kulleen (RETIRED) gentoo-dev 2007-04-03 23:46:02 UTC
in that case, I'll close this bug :)