krb5-config missing debconf-set-selections variable

Bug #1404351 reported by Eric Teeter
This bug affects 1 person
Affects Status Importance Assigned to Milestone
kerberos-configs (Ubuntu)

Bug Description

krb5-config.config seams to be missing a variable as there is no way to stop a dialog box from poping up in my script for installing Kerberos 5. I am using Ubuntu 14.04.01 LTS

I get error message:Use of uninitialized value $admin in string eq at /var/lib/dpkg/info/krb5-config.config line 171, <STDIN> line 20.

Then I get dialog box titled: "Configuring krb5-admin-server"

Setting up a Kerberos Realm

This package contains the administrative tools required to run the Kerberos master server. However, installing this package does not automatically set up a Kerberos realm. This can be done later by running the "krb5_newrealm" command.
Please also read the /usr/share/doc/krb5-kdc/README.KDC file and the administration guide found in the krb5-doc package.

Then I get error when it setting up:

Setting up krb5-config (2.3) ...
Use of uninitialized value $admin in string eq at /var/lib/dpkg/info/krb5-config.config line 171, <STDIN> line 19.

I have in my script the following setting:
#Kerberos 5 Settings.
echo -e "krb5-config krb5-config/kerberos_servers string $fqdn" | debconf-set-selections
echo -e "krb5-config krb5-config/default_realm string $Realm" | debconf-set-selections
echo -e "heimdal-kdc heimdal/realm string $Realm" | debconf-set-selections
echo -e "krb5-config krb5-config/admin_server string $fqdn" | debconf-set-selections
echo -e "krb5-config krb5-config/dns_for_default boolean true" | debconf-set-selections
echo -e "krb5-config krb5-config/add_servers boolean true" | debconf-set-selections

I found all these debconf-set-selections, but changing any other setting do not stop the dialog box from coming up.

ran debconf-get-selections | grep krb5-config

krb5-config krb5-config/read_conf boolean true
krb5-config krb5-config/default_realm string TEETER.HOME
krb5-config krb5-config/add_servers boolean true
krb5-config krb5-config/admin_server string
krb5-config krb5-config/kerberos_servers string
krb5-config krb5-config/dns_for_default boolean true
krb5-config krb5-config/add_servers_realm string TEETER.HOME

I could work around by forcing noninteractive, but shouldn't there be a way to trun off the dialog box?

Eric Teeter (teetere)
description: updated
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.