tl;dr Running `testparm` for an `smb.conf` file with `server max protocol` directive *and* `server min protocol` directive, `testparm` does not recognize `server max protocol`. ## Reproduction ## Given file `test-smb.conf` with contents: [global] server min protocol = SMB2 server max protocol = SMB3 Run `testparm` with that file $ testparm test-smb.conf ... # Global parameters [global] server min protocol = SMB2 idmap config * : backend = tdb BUG: no entry for `server max protocol` as defined in `test-smb.conf` EXPECTED: entry for `server max protocol` as defined in `test-smb.conf` This behavior changes if `server min protocol` directive in `test-smb.cong` is removed. Then `testparm` will recognize `server max protocol`. This behavior changes if passing `-v` to `testparm`. e.g. $ testparm -vs test-smb.conf 2>&1 | grep protocol ... server max protocol = SMB3 server min protocol = SMB2 ## Other Notes ## Using `testparm` version `4.5.16-Debian` (this version is not available in Bugzilla Version field).
The testparm tool only shows non-default smb.conf options. Use testparm -v to show default values as well. What this shows is that 'server max protocol = SMB3' is already the default.