Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 167815 - app-crypt/mit-krb5-1.5.2: kdc.conf file doesn't reside in expected path
Summary: app-crypt/mit-krb5-1.5.2: kdc.conf file doesn't reside in expected path
Status: RESOLVED DUPLICATE of bug 115443
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: Normal minor (vote)
Assignee: Gentoo Linux bug wranglers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-02-20 23:59 UTC by Helkyn (Jean-Yves Migeon)
Modified: 2007-02-21 01:42 UTC (History)
1 user (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 Helkyn (Jean-Yves Migeon) 2007-02-20 23:59:47 UTC
After merging mit-krb5 (1.5.2), config file kdc.conf (for KDC obviously) doesn't reside in /etc/ , contrary to his example counterpart, kdc.conf.example.

It leads to much trouble (on the user's side) when configuring krb5kdc daemon, since copying and editing the kdc.conf.example file to /etc/kdc.conf won't affect krb5kdc configuration, and in turn, will fall back to default configuration, without much warning.

Besides, man kdc.conf(5) specifies its default path to /usr/local/var/krb5kdc/kdc.conf , which is correct in a traditional make && make install, as autotools sets it to (see src/include/stock/osconf.h):

#define DEFAULT_KDC_PROFILE     "@LOCALSTATEDIR/krb5kdc/kdc.conf"

which points to /var/lib/krb5kdc after merge (for gentoo).

Steps to reproduce (always):

1) emerge mit-krb5-1.5.2
2) edit or copy /etc/kdc.conf.example , and save as /etc/kdc.conf
3) create a database: kdb5_util -s create
4) check that the krbV database wasn't created in respect to /etc/kdc.conf

Since the correct path to kdc.conf is /var/lib/krb5kdc/kdc.conf , I just create a symlink accordingly in ebuild:


--- mit-krb5-1.5.2.ebuild       2007-02-21 01:35:21.000000000 +0100
+++ mit-krb5-1.5.2.ebuild.2     2007-02-21 01:35:13.000000000 +0100
@@ -89,6 +89,8 @@
        newins ${D}/usr/share/doc/${PF}/examples/krb5.conf krb5.conf.example
        newins ${D}/usr/share/doc/${PF}/examples/kdc.conf kdc.conf.example
 
+       dosym /etc/kdc.conf /var/lib/krb5kdc/kdc.conf
+
 }
 
 pkg_postinst() {


Dunno if it's the good behaviour though :)
Comment 1 Jakub Moc (RETIRED) gentoo-dev 2007-02-21 01:42:04 UTC

*** This bug has been marked as a duplicate of bug 115443 ***