The Samba-Bugzilla – Bug 1336
testparm -s does not show server role
Last modified: 2006-01-25 08:38:56 UTC
I observed this behaviour with samba-3.0.4 and the fedora package 3.0.3-5
Propably other versions show the same behaviour.
Here is what happens:
bash-2.05b$ testparm 2>&1 | grep role
Server role: ROLE_DOMAIN_PDC
bash-2.05b$ testparm -s 2>&1 | grep role
Created attachment 515 [details]
fix for 1336
I am not shure if this is really a bug. But according to the testparm manual
page "-s" only switches off the prompt:
-s Without this option, testparm will prompt for a carriage return
after printing the service names and before dumping the service
Perhaps only the man page has to be fixed?
Created attachment 1674 [details]
Updated patch for 3.0.21a
This is definitely a bug as Server Role should be display in silent (no-prompt) mode as pointed out by the original patch supplier. This is just an updated patch to go against the current tree.
This is fixed now I think in 3.0.21b