vlendec/samba-autobuild/.git
3 years agowerror: replace WERR_GENERAL_FAILURE with WERR_GEN_FAILURE in source3/rpc_client...
Günther Deschner [Thu, 3 Dec 2015 14:24:21 +0000 (15:24 +0100)]
werror: replace WERR_GENERAL_FAILURE with WERR_GEN_FAILURE in source3/rpc_client/init_spoolss.c

Guenther

Signed-off-by: Guenther Deschner <gd@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
3 years agowerror: replace WERR_GENERAL_FAILURE with WERR_GEN_FAILURE in source3/registry/reg_ap...
Günther Deschner [Thu, 3 Dec 2015 14:24:20 +0000 (15:24 +0100)]
werror: replace WERR_GENERAL_FAILURE with WERR_GEN_FAILURE in source3/registry/reg_api_regf.c

Guenther

Signed-off-by: Guenther Deschner <gd@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
3 years agowerror: replace WERR_GENERAL_FAILURE with WERR_GEN_FAILURE in source3/libsmb/libsmb_dir.c
Günther Deschner [Thu, 3 Dec 2015 14:24:20 +0000 (15:24 +0100)]
werror: replace WERR_GENERAL_FAILURE with WERR_GEN_FAILURE in source3/libsmb/libsmb_dir.c

Guenther

Signed-off-by: Guenther Deschner <gd@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
3 years agowerror: replace WERR_GENERAL_FAILURE with WERR_GEN_FAILURE in source3/libnet/libnet_j...
Günther Deschner [Thu, 3 Dec 2015 14:24:20 +0000 (15:24 +0100)]
werror: replace WERR_GENERAL_FAILURE with WERR_GEN_FAILURE in source3/libnet/libnet_join.c

Guenther

Signed-off-by: Guenther Deschner <gd@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
3 years agowerror: replace WERR_GENERAL_FAILURE with WERR_GEN_FAILURE in source3/libgpo/gpo_reg.c
Günther Deschner [Thu, 3 Dec 2015 14:24:20 +0000 (15:24 +0100)]
werror: replace WERR_GENERAL_FAILURE with WERR_GEN_FAILURE in source3/libgpo/gpo_reg.c

Guenther

Signed-off-by: Guenther Deschner <gd@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
3 years agowerror: replace WERR_GENERAL_FAILURE with WERR_GEN_FAILURE in source3/lib/netapi/
Günther Deschner [Thu, 3 Dec 2015 14:24:20 +0000 (15:24 +0100)]
werror: replace WERR_GENERAL_FAILURE with WERR_GEN_FAILURE in source3/lib/netapi/

Guenther

Signed-off-by: Guenther Deschner <gd@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
3 years agowerror: removed WERR_NOMEM
Günther Deschner [Thu, 3 Dec 2015 14:24:20 +0000 (15:24 +0100)]
werror: removed WERR_NOMEM

Guenther

Signed-off-by: Guenther Deschner <gd@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
3 years agowerror: replace WERR_NOMEM with WERR_NOT_ENOUGH_MEMORY in source4/torture/rpc/spoolss.c
Günther Deschner [Thu, 3 Dec 2015 14:24:20 +0000 (15:24 +0100)]
werror: replace WERR_NOMEM with WERR_NOT_ENOUGH_MEMORY in source4/torture/rpc/spoolss.c

Guenther

Signed-off-by: Guenther Deschner <gd@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
3 years agowerror: replace WERR_NOMEM with WERR_NOT_ENOUGH_MEMORY in source4/torture/drs/unit...
Günther Deschner [Thu, 3 Dec 2015 14:24:20 +0000 (15:24 +0100)]
werror: replace WERR_NOMEM with WERR_NOT_ENOUGH_MEMORY in source4/torture/drs/unit/prefixmap_tests.c

Guenther

Signed-off-by: Guenther Deschner <gd@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
3 years agowerror: replace WERR_NOMEM with WERR_NOT_ENOUGH_MEMORY in source4/rpc_server/
Günther Deschner [Thu, 3 Dec 2015 14:24:19 +0000 (15:24 +0100)]
werror: replace WERR_NOMEM with WERR_NOT_ENOUGH_MEMORY in source4/rpc_server/

Guenther

Signed-off-by: Guenther Deschner <gd@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
3 years agowerror: replace WERR_NOMEM with WERR_NOT_ENOUGH_MEMORY in source4/rpc_server/backupkey/
Günther Deschner [Thu, 3 Dec 2015 14:24:19 +0000 (15:24 +0100)]
werror: replace WERR_NOMEM with WERR_NOT_ENOUGH_MEMORY in source4/rpc_server/backupkey/

Guenther

Signed-off-by: Guenther Deschner <gd@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
3 years agowerror: replace WERR_NOMEM with WERR_NOT_ENOUGH_MEMORY in source4/lib/registry/
Günther Deschner [Thu, 3 Dec 2015 14:24:19 +0000 (15:24 +0100)]
werror: replace WERR_NOMEM with WERR_NOT_ENOUGH_MEMORY in source4/lib/registry/

Guenther

Signed-off-by: Guenther Deschner <gd@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
3 years agowerror: replace WERR_NOMEM with WERR_NOT_ENOUGH_MEMORY in source4/dsdb/
Günther Deschner [Thu, 3 Dec 2015 14:24:18 +0000 (15:24 +0100)]
werror: replace WERR_NOMEM with WERR_NOT_ENOUGH_MEMORY in source4/dsdb/

