[Samba] DNS add - Python error when record exists

Paul Littlefield info at paully.co.uk
Mon Mar 2 13:46:57 UTC 2020


On 02/03/2020 13:37, Rowland penny via samba wrote:
> You are correct, the code that checked if a record already existed was removed at the end of 2016, I have no idea why.

...so... how much are you shaking your head at me now? :)

Is it worth me checking my python setup or those files it mentions?

File "/usr/lib/python2.7/dist-packages/samba/netcmd/__init__.py"
File "/usr/lib/python2.7/dist-packages/samba/netcmd/dns.py"

$ smbclient --version
Version 4.7.6-Ubuntu

$ apt-cache policy samba
samba:
   Installed: 2:4.7.6+dfsg~ubuntu-0ubuntu2.15
   Candidate: 2:4.7.6+dfsg~ubuntu-0ubuntu2.15
   Version table:
  *** 2:4.7.6+dfsg~ubuntu-0ubuntu2.15 500
         500 http://archive.ubuntu.com/ubuntu bionic-updates/main amd64 Packages
         500 http://security.ubuntu.com/ubuntu bionic-security/main amd64 Packages
         100 /var/lib/dpkg/status
      2:4.7.6+dfsg~ubuntu-0ubuntu2 500
         500 http://archive.ubuntu.com/ubuntu bionic/main amd64 Packages

$ python --version

$ apt-cache policy python
python:
   Installed: 2.7.15~rc1-1
   Candidate: 2.7.15~rc1-1
   Version table:
  *** 2.7.15~rc1-1 500
         500 http://archive.ubuntu.com/ubuntu bionic/main amd64 Packages
         100 /var/lib/dpkg/status

$ apt-cache policy python3
python3:
   Installed: 3.6.7-1~18.04
   Candidate: 3.6.7-1~18.04
   Version table:
  *** 3.6.7-1~18.04 500
         500 http://archive.ubuntu.com/ubuntu bionic-updates/main amd64 Packages
         100 /var/lib/dpkg/status
      3.6.5-3 500
         500 http://archive.ubuntu.com/ubuntu bionic/main amd64 Packages


Paully



More information about the samba mailing list