Bug 2767 - Allow testparm to limit it's scope
Summary: Allow testparm to limit it's scope
Status: CLOSED FIXED
Alias: None
Product: Samba 3.0
Classification: Unclassified
Component: Config Files (show other bugs)
Version: 3.0.14a
Hardware: All Linux
: P3 enhancement
Target Milestone: none
Assignee: Samba Bugzilla Account
QA Contact: Samba QA Contact
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-06-03 06:04 UTC by Lars Müller
Modified: 2005-08-24 10:20 UTC (History)
0 users

See Also:


Attachments
Proposed patch to add the described enhancement. (6.82 KB, patch)
2005-06-03 06:15 UTC, Lars Müller
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Lars Müller 2005-06-03 06:04:44 UTC
I've added --section-name, --parameter-name, and --show-all-parameters 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.
Comment 1 Lars Müller 2005-06-03 06:15:11 UTC
Created attachment 1257 [details]
Proposed patch to add the described enhancement.
Comment 2 Lars Müller 2005-06-12 09:07:04 UTC
Added with svn rev 7511.
Comment 3 Gerald (Jerry) Carter (dead mail address) 2005-08-24 10:20:15 UTC
sorry for the same, cleaning up the database to prevent unecessary reopens of bugs.