Ubuntu

samba4-common-bin does not include libkdc-policy.so

Reported by Roger Hunwicks on 2011-11-08
50
This bug affects 8 people
Affects Status Importance Assigned to Milestone
samba4 (Ubuntu)
High
Jelmer Vernooij

Bug Description

If you install package samba4-common-bin by itself (to work around bug #832465) and then run
samba-tool testparm
You get
Traceback (most recent call last):
  File "/usr/sbin/samba-tool", line 25, in <module>
    from samba import netcmd
  File "/usr/lib/pymodules/python2.7/samba/netcmd/__init__.py", line 196, in <module>
    from samba.netcmd.time import cmd_time
  File "/usr/lib/pymodules/python2.7/samba/netcmd/time.py", line 23, in <module>
    import common
  File "/usr/lib/pymodules/python2.7/samba/netcmd/common.py", line 22, in <module>
    from samba.net import Net
ImportError: libkdc-policy.so: cannot open shared object file: No such file or directory

Doing
dpkg-query --search libkdc-policy.so
in an installation with the samba4 package shows
samba4: /usr/lib/i386-linux-gnu/samba/libkdc-policy.so

but I think the file should be in samba4-common-bin rather than samba4, so that you can run testparm to check the format of smb.conf prior to installing samba4

Additional info
DistroRelease: Ubuntu 11.10
NonfreeKernelModules: veth pci_stub vboxpci vboxnetadp vboxnetflt vboxdrv i8k ip6table_filter ip6_tables ipt_MASQUERADE iptable_nat nf_nat nf_conntrack_ipv4 nf_defrag_ipv4 xt_state nf_conntrack ipt_REJECT xt_CHECKSUM iptable_mangle xt_tcpudp iptable_filter ip_tables x_tables parport_pc ppdev dm_crypt nfsd nfs lockd fscache auth_rpcgss nfs_acl sunrpc bridge stp r8169 joydev btusb bluetooth dell_laptop pcmcia dcdbas ipw2200 libipw snd_intel8x0 psmouse snd_ac97_codec cfg80211 ac97_bus serio_raw snd_pcm snd_timer snd soundcore yenta_socket pcmcia_rsrc snd_page_alloc lib80211 pcmcia_core lp parport firewire_sbp2 radeon ttm drm_kms_helper drm firewire_ohci b44 ssb firewire_core crc_itu_t sdhci_pci sdhci i2c_algo_bit video
Package: samba4-common-bin 4.0.0~alpha17~git20110807.dfsg1-1ubuntu1
PackageArchitecture: i386
ProblemType: Bug
ProcEnviron:
  LANGUAGE=en_US:en
  LANG=en_US.UTF-8
  SHELL=/bin/bash
ProcVersionSignature: Ubuntu 3.0.0-12.20-generic 3.0.4
SourcePackage: samba4
Tags: oneiric
Uname: Linux 3.0.0-12-generic i686
UpgradeStatus: No upgrade log present (probably fresh install)

Jelmer Vernooij (jelmer) wrote :

Actually, I'm not sure why any of this depends on libkdc-policy at all. It shouldn't be necessary for testparm or python-net.

Changed in samba4 (Ubuntu):
status: New → Triaged
importance: Undecided → High
Jelmer Vernooij (jelmer) on 2012-04-26
Changed in samba4 (Ubuntu):
assignee: nobody → Jelmer Vernooij (jelmer)
status: Triaged → In Progress
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package samba4 - 4.0.0~beta1+dfsg1-1

---------------
samba4 (4.0.0~beta1+dfsg1-1) unstable; urgency=medium

  * New upstream release.
  * Add 08_heimdal_config_h: Fixes compatibility with newer versions of
    Heimdal. Closes: #674918
  * Use standard spelling of domain controller in debconf templates.
    Closes: #670413
  * Switch to debhelper 9.
  * samba4-clients: Drop conflicts with smbclient; upstream has renamed
    the Samba4-specific smbclient and nmblookup binaries.

 -- Jelmer Vernooij <email address hidden> Wed, 30 May 2012 18:42:06 +0200

Changed in samba4 (Ubuntu):
status: In Progress → Fix Released
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Duplicates of this bug

Other bug subscribers