<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "http://bugs.gentoo.org/bugzilla.dtd">

<bugzilla version="2.22.7"
          urlbase="http://bugs.gentoo.org/"
          maintainer="bugzilla@gentoo.org"
>

    <bug>
          <bug_id>143605</bug_id>
          
          <creation_ts>2006-08-11 14:00 0000</creation_ts>
          <short_desc>mit-krb5-1.4.3-r3 does not warn that you may be unable to read your kerberos database</short_desc>
          <delta_ts>2007-04-03 20:45:59 0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>Gentoo Linux</product>
          <component>Ebuilds</component>
          <version>unspecified</version>
          <rep_platform>All</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          
          <priority>P2</priority>
          <bug_severity>critical</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          
          <everconfirmed>1</everconfirmed>
          <reporter>olivier@calle.org</reporter>
          <assigned_to>kerberos@gentoo.org</assigned_to>
          <cc>doug-gb@elemental.ath.cx</cc>
    
    <cc>sascha-gentoo-bugzilla@silbe.org</cc>

      

      
          <long_desc isprivate="0">
            <who>olivier@calle.org</who>
            <bug_when>2006-08-11 14:00:36 0000</bug_when>
            <thetext>Due to 2 changes between -r1 and -r3 of mit-krb5-1.4.3, you may be unable to access your kerberos database with -r3.
First, localstatedir used to be /etc, and is now /var/lib, but the ebuild makes no effort to notify you of that change so that you may move things around.
However, even if you succeed in passing the first obstacle, you run into a second, more serious problem.  Because -r3 now uses the internal berkdb, you may not be able to access your kerberos database at all.  For the time being, so that I could still have a working KDC, I built my own local ebuild which returned the localstatedir to /etc and used the system berkdb.

It would have really been nice to _at least_ have had some warning from the ebuild that this could occur.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>seemant@gentoo.org</who>
            <bug_when>2006-08-11 15:27:12 0000</bug_when>
            <thetext>Olivier,

you are absolutely correct, we should have put some notifications in the ebuild and given a smoother across-grade path for the db change.  Allow us to ponder this among the team. In the meantime, I offer you my hearfelt apology.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>exg@gentoo.org</who>
            <bug_when>2006-08-15 14:34:02 0000</bug_when>
            <thetext>Sorry from me too, but I&apos;m afraid I can&apos;t do more than adding a warning (which should have been there in the first place, blame me); the problem is, upstream does not support a configuration with external db; moreover with the previous ebuilds the user could create a mess by switching on/off the berkdb use flag, meaning in this case &quot;use the external/internal db&quot;. Doing the db location change together with unconditionally using the internal db at the same time was the safest choice and no, it wouldn&apos;t be wise to suggest to move the db to the new location because you can&apos;t be sure the existing ones are compatible if the previous build was with berkdb in USE. Suggestions are welcome.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>olivier@calle.org</who>
            <bug_when>2006-08-23 12:31:57 0000</bug_when>
            <thetext>Created an attachment (id=94960)
Steps I used to migrate my Kerberos database

First of all thanks for the apologies :-)  I agree that making these changes was the correct thing to do.
Anyway, I&apos;ve attached some notes outlining the steps I took to use 1.4.3-r3 while migrating my Kerberos database.  These steps seem to have worked for me.  I hope they are of some use.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>exg@gentoo.org</who>
            <bug_when>2006-08-31 15:30:58 0000</bug_when>
            <thetext>Thanks, I really appreciate your help. The problem is, there is no way I can tell the user to dump the db before the old kdb5_util is replaced by the new one.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>menion@asylumwear.com</who>
            <bug_when>2006-11-06 18:18:48 0000</bug_when>
            <thetext>Yeah, this sadly, is a bitch of a bug that just hit me.
=( </thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>menion@asylumwear.com</who>
            <bug_when>2006-11-07 05:31:45 0000</bug_when>
            <thetext>FYI - Somehow, I lost the master password to my database.  Or, I typed it in wrong a year ago.  So,  after emergeing 1.4.3-r1, I ran this:

kdb5_util dump -mkey_convert &gt; dump.txt

*note: It prompts you for a new password on stdout (wtf) so you can&apos;t see the two requests for input.   So, just type the /new/ password in twice, then the export will complete.

After doing this, I was able to resume following the instructions.  I have 1.4.3-r3 installed and running now.  Thanks for the instructions. =)  I could not remember how to do that, and I was about to go through the Admin Guide again.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>doug-gb@elemental.ath.cx</who>
            <bug_when>2006-11-30 14:01:43 0000</bug_when>
            <thetext>Is it possible to have the package block or fail if the currently installed version has the berkdb flag? This way, the user would have to export his db, unmerge the old package, and then merge the new one?
</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>seemant@gentoo.org</who>
            <bug_when>2007-04-03 20:45:59 0000</bug_when>
            <thetext>fixed in place (it will fail with USE=&quot;berkdb&quot; set.
about to commit.

</thetext>
          </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="0"
              isprivate="0"
          >
            <attachid>94960</attachid>
            <date>2006-08-23 12:31 0000</date>
            <desc>Steps I used to migrate my Kerberos database</desc>
            <filename>mit-krb5-upgrade-notes.txt</filename>
            <type>text/plain</type>
            <data encoding="base64">U3RlcHMgSSB1c2VkOgowLiAgQmFja3VwIGV2ZXJ5dGhpbmcKCS9ldGMva3JiNS5jb25mCgkvZXRj
L2tyYjVrZGMKCUFueXRoaW5nIGVsc2UuLi4KMS4gIFN0b3AgS0RDIGFuZCBhbnkgcmVsYXRlZCBz
ZXJ2ZXJzCgkvZXRjL2luaXQuZC9taXQta3JiNWtkYyBzdG9wCjIuICBNYWtlIHN1cmUgS0RDIGFu
ZCByZWxhdGVkIChsaWtlIGthZG1pbmQpIHN0b3BwZWQKMy4gIER1bXAgS2VyYmVyb3MgZGF0YWJh
c2UgdG8gdGV4dAoJa2RiNV91dGlsIGR1bXAga3JiLWJhY2t1cC50eHQKNC4gIFVwZ3JhZGUgdG8g
bmV3IHZlcnNpb24KCWVtZXJnZSAtLW9uZXNob3QgLWF2IG1pdC1rcmI1CjUuICBVcGRhdGUgL2V0
Yy9rcmI1LmNvbmYgYnkgcmVtb3Zpb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