Created attachment 15494 [details] Samba current config file. root@vdmsv1:~# samba-tool testparm --section users ERROR(<type 'exceptions.TypeError'>): uncaught exception - File "/usr/lib/python2.7/dist-packages/samba/netcmd/__init__.py", line 177, in _run return self.run(*args, **kwargs) File "/usr/lib/python2.7/dist-packages/samba/netcmd/testparm.py", line 105, in run lp[section_name].dump(verbose) but, if i ask also a parameter: root@vdmsv1:~# samba-tool testparm --section-name=users --parameter-name=path /home 'samba-tool testparm' works as expected. smb.conf file attached.
(In reply to Marco Gaiarin from comment #0) In the first command the flag --section does not exist in samba-tool. You can try samba-tool testparm --section-name=users
Ahem, probably a cut&paste error, sorry. Done now: root@vdmsv1:~# samba-tool testparm --section-name=users ERROR(<type 'exceptions.TypeError'>): uncaught exception - File "/usr/lib/python2.7/dist-packages/samba/netcmd/__init__.py", line 177, in _run return self.run(*args, **kwargs) File "/usr/lib/python2.7/dist-packages/samba/netcmd/testparm.py", line 105, in run lp[section_name].dump(verbose) root@vdmsv1:~# samba-tool testparm --section-name=users --parameter-name=path /home root@vdmsv1:~# dpkg -l | grep samba ii python-samba 2:4.8.12-1~deb9 amd64 Python bindings for Samba ii samba 2:4.8.12-1~deb9 amd64 SMB/CIFS file, print, and login server for Unix ii samba-common 2:4.8.12-1~deb9 all common files used by both the Samba server and client ii samba-common-bin 2:4.8.12-1~deb9 amd64 Samba common files used by both the server and the client ii samba-dsdb-modules:amd64 2:4.8.12-1~deb9 amd64 Samba Directory Services Database ii samba-libs:amd64 2:4.8.12-1~deb9 amd64 Samba core libraries ii samba-vfs-modules:amd64 2:4.8.12-1~deb9 amd64 Samba Virtual FileSystem plugins
This bug was referenced in samba master: 33bb6ad35635590be112e94941dbfc02b4db1d30 e54563861b2b06370fe3a2a10d7e7df2e3e18f24 11f26877ce1849439948c8d1f12dc9dd43cd534d 7d7017b30248c2855248a9bab56fd5b91597686c
Fixed in Samba 4.15.