maurizio at caloro.ch
2020-Mar-22 12:33 UTC
[Samba] new installation Samba AD - dnsupdate fail
Hello together Installing a new Samba AD on me new installed Debian 10. root at AD:/home/maurizio# /usr/sbin/smbd -V Version 4.9.5-Debian But DNS_Update will by fail: [2020/03/22 13:26:02.266719, 0] ../lib/util/util_runcmd.c:327(samba_runcmd_io_handler) /usr/sbin/samba_dnsupdate: ERROR(runtime): uncaught exception - (9711, 'WERR_DNS_ERROR_RECORD_ALREADY_EXISTS') [2020/03/22 13:26:02.266797, 0] ../lib/util/util_runcmd.c:327(samba_runcmd_io_handler) /usr/sbin/samba_dnsupdate: File "/usr/lib/python2.7/dist-packages/samba/netcmd/__init__.py", line 177, in _run [2020/03/22 13:26:02.266815, 0] ../lib/util/util_runcmd.c:327(samba_runcmd_io_handler) /usr/sbin/samba_dnsupdate: return self.run(*args, **kwargs) [2020/03/22 13:26:02.266831, 0] ../lib/util/util_runcmd.c:327(samba_runcmd_io_handler) /usr/sbin/samba_dnsupdate: File "/usr/lib/python2.7/dist-packages/samba/netcmd/dns.py", line 945, in run [2020/03/22 13:26:02.266848, 0] ../lib/util/util_runcmd.c:327(samba_runcmd_io_handler) /usr/sbin/samba_dnsupdate: raise e [2020/03/22 13:26:02.279577, 0] ../lib/util/util_runcmd.c:327(samba_runcmd_io_handler) /usr/sbin/samba_dnsupdate: ERROR(runtime): uncaught exception - (9711, 'WERR_DNS_ERROR_RECORD_ALREADY_EXISTS') [2020/03/22 13:26:02.279644, 0] ../lib/util/util_runcmd.c:327(samba_runcmd_io_handler) /usr/sbin/samba_dnsupdate: File "/usr/lib/python2.7/dist-packages/samba/netcmd/__init__.py", line 177, in _run [2020/03/22 13:26:02.279666, 0] ../lib/util/util_runcmd.c:327(samba_runcmd_io_handler) /usr/sbin/samba_dnsupdate: return self.run(*args, **kwargs) [2020/03/22 13:26:02.279681, 0] ../lib/util/util_runcmd.c:327(samba_runcmd_io_handler) /usr/sbin/samba_dnsupdate: File "/usr/lib/python2.7/dist-packages/samba/netcmd/dns.py", line 945, in run [2020/03/22 13:26:02.279706, 0] ../lib/util/util_runcmd.c:327(samba_runcmd_io_handler) /usr/sbin/samba_dnsupdate: raise e [2020/03/22 13:26:02.292353, 0] ../lib/util/util_runcmd.c:327(samba_runcmd_io_handler) /usr/sbin/samba_dnsupdate: ERROR(runtime): uncaught exception - (9711, 'WERR_DNS_ERROR_RECORD_ALREADY_EXISTS') [2020/03/22 13:26:02.292420, 0] ../lib/util/util_runcmd.c:327(samba_runcmd_io_handler) /usr/sbin/samba_dnsupdate: File "/usr/lib/python2.7/dist-packages/samba/netcmd/__init__.py", line 177, in _run [2020/03/22 13:26:02.292441, 0] ../lib/util/util_runcmd.c:327(samba_runcmd_io_handler) /usr/sbin/samba_dnsupdate: return self.run(*args, **kwargs) [2020/03/22 13:26:02.292456, 0] ../lib/util/util_runcmd.c:327(samba_runcmd_io_handler) /usr/sbin/samba_dnsupdate: File "/usr/lib/python2.7/dist-packages/samba/netcmd/dns.py", line 945, in run [2020/03/22 13:26:02.292472, 0] ../lib/util/util_runcmd.c:327(samba_runcmd_io_handler) /usr/sbin/samba_dnsupdate: raise e [2020/03/22 13:26:02.308102, 0] ../source4/dsdb/dns/dns_update.c:330(dnsupdate_nameupdate_done) ../source4/dsdb/dns/dns_update.c:330: Failed DNS update - with error code 29 Thanks very mutch for any Update. Mauri
On 22/03/2020 12:33, mauri via samba wrote:> Hello together > > Installing a new Samba AD on me new installed Debian 10. > Version 4.9.5-Debian > > But DNS_Update will by fail: > > [2020/03/22 13:26:02.266719, 0] > ../lib/util/util_runcmd.c:327(samba_runcmd_io_handler) > > /usr/sbin/samba_dnsupdate: ERROR(runtime): uncaught exception - (9711, > 'WERR_DNS_ERROR_RECORD_ALREADY_EXISTS')This appears to be more of an error with samba_dnsupdate than your AD ;-) Python is raising an exception because the records already exist, it should either remain silent or just print a message like 'Record exists'. Can I suggest you upgrade your version of Samba, 4.9.x is EOL as far as Samba is concerned, you can get later versions here: http://apt.van-belle.nl/ There have been numerous updates since 4.9.5 and the fix for your non-error may be one of them ;-) Rowland
maurizio at caloro.ch
2020-Mar-22 17:35 UTC
[Samba] new installation Samba AD - dnsupdate fail
Hello Wau i dont know bevor that Debian 10 running with a so old Samba Version, yes today i have download 4.12 the source Was quick compiled and installed, nice. I fighting with Kerberos..... or will this running when AD are up and running? root at AD:/# cat /etc/krb5.conf [logging] Default = FILE:/var/log/krb5.log kdc = FILE:/var/log/krb5Kdc.log admin_server = FILE:/var/log/krb5adm.log [libdefaults] default_realm = CALORO.M [realms] CALORO.M = { kdc = ad.caloro.m:88 admin_server = ad.caloro.m:749 default_domain = caloro.m } [domain_realm] .caloro.m = CALORO.M caloro.m = CALORO.M root at AD:/# if try to made any test root at AD:/# kinit administrator kinit: Client 'administrator at CALORO.M' not found in Kerberos database while getting initial credentials root at AD:/# ping ad.caloro.m PING AD.CALORO.M (127.0.0.1) 56(84) bytes of data. 64 bytes from localhost (127.0.0.1): icmp_seq=1 ttl=64 time=0.013 ms root at AD:/# systemctl status krb5-kdc.service ? krb5-kdc.service - Kerberos 5 Key Distribution Center Loaded: loaded (/lib/systemd/system/krb5-kdc.service; enabled; vendor preset: enabled) Active: active (running) since Sun 2020-03-22 18:25:05 CET; 9min ago Process: 13403 ExecStart=/usr/sbin/krb5kdc -P /var/run/krb5-kdc.pid $DAEMON_ARGS (code=exited, status=0/SUCCESS) Main PID: 13404 (krb5kdc) Tasks: 1 (limit: 4915) Memory: 1.0M CGroup: /system.slice/krb5-kdc.service ??13404 /usr/sbin/krb5kdc -P /var/run/krb5-kdc.pid Mar 22 18:25:05 AD krb5kdc[13403]: Setting pktinfo on socket ::.88 Mar 22 18:25:05 AD systemd[1]: krb5-kdc.service: Can't open PID file /run/krb5-kdc.pid (yet?) after start: No such file or directory Mar 22 18:25:05 AD krb5kdc[13403]: Setting up TCP socket for address 0.0.0.0.88 Mar 22 18:25:05 AD krb5kdc[13403]: Setting up TCP socket for address ::.88 Mar 22 18:25:05 AD krb5kdc[13403]: setsockopt(13,IPV6_V6ONLY,1) worked Mar 22 18:25:05 AD krb5kdc[13403]: set up 6 sockets Mar 22 18:25:05 AD krb5kdc[13404]: commencing operation Mar 22 18:25:05 AD systemd[1]: Started Kerberos 5 Key Distribution Center. Mar 22 18:25:53 AD krb5kdc[13404]: AS_REQ (8 etypes {18 17 20 19 16 23 25 26}) 127.0.0.1: CLIENT_NOT_FOUND: administrator at CALORO.M for krbtgt/CALORO.M at CALORO.M, Client not found in Kerberos database Mar 22 18:31:36 AD krb5kdc[13404]: AS_REQ (8 etypes {18 17 20 19 16 23 25 26}) 127.0.0.1: CLIENT_NOT_FOUND: administrator at CALORO.M for krbtgt/CALORO.M at CALORO.M, Client not found in Kerberos database root at AD:/# Thanks Mauri>This appears to be more of an error with samba_dnsupdate than your AD ;-) > >Python is raising an exception because the records already exist, it shouldeither remain silent or just print a message like 'Record exists'.> >Can I suggest you upgrade your version of Samba, 4.9.x is EOL as far asSamba is concerned, you can get later versions here:>http://apt.van-belle.nl/ > >There have been numerous updates since 4.9.5 and the fix for your non-errormay be one of them ;-)> >Rowland