Guenther

Signed-off-by: Guenther Deschner <gd@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
3 years agowerror: replace WERR_NOMEM with WERR_NOT_ENOUGH_MEMORY in source4/dns_server/
Günther Deschner [Thu, 3 Dec 2015 14:24:18 +0000 (15:24 +0100)]
werror: replace WERR_NOMEM with WERR_NOT_ENOUGH_MEMORY in source4/dns_server/

Guenther

Signed-off-by: Guenther Deschner <gd@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
3 years agowerror: replace WERR_NOMEM with WERR_NOT_ENOUGH_MEMORY in source3/winbindd/
Günther Deschner [Thu, 3 Dec 2015 14:24:18 +0000 (15:24 +0100)]
werror: replace WERR_NOMEM with WERR_NOT_ENOUGH_MEMORY in source3/winbindd/

Guenther

Signed-off-by: Guenther Deschner <gd@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
3 years agowerror: replace WERR_NOMEM with WERR_NOT_ENOUGH_MEMORY in source3/utils/
Günther Deschner [Thu, 3 Dec 2015 14:24:17 +0000 (15:24 +0100)]
werror: replace WERR_NOMEM with WERR_NOT_ENOUGH_MEMORY in source3/utils/

Guenther

Signed-off-by: Guenther Deschner <gd@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
3 years agowerror: replace WERR_NOMEM with WERR_NOT_ENOUGH_MEMORY in source3/utils/
Günther Deschner [Thu, 3 Dec 2015 14:24:17 +0000 (15:24 +0100)]
werror: replace WERR_NOMEM with WERR_NOT_ENOUGH_MEMORY in source3/utils/

Guenther

Signed-off-by: Guenther Deschner <gd@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
3 years agowerror: replace WERR_NOMEM with WERR_NOT_ENOUGH_MEMORY in source3/smbd/lanman.c
Günther Deschner [Thu, 3 Dec 2015 14:24:17 +0000 (15:24 +0100)]
werror: replace WERR_NOMEM with WERR_NOT_ENOUGH_MEMORY in source3/smbd/lanman.c

Guenther

Signed-off-by: Guenther Deschner <gd@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
3 years agowerror: replace WERR_NOMEM with WERR_NOT_ENOUGH_MEMORY in source3/services/
Günther Deschner [Thu, 3 Dec 2015 14:24:16 +0000 (15:24 +0100)]
werror: replace WERR_NOMEM with WERR_NOT_ENOUGH_MEMORY in source3/services/

Guenther

Signed-off-by: Guenther Deschner <gd@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
3 years agowerror: replace WERR_NOMEM with WERR_NOT_ENOUGH_MEMORY in source3/rpcclient/
Günther Deschner [Thu, 3 Dec 2015 14:24:16 +0000 (15:24 +0100)]
werror: replace WERR_NOMEM with WERR_NOT_ENOUGH_MEMORY in source3/rpcclient/

Guenther

Signed-off-by: Guenther Deschner <gd@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
3 years agowerror: replace WERR_NOMEM with WERR_NOT_ENOUGH_MEMORY in source3/rpc_server/
Günther Deschner [Thu, 3 Dec 2015 14:24:15 +0000 (15:24 +0100)]
werror: replace WERR_NOMEM with WERR_NOT_ENOUGH_MEMORY in source3/rpc_server/

Guenther

Signed-off-by: Guenther Deschner <gd@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
3 years agowerror: replace WERR_NOMEM with WERR_NOT_ENOUGH_MEMORY in source3/rpc_client/
Günther Deschner [Thu, 3 Dec 2015 14:24:15 +0000 (15:24 +0100)]
werror: replace WERR_NOMEM with WERR_NOT_ENOUGH_MEMORY in source3/rpc_client/

Guenther

Signed-off-by: Guenther Deschner <gd@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
3 years agowerror: replace WERR_NOMEM with WERR_NOT_ENOUGH_MEMORY in source3/registry/
Günther Deschner [Thu, 3 Dec 2015 14:24:14 +0000 (15:24 +0100)]
werror: replace WERR_NOMEM with WERR_NOT_ENOUGH_MEMORY in source3/registry/

Guenther

Signed-off-by: Guenther Deschner <gd@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
3 years agowerror: replace WERR_NOMEM with WERR_NOT_ENOUGH_MEMORY in source3/printing/
Günther Deschner [Thu, 3 Dec 2015 14:24:14 +0000 (15:24 +0100)]
werror: replace WERR_NOMEM with WERR_NOT_ENOUGH_MEMORY in source3/printing/

Guenther

Signed-off-by: Guenther Deschner <gd@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
3 years agowerror: replace WERR_NOMEM with WERR_NOT_ENOUGH_MEMORY in source3/libnet/libnet_join.c
Günther Deschner [Thu, 3 Dec 2015 14:24:14 +0000 (15:24 +0100)]
werror: replace WERR_NOMEM with WERR_NOT_ENOUGH_MEMORY in source3/libnet/libnet_join.c

Guenther

Signed-off-by: Guenther Deschner <gd@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
3 years agowerror: replace WERR_NOMEM with WERR_NOT_ENOUGH_MEMORY in source3/libgpo/gpo_reg.c
Günther Deschner [Thu, 3 Dec 2015 14:24:14 +0000 (15:24 +0100)]
werror: replace WERR_NOMEM with WERR_NOT_ENOUGH_MEMORY in source3/libgpo/gpo_reg.c

