Dear all, I compiled Samba 4.0.0alpha12 successful on my centos 5.5 box. Kerberos and DNS working as wanted. There is only a ugly ?error in dnsupdate. Samba_dnsupdate gives this error: Traceback (most recent call last): ? File "/usr/sbin/samba_dnsupdate", line 40, in ? ??? samba.ensure_external_module("dns", "dnspython") ? File "/usr/local/samba/lib/python2.4/site-packages/samba/__init__.py", line 321, in ensure_external_module ??? sys.modules[modulename] = __import__( TypeError: __import__() takes no keyword arguments Starting samba ?I ?M single: samba version 4.0.0alpha12-GIT-UNKNOWN started. Copyright Andrew Tridgell and the Samba Team 1992-2010 samba: using 'single' process model FIXME: Using new system session for hdb /usr/local/samba/sbin/samba_dnsupdate: Traceback (most recent call last): /usr/local/samba/sbin/samba_dnsupdate:?? File "/usr/local/samba/sbin/samba_dnsupdate", line 40, in ? /usr/local/samba/sbin/samba_dnsupdate:???? samba.ensure_external_module("dns", "dnspython") /usr/local/samba/sbin/samba_dnsupdate:?? File "/usr/local/samba/lib/python2.4/site-packages/samba/__init__.py", line 321, in ensure_external_module /usr/local/samba/sbin/samba_dnsupdate:???? sys.modules[modulename] __import__( /usr/local/samba/sbin/samba_dnsupdate: TypeError: __import__() takes no keyword arguments ../dsdb/dns/dns_update.c:249: Failed DNS update - NT_STATUS_ACCESS_DENIED Testing kcctpl_create_intersite_connections Of course I installed following rpm: python-pydns-2.3.4-1.noarch.rpm What link do I miss. Greetings Daniel EDV Daniel M?ller Leitung EDV Tropenklinik Paul-Lechler-Krankenhaus Paul-Lechler-Str. 24 72076 T?bingen Tel.: 07071/206-463, Fax: 07071/206-499 eMail: mueller at tropenklinik.de Internet: www.tropenklinik.de
On Thu, 2010-07-22 at 10:49 +0200, Daniel M?ller wrote:> Dear all, > > I compiled Samba 4.0.0alpha12 successful on my centos 5.5 box. Kerberos and > DNS working as wanted. > There is only a ugly error in dnsupdate. Samba_dnsupdate gives this error: > > Traceback (most recent call last): > File "/usr/sbin/samba_dnsupdate", line 40, in ? > samba.ensure_external_module("dns", "dnspython") > File "/usr/local/samba/lib/python2.4/site-packages/samba/__init__.py", > line 321, in ensure_external_module > sys.modules[modulename] = __import__( > TypeError: __import__() takes no keyword arguments > > Starting samba ?I ?M single: > > samba version 4.0.0alpha12-GIT-UNKNOWN started. > Copyright Andrew Tridgell and the Samba Team 1992-2010 > samba: using 'single' process model > FIXME: Using new system session for hdb > /usr/local/samba/sbin/samba_dnsupdate: Traceback (most recent call last): > /usr/local/samba/sbin/samba_dnsupdate: File > "/usr/local/samba/sbin/samba_dnsupdate", line 40, in ? > /usr/local/samba/sbin/samba_dnsupdate: > samba.ensure_external_module("dns", "dnspython") > /usr/local/samba/sbin/samba_dnsupdate: File > "/usr/local/samba/lib/python2.4/site-packages/samba/__init__.py", line 321, > in ensure_external_module > /usr/local/samba/sbin/samba_dnsupdate: sys.modules[modulename] > __import__( > /usr/local/samba/sbin/samba_dnsupdate: TypeError: __import__() takes no > keyword arguments > ../dsdb/dns/dns_update.c:249: Failed DNS update - NT_STATUS_ACCESS_DENIED > Testing kcctpl_create_intersite_connections > > > Of course I installed following rpm: python-pydns-2.3.4-1.noarch.rpm > What link do I miss. > > Greetings > Daniel > > EDV Daniel M?ller > > Leitung EDV > Tropenklinik Paul-Lechler-Krankenhaus > Paul-Lechler-Str. 24 > 72076 T?bingen > Tel.: 07071/206-463, Fax: 07071/206-499 > eMail: mueller at tropenklinik.de > Internet: www.tropenklinik.de > >Daniel I have python-dns-1.7.1-1.el5 installed from EPEL, not python-pydns. Regards Mike
On 22 July 2010 10:49, Daniel M?ller <mueller at tropenklinik.de> wrote:> > Dear all, > > I compiled Samba 4.0.0alpha12 successful on my centos 5.5 box.[...]> Traceback (most recent call last): > File "/usr/sbin/samba_dnsupdate", line 40, in ? > samba.ensure_external_module("dns", "dnspython") > File "/usr/local/samba/lib/python2.4/site-packages/samba/__init__.py", > line 321, in ensure_external_module > sys.modules[modulename] = __import__( > TypeError: __import__() takes no keyword arguments[...] I see you are using Python 2.4. It seems that samba_dnsupdate needs Python 2.5: http://docs.python.org/library/functions.html#__import__ "[...] Changed in version 2.5: Keyword support for parameters was added." Perhaps the Samba4 HOWTO should be updated to state this requirement. -- Michael Wood <esiotrot at gmail.com>