metze/test/samba.git
8 years agoselftest: Add test for GSSAPI with no authenticator checksum mode master
Andrew Bartlett [Fri, 26 Jun 2015 07:15:31 +0000 (19:15 +1200)]
selftest: Add test for GSSAPI with no authenticator checksum mode

This was seen in the wild, with a Huawei Unified Storage System S5500 V3 against the AD DC

BUG: https://bugzilla.samba.org/show_bug.cgi?id=11425

Signed-off-by: Andrew Bartlett <abartlet@samba.org>
Reviewed-by: Stefan Metzmacher <metze@samba.org>
Autobuild-User(master): Andrew Bartlett <abartlet@samba.org>
Autobuild-Date(master): Wed Aug  5 09:43:40 CEST 2015 on sn-devel-104

8 years agoheimdal/gssapi: Allow a NULL authenticator
Andrew Bartlett [Fri, 26 Jun 2015 07:14:56 +0000 (19:14 +1200)]
heimdal/gssapi: Allow a NULL authenticator

Some non-GSSAPI implementations that instead try to create compatible packets by wrapping krb5_mk_req()
can trigger a NULL authenticator here.  Assume this to be equvilent to specifying an all-zero
channel bindings and some reasonable (fixed) flags.

This was seen in the wild, with a Huawei Unified Storage System S5500 V3 against the AD DC

Original patch by Andrew Bartlett, restructured by Douglas Bagnall

Cherry-picked from upstream GIT 0a5de96d72cdea9e465412d7dba1e5d13e53dc09
which is the merge of https://github.com/heimdal/heimdal/pull/134

BUG: https://bugzilla.samba.org/show_bug.cgi?id=11425
Signed-off-by: Andrew Bartlett <abartlet@samba.org>
Signed-off-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz>
Reviewed-by: Stefan Metzmacher <metze@samba.org>
8 years agogensec: Add an option emulating another mode a client building GSSAPI/krb5 manually...
Andrew Bartlett [Fri, 26 Jun 2015 07:14:13 +0000 (19:14 +1200)]
gensec: Add an option emulating another mode a client building GSSAPI/krb5 manually uses

This was seen in the wild, with a Huawei Unified Storage System S5500 V3 against the AD DC

BUG: https://bugzilla.samba.org/show_bug.cgi?id=11425
Signed-off-by: Andrew Bartlett <abartlet@samba.org>
Reviewed-by: Stefan Metzmacher <metze@samba.org>
8 years agowaf: Add talloc as a dependency
Andreas Schneider [Tue, 4 Aug 2015 10:00:33 +0000 (12:00 +0200)]
waf: Add talloc as a dependency

Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
Autobuild-User(master): Andrew Bartlett <abartlet@samba.org>
Autobuild-Date(master): Wed Aug  5 04:08:30 CEST 2015 on sn-devel-104

8 years agosdb: Assert if the HDB flags will change
Andreas Schneider [Mon, 3 Aug 2015 11:10:28 +0000 (13:10 +0200)]
sdb: Assert if the HDB flags will change

Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
8 years agohdb-samba: Translate SDB errors to HDB errors
Andreas Schneider [Tue, 4 Aug 2015 09:35:45 +0000 (11:35 +0200)]
hdb-samba: Translate SDB errors to HDB errors

Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
8 years agos4-torture: add test for CLUSCTL_NODE_GET_ID in clusapi_NodeControl.
Günther Deschner [Tue, 21 Jul 2015 13:31:20 +0000 (15:31 +0200)]
s4-torture: add test for CLUSCTL_NODE_GET_ID in clusapi_NodeControl.

Guenther

Signed-off-by: Günther Deschner <gd@samba.org>
Reviewed-by: José A. Rivera <jarrpa@samba.org>
Autobuild-User(master): José A. Rivera <jarrpa@samba.org>
Autobuild-Date(master): Tue Aug  4 22:14:33 CEST 2015 on sn-devel-104

8 years agos3-rpcclient: add client for create enum ex.
Günther Deschner [Fri, 17 Jul 2015 09:39:52 +0000 (11:39 +0200)]
s3-rpcclient: add client for create enum ex.

Guenther