Guenther

Signed-off-by: Guenther Deschner <gd@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
3 years agowerror: replace WERR_NOMEM with WERR_NOT_ENOUGH_MEMORY in source3/libads/ldap_printer.c
Günther Deschner [Thu, 3 Dec 2015 14:24:14 +0000 (15:24 +0100)]
werror: replace WERR_NOMEM with WERR_NOT_ENOUGH_MEMORY in source3/libads/ldap_printer.c

Guenther

Signed-off-by: Guenther Deschner <gd@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
3 years agowerror: replace WERR_NOMEM with WERR_NOT_ENOUGH_MEMORY in source3/lib/netapi/
Günther Deschner [Thu, 3 Dec 2015 14:24:14 +0000 (15:24 +0100)]
werror: replace WERR_NOMEM with WERR_NOT_ENOUGH_MEMORY in source3/lib/netapi/

Guenther

Signed-off-by: Guenther Deschner <gd@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
3 years agowerror: replace WERR_NOMEM with WERR_NOT_ENOUGH_MEMORY in libcli/drsuapi/repl_decrypt.c
Günther Deschner [Thu, 3 Dec 2015 14:24:14 +0000 (15:24 +0100)]
werror: replace WERR_NOMEM with WERR_NOT_ENOUGH_MEMORY in libcli/drsuapi/repl_decrypt.c

Guenther

Signed-off-by: Guenther Deschner <gd@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
3 years agowerror: replace WERR_NOMEM with WERR_NOT_ENOUGH_MEMORY in lib/util/tevent_werror.c
Günther Deschner [Thu, 3 Dec 2015 14:24:13 +0000 (15:24 +0100)]
werror: replace WERR_NOMEM with WERR_NOT_ENOUGH_MEMORY in lib/util/tevent_werror.c

Guenther

Signed-off-by: Guenther Deschner <gd@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
3 years agowerror: removed WERR_BADFID
Günther Deschner [Thu, 3 Dec 2015 14:24:13 +0000 (15:24 +0100)]
werror: removed WERR_BADFID

Guenther

Signed-off-by: Guenther Deschner <gd@samba.org>
3 years agowerror: replace WERR_BADFID with WERR_INVALID_HANDLE in source4/torture/rpc/spoolss.c
Günther Deschner [Thu, 3 Dec 2015 14:24:13 +0000 (15:24 +0100)]
werror: replace WERR_BADFID with WERR_INVALID_HANDLE in source4/torture/rpc/spoolss.c

Guenther

Signed-off-by: Guenther Deschner <gd@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
3 years agowerror: replace WERR_BADFID with WERR_INVALID_HANDLE in source3/rpc_server/spoolss/
Günther Deschner [Thu, 3 Dec 2015 14:24:13 +0000 (15:24 +0100)]
werror: replace WERR_BADFID with WERR_INVALID_HANDLE in source3/rpc_server/spoolss/

Guenther

Signed-off-by: Guenther Deschner <gd@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
3 years agowerror: removed WERR_BADFILE
Günther Deschner [Thu, 3 Dec 2015 14:24:13 +0000 (15:24 +0100)]
werror: removed WERR_BADFILE

Guenther

Signed-off-by: Guenther Deschner <gd@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
3 years agowerror: replace WERR_BADFILE with WERR_FILE_NOT_FOUND in source4/torture/rpc/
Günther Deschner [Thu, 3 Dec 2015 14:24:12 +0000 (15:24 +0100)]
werror: replace WERR_BADFILE with WERR_FILE_NOT_FOUND in source4/torture/rpc/

Guenther

Signed-off-by: Guenther Deschner <gd@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
3 years agowerror: replace WERR_BADFILE with WERR_FILE_NOT_FOUND in source4/torture/ndr/winreg.c
Günther Deschner [Thu, 3 Dec 2015 14:24:12 +0000 (15:24 +0100)]
werror: replace WERR_BADFILE with WERR_FILE_NOT_FOUND in source4/torture/ndr/winreg.c

Guenther

Signed-off-by: Guenther Deschner <gd@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
3 years agowerror: replace WERR_BADFILE with WERR_FILE_NOT_FOUND in source4/lib/registry/
Günther Deschner [Thu, 3 Dec 2015 14:24:12 +0000 (15:24 +0100)]
werror: replace WERR_BADFILE with WERR_FILE_NOT_FOUND in source4/lib/registry/

Guenther

Signed-off-by: Guenther Deschner <gd@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
3 years agowerror: replace WERR_BADFILE with WERR_FILE_NOT_FOUND in source3/utils/
Günther Deschner [Thu, 3 Dec 2015 14:24:12 +0000 (15:24 +0100)]
werror: replace WERR_BADFILE with WERR_FILE_NOT_FOUND in source3/utils/

Guenther

Signed-off-by: Guenther Deschner <gd@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
3 years agowerror: replace WERR_BADFILE with WERR_FILE_NOT_FOUND in source3/services/svc_winreg_...
Günther Deschner [Thu, 3 Dec 2015 14:24:11 +0000 (15:24 +0100)]
werror: replace WERR_BADFILE with WERR_FILE_NOT_FOUND in source3/services/svc_winreg_glue.c

Guenther

Signed-off-by: Guenther Deschner <gd@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
3 years agowerror: replace WERR_BADFILE with WERR_FILE_NOT_FOUND in source3/rpc_client/
Günther Deschner [Thu, 3 Dec 2015 14:24:11 +0000 (15:24 +0100)]
werror: replace WERR_BADFILE with WERR_FILE_NOT_FOUND in source3/rpc_client/

