Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 164073 - app-crypt/mit-krb5-1.5.2 can't create a database (solution inside)
Summary: app-crypt/mit-krb5-1.5.2 can't create a database (solution inside)
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All All
: High major (vote)
Assignee: Gentoo Kerberos Maintainers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-01-27 17:24 UTC by GNUtoo
Modified: 2007-04-03 20:15 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 GNUtoo 2007-01-27 17:24:24 UTC
# kdb5_util create -r GNUTOO.ORG
Loading random data
Initializing database '/var/lib/krb5kdc/principal' for realm 'GNUTOO.ORG',
master key name 'K/M@GNUTOO.ORG'
You will be prompted for the database Master Password.
It is important that you NOT FORGET this password.
Enter KDC database master key:
Re-enter KDC database master key to verify:
create: File exists while creating database '/var/lib/krb5kdc/principal'

here we see that the file created is in /var/lib/krb5kdc
but /var/lib/krb5kdc doesn't exist because the ebuild didn't create it so it fails to create the database...
by the way we could also change the default kdc.conf to match the location of the file...


Reproducible: Always

Steps to Reproduce:
Comment 1 Seemant Kulleen (RETIRED) gentoo-dev 2007-01-27 22:11:29 UTC
So, just creating a zero-length file will be ok?
Comment 2 GNUtoo 2007-01-28 08:44:08 UTC
(In reply to comment #1)
> So, just creating a zero-length file will be ok?
> 

mabe i didn't express myself well...
/var/lib/krb5kdc is a folder...
and this folder doesn't exist at the installation
so the database creeation tool can't create the database because it will create the files in this directory that is absent...
Comment 3 Seemant Kulleen (RETIRED) gentoo-dev 2007-04-03 20:15:03 UTC
1.5.2-r1 (the security bumped version) has this fix.  about to commit.