Signed-off-by: Günther Deschner <gd@samba.org>
Reviewed-by: José A. Rivera <jarrpa@samba.org>
8 years agos4-torture: add more ndr tests for property lists.
Günther Deschner [Thu, 16 Jul 2015 22:14:09 +0000 (00:14 +0200)]
s4-torture: add more ndr tests for property lists.

This data is derived from clusapi_NodeControl.

Guenther

Signed-off-by: Günther Deschner <gd@samba.org>
Reviewed-by: José A. Rivera <jarrpa@samba.org>
8 years agos4-torture: add torture test for clusapi_NodeControl.
Günther Deschner [Thu, 16 Jul 2015 21:28:33 +0000 (23:28 +0200)]
s4-torture: add torture test for clusapi_NodeControl.

Guenther

Signed-off-by: Günther Deschner <gd@samba.org>
Reviewed-by: José A. Rivera <jarrpa@samba.org>
8 years agoclusapi: add clusapi_NodeControlCode to IDL.
Günther Deschner [Thu, 16 Jul 2015 21:22:18 +0000 (23:22 +0200)]
clusapi: add clusapi_NodeControlCode to IDL.

Guenther

Signed-off-by: Günther Deschner <gd@samba.org>
Reviewed-by: José A. Rivera <jarrpa@samba.org>
8 years agos4-torture: add tests for GroupControl.
Günther Deschner [Thu, 16 Jul 2015 15:40:37 +0000 (17:40 +0200)]
s4-torture: add tests for GroupControl.

Guenther

Signed-off-by: Günther Deschner <gd@samba.org>
Reviewed-by: José A. Rivera <jarrpa@samba.org>
8 years agoclusapi: add clusapi_GroupControlCode enum to IDL.
Günther Deschner [Thu, 16 Jul 2015 15:03:59 +0000 (17:03 +0200)]
clusapi: add clusapi_GroupControlCode enum to IDL.

Guenther

Signed-off-by: Günther Deschner <gd@samba.org>
Reviewed-by: José A. Rivera <jarrpa@samba.org>
8 years agos4-torture: also test ClusterControl with a large initial buffer size.
Günther Deschner [Thu, 16 Jul 2015 06:21:27 +0000 (08:21 +0200)]
s4-torture: also test ClusterControl with a large initial buffer size.

Guenther

Signed-off-by: Günther Deschner <gd@samba.org>
Reviewed-by: José A. Rivera <jarrpa@samba.org>
8 years agoclusapi: use winreg_Type in clusapi registry IDL.
Günther Deschner [Thu, 16 Jul 2015 06:08:51 +0000 (08:08 +0200)]
clusapi: use winreg_Type in clusapi registry IDL.

Guenther

Signed-off-by: Günther Deschner <gd@samba.org>
Reviewed-by: José A. Rivera <jarrpa@samba.org>
8 years agos4-torture: add ndr testsuite for complex clusapi_PROPERTY_LIST structs.
Günther Deschner [Tue, 14 Jul 2015 13:55:57 +0000 (15:55 +0200)]
s4-torture: add ndr testsuite for complex clusapi_PROPERTY_LIST structs.

Guenther

Signed-off-by: Günther Deschner <gd@samba.org>
Reviewed-by: José A. Rivera <jarrpa@samba.org>
8 years agoclusapi: use ClusterEnumType in clusapi_CreateEnumEx.
Günther Deschner [Mon, 13 Jul 2015 19:09:16 +0000 (21:09 +0200)]
clusapi: use ClusterEnumType in clusapi_CreateEnumEx.

Guenther

Signed-off-by: Günther Deschner <gd@samba.org>
Reviewed-by: José A. Rivera <jarrpa@samba.org>
8 years agos4-torture: add test for clusapi_CreateEnumEx().
Günther Deschner [Mon, 13 Jul 2015 19:08:23 +0000 (21:08 +0200)]
s4-torture: add test for clusapi_CreateEnumEx().

Guenther

Signed-off-by: Günther Deschner <gd@samba.org>
Reviewed-by: José A. Rivera <jarrpa@samba.org>
8 years agoclusapi: add PROPERTY_LIST IDL.
Günther Deschner [Fri, 10 Jul 2015 13:49:33 +0000 (15:49 +0200)]
clusapi: add PROPERTY_LIST IDL.

Note this is hand-marshalled in Windows, seen in ClusterControl reqplies for a
CLUSCTL_CLUSTER_GET_RO_COMMON_PROPERTIES control.