Guenther

Signed-off-by: Guenther Deschner <gd@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
3 years agowerror: replace WERR_BADFILE with WERR_FILE_NOT_FOUND in source3/registry/
Günther Deschner [Thu, 3 Dec 2015 14:24:11 +0000 (15:24 +0100)]
werror: replace WERR_BADFILE with WERR_FILE_NOT_FOUND in source3/registry/

Guenther

Signed-off-by: Guenther Deschner <gd@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
3 years agowerror: replace WERR_BADFILE with WERR_FILE_NOT_FOUND in source3/printing/
Günther Deschner [Thu, 3 Dec 2015 14:24:11 +0000 (15:24 +0100)]
werror: replace WERR_BADFILE with WERR_FILE_NOT_FOUND in source3/printing/

Guenther

Signed-off-by: Guenther Deschner <gd@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
3 years agowerror: replace WERR_BADFILE with WERR_FILE_NOT_FOUND in source3/libgpo/gpo_reg.c
Günther Deschner [Thu, 3 Dec 2015 14:24:11 +0000 (15:24 +0100)]
werror: replace WERR_BADFILE with WERR_FILE_NOT_FOUND in source3/libgpo/gpo_reg.c

Guenther

Signed-off-by: Guenther Deschner <gd@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
3 years agowerror: replace WERR_BADFILE with WERR_FILE_NOT_FOUND in source3/lib/smbconf/smbconf_...
Günther Deschner [Thu, 3 Dec 2015 14:24:11 +0000 (15:24 +0100)]
werror: replace WERR_BADFILE with WERR_FILE_NOT_FOUND in source3/lib/smbconf/smbconf_reg.c

Guenther

Signed-off-by: Guenther Deschner <gd@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
3 years agowerror: removed WERR_BADFUNC
Günther Deschner [Thu, 3 Dec 2015 14:24:10 +0000 (15:24 +0100)]
werror: removed WERR_BADFUNC

Guenther

Signed-off-by: Guenther Deschner <gd@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
3 years agowerror: replace WERR_BADFUNC with WERR_INVALID_FUNCTION in source4/lib/wmi/
Günther Deschner [Thu, 3 Dec 2015 14:24:10 +0000 (15:24 +0100)]
werror: replace WERR_BADFUNC with WERR_INVALID_FUNCTION in source4/lib/wmi/

Guenther

Signed-off-by: Guenther Deschner <gd@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
3 years agowerror: replace WERR_BADFUNC with WERR_INVALID_FUNCTION in source3/rpc_server/spoolss...
Günther Deschner [Thu, 3 Dec 2015 14:24:10 +0000 (15:24 +0100)]
werror: replace WERR_BADFUNC with WERR_INVALID_FUNCTION in source3/rpc_server/spoolss/srv_spoolss_nt.c

Guenther

Signed-off-by: Guenther Deschner <gd@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
3 years agowerror: use (generated) WERR_GEN_FAILURE as alias for WERR_FOOBAR
Günther Deschner [Thu, 3 Dec 2015 11:32:01 +0000 (12:32 +0100)]
werror: use (generated) WERR_GEN_FAILURE as alias for WERR_FOOBAR

Guenther

Signed-off-by: Guenther Deschner <gd@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
3 years agowerror: use WERR_NOT_ENOUGH_MEMORY in WERROR macros.
Günther Deschner [Thu, 3 Dec 2015 11:26:58 +0000 (12:26 +0100)]
werror: use WERR_NOT_ENOUGH_MEMORY in WERROR macros.

Guenther

Signed-off-by: Guenther Deschner <gd@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
3 years agowerror: add new DS error codes.
Günther Deschner [Fri, 13 Nov 2015 08:26:16 +0000 (09:26 +0100)]
werror: add new DS error codes.

Guenther

Signed-off-by: Günther Deschner <gd@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
3 years agos4-scripting: make w32err_code.py work with recent html table changes.
Günther Deschner [Thu, 12 Nov 2015 23:46:25 +0000 (00:46 +0100)]
s4-scripting: make w32err_code.py work with recent html table changes.

Guenther

Signed-off-by: Günther Deschner <gd@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
3 years agodsdb: Avoid ldb_dn_validate() call on trusted input when not required
Andrew Bartlett [Thu, 1 Sep 2016 02:54:25 +0000 (14:54 +1200)]
dsdb: Avoid ldb_dn_validate() call on trusted input when not required

This call is very costly, because of the time required
to strictly check the syntax of the extended DN components.

This allows a 20% decrease in time taken for some link-heavy tests.

Signed-off-by: Andrew Bartlett <abartlet@samba.org>
Reviewed-by: Garming Sam <garming@catalyst.net.nz>
Autobuild-User(master): Andrew Bartlett <abartlet@samba.org>
Autobuild-Date(master): Tue Sep 27 20:47:34 CEST 2016 on sn-devel-144

3 years agoselftest: Do not use a central credential cache
Andreas Schneider [Thu, 22 Sep 2016 16:46:28 +0000 (18:46 +0200)]
selftest: Do not use a central credential cache

