[patch] testparm --section-name, --parameter-name, and --show-all-parameters

Jeremy Allison jra at samba.org
Fri Jun 3 16:42:18 GMT 2005


On Fri, Jun 03, 2005 at 03:17:54PM +0200, Lars MÜLLER wrote:
> Hi,
> 
> I've added three new options to testparm to make it handier for the
> daily usage.
> 
> --section-name allows to limit the view of testparm to one section.  If
> you use global it shows the global section.
> 
> --parameter-name allows to limit the view to one parameter.  If the
> section name isn't set global is assumed.
> 
> --show-all-parameters outputs a ini file with [local] and [global]
> sections of all available parameters, the type, possible values for
> enums, and the flags. For example:
> 
> ldap ssl=P_ENUM,no|No|off|Off|start tls|Start_tls,FLAG_ADVANCED
> 
> This might allow a configuration tool to provide appropriate control
> widgets for each parameter.  We'll create this list while the build
> process and ship it with the Samba package.
> 
> The patch is attached to bug #2767.
> 
> Any comments?

Looks really good to me (although I'll valgrind it to be sure :-). I
should do that more often with my own code :-) :-).

Thanks Lars, 

Jeremy.


More information about the samba-technical mailing list