metze/test/samba.git
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>
8 years agotests: teach the docs test about boolean-rev
Michael Adam [Wed, 22 Jul 2015 08:31:46 +0000 (10:31 +0200)]
tests: teach the docs test about boolean-rev

Signed-off-by: Michael Adam <obnox@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
8 years agodocs:smbdotconf: fix context of 'include' in doc
Michael Adam [Thu, 14 May 2015 14:31:52 +0000 (16:31 +0200)]
docs:smbdotconf: fix context of 'include' in doc

Signed-off-by: Michael Adam <obnox@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
8 years agodocs:smbdotconf: fix type of "preferred master" parameter.
Michael Adam [Wed, 13 May 2015 09:49:39 +0000 (11:49 +0200)]
docs:smbdotconf: fix type of "preferred master" parameter.

Signed-off-by: Michael Adam <obnox@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
8 years agodocs:smbdotconf: make formatting of headers uniform.
Michael Adam [Thu, 30 Apr 2015 21:32:45 +0000 (23:32 +0200)]
docs:smbdotconf: make formatting of headers uniform.

Signed-off-by: Michael Adam <obnox@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
8 years agos3:lib: remove unused dummyparam.c
Michael Adam [Tue, 21 Jul 2015 07:10:34 +0000 (09:10 +0200)]
s3:lib: remove unused dummyparam.c

Signed-off-by: Michael Adam <obnox@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
8 years agoparam: accompany FN_LOCAL_PARM_CHAR with FN_LOCAL_CHAR
Michael Adam [Wed, 8 Jul 2015 16:23:28 +0000 (18:23 +0200)]
param: accompany FN_LOCAL_PARM_CHAR with FN_LOCAL_CHAR

just like with the other FN_LOCAL_PARM macros.
FN_LOCAL_CHAR is the main definition.

This is also in preparation of a possible future
removal of the _PARM variants (when snum is no
longer used...).

Signed-off-by: Michael Adam <obnox@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
8 years agoparam: make set_variable() static.
Michael Adam [Tue, 21 Jul 2015 06:23:21 +0000 (08:23 +0200)]
param: make set_variable() static.

Signed-off-by: Michael Adam <obnox@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
8 years agolib/dcom: use HRESULT in dcom_create_object.
Günther Deschner [Tue, 21 Jul 2015 22:17:51 +0000 (00:17 +0200)]
lib/dcom: use HRESULT in dcom_create_object.

Guenther

Signed-off-by: Günther Deschner <gd@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
8 years agos4-torture: fix ResolveOxid2 test, filling in missing ref,out pointers.
Günther Deschner [Tue, 21 Jul 2015 21:37:07 +0000 (23:37 +0200)]
s4-torture: fix ResolveOxid2 test, filling in missing ref,out pointers.

Guenther

Signed-off-by: Günther Deschner <gd@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
8 years agos4-torture: fix ResolveOxid test, filling in missing ref,out pointers.
Günther Deschner [Tue, 21 Jul 2015 21:36:26 +0000 (23:36 +0200)]
s4-torture: fix ResolveOxid test, filling in missing ref,out pointers.

Guenther

Signed-off-by: Günther Deschner <gd@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
8 years agoremact: use imp_levels enum in RemoteActivation IDL.
Günther Deschner [Tue, 21 Jul 2015 20:28:32 +0000 (22:28 +0200)]
remact: use imp_levels enum in RemoteActivation IDL.

Guenther

Signed-off-by: Günther Deschner <gd@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
8 years agoremact: use HRESULT in RemoteActivation IDL and tests.
Günther Deschner [Tue, 21 Jul 2015 20:23:22 +0000 (22:23 +0200)]
remact: use HRESULT in RemoteActivation IDL and tests.

Guenther

Signed-off-by: Günther Deschner <gd@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
8 years agolib/torture: add torture_assert_hresult_{equal,ok} macros.
Günther Deschner [Tue, 21 Jul 2015 20:21:46 +0000 (22:21 +0200)]
lib/torture: add torture_assert_hresult_{equal,ok} macros.

Guenther

Signed-off-by: Günther Deschner <gd@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
8 years agos4-torture: fix remact test from crashing.
Günther Deschner [Tue, 21 Jul 2015 19:32:53 +0000 (21:32 +0200)]
s4-torture: fix remact test from crashing.

RemoteActivation was missing all out,ref pointers.

Guenther

Signed-off-by: Günther Deschner <gd@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
8 years agos4-torture: fix test for RemoteActivation.
Günther Deschner [Tue, 21 Jul 2015 20:38:25 +0000 (22:38 +0200)]
s4-torture: fix test for RemoteActivation.

Guenther

Signed-off-by: Günther Deschner <gd@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
8 years agoremact: fix IDL for RemoteActivation.
Günther Deschner [Tue, 21 Jul 2015 20:37:34 +0000 (22:37 +0200)]
remact: fix IDL for RemoteActivation.

Guenther

Signed-off-by: Günther Deschner <gd@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
8 years agos4-torture: use torture_assert macros for RemoteActivation test.
Günther Deschner [Tue, 21 Jul 2015 18:35:14 +0000 (20:35 +0200)]
s4-torture: use torture_assert macros for RemoteActivation test.

Guenther

Signed-off-by: Günther Deschner <gd@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
8 years agooxidresolver: fix ServerAlive2 IDL and test.
Günther Deschner [Tue, 21 Jul 2015 18:23:11 +0000 (20:23 +0200)]
oxidresolver: fix ServerAlive2 IDL and test.

Guenther

Signed-off-by: Günther Deschner <gd@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
8 years agorot: fix indent in rot.idl
Günther Deschner [Tue, 21 Jul 2015 22:07:22 +0000 (00:07 +0200)]
rot: fix indent in rot.idl

Guenther

Signed-off-by: Günther Deschner <gd@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
8 years agorot: remove trailing whitespace from rot.idl
Günther Deschner [Tue, 21 Jul 2015 22:06:00 +0000 (00:06 +0200)]
rot: remove trailing whitespace from rot.idl

Guenther

Signed-off-by: Günther Deschner <gd@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
8 years agos4-torture: fix indent of remact test.
Günther Deschner [Tue, 21 Jul 2015 19:07:25 +0000 (21:07 +0200)]
s4-torture: fix indent of remact test.

Guenther

Signed-off-by: Günther Deschner <gd@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
8 years agoremact: fix indent of remact.idl
Günther Deschner [Tue, 21 Jul 2015 18:54:17 +0000 (20:54 +0200)]
remact: fix indent of remact.idl

Guenther

Signed-off-by: Günther Deschner <gd@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
8 years agooxidresolver: fix indent in oxidresolver.idl
Günther Deschner [Tue, 21 Jul 2015 18:53:24 +0000 (20:53 +0200)]
oxidresolver: fix indent in oxidresolver.idl

Guenther

Signed-off-by: Günther Deschner <gd@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
8 years agodcom: fix ident in dcom.idl.
Günther Deschner [Tue, 21 Jul 2015 18:49:22 +0000 (20:49 +0200)]
dcom: fix ident in dcom.idl.

Guenther

Signed-off-by: Günther Deschner <gd@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
8 years agooxidresolver: fix indent of ResolveOxid2 in IDL.
Günther Deschner [Tue, 21 Jul 2015 18:34:40 +0000 (20:34 +0200)]
oxidresolver: fix indent of ResolveOxid2 in IDL.

Guenther

Signed-off-by: Günther Deschner <gd@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
8 years agos4-torture: remove trailing whitespace from remact test.
Günther Deschner [Tue, 21 Jul 2015 18:41:34 +0000 (20:41 +0200)]
s4-torture: remove trailing whitespace from remact test.

Guenther

Signed-off-by: Günther Deschner <gd@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
8 years agos4-torture: remove trailing whitespace from oxidresolve test.
Günther Deschner [Tue, 21 Jul 2015 18:41:12 +0000 (20:41 +0200)]
s4-torture: remove trailing whitespace from oxidresolve test.

Guenther

Signed-off-by: Günther Deschner <gd@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
8 years agoremact: remove trailing whitespace from remact.idl
Günther Deschner [Tue, 21 Jul 2015 18:40:30 +0000 (20:40 +0200)]
remact: remove trailing whitespace from remact.idl

Guenther

Signed-off-by: Günther Deschner <gd@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
8 years agooxidresolver: remove trailing whitespace from oxidresolver.idl
Günther Deschner [Tue, 21 Jul 2015 18:40:07 +0000 (20:40 +0200)]
oxidresolver: remove trailing whitespace from oxidresolver.idl

Guenther

Signed-off-by: Günther Deschner <gd@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
8 years agoorpc: remove trailing whitespace from orpc.idl
Günther Deschner [Tue, 21 Jul 2015 18:39:40 +0000 (20:39 +0200)]
orpc: remove trailing whitespace from orpc.idl

Guenther

Signed-off-by: Günther Deschner <gd@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
8 years agodcom: remove trailing whitespace from dcom.idl
Günther Deschner [Tue, 21 Jul 2015 18:39:15 +0000 (20:39 +0200)]
dcom: remove trailing whitespace from dcom.idl

Guenther

Signed-off-by: Günther Deschner <gd@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
8 years agosource3 torture: don't segfault if filename query fails
Douglas Bagnall [Thu, 9 Jul 2015 02:17:50 +0000 (14:17 +1200)]
source3 torture: don't segfault if filename query fails

If the query return status is not OK, the query answer pointer could
be uninitialised.

Signed-off-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz>
Reviewed-by: Jeremy Allison <jra@samba.org>
Reviewed-by: Simo Sorce <idra@samba.org>
8 years agosmbXsrv_session:idl: remove the preauth and gensec members
Michael Adam [Wed, 29 Jul 2015 14:16:29 +0000 (16:16 +0200)]
smbXsrv_session:idl: remove the preauth and gensec members

They are now taken from the pending_auth member (smbXsrv_session_auth0).

Pair-Programmed-With: Stefan Metzmacher <metze@samba.org>
Signed-off-by: Michael Adam <obnox@samba.org>
Signed-off-by: Stefan Metzmacher <metze@samba.org>
Autobuild-User(master): Michael Adam <obnox@samba.org>
Autobuild-Date(master): Fri Jul 31 01:03:13 CEST 2015 on sn-devel-104

8 years agos3:sesssetup: use session->pending_auth in smb1 session setup
Michael Adam [Thu, 30 Jul 2015 11:23:45 +0000 (13:23 +0200)]
s3:sesssetup: use session->pending_auth in smb1 session setup

(instead of session->gensec)

Signed-off-by: Michael Adam <obnox@samba.org>
Reviewed-by: Stefan Metzmacher <metze@samba.org>
8 years agos3:smb2_sesssetup: use session->pending_auth
Stefan Metzmacher [Wed, 29 Jul 2015 14:48:55 +0000 (16:48 +0200)]
s3:smb2_sesssetup: use session->pending_auth

Pair-Programmed-With: Michael Adam <obnox@samba.org>
Signed-off-by: Stefan Metzmacher <metze@samba.org>
Signed-off-by: Michael Adam <obnox@samba.org>
8 years agosmbXsrv_session: add smbXsrv_session_create_auth()
Stefan Metzmacher [Wed, 29 Jul 2015 13:48:05 +0000 (15:48 +0200)]
smbXsrv_session: add smbXsrv_session_create_auth()

Pair-Programmed-With: Michael Adam <obnox@samba.org>
Signed-off-by: Stefan Metzmacher <metze@samba.org>
Signed-off-by: Michael Adam <obnox@samba.org>
8 years agosmbXsrv_session: add smbXsrv_session_find_auth()
Stefan Metzmacher [Wed, 29 Jul 2015 13:47:09 +0000 (15:47 +0200)]
smbXsrv_session: add smbXsrv_session_find_auth()

Pair-Programmed-With: Michael Adam <obnox@samba.org>
Signed-off-by: Stefan Metzmacher <metze@samba.org>
Signed-off-by: Michael Adam <obnox@samba.org>
8 years agosmbXsrv_session:idl: add smbXsrv_session_auth0
Michael Adam [Wed, 25 Jun 2014 11:30:59 +0000 (13:30 +0200)]
smbXsrv_session:idl: add smbXsrv_session_auth0

This contains various auth related items for a session,
in particular preauth. This is in preparation to take
the direct member preauth from smbXsrv_session and have
all session auth code operate on session->pending_auth
instead of session->preauth and friends.

Pair-Programmed-With: Stefan Metzmacher <metze@samba.org>
Signed-off-by: Michael Adam <obnox@samba.org>
Signed-off-by: Stefan Metzmacher <metze@samba.org>
8 years agolib/param: move function typedef to after forward declaration of struct loadparm_context
Brad Hards [Thu, 30 Jul 2015 01:34:33 +0000 (11:34 +1000)]
lib/param: move function typedef to after forward declaration of struct loadparm_context

Avoids a warning about the structure being declared inside the parameter list.

Signed-off-by: Brad Hards <bradh@frogmouth.net>
Reviewed-by: Michael Adam <obnox@samba.org>
Reviewed-by: Stefan Metzmacher <metze@samba.org>
Autobuild-User(master): Michael Adam <obnox@samba.org>
Autobuild-Date(master): Thu Jul 30 19:25:12 CEST 2015 on sn-devel-104

8 years agos3:smb2_sesssetup: remove now unneeded declaration of smb2srv_session_lookup_raw
Michael Adam [Wed, 29 Jul 2015 16:23:31 +0000 (18:23 +0200)]
s3:smb2_sesssetup: remove now unneeded declaration of smb2srv_session_lookup_raw

Pair-Programmed-With: Stefan Metzmacher <metze@samba.org>
Signed-off-by: Michael Adam <obnox@samba.org>
Signed-off-by: Stefan Metzmacher <metze@samba.org>
8 years agos4-kdc: Use sdb in db-glue and hdb-samba4
Günther Deschner [Thu, 8 May 2014 15:13:04 +0000 (17:13 +0200)]
s4-kdc: Use sdb in db-glue and hdb-samba4

Guenther

Pair-Programmed-With: Andreas Schneider <asn@samba.org>
Signed-off-by: Guenther Deschner <gd@samba.org>
Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Alexander Bokovoy <ab@samba.org>
Autobuild-User(master): Andreas Schneider <asn@cryptomilk.org>
Autobuild-Date(master): Thu Jul 30 13:29:27 CEST 2015 on sn-devel-104

8 years agos4-kdc: Introduce a simple sdb_hdb shim layer
Günther Deschner [Thu, 8 May 2014 15:09:08 +0000 (17:09 +0200)]
s4-kdc: Introduce a simple sdb_hdb shim layer

Guenther

Pair-Programmed-With: Andreas Schneider <asn@samba.org>
Signed-off-by: Guenther Deschner <gd@samba.org>
Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Alexander Bokovoy <ab@samba.org>
8 years agos4-kdc: Introduce sdb a KDC backend abstraction
Günther Deschner [Wed, 7 May 2014 14:52:42 +0000 (16:52 +0200)]
s4-kdc: Introduce sdb a KDC backend abstraction

Guenther

Pair-Programmed-With: Andreas Schneider <asn@samba.org>
Signed-off-by: Guenther Deschner <gd@samba.org>
Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Alexander Bokovoy <ab@samba.org>
8 years agos4-kdc: PAC_GLUE does not depend on hdb anymore.
Günther Deschner [Mon, 12 May 2014 08:40:24 +0000 (10:40 +0200)]
s4-kdc: PAC_GLUE does not depend on hdb anymore.

Guenther

Signed-off-by: Günther Deschner <gd@samba.org>
Reviewed-by: Alexander Bokovoy <ab@samba.org>