The Samba-Bugzilla – Bug 13788
bug in cmd line parsing in samba-tool dns add SRV/MX/SOA field
Last modified: 2019-02-24 05:56:39 UTC
netcmd/dns.py, line 420, 428, 438
the parsing of arguments is done as this:
tmp = data.split(' ')
This syntax does not allow to have two spaces between the different values, thus the following line fails with error "ERROR: Data requires 4 elements - server, port, priority, weight" (look at the two space characters between server name and port):
samba-tool dns add dc1 ad.test.fr _kerberos._tcp SRV "dc2.ad.test 88 0 100 "
The aforementioned line should be :
tmp = data.split()
as this syntax allow one or more space between two arguments.
Created attachment 14849 [details]
patch fixing incorrect use of split(' ')
bug is present in master and former release. patch applies (with offset 1) on 4.9.4.
fix pushed to master https://lists.samba.org/archive/samba-technical/2019-February/132537.html