[authtool 0.2.0/feisty]: debconf.DebconfError if krb5-config is not installed

Bug #120892 reported by Olivier Lemaire
12
Affects Status Importance Assigned to Milestone
Network Authentication Configuration
New
Undecided
Unassigned
authtool (Ubuntu)
Confirmed
High
MOTU

Bug Description

Binary package hint: authtool

I apt-get installed authtool-gtk (and so 'authtool' itself) on a already working feisty laptop, no complains about krb5 dependencies.
When starting authtool-gtk ('sudo authtool-gtk'), I've got the following error message:
olem@lembox:/tmp/pam_ccreds-4$ sudo authtool-gtk
/usr/lib/python2.5/site-packages/apt/__init__.py:18: FutureWarning: apt API not stable yet
  warnings.warn("apt API not stable yet", FutureWarning)
Traceback (most recent call last):
  File "/usr/bin/authtool-gtk", line 552, in <module>
    app = AuthtoolGTK()
  File "/usr/bin/authtool-gtk", line 41, in __init__
    self.authtools = Authtools()
  File "/var/lib/python-support/python2.5/AuthTool/authtools.py", line 264, in __init__
    self.method_cfgs[method] = obj(self.cfg)
  File "/usr/share/authtool/auth_methods/kerberos/kerberos.py", line 50, in __init__
    default_realm = self.db.get('krb5-config/default_realm')
  File "/var/lib/python-support/python2.5/AuthTool/authtools.py", line 192, in get
    return self.db.get(item)
  File "/usr/lib/python2.5/site-packages/debconf.py", line 60, in <lambda>
    lambda *args, **kw: self.command(command, *args, **kw))
  File "/usr/lib/python2.5/site-packages/debconf.py", line 96, in command
    raise DebconfError(status, data)
debconf.DebconfError: (10, "krb5-config/default_realm doesn't exist")

After installing krb5-config (apt-get install krb5-config), authtool is starting only with some warnings:
olem@lembox:/tmp/pam_ccreds-4$ sudo authtool-gtk
/usr/lib/python2.5/site-packages/apt/__init__.py:18: FutureWarning: apt API not stable yet
  warnings.warn("apt API not stable yet", FutureWarning)
<auth_methods.local.local.LocalConfig object at 0x84e022c>
/usr/bin/authtool-gtk:301: GtkWarning: gtk_container_remove: assertion `GTK_IS_TOOLBAR (container) || widget->parent == GTK_WIDGET (container)' failed
  self.vbox.remove(self.configbox)
/usr/bin/authtool-gtk:302: GtkWarning: Attempting to add a widget with type GtkTable to a container of type GtkVBox, but the widget is already inside a container of type GtkVBox, the GTK+ FAQ at http://www.gtk.org/faq/ explains how to reparent a widget.
  self.vbox.add(self.configtable)
Setting Local

I think it should be a good thing to :
 . place a dependency on krb5-config if you feel it's really mandatory to have krb5 in any cases (I'm not sure it's the correct way)
 . have a check at starting to verify if krb5-config is installed or not, and place a explicit warning for users wanting to use Kerberos for them to install krb5-config package

Cheers,
--
lem

Revision history for this message
Vincent Legout (vlegout) wrote :

I confirm this bug with feisty.

Changed in authtool:
status: New → Confirmed
Revision history for this message
Matthew Geier (matthew-acfr) wrote :

'Me To' - clean Feisty install - same symptom. Same fix (install krb5-config)

Vincent Legout (vlegout)
Changed in authtool:
importance: Undecided → High
Revision history for this message
Mantas Kriaučiūnas (mantas) wrote :

Please do not depend on Kerberos - not all users needs Kerberos for authentication, for example we use simple LDAP authentication in our organization, why users should force to install kerberos for using authtool ?

Revision history for this message
Francis Viviers (francis-impilinux) wrote :

This happens in gutsy as well.

Dries Desmet (dries)
Changed in authtool:
assignee: nobody → motu
Revision history for this message
Caspar Clemens Mierau (leitmedium) wrote :

The missing dependency to krb5-config is still an issue current Hardy alpha. I patched the debian/rules to match this issue. See debdiff attached and check.

Revision history for this message
Caspar Clemens Mierau (leitmedium) wrote :

@Mantas:

You are probably right, that not all users need Kerberos, but the application won't start without it. So there are two approaches:

1. Patch the application so it can start and finds out about missing tools itself. See #86379 for a similar samba-bug.

2. Add the dependencies. As this is not a main utility you can choose whether to install or not. Currently installing it brings you a broken application. Adding at least more dependencies will probably be more an Ubuntu style user choice than provides backtraces on the screen.

I am marking this bug as duplicate of the quite older #86379 as the krb-dependency is also discussed there together with the samba-dependency and it should be decided once how to proceed with this issue.

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.