[PATCH] net conf: add parameter value check to 'net conf setparm'

Ralph Wuerthner ralphw at de.ibm.com
Tue Nov 22 14:24:14 UTC 2016


Hi!

Please see attached patchset to prevent bricking your registry like this:

   $ net conf setparm global 'server max protocol' foo
   $ net conf setparm global 'server max protocol' SMB3
   WARNING: Ignoring invalid value 'foo' for parameter 'server max protocol'
   $ net conf setparm global 'server max protocol' SMB3
   WARNING: Ignoring invalid value 'foo' for parameter 'server max protocol'


Regards

     Ralph

-------------- next part --------------
A non-text attachment was scrubbed...
Name: add-parameter-value-check-to-net_conf.patch
Type: text/x-patch
Size: 5001 bytes
Desc: not available
URL: <http://lists.samba.org/pipermail/samba-technical/attachments/20161122/d24ccb8d/add-parameter-value-check-to-net_conf.bin>


More information about the samba-technical mailing list