Guenther

Signed-off-by: Günther Deschner <gd@samba.org>
Reviewed-by: José A. Rivera <jarrpa@samba.org>
8 years agos4-torture: add test for GetResourceNetworkName.
Günther Deschner [Thu, 9 Jul 2015 15:25:24 +0000 (17:25 +0200)]
s4-torture: add test for GetResourceNetworkName.

Guenther

Signed-off-by: Günther Deschner <gd@samba.org>
Reviewed-by: José A. Rivera <jarrpa@samba.org>
8 years agos3-clusapi: add test for GetResourceDependencyExpression.
Günther Deschner [Thu, 9 Jul 2015 15:23:32 +0000 (17:23 +0200)]
s3-clusapi: add test for GetResourceDependencyExpression.

Guenther

Signed-off-by: Günther Deschner <gd@samba.org>
Reviewed-by: José A. Rivera <jarrpa@samba.org>
8 years agos4-torture: add more tests for clusapi_OpenResource().
Günther Deschner [Wed, 1 Jul 2015 14:58:06 +0000 (16:58 +0200)]
s4-torture: add more tests for clusapi_OpenResource().

Guenther

Signed-off-by: Günther Deschner <gd@samba.org>
Reviewed-by: José A. Rivera <jarrpa@samba.org>
8 years agos3-net: use talloc array in share allowedusers
Ralph Boehme [Tue, 4 Aug 2015 09:18:34 +0000 (11:18 +0200)]
s3-net: use talloc array in share allowedusers

Bug: https://bugzilla.samba.org/show_bug.cgi?id=11426

Signed-off-by: Ralph Boehme <slow@samba.org>
Reviewed-by: Stefan Metzmacher <metze@samba.org>
Autobuild-User(master): Ralph Böhme <slow@samba.org>
Autobuild-Date(master): Tue Aug  4 16:48:36 CEST 2015 on sn-devel-104

8 years agodns_server: Fix CNAME handling
Volker Lendecke [Sat, 1 Aug 2015 15:59:14 +0000 (17:59 +0200)]
dns_server: Fix CNAME handling

recs[i].wtype is == DNS_TYPE_CNAME, and my understanding of the union is that
data.cname is filled. We get away with this, because ipv4 and ipv6 have the
same char * representation, but it's confusing.

Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Ira Cooper <ira@samba.org>
Autobuild-User(master): Volker Lendecke <vl@samba.org>
Autobuild-Date(master): Tue Aug  4 13:41:17 CEST 2015 on sn-devel-104

8 years agodns_server: Add NULL check
Volker Lendecke [Sat, 1 Aug 2015 15:53:56 +0000 (17:53 +0200)]
dns_server: Add NULL check

Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Ira Cooper <ira@samba.org>
8 years agolib/util/debug.h uses va_list, needs stdarg.h
Douglas Bagnall [Thu, 9 Jul 2015 06:16:56 +0000 (18:16 +1200)]
lib/util/debug.h uses va_list, needs stdarg.h

Signed-off-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz>
Reviewed-by: Jeremy Allison <jra@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
Reviewed-by: Andreas Schneider <asn@samba.org>
Autobuild-User(master): Jeremy Allison <jra@samba.org>
Autobuild-Date(master): Sat Aug  1 13:59:13 CEST 2015 on sn-devel-104

8 years agonet: Print time of last password change in 'net ads info'
Christof Schmitt [Thu, 30 Jul 2015 22:52:08 +0000 (15:52 -0700)]
net: Print time of last password change in 'net ads info'

This is useful for debugging overwritten machine accounts, e.g. a
second machine is joined to a domain with the same name as the
first one.

Signed-off-by: Christof Schmitt <cs@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
8 years agosecrets: Add function to fetch only password change timestamp
Christof Schmitt [Thu, 30 Jul 2015 22:47:54 +0000 (15:47 -0700)]
secrets: Add function to fetch only password change timestamp

Signed-off-by: Christof Schmitt <cs@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
8 years agodoc: mention that `smbd -i` exits after first connection
Aurelien Aptel [Fri, 31 Jul 2015 15:01:10 +0000 (17:01 +0200)]
doc: mention that `smbd -i` exits after first connection

