Jump to content

Samba DC - cannot join domain


Joachim

Recommended Posts

I installed Armbian on my Banana Pro and upgraded to 16.04. I successfully configured various services I previously ran on Lubuntu 14.04, including nginx and bind9. However when I try to join my Samba domain as a DC, I get the following:

samba-tool domain join mydomain DC --username=administrator --use-ntvfs
Finding a writeable DC for domain 'mydomain'
Found DC dc1.mydomain
ldb: unable to stat module /usr/lib/arm-linux-gnueabihf/samba/ldb : No such file or directory
ERROR(<class 'samba.join.DCJoinException'>): uncaught exception - Can't join, error: 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 621, in run
    machinepass=machinepass, use_ntvfs=use_ntvfs, dns_backend=dns_backend)
  File "/usr/lib/python2.7/dist-packages/samba/join.py", line 1148, in join_DC
    machinepass, use_ntvfs, dns_backend, promote_existing)
  File "/usr/lib/python2.7/dist-packages/samba/join.py", line 89, in __init__
    raise DCJoinException(estr)

(I get the same error when I try to do samba-tool domain provision --use-rfc2307 --interactive --use-ntvfs..)

The directory /usr/lib/arm-linux-gnueabihf/samba/ldb does not exist. On an Ubuntu 16.04 running  as a VM (VirtualBox) on a Windows PC there is a directory /usr/lib/x86_64-linux-gnu/samba/ldb. To me it looks there are some files missing.

Any suggestion?

Thanks, Joachim

Link to comment
Share on other sites

I was busy working on other stuff. Now I retried with a clean install of Armbian. Samba is at version 4.3.11 which is outdated. The error I get when trying today is roughly the same:

root@bananapipro:/home/joachim# samba-tool domain join samba DC --username=administrator --use-ntvfs
Finding a writeable DC for domain 'samba'
Found DC dc1.samba
ldb: unable to stat module /usr/lib/arm-linux-gnueabihf/samba/ldb : No such file or directory
ERROR(<class 'samba.join.DCJoinException'>): uncaught exception - Can't join, error: 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 621, in run
    machinepass=machinepass, use_ntvfs=use_ntvfs, dns_backend=dns_backend)
  File "/usr/lib/python2.7/dist-packages/samba/join.py", line 1148, in join_DC
    machinepass, use_ntvfs, dns_backend, promote_existing)
  File "/usr/lib/python2.7/dist-packages/samba/join.py", line 89, in __init__
    raise DCJoinException(estr)

Any help appreciated.

Link to comment
Share on other sites

 

@Joachim

 

Please try installing samba-dsdb-modules package first if it's not installed

apt-get install samba-dsdb-modules

Thanks for that, helped. I was able to join, however the DC is not yet operational. Need to investigate that.

In any case, according to https://wiki.samba.org/index.php/Samba_Release_Planning version 4.3 is already close to EOL. How can I get a more recent version?

Thanks, Joachim

Link to comment
Share on other sites

Since you mentioned 16.04 you're obviously using the samba package from an Ubuntu LTS release and not latest and greatest stuff from samba.org?

 

Alternatives might be building stuff from sources or getting paid subscription/consultancy (SerNet GmbH)

Link to comment
Share on other sites

Since you mentioned 16.04 you're obviously using the samba package from an Ubuntu LTS release and not latest and greatest stuff from samba.org?

as I wrote above, I installed Armbian. To be specific, it reports

Welcome to ARMBIAN Ubuntu 16.04.1 LTS 4.8.4-sunxi

 

Alternatives might be building stuff from sources or getting paid subscription/consultancy (SerNet GmbH)

I´d prefer obtaining all packages from standard repositories as this makes keeping the system up to date much easier than compiling on my own. I have been through this with nginx in the past.

Thus - why is Armbian not using the "latest and greatest stuff form samba.org"?

Best regards, Joachim

Link to comment
Share on other sites

Thus - why is Armbian not using the "latest and greatest stuff form samba.org"?

 

Since Armbian is not another distro but a build system. You can use our build system to generate Debian/Ubuntu based OS images in the following flavours: Debian Wheezy or Jessie or Ubuntu Trusty or Xenial but support for Wheezy/Trusty is phasing out already. If you do a

dpkg -l | egrep "armbian| linux"

you get already all packages we provide. And that's just because we package everything that makes working with your specific hardware more fun into own .deb packages (u-boot, kernel, board support package and a few additional tools that make life easier). Everything else is from the distro you chose so it's up to availability of newer versions for this version. And that's 16.04 in your case.

 

Maybe there's a testing/unstable branch or a specific ppa available -- I don't know. But at least you should search for 'Samba Xenial' or 16.04 since those packages are not Armbian specific in any way.

Link to comment
Share on other sites

Since Armbian is not another distro but a build system.... Everything else is from the distro you chose so it's up to availability of newer versions for this version. And that's 16.04 in your case.

Thanks for the explanation. Thus I need to ask the same on Ubuntu and eventually Armbian will get it automatically..

Thanks, Joachim

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
×
×
  • Create New...

Important Information

Terms of Use - Privacy Policy - Guidelines