<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugs.freebsd.org/bugzilla/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4.1"
          urlbase="https://bugs.freebsd.org/bugzilla/"
          
          maintainer="bugmeister@FreeBSD.org"
>

    <bug>
          <bug_id>276257</bug_id>
          
          <creation_ts>2024-01-11 12:03:15 +0000</creation_ts>
          <short_desc>security/heimdal kadmin -l init segfaults on FreeBSD 14.0-RELEASE</short_desc>
          <delta_ts>2024-01-30 05:00:38 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>Ports &amp; Packages</product>
          <component>Individual Port(s)</component>
          <version>Latest</version>
          <rep_platform>Any</rep_platform>
          <op_sys>Any</op_sys>
          <bug_status>Closed</bug_status>
          <resolution>DUPLICATE</resolution>
          <dup_id>272835</dup_id>
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>---</priority>
          <bug_severity>Affects Only Me</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Ivan">bsd</reporter>
          <assigned_to name="Cy Schubert">cy</assigned_to>
          <cc>cy</cc>
          

      

      

      <flag name="maintainer-feedback"
          id="78293"
          type_id="3"
          status="?"
          setter="bugzilla"
          requestee="hrs"
    />

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1291710</commentid>
    <comment_count>0</comment_count>
    <who name="Ivan">bsd</who>
    <bug_when>2024-01-11 12:03:15 +0000</bug_when>
    <thetext>I try to setup heimdal according handbook guide, however kadmin -l is unable to init new realm, init command segfaults.

I&apos;ve tried heimdal and heimdal-devel compiled and installed from packages, both on 14.0 without any luck. 

On 13 branch it works.

I&apos;ve found a really old PR here with the same symptoms and it could be workarounded with custom cyphers after openssl banned rc4. However, I found no suitable settings in my case yet.

To reproduce the issue:

1. Clean /var/heimdal, do not start daemons.
2. Do not bother with master key or krb5.conf, just proceed with kadmin -l and issue init DOMAIN.NAME. It asks a question about ticket lifetime and crashes after that, leaving database empty.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1291741</commentid>
    <comment_count>1</comment_count>
    <who name="Ivan">bsd</who>
    <bug_when>2024-01-11 16:48:27 +0000</bug_when>
    <thetext>I&apos;ve found that base system has kadmin too and it was the base version that crashes. 

/usr/local/bin/kadmin fails with another reason:

kadmin&gt; init MY.DOMAIN
Realm max ticket life [unlimited]:
Realm max renewable ticket life [unlimited]:
kadmin: rc4 8: EVP_CipherInit_ex einit</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1291744</commentid>
    <comment_count>2</comment_count>
    <who name="Ivan">bsd</who>
    <bug_when>2024-01-11 17:51:56 +0000</bug_when>
    <thetext>

*** This bug has been marked as a duplicate of bug 275915 ***</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1294720</commentid>
    <comment_count>3</comment_count>
    <who name="Cy Schubert">cy</who>
    <bug_when>2024-01-30 04:58:17 +0000</bug_when>
    <thetext>I believe we fixed this in stable/14 with c7db2e15e4045e1daba939bb151fc5878f791c7b and 17e941a0c88cac2d8cd28d6614448adbd65d4b72. Can you try these, please?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1294723</commentid>
    <comment_count>4</comment_count>
    <who name="Cy Schubert">cy</who>
    <bug_when>2024-01-30 05:00:38 +0000</bug_when>
    <thetext>

*** This bug has been marked as a duplicate of bug 272835 ***</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>