[Samba] DNS: Migrate from BIND9_FLATFILE to SAMBA_INTERNAL (Samba 4.1.17)

bouke bouke at ict-diensten.com
Sat Apr 16 11:39:59 UTC 2016


Okay, this did not work.

root at comsrv01a:/home/main01/src/samba-4.1.17/source4/scripting/bin#
./samba_upgradedns --help
Traceback (most recent call last):
  File "./samba_upgradedns", line 31, in <module>
    import ldb
ImportError: No module named ldb

Luckilly I could find a previous discussion at
https://lists.samba.org/archive/samba-technical/2012-April/082674.html

I have noticed that I have to set the variable PYTHONPATH:

root at comsrv01a:/home/main01/src/samba-4.1.17/source4/scripting/bin# export
PYTHONPATH=/opt/samba/lib/python2.7/site-packages

And next run the samba_upgradedns command:

root at comsrv01a:/home/main01/src/samba-4.1.17/source4/scripting/bin#
./samba_upgradedns --help
Usage: upgradedns [options]

Options:
  -h, --help            show this help message and exit
  --dns-backend=<BIND9_DLZ|SAMBA_INTERNAL>
                        The DNS server backend, default SAMBA_INTERNAL
  --migrate=<yes|no>    Migrate existing zone data, default yes
  --verbose             Be verbose

Cheers.



--
View this message in context: http://samba.2283325.n4.nabble.com/DNS-Migrate-from-BIND9-FLATFILE-to-SAMBA-INTERNAL-Samba-4-1-17-tp4701054p4701145.html
Sent from the Samba - General mailing list archive at Nabble.com.



More information about the samba mailing list