[Pkg-samba-maint] Missing dependencies ?

Nicolas CANIART nicolas at caniart.net
Thu Apr 17 20:29:57 UTC 2014


Dear Samba Maintainers,


  I am currently setting samba 4 up on a few machines, using jessie:
one AD and a few members. One the members, I am trying to install as
few packages as possible: a few times I pulled only the following
packages:

   samba-common-bin samba-common sssd-ldap sssd-krb5 sssd-krb5-common

I do not install the samba package because I don't want to share
printers or folders on these hosts, only benefit from the AD
centralised authentication and management etc.
Each time those install successfully with their dependencies, yet when
I want to register the member with the domain controller I face two
problems:

  root at host:~# kinit Administrator
  Password:
  root at host:~# samba-tool domain join sub.domain.tld MEMBER -k yes
  ldb: unable to stat module /usr/lib/i386-linux-gnu/samba/ldb : No
such file or directory
  ERROR(runtime): uncaught exception - ldb_search for
CN=HOST,CN=Computers,DC=sub,DC=domain,DC=tld failed - 00002020:
Operation unavailable without authentication
  File "/usr/lib/python2.7/dist-packages/samba/netcmd/__init__.py",
line 175, in _run
    return self.run(*args, **kwargs)
  File "/usr/lib/python2.7/dist-packages/samba/netcmd/domain.py", line
545, in run
    machinepass=machinepass)

Which can be fixed by installing the samba-dsdb-modules package. Also
this is not enough, as the next attempt to join will fail as follows:

  root at host:~# samba-tool domain join sub.domain.tld MEMBER -k yes
  ERROR(runtime): uncaught exception - Could not open secrets database
    File "/usr/lib/python2.7/dist-packages/samba/netcmd/__init__.py",
line 175, in _run
      return self.run(*args, **kwargs)
    File "/usr/lib/python2.7/dist-packages/samba/netcmd/domain.py",
line 545, in run
      machinepass=machinepass)

Which can be solved by doing as follows:

  root at host:~# mkdir /var/lib/samba/private
  root at host:~# touch /var/lib/samba/private/secret.tdb

Which has a nasty hack feeling to me. I tried it out of despair after
failing to properly creating the tbd file the ldb tools, and it
worked. The next attempt to join succeeds.

I understand that packaging samba must be task challenging and maybe I
am not using the packages as you intended people to use them. Thus I
wanted your opinion, prior to opening a bug on the BTS.

Thanks in advance for considering the issue.

Regards,
Nicolas.



More information about the Pkg-samba-maint mailing list