Signed-off-by: Aurelien Aptel <aaptel@suse.com>
Reviewed-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
8 years agoparam: update the README with instructions for adding a parameter
Michael Adam [Thu, 23 Jul 2015 23:56:39 +0000 (01:56 +0200)]
param: update the README with instructions for adding a parameter

Signed-off-by: Michael Adam <obnox@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
Autobuild-User(master): Jeremy Allison <jra@samba.org>
Autobuild-Date(master): Fri Jul 31 05:00:57 CEST 2015 on sn-devel-104

8 years agoparam: remove the static param_table.
Michael Adam [Thu, 23 Jul 2015 22:31:27 +0000 (00:31 +0200)]
param: remove the static param_table.

It is now auto-generated.

Signed-off-by: Michael Adam <obnox@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
8 years agotests:docs: don't load or test the static param_table.
Michael Adam [Thu, 23 Jul 2015 23:29:37 +0000 (01:29 +0200)]
tests:docs: don't load or test the static param_table.

It is going to be removed for the generated table.

Signed-off-by: Michael Adam <obnox@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
8 years agotests:docs: remove testing the diff between the static and generated table
Michael Adam [Thu, 23 Jul 2015 21:56:11 +0000 (23:56 +0200)]
tests:docs: remove testing the diff between the static and generated table

This reverts commit 380e0769ad3563dc762fb0c9ebe57d8131846519.

This is in preparation of the removal of the committed param_table_static.c

Signed-off-by: Michael Adam <obnox@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
8 years agoparam: use the generated parameter table.
Michael Adam [Thu, 23 Jul 2015 16:40:27 +0000 (18:40 +0200)]
param: use the generated parameter table.

Signed-off-by: Michael Adam <obnox@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
8 years agotests:docs: test the diff between the static and generated table
Michael Adam [Thu, 23 Jul 2015 14:29:23 +0000 (16:29 +0200)]
tests:docs: test the diff between the static and generated table

This proves that the committed and the generated parameter tables
are identical (modulo order).

Signed-off-by: Michael Adam <obnox@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
8 years agotests:docs: load the full data from the generated param_table
Michael Adam [Thu, 23 Jul 2015 21:15:38 +0000 (23:15 +0200)]
tests:docs: load the full data from the generated param_table

Signed-off-by: Michael Adam <obnox@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
8 years agotests:docs: load the full data from the existing param_table.
Michael Adam [Thu, 23 Jul 2015 21:15:07 +0000 (23:15 +0200)]
tests:docs: load the full data from the existing param_table.

Signed-off-by: Michael Adam <obnox@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
8 years agotests:docs: add a function to load the full data structures from the table
Michael Adam [Thu, 23 Jul 2015 21:10:16 +0000 (23:10 +0200)]
tests:docs: add a function to load the full data structures from the table

instead of just loading the list of parameter names.

Signed-off-by: Michael Adam <obnox@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
8 years agotests:docs: print more complicated structures than strings in the message.
Michael Adam [Thu, 23 Jul 2015 14:25:45 +0000 (16:25 +0200)]
tests:docs: print more complicated structures than strings in the message.

Signed-off-by: Michael Adam <obnox@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
8 years agotests:docs: common initialization in docs test.
Michael Adam [Wed, 22 Jul 2015 13:16:16 +0000 (15:16 +0200)]
tests:docs: common initialization in docs test.

Just load the structures once at startup.

Signed-off-by: Michael Adam <obnox@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
8 years agobuild: generate param_table_gen.c from docs in the build
Michael Adam [Tue, 28 Apr 2015 09:45:43 +0000 (11:45 +0200)]
build: generate param_table_gen.c from docs in the build

Signed-off-by: Michael Adam <obnox@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
8 years agogenerate_param: add a means to generate param_table_gen.c from the docs
Michael Adam [Thu, 18 Jun 2015 05:37:24 +0000 (07:37 +0200)]
generate_param: add a means to generate param_table_gen.c from the docs

This is triggered by the new argument PARAMTABLE.

Signed-off-by: Michael Adam <obnox@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
8 years agoparam: move the actual table out into param_table_static.c
Michael Adam [Thu, 23 Jul 2015 16:37:00 +0000 (18:37 +0200)]
param: move the actual table out into param_table_static.c

Signed-off-by: Michael Adam <obnox@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
8 years agodocs:smbdotconf: change type to ustring where needed.
Michael Adam [Thu, 23 Jul 2015 15:42:22 +0000 (17:42 +0200)]
docs:smbdotconf: change type to ustring where needed.

Signed-off-by: Michael Adam <obnox@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
8 years agodocs:smbdotconf: change type to octal where needed
Michael Adam [Thu, 23 Jul 2015 15:41:28 +0000 (17:41 +0200)]
docs:smbdotconf: change type to octal where needed

Signed-off-by: Michael Adam <obnox@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
8 years agodocs:smbdotconf: change type to bytes where needed
Michael Adam [Thu, 23 Jul 2015 15:34:28 +0000 (17:34 +0200)]
docs:smbdotconf: change type to bytes where needed

Signed-off-by: Michael Adam <obnox@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
8 years agodocs:smbdotconf: change type to cmdlist where needed.
Michael Adam [Thu, 23 Jul 2015 15:19:19 +0000 (17:19 +0200)]
docs:smbdotconf: change type to cmdlist where needed.

Signed-off-by: Michael Adam <obnox@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
8 years agotests:docs: teach the test the types cmdlist, bytes, octal, and ustring
Michael Adam [Thu, 23 Jul 2015 23:28:56 +0000 (01:28 +0200)]
tests:docs: teach the test the types cmdlist, bytes, octal, and ustring

Signed-off-by: Michael Adam <obnox@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
8 years agogenerate_param: teach missing types cmdlist, bytes, octal, ustring.
Michael Adam [Thu, 23 Jul 2015 16:01:40 +0000 (18:01 +0200)]
generate_param: teach missing types cmdlist, bytes, octal, ustring.

Signed-off-by: Michael Adam <obnox@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
8 years agogenerate_param: more uniform formatting of various type dicts
Michael Adam [Thu, 23 Jul 2015 16:00:41 +0000 (18:00 +0200)]
generate_param: more uniform formatting of various type dicts

This allows for easier extension later on (patch context-wise).

Signed-off-by: Michael Adam <obnox@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
8 years agodocs:smbdotconf: add deprecated flags where missing.
Michael Adam [Thu, 23 Jul 2015 14:24:34 +0000 (16:24 +0200)]
docs:smbdotconf: add deprecated flags where missing.

Signed-off-by: Michael Adam <obnox@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
8 years agodocs:smbdotconf: make preload a synonym of 'auto services'
Michael Adam [Thu, 23 Jul 2015 12:39:27 +0000 (14:39 +0200)]
docs:smbdotconf: make preload a synonym of 'auto services'

It is this way around in internal data structures.

Signed-off-by: Michael Adam <obnox@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
8 years agodocs:smbdotconf: 'write ok' is a synonym of 'writeable' not of 'read only'
Michael Adam [Thu, 23 Jul 2015 18:45:07 +0000 (20:45 +0200)]
docs:smbdotconf: 'write ok' is a synonym of 'writeable' not of 'read only'

(It is a reverse synonym of 'read only'...)

Signed-off-by: Michael Adam <obnox@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
8 years agoparam: don't list '-valid' and 'copy' as synonyms - they aren't
Michael Adam [Thu, 23 Jul 2015 14:51:59 +0000 (16:51 +0200)]
param: don't list '-valid' and 'copy' as synonyms - they aren't

Signed-off-by: Michael Adam <obnox@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
8 years agoparam: make 'timestamp logs' the default writing of 'debug timestamp'
Michael Adam [Thu, 23 Jul 2015 14:42:48 +0000 (16:42 +0200)]
param: make 'timestamp logs' the default writing of 'debug timestamp'

This is how it used internally.

Signed-off-by: Michael Adam <obnox@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
8 years agoparam: add SYNONYM flag where missing
Michael Adam [Thu, 23 Jul 2015 11:59:26 +0000 (13:59 +0200)]
param: add SYNONYM flag where missing

thereby remove DEPRECATED flags: synonyms currently
only carry the syn flag. Other flags sit on the primary
entry.

Signed-off-by: Michael Adam <obnox@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
8 years agoparam: move dnsdomain from generate_param to EXTRA_GLOBALS
Michael Adam [Wed, 22 Jul 2015 17:47:22 +0000 (19:47 +0200)]
param: move dnsdomain from generate_param to EXTRA_GLOBALS

This is alongside realm_original which is of the same kind.

