samba_dnsupdate and samba_spnupdate scripts fail
tridge at samba.org
tridge at samba.org
Sat Nov 20 02:53:03 MST 2010
Hi Anatoliy,
> The scripts for samba_dnsupdate and samba_spnupdate fail with this error, when i run samba with sudo:
> sudo bin/samba -i -M single -d3
given the bin/ prefix, I'm guessing you are running this from the
build directory?
> Calling DNS name update script
> Calling SPN name update script
> /home/ant/bin/rwdc/sbin/samba_dnsupdate: Traceback (most recent call last):
> /home/ant/bin/rwdc/sbin/samba_dnsupdate: File "/home/ant/bin/rwdc/sbin/samba_dnsupdate", line 40, in <module>
> /home/ant/bin/rwdc/sbin/samba_dnsupdate: import samba
> /home/ant/bin/rwdc/sbin/samba_dnsupdate: ImportError: No module named samba
whereas this is running from the install directory. So the problem
probably is that you have not done a 'make install'
What we need to do is change things so that "dns update command" in
loadparm is automatically set to use scripting/bin instead of the
install path when we run from the build directory.
> ../dsdb/dns/dns_update.c:279: Failed SPN update - NT_STATUS_ACCESS_DENIED
>
> I deleted everything from the installed prefix, did make install and samba-tool vampire after that.
hmm, if you have done a make install, then the
/home/ant/bin/rwdc/sbin/samba_dnsupdate script should have had this in
it:
sys.path.insert(0, "/home/ant/bin/rwdc/lib/python2.6/site-packages")
can you check that?
Cheers, Tridge
More information about the samba-technical
mailing list