We should use seperate caches and set the default_ccache_name
accordingly.

Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
3 years agoselftest: Fix variable name for krb5.conf
Andreas Schneider [Fri, 23 Sep 2016 04:14:45 +0000 (06:14 +0200)]
selftest: Fix variable name for krb5.conf

Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
3 years agos3: tidyup - move struct idle_event to util_event.h
Jeremy Allison [Mon, 26 Sep 2016 18:29:42 +0000 (11:29 -0700)]
s3: tidyup - move struct idle_event to util_event.h

Signed-off-by: Jeremy Allison <jra@samba.org>
Reviewed-by: Volker Lendecke <vl@samba.org>
Autobuild-User(master): Volker Lendecke <vl@samba.org>
Autobuild-Date(master): Tue Sep 27 07:55:02 CEST 2016 on sn-devel-144

3 years agos3/vfs/nfs4_acls: avoid a stat
Ralph Boehme [Sun, 11 Sep 2016 11:30:44 +0000 (13:30 +0200)]
s3/vfs/nfs4_acls: avoid a stat

Signed-off-by: Ralph Boehme <slow@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
Autobuild-User(master): Jeremy Allison <jra@samba.org>
Autobuild-Date(master): Tue Sep 27 04:03:03 CEST 2016 on sn-devel-144

3 years agos3-rpc_client: use spoolss_driver_version_to_qword in winreg_printer_ver_to_qword
Günther Deschner [Fri, 23 Sep 2016 15:08:02 +0000 (17:08 +0200)]
s3-rpc_client: use spoolss_driver_version_to_qword in winreg_printer_ver_to_qword

Guenter

Signed-off-by: Guenther Deschner <gd@samba.org>
Reviewed-by: Uri Simchoni <uri@samba.org>
Autobuild-User(master): Uri Simchoni <uri@samba.org>
Autobuild-Date(master): Tue Sep 27 00:09:18 CEST 2016 on sn-devel-144

3 years agos3-rpc_client: use spoolss_timestr_to_NTTIME in winreg_printer_date_to_NTTIME
Günther Deschner [Fri, 23 Sep 2016 15:07:23 +0000 (17:07 +0200)]
s3-rpc_client: use spoolss_timestr_to_NTTIME in winreg_printer_date_to_NTTIME

Guenther

Signed-off-by: Guenther Deschner <gd@samba.org>
Reviewed-by: Uri Simchoni <uri@samba.org>
3 years agos3-rpc_client: add spoolss_driver_version_to_qword()
Günther Deschner [Fri, 23 Sep 2016 15:11:27 +0000 (17:11 +0200)]
s3-rpc_client: add spoolss_driver_version_to_qword()

Guenther

Signed-off-by: Guenther Deschner <gd@samba.org>
Reviewed-by: Uri Simchoni <uri@samba.org>
3 years agos3-rpc_client: add spoolss_timestr_to_NTTIME()
Günther Deschner [Fri, 23 Sep 2016 15:10:22 +0000 (17:10 +0200)]
s3-rpc_client: add spoolss_timestr_to_NTTIME()

Guenther

Signed-off-by: Guenther Deschner <gd@samba.org>
Reviewed-by: Uri Simchoni <uri@samba.org>
3 years agolibrpc: fix some variable names in winspool protocol IDL
Günther Deschner [Thu, 22 Sep 2016 14:30:52 +0000 (16:30 +0200)]
librpc: fix some variable names in winspool protocol IDL

never undestimate the power of sed...

Guenther

Signed-off-by: Guenther Deschner <gd@samba.org>
Reviewed-by: Uri Simchoni <uri@samba.org>
3 years agohresult: re-generate hresult error code definitions from MS-ERREF.
Günther Deschner [Mon, 26 Sep 2016 16:32:54 +0000 (18:32 +0200)]
hresult: re-generate hresult error code definitions from MS-ERREF.

Guenther

Signed-off-by: Guenther Deschner <gd@samba.org>
Reviewed-by: Uri Simchoni <uri@samba.org>
3 years agohresult: add new HRESULT_FROM_WERROR macro
Günther Deschner [Sun, 25 Sep 2016 17:51:03 +0000 (19:51 +0200)]
hresult: add new HRESULT_FROM_WERROR macro

Guenther

Signed-off-by: Guenther Deschner <gd@samba.org>
Reviewed-by: Uri Simchoni <uri@samba.org>
3 years agos4-kdc: Remove unused etypes from sdb structure
Andreas Schneider [Sun, 25 Sep 2016 18:37:29 +0000 (20:37 +0200)]
s4-kdc: Remove unused etypes from sdb structure

Signed-off-by: Andreas Schneider <asn@samba.org>
eviewed-by: Guenther Deschner <gd@samba.org>

Autobuild-User(master): Andreas Schneider <asn@cryptomilk.org>
Autobuild-Date(master): Mon Sep 26 06:08:09 CEST 2016 on sn-devel-144

3 years agos4-sdb: Generate etypes list out of keys list
Andreas Schneider [Sun, 25 Sep 2016 18:32:49 +0000 (20:32 +0200)]
s4-sdb: Generate etypes list out of keys list

This etypes list is Heimdal specific. It doesn't make sense to allocate
and fill it in db-glue.

Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Guenther Deschner <gd@samba.org>
3 years agos4-kdc: Sort encrytion keys in descending order of strength
Andreas Schneider [Thu, 8 Sep 2016 08:50:58 +0000 (10:50 +0200)]
s4-kdc: Sort encrytion keys in descending order of strength

Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Guenther Deschner <gd@samba.org>
3 years agos4-registry: properly initialize registry key to be added via RPC
Chris Davis [Sat, 28 Jun 2014 00:25:24 +0000 (17:25 -0700)]
s4-registry: properly initialize registry key to be added via RPC

Signed-off-by: Chris Davis <cd.rattan@gmail.com>
Reviewed-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Michael Adam <obnox@samba.org>
3 years agos4-registry: implement set value and delete value for RPC
Chris Davis [Sat, 28 Jun 2014 02:30:06 +0000 (19:30 -0700)]
s4-registry: implement set value and delete value for RPC

Signed-off-by: Chris Davis <cd.rattan@gmail.com>
Reviewed-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Michael Adam <obnox@samba.org>
3 years agos3-modules: fix build warning in vfs shadow copy2 module
Günther Deschner [Sun, 25 Sep 2016 01:30:19 +0000 (03:30 +0200)]
s3-modules: fix build warning in vfs shadow copy2 module

Guenther

Signed-off-by: Guenther Deschner <gd@samba.org>
Reviewed-by: Volker Lendecke <vl@samba.org>
Autobuild-User(master): Günther Deschner <gd@samba.org>
Autobuild-Date(master): Sun Sep 25 16:42:30 CEST 2016 on sn-devel-144

3 years agos3-lib: Do not set an empty string in split_domain_user()
Andreas Schneider [Tue, 20 Sep 2016 17:51:15 +0000 (19:51 +0200)]
s3-lib: Do not set an empty string in split_domain_user()

The function should also return if it failed or not.

Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Stefan Metzmacher <metze@samba.org>
Autobuild-User(master): Stefan Metzmacher <metze@samba.org>
Autobuild-Date(master): Sun Sep 25 12:56:17 CEST 2016 on sn-devel-144

3 years agos3-lib: Parse WORKGROUP\username in set_cmdline_auth_info_username()
Andreas Schneider [Thu, 15 Sep 2016 10:08:24 +0000 (12:08 +0200)]
s3-lib: Parse WORKGROUP\username in set_cmdline_auth_info_username()

Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Stefan Metzmacher <metze@samba.org>
3 years agos3-lib: Do not create 'MACHINE$@' usernames
Andreas Schneider [Thu, 15 Sep 2016 10:54:42 +0000 (12:54 +0200)]
s3-lib: Do not create 'MACHINE$@' usernames

If there is no realm set we should not add it to the machine account.

Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Stefan Metzmacher <metze@samba.org>
3 years agonsswitch: Use own credential cache for wbinfo tests
Andreas Schneider [Mon, 19 Sep 2016 11:27:30 +0000 (13:27 +0200)]
nsswitch: Use own credential cache for wbinfo tests

If we do not set it will add the credentials to the system default
credential cache, which is e.g. FILE:/tmp/krb5cc_1000.

Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Stefan Metzmacher <metze@samba.org>
3 years agotestprogs: Use own credential cache for test_client_etypes.sh
Andreas Schneider [Tue, 20 Sep 2016 22:01:35 +0000 (00:01 +0200)]
testprogs: Use own credential cache for test_client_etypes.sh

Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Stefan Metzmacher <metze@samba.org>
3 years agotestprogs: Use better KRB5CCNAME in test_password_settings.sh
Andreas Schneider [Tue, 20 Sep 2016 07:46:34 +0000 (09:46 +0200)]
testprogs: Use better KRB5CCNAME in test_password_settings.sh

Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Stefan Metzmacher <metze@samba.org>
3 years agos3-script: Use unique krb5ccache name
Andreas Schneider [Mon, 19 Sep 2016 10:18:31 +0000 (12:18 +0200)]
s3-script: Use unique krb5ccache name

Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Stefan Metzmacher <metze@samba.org>
3 years agos3-selftest: Rename samba3.ntlm_auth.krb5 old ccache test
Andreas Schneider [Thu, 15 Sep 2016 13:47:25 +0000 (15:47 +0200)]
s3-selftest: Rename samba3.ntlm_auth.krb5 old ccache test

This makes it easier to run only one of them.

Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Stefan Metzmacher <metze@samba.org>
3 years agoglusterfs: Avoid tevent_internal.h
Volker Lendecke [Sat, 24 Sep 2016 17:45:13 +0000 (10:45 -0700)]
glusterfs: Avoid tevent_internal.h

Günther confirmed it still compiles :-)

Bug: https://bugzilla.samba.org/show_bug.cgi?id=12283
Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Günther Deschner <gd@samba.org>
Autobuild-User(master): Volker Lendecke <vl@samba.org>
Autobuild-Date(master): Sat Sep 24 23:41:56 CEST 2016 on sn-devel-144

3 years agos3: events. Move events.c to util_event.c
Jeremy Allison [Sat, 24 Sep 2016 03:00:33 +0000 (20:00 -0700)]
s3: events. Move events.c to util_event.c

Remove all tevent internal code.

Everything is now stock tevent.

Bug: https://bugzilla.samba.org/show_bug.cgi?id=12283
Signed-off-by: Jeremy Allison <jra@samba.org>
Reviewed-by: Volker Lendecke <vl@samba.org>
3 years agos3: server: s3_tevent_context_init() -> samba_tevent_context_init()
Jeremy Allison [Sat, 24 Sep 2016 02:11:17 +0000 (19:11 -0700)]
s3: server: s3_tevent_context_init() -> samba_tevent_context_init()

We can now remove source3/lib/events.c

Bug: https://bugzilla.samba.org/show_bug.cgi?id=12283
Signed-off-by: Jeremy Allison <jra@samba.org>
Reviewed-by: Volker Lendecke <vl@samba.org>
3 years agos3: winbind: Remove dump_event_list() calls.
Jeremy Allison [Sat, 24 Sep 2016 02:07:39 +0000 (19:07 -0700)]
s3: winbind: Remove dump_event_list() calls.

If needed we can add this into actual tevent.

Preparing to remove source3/lib/events.c

Bug: https://bugzilla.samba.org/show_bug.cgi?id=12283
Signed-off-by: Jeremy Allison <jra@samba.org>
Reviewed-by: Volker Lendecke <vl@samba.org>
3 years agos3: nmbd: Final changeover to stock tevent for nmbd.
Jeremy Allison [Fri, 23 Sep 2016 19:37:52 +0000 (12:37 -0700)]
s3: nmbd: Final changeover to stock tevent for nmbd.

Removes unused references to fds array used for (removed)
poll call. Renames create_listen_pollfds() to
create_listen_array().

Bug: https://bugzilla.samba.org/show_bug.cgi?id=12283
Signed-off-by: Jeremy Allison <jra@samba.org>
Reviewed-by: Volker Lendecke <vl@samba.org>
3 years agos3: nmbd: Change over to using tevent functions from direct poll.
Jeremy Allison [Fri, 23 Sep 2016 19:31:00 +0000 (12:31 -0700)]
s3: nmbd: Change over to using tevent functions from direct poll.

This will allow us to eventually remove source3/lib/events.c
dependency and make nmbd purely tevent based.

Bug: https://bugzilla.samba.org/show_bug.cgi?id=12283
Signed-off-by: Jeremy Allison <jra@samba.org>
Reviewed-by: Volker Lendecke <vl@samba.org>
3 years agos3: nmbd: Add a talloc_stackframe().
Jeremy Allison [Fri, 23 Sep 2016 19:22:53 +0000 (12:22 -0700)]
s3: nmbd: Add a talloc_stackframe().

We will use this to create real tevent timer and fd
events.

This will allow us to eventually remove source3/lib/events.c
dependency and make nmbd purely tevent based.

Bug: https://bugzilla.samba.org/show_bug.cgi?id=12283
Signed-off-by: Jeremy Allison <jra@samba.org>
Reviewed-by: Volker Lendecke <vl@samba.org>
3 years agos3: nmbd: Add (currently unused) timeout and fd handlers.
Jeremy Allison [Fri, 23 Sep 2016 19:18:37 +0000 (12:18 -0700)]
s3: nmbd: Add (currently unused) timeout and fd handlers.

This will allow us to eventually remove source3/lib/events.c
dependency and make nmbd purely tevent based.

Bug: https://bugzilla.samba.org/show_bug.cgi?id=12283
Signed-off-by: Jeremy Allison <jra@samba.org>
Reviewed-by: Volker Lendecke <vl@samba.org>
3 years agos3: nmbd: Now attrs array mirrors fd's array use it in preference.
Jeremy Allison [Fri, 23 Sep 2016 19:16:58 +0000 (12:16 -0700)]
s3: nmbd: Now attrs array mirrors fd's array use it in preference.

This will allow us to eventually remove source3/lib/events.c
dependency and make nmbd purely tevent based.

Bug: https://bugzilla.samba.org/show_bug.cgi?id=12283
Signed-off-by: Jeremy Allison <jra@samba.org>
Reviewed-by: Volker Lendecke <vl@samba.org>
3 years agos3: nmbd: Ensure attrs array mirrors fd's array for dns.
Jeremy Allison [Fri, 23 Sep 2016 19:12:43 +0000 (12:12 -0700)]
s3: nmbd: Ensure attrs array mirrors fd's array for dns.

This will allow us to eventually remove source3/lib/events.c
dependency and make nmbd purely tevent based.

Bug: https://bugzilla.samba.org/show_bug.cgi?id=12283
Signed-off-by: Jeremy Allison <jra@samba.org>
Reviewed-by: Volker Lendecke <vl@samba.org>
3 years agos3: nmbd: Add fd, triggered elements to struct socket_attributes.
Jeremy Allison [Fri, 23 Sep 2016 19:05:59 +0000 (12:05 -0700)]
s3: nmbd: Add fd, triggered elements to struct socket_attributes.

Zero the attrs array on allocation, and mirror the fd's.

This will allow us to eventually remove source3/lib/events.c
dependency and make nmbd purely tevent based.

Bug: https://bugzilla.samba.org/show_bug.cgi?id=12283
Signed-off-by: Jeremy Allison <jra@samba.org>
Reviewed-by: Volker Lendecke <vl@samba.org>
3 years agos3:nmbd: fix talloc_zero_array() check in nmbd_packets.c
Stefan Metzmacher [Wed, 27 Feb 2013 08:29:47 +0000 (09:29 +0100)]
s3:nmbd: fix talloc_zero_array() check in nmbd_packets.c

Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Volker Lendecke <vl@samba.org>
Autobuild-User(master): Volker Lendecke <vl@samba.org>
Autobuild-Date(master): Fri Sep 23 18:08:21 CEST 2016 on sn-devel-144

3 years agokcc: Don't check schedule if None
Garming Sam [Thu, 22 Sep 2016 03:28:57 +0000 (15:28 +1200)]
kcc: Don't check schedule if None

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

Signed-off-by: Garming Sam <garming@catalyst.net.nz>
Reviewed-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz>
Autobuild-User(master): Douglas Bagnall <dbagnall@samba.org>
Autobuild-Date(master): Fri Sep 23 06:52:28 CEST 2016 on sn-devel-144

3 years agotorture/ioctl: switch sparse src/dest dup ext behaviour
David Disseldorp [Thu, 22 Sep 2016 07:00:07 +0000 (00:00 -0700)]
torture/ioctl: switch sparse src/dest dup ext behaviour

Contrary to 2.3.8 FSCTL_DUPLICATE_EXTENTS_TO_FILE
STATUS_NOT_SUPPORTED: Target file is sparse, while source is a
non-sparse file.

...Windows Server 2016 RTM appears to respond the other way around.

Signed-off-by: David Disseldorp <ddiss@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
Autobuild-User(master): Jeremy Allison <jra@samba.org>
Autobuild-Date(master): Fri Sep 23 00:23:09 CEST 2016 on sn-devel-144

3 years agotorture/smb2/ioctl: don't check for untruncated dest failure
David Disseldorp [Wed, 21 Sep 2016 23:43:54 +0000 (16:43 -0700)]
torture/smb2/ioctl: don't check for untruncated dest failure

This should fail, but passes against WS2016 RTM...

2.3.8 FSCTL_DUPLICATE_EXTENTS_TO_FILE Reply:
The destination range extends beyond the target file's allocation size.
The caller might need to increase the target's allocation size before
using FSCTL_DUPLICATE_EXTENTS_TO_FILE.

Signed-off-by: David Disseldorp <ddiss@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
3 years agotorture/ioctl: add FSCTL_DUP_EXTENTS_TO_FILE tests
David Disseldorp [Fri, 30 Jan 2015 11:59:42 +0000 (12:59 +0100)]
torture/ioctl: add FSCTL_DUP_EXTENTS_TO_FILE tests

FSCTL_DUPLICATE_EXTENTS_TO_FILE is yet another copy offload mechanism,
this time only targeting COW FSes, where the request triggers a meta-
data only clone of the source range.

These tests attempt to cover most of the normal use cases, as well as
number of more exotic scenarios.

FILE_SUPPORTS_BLOCK_REFCOUNTING FS attribute presence is checked prior
to running the tests, so they will currently be skipped during Samba
self test (which lacks the flag).

Signed-off-by: David Disseldorp <ddiss@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
3 years agolibcli: add FILE_SUPPORTS_BLOCK_REFCOUNTING
David Disseldorp [Mon, 20 Jul 2015 15:56:34 +0000 (17:56 +0200)]
libcli: add FILE_SUPPORTS_BLOCK_REFCOUNTING

This FS attribute is used to advertise whether the server supports
FSCTL_DUP_EXTENTS_TO_FILE requests.

Signed-off-by: David Disseldorp <ddiss@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
3 years agoidl/ioctl: fix DUPLICATE_EXTENTS_TO_FILE fid field
David Disseldorp [Tue, 20 Sep 2016 16:10:37 +0000 (09:10 -0700)]
idl/ioctl: fix DUPLICATE_EXTENTS_TO_FILE fid field

This idl was based on an earlier draft documentation version. The
current documentation now shows:
"SourceFileID (16 bytes): An SMB2_FILEID structure, as specified in
[MS-SMB2] section 2.2.14.1, that is an identifier of the open to the
source file.".

Signed-off-by: David Disseldorp <ddiss@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
3 years agotorture/ioctl: make sparse file support check generic
David Disseldorp [Mon, 20 Jul 2015 15:52:44 +0000 (17:52 +0200)]
torture/ioctl: make sparse file support check generic

Rename test_ioctl_sparse_fs_supported() to test_ioctl_fs_supported() and
allow callers to query generic FileSystemAttributes flags via the new
fs_support_flags parameter.

Signed-off-by: David Disseldorp <ddiss@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
3 years agos4-torture: parse spoolss ndr packets using iremotewinspool calls
Günther Deschner [Tue, 30 Aug 2016 16:55:39 +0000 (18:55 +0200)]
s4-torture: parse spoolss ndr packets using iremotewinspool calls

Guenther

Signed-off-by: Guenther Deschner <gd@samba.org>
Reviewed-by: Stefan Metzmacher <metze@samba.org>
Autobuild-User(master): Günther Deschner <gd@samba.org>
Autobuild-Date(master): Thu Sep 22 16:16:30 CEST 2016 on sn-devel-144

3 years agos4-torture: add IRemoteWinspool ndr testsuite.
Günther Deschner [Thu, 16 May 2013 16:20:20 +0000 (18:20 +0200)]
s4-torture: add IRemoteWinspool ndr testsuite.

Guenther

Signed-off-by: Guenther Deschner <gd@samba.org>
Reviewed-by: Stefan Metzmacher <metze@samba.org>
3 years agoidl: compile iremotewinspool.idl.
Günther Deschner [Tue, 15 Jan 2013 14:20:32 +0000 (15:20 +0100)]
idl: compile iremotewinspool.idl.

Guenther

Signed-off-by: Guenther Deschner <gd@samba.org>
Reviewed-by: Stefan Metzmacher <metze@samba.org>
3 years agolibrpc: add IRemoteWinspool idl
Günther Deschner [Tue, 4 Aug 2009 16:52:52 +0000 (18:52 +0200)]
librpc: add IRemoteWinspool idl

Guenther

Signed-off-by: Guenther Deschner <gd@samba.org>
Reviewed-by: Stefan Metzmacher <metze@samba.org>