Signed-off-by: Michael Adam <obnox@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
8 years agogenerate_param: generate struct entries if we don't generate access functions.
Michael Adam [Wed, 22 Jul 2015 17:14:26 +0000 (19:14 +0200)]
generate_param: generate struct entries if we don't generate access functions.

This shrinks LOADPARM_EXTRA_GLOBALS/LOCALS.

Signed-off-by: Michael Adam <obnox@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
8 years agogenerate_param: make it possible to handle generated and synonym flags in iteration
Michael Adam [Tue, 28 Apr 2015 14:47:39 +0000 (16:47 +0200)]
generate_param: make it possible to handle generated and synonym flags in iteration

Signed-off-by: Michael Adam <obnox@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
8 years agodocs:smbdotconf: add 'function' argument to writeable
Michael Adam [Wed, 22 Jul 2015 17:29:56 +0000 (19:29 +0200)]
docs:smbdotconf: add 'function' argument to writeable

This is to specify the storage place for this reverse boolean.

Signed-off-by: Michael Adam <obnox@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
8 years agodocs:smbdotconf: add 'function' parameter to enablespoolss
Michael Adam [Wed, 22 Jul 2015 17:29:16 +0000 (19:29 +0200)]
docs:smbdotconf: add 'function' parameter to enablespoolss

this is to specify the storage place for this reverse boolean.

Signed-off-by: Michael Adam <obnox@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
8 years agodocs:smbdotconf: add 'function' parameter to valid
Michael Adam [Wed, 22 Jul 2015 17:26:46 +0000 (19:26 +0200)]
docs:smbdotconf: add 'function' parameter to valid

This is to differentiate the variable/function name from
the parameter name, which is the non-standard "-valid".

Signed-off-by: Michael Adam <obnox@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
8 years agoparam: rename szIdmapGID -> idmap_gid
Michael Adam [Wed, 22 Jul 2015 17:13:55 +0000 (19:13 +0200)]
param: rename szIdmapGID -> idmap_gid

Signed-off-by: Michael Adam <obnox@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
8 years agoparam: rename szIdmapUID -> idmap_uid
Michael Adam [Wed, 22 Jul 2015 17:12:53 +0000 (19:12 +0200)]
param: rename szIdmapUID -> idmap_uid

Signed-off-by: Michael Adam <obnox@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
8 years agoparam: rename szIdmapBackend -> idmap_backend
Michael Adam [Wed, 22 Jul 2015 17:11:12 +0000 (19:11 +0200)]
param: rename szIdmapBackend -> idmap_backend

Signed-off-by: Michael Adam <obnox@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
8 years agoparam: rename szInclude -> include
Michael Adam [Wed, 22 Jul 2015 17:09:35 +0000 (19:09 +0200)]
param: rename szInclude -> include

Signed-off-by: Michael Adam <obnox@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
8 years agoparam: rename szCopy -> copy
Michael Adam [Wed, 22 Jul 2015 17:08:15 +0000 (19:08 +0200)]
param: rename szCopy -> copy

Signed-off-by: Michael Adam <obnox@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
8 years agoparam: rename bAvailable -> available
Michael Adam [Wed, 22 Jul 2015 17:06:39 +0000 (19:06 +0200)]
param: rename bAvailable -> available

Signed-off-by: Michael Adam <obnox@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
8 years agoparam: make 'realm' use the standard 'realm' variable.
Michael Adam [Tue, 12 May 2015 11:41:44 +0000 (13:41 +0200)]
param: make 'realm' use the standard 'realm' variable.

This way, the generated lp_realm() function matches the param_table.
realm_original is only treated in the special handler now.

Signed-off-by: Michael Adam <obnox@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
8 years agoparam: turn 'cups encrypt' into a generated function
Michael Adam [Wed, 22 Jul 2015 14:22:40 +0000 (16:22 +0200)]
param: turn 'cups encrypt' into a generated function

Move the special stuff of the hand-written lp_cups_encrypt()
function into a handler that is called once at load time.

Signed-off-by: Michael Adam <obnox@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
8 years agoparam: rename CupsEncrypt -> cups_encrypt
Michael Adam [Wed, 22 Jul 2015 14:21:35 +0000 (16:21 +0200)]
param: rename CupsEncrypt -> cups_encrypt

Signed-off-by: Michael Adam <obnox@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
8 years agoparam: make 'winbind max domain connections' a generated function.
Michael Adam [Tue, 21 Jul 2015 21:49:45 +0000 (23:49 +0200)]
param: make 'winbind max domain connections' a generated function.

Signed-off-by: Michael Adam <obnox@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
8 years agoparam: rename winbindMaxDomainConnections -> _winbind_max_domain_connections
Michael Adam [Tue, 21 Jul 2015 21:42:09 +0000 (23:42 +0200)]
param: rename winbindMaxDomainConnections -> _winbind_max_domain_connections

Signed-off-by: Michael Adam <obnox@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
8 years agoparam: turn 'wide links' into a generated funcion
Michael Adam [Tue, 21 Jul 2015 13:28:33 +0000 (15:28 +0200)]
param: turn 'wide links' into a generated funcion

Signed-off-by: Michael Adam <obnox@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
8 years agoparam: rename bWidelinks -> wide_links
Michael Adam [Tue, 21 Jul 2015 13:22:30 +0000 (15:22 +0200)]
param: rename bWidelinks -> wide_links

Signed-off-by: Michael Adam <obnox@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
8 years agoparam: turn 'smb2 max credits' into generated option
Michael Adam [Tue, 21 Jul 2015 13:18:01 +0000 (15:18 +0200)]
param: turn 'smb2 max credits' into generated option

This is achieved by moving the special treatment from
the lp_smb2_max_credits() function in the the special
handler that is called only once upon lp_load().

Signed-off-by: Michael Adam <obnox@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
8 years agoparam: treat negative values of 'smb2 max credits' as default.
Michael Adam [Tue, 21 Jul 2015 12:49:16 +0000 (14:49 +0200)]
param: treat negative values of 'smb2 max credits' as default.

Signed-off-by: Michael Adam <obnox@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
8 years agoparam: turn 'printcap name' into a generated function
Michael Adam [Tue, 21 Jul 2015 12:34:11 +0000 (14:34 +0200)]
param: turn 'printcap name' into a generated function

Signed-off-by: Michael Adam <obnox@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
8 years agoparam: rename szPrintcapName -> printcap_name
Michael Adam [Tue, 21 Jul 2015 12:31:43 +0000 (14:31 +0200)]
param: rename szPrintcapName -> printcap_name

Signed-off-by: Michael Adam <obnox@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
8 years agoparam: turn 'min receivefile size' into a generated function
Michael Adam [Tue, 21 Jul 2015 12:23:47 +0000 (14:23 +0200)]
param: turn 'min receivefile size' into a generated function

Signed-off-by: Michael Adam <obnox@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
8 years agoparam: rename iminreceivefile -> min_receivefile_size
Michael Adam [Tue, 21 Jul 2015 12:21:26 +0000 (14:21 +0200)]
param: rename iminreceivefile -> min_receivefile_size

Signed-off-by: Michael Adam <obnox@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
8 years agoparam: turn 'preferred master' into a generated function
Michael Adam [Tue, 21 Jul 2015 12:09:35 +0000 (14:09 +0200)]
param: turn 'preferred master' into a generated function

Signed-off-by: Michael Adam <obnox@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
8 years agoparam: rename iPreferredMaster -> _preferred_master
Michael Adam [Tue, 21 Jul 2015 12:07:25 +0000 (14:07 +0200)]
param: rename iPreferredMaster -> _preferred_master

Signed-off-by: Michael Adam <obnox@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
8 years agoparam: use lp[cfg]_max_print_jobs() in lp[cfg]_maxprintjobs()
Michael Adam [Tue, 21 Jul 2015 10:29:54 +0000 (12:29 +0200)]
param: use lp[cfg]_max_print_jobs() in lp[cfg]_maxprintjobs()

Signed-off-by: Michael Adam <obnox@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
8 years agoparam: generate lp[cfg]_max_print_jobs()
Michael Adam [Tue, 21 Jul 2015 10:22:02 +0000 (12:22 +0200)]
param: generate lp[cfg]_max_print_jobs()

Signed-off-by: Michael Adam <obnox@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
8 years agoparam: rename variable of 'max print jobs' to default.
Michael Adam [Tue, 21 Jul 2015 10:00:18 +0000 (12:00 +0200)]
param: rename variable of 'max print jobs' to default.

Signed-off-by: Michael Adam <obnox@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
8 years agoparam: turn ldap idmap suffix into a generated function
Michael Adam [Mon, 15 Jun 2015 22:15:23 +0000 (00:15 +0200)]
param: turn ldap idmap suffix into a generated function

Signed-off-by: Michael Adam <obnox@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
8 years agoparam: rename szLdapMachineSuffix -> _ldap_machine_suffix
Michael Adam [Mon, 15 Jun 2015 22:12:51 +0000 (00:12 +0200)]
param: rename szLdapMachineSuffix -> _ldap_machine_suffix

Signed-off-by: Michael Adam <obnox@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
8 years agoparam: turn ldap idmap suffix into a generated function
Michael Adam [Mon, 15 Jun 2015 22:06:59 +0000 (00:06 +0200)]
param: turn ldap idmap suffix into a generated function

Signed-off-by: Michael Adam <obnox@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
8 years agoparam: rename szLdapIdmapSuffix -> _ldap_sz_idmap_suffix
Michael Adam [Mon, 15 Jun 2015 22:04:53 +0000 (00:04 +0200)]
param: rename szLdapIdmapSuffix -> _ldap_sz_idmap_suffix

Signed-off-by: Michael Adam <obnox@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
8 years agoparam: turn ldap user suffix into a generated function
Michael Adam [Mon, 15 Jun 2015 22:00:44 +0000 (00:00 +0200)]
param: turn ldap user suffix into a generated function

Signed-off-by: Michael Adam <obnox@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
8 years agoparam: rename szLdapUserSuffix -> _ldap_user_suffix
Michael Adam [Mon, 15 Jun 2015 21:58:35 +0000 (23:58 +0200)]
param: rename szLdapUserSuffix -> _ldap_user_suffix

Signed-off-by: Michael Adam <obnox@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
8 years agoparam: turn ldap group suffix into a generated function
Michael Adam [Mon, 15 Jun 2015 21:47:37 +0000 (23:47 +0200)]
param: turn ldap group suffix into a generated function

Signed-off-by: Michael Adam <obnox@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
8 years agoparam: rename szLdapGroupSuffix -> _ldap_group_suffix
Michael Adam [Mon, 15 Jun 2015 21:45:45 +0000 (23:45 +0200)]
param: rename szLdapGroupSuffix -> _ldap_group_suffix

Signed-off-by: Michael Adam <obnox@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
8 years agodocs:smbdotconf: add enumlist property to parameters where missing
Michael Adam [Tue, 28 Apr 2015 09:46:21 +0000 (11:46 +0200)]
docs:smbdotconf: add enumlist property to parameters where missing

Signed-off-by: Michael Adam <obnox@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
8 years agodocs:smbdotconf: add param flag 'enumlist' to the DTD
Michael Adam [Tue, 21 Jul 2015 07:43:23 +0000 (09:43 +0200)]
docs:smbdotconf: add param flag 'enumlist' to the DTD

Signed-off-by: Michael Adam <obnox@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
8 years agodocs:smbdotconf: add handler info to smbdotconf docs where missing
Michael Adam [Tue, 12 May 2015 08:07:10 +0000 (10:07 +0200)]
docs:smbdotconf: add handler info to smbdotconf docs where missing

Signed-off-by: Michael Adam <obnox@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
8 years agodocs:smbdotconf: add param flags 'handler' and 'deprecated' to the DTD
Michael Adam [Tue, 12 May 2015 10:24:46 +0000 (12:24 +0200)]
docs:smbdotconf: add param flags 'handler' and 'deprecated' to the DTD

These are already used in the docs.

Signed-off-by: Michael Adam <obnox@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
8 years agodocs:smbdotconf: add param flag 'synonym' to the DTD
Michael Adam [Tue, 28 Apr 2015 23:33:03 +0000 (01:33 +0200)]
docs:smbdotconf: add param flag 'synonym' to the DTD

It is already used in the param_table.

Signed-off-by: Michael Adam <obnox@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
8 years agodocs:smbdotconf: fix type to bool-rev for reverse synonyms.
Michael Adam [Wed, 20 May 2015 08:44:17 +0000 (10:44 +0200)]
docs:smbdotconf: fix type to bool-rev for reverse synonyms.

Signed-off-by: Michael Adam <obnox@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>