kai/samba.git
12 years agos3:idmap_tdb2: deprecate the idmap:script parameter and use "idmap config * : script...
Michael Adam [Tue, 7 Jun 2011 16:00:36 +0000 (18:00 +0200)]
s3:idmap_tdb2: deprecate the idmap:script parameter and use "idmap config * : script" instead

With this patch, "idmap config * : script" will override "idmap : script".
If "idmap : script" is present, a deprecation warning will be printed in any
case. If "idmap config * : script" is not set, then the value of "idmap :script"
will be used for backwards compatibility.

12 years agowaf: update to latest waf 1.5 version
Andrew Tridgell [Wed, 27 Jul 2011 00:07:50 +0000 (10:07 +1000)]
waf: update to latest waf 1.5 version

this includes an on_results fix from thomas that fixes a dependency
problem with our autoproto code

Note that this changes task signatures, so it will trigger a complete
rebuild

Autobuild-User: Andrew Tridgell <tridge@samba.org>
Autobuild-Date: Wed Jul 27 04:27:32 CEST 2011 on sn-devel-104

12 years agoFix bug #8324 - smbclient cannot list directories from a big-endian machine.
Jeremy Allison [Tue, 26 Jul 2011 22:15:26 +0000 (15:15 -0700)]
Fix bug #8324 - smbclient cannot list directories from a big-endian machine.

Two uses of the setup array are not being correctly byte-swapped to little
endian.

Autobuild-User: Jeremy Allison <jra@samba.org>
Autobuild-Date: Wed Jul 27 03:14:48 CEST 2011 on sn-devel-104

12 years agos3: cli_close_done->write_andx_done in test_async_echo
Volker Lendecke [Tue, 26 Jul 2011 19:07:08 +0000 (21:07 +0200)]
s3: cli_close_done->write_andx_done in test_async_echo

Autobuild-User: Volker Lendecke <vlendec@samba.org>
Autobuild-Date: Wed Jul 27 02:03:49 CEST 2011 on sn-devel-104

12 years agos3: Fix a debug message
Volker Lendecke [Tue, 26 Jul 2011 19:06:41 +0000 (21:06 +0200)]
s3: Fix a debug message

12 years agos3: Fix formatting
Volker Lendecke [Tue, 26 Jul 2011 18:49:32 +0000 (20:49 +0200)]
s3: Fix formatting

12 years agos3: Fix an error message
Volker Lendecke [Tue, 26 Jul 2011 18:48:59 +0000 (20:48 +0200)]
s3: Fix an error message

12 years agos3: Fix async smb handling
Volker Lendecke [Tue, 26 Jul 2011 17:44:51 +0000 (19:44 +0200)]
s3: Fix async smb handling

In cli_echo with more than one response we ended up with more than one read_smb
request. One from the call to cli_smb_req_set_pending called from
cli_smb_received. The other one from cli_smb_received itself. I don't really
see another way to deal with this than to hold the read_smb request in the
cli_state.

Metze, please check!

Volker

12 years agos4-dcerpc: Do not return linked attribute on deleted objects it makes W2k8R2 loops...
Matthieu Patou [Mon, 18 Jul 2011 20:59:20 +0000 (00:59 +0400)]
s4-dcerpc: Do not return linked attribute on deleted objects it makes W2k8R2 loops when joining s4 domains

Autobuild-User: Matthieu Patou <mat@samba.org>
Autobuild-Date: Wed Jul 27 00:46:56 CEST 2011 on sn-devel-104

12 years agos4-dsdb: Improve the calculation of system flags according to 3.1.1.5.2.4
Matthieu Patou [Mon, 25 Jul 2011 13:31:03 +0000 (17:31 +0400)]
s4-dsdb: Improve the calculation of system flags according to 3.1.1.5.2.4

12 years agos4-upgradeprovision: Detect recent provision in a more reliable way
Matthieu Patou [Wed, 20 Jul 2011 20:50:38 +0000 (00:50 +0400)]
s4-upgradeprovision: Detect recent provision in a more reliable way

12 years agos3 swat: Create random nonce in CGI mode
Kai Blin [Tue, 12 Jul 2011 06:08:24 +0000 (08:08 +0200)]
s3 swat: Create random nonce in CGI mode

In CGI mode, we don't get access to the user's password, which would
reduce the hash used so far to parameters an attacker can easily guess.
To work around this, read the nonce from secrets.tdb or generate one if
it's not there.
Also populate the C_user field so we can use that for token creation.

Signed-off-by: Kai Blin <kai@samba.org>
Autobuild-User: Jeremy Allison <jra@samba.org>
Autobuild-Date: Tue Jul 26 23:33:24 CEST 2011 on sn-devel-104

12 years agos3 swat: Add time component to XSRF token
Kai Blin [Sat, 9 Jul 2011 07:52:07 +0000 (09:52 +0200)]
s3 swat: Add time component to XSRF token

Signed-off-by: Kai Blin <kai@samba.org>
12 years agos3 swat: Add XSRF protection to printer page
Kai Blin [Fri, 8 Jul 2011 13:06:13 +0000 (15:06 +0200)]
s3 swat: Add XSRF protection to printer page

Signed-off-by: Kai Blin <kai@samba.org>
12 years agos3 swat: Add XSRF protection to password page
Kai Blin [Fri, 8 Jul 2011 13:05:38 +0000 (15:05 +0200)]
s3 swat: Add XSRF protection to password page

Signed-off-by: Kai Blin <kai@samba.org>
12 years agos3 swat: Add XSRF protection to shares page
Kai Blin [Fri, 8 Jul 2011 13:04:48 +0000 (15:04 +0200)]
s3 swat: Add XSRF protection to shares page

Signed-off-by: Kai Blin <kai@samba.org>
12 years agos3 swat: Add XSRF protection to globals page
Kai Blin [Fri, 8 Jul 2011 13:04:12 +0000 (15:04 +0200)]
s3 swat: Add XSRF protection to globals page

Signed-off-by: Kai Blin <kai@samba.org>
12 years agos3 swat: Add XSRF protection to wizard page
Kai Blin [Fri, 8 Jul 2011 13:03:44 +0000 (15:03 +0200)]
s3 swat: Add XSRF protection to wizard page

Signed-off-by: Kai Blin <kai@samba.org>
12 years agos3 swat: Add XSRF protection to wizard_params page
Kai Blin [Fri, 8 Jul 2011 13:03:15 +0000 (15:03 +0200)]
s3 swat: Add XSRF protection to wizard_params page

Signed-off-by: Kai Blin <kai@samba.org>
12 years agos3 swat: Add XSRF protection to viewconfig page
Kai Blin [Fri, 8 Jul 2011 13:02:53 +0000 (15:02 +0200)]
s3 swat: Add XSRF protection to viewconfig page

Signed-off-by: Kai Blin <kai@samba.org>
12 years agos3 swat: Add XSRF protection to status page
Kai Blin [Fri, 8 Jul 2011 10:58:53 +0000 (12:58 +0200)]
s3 swat: Add XSRF protection to status page

Signed-off-by: Kai Blin <kai@samba.org>
12 years agos3 swat: Add support for anti-XSRF token
Kai Blin [Tue, 26 Jul 2011 19:46:30 +0000 (12:46 -0700)]
s3 swat: Add support for anti-XSRF token

12 years agos3 swat: Allow getting the user's HTTP auth password
Kai Blin [Fri, 8 Jul 2011 10:56:21 +0000 (12:56 +0200)]
s3 swat: Allow getting the user's HTTP auth password

Signed-off-by: Kai Blin <kai@samba.org>
12 years agos3-swat: Fix typo.
Karolin Seeger [Sun, 24 Jul 2011 19:09:38 +0000 (21:09 +0200)]
s3-swat: Fix typo.

Thanks to Simo for reporting!

Karolin
(cherry picked from commit 9f73c1990a19daa899fa5345530a867e69a5be94)
(cherry picked from commit bcb052c29212954a3ed10c9f095c51e4e0a96af5)

12 years agos3 swat: Fix possible XSS attack (bug #8289)
Kai Blin [Thu, 7 Jul 2011 08:03:33 +0000 (10:03 +0200)]
s3 swat: Fix possible XSS attack (bug #8289)

Nobuhiro Tsuji of NTT DATA SECURITY CORPORATION reported a possible XSS attack
against SWAT, the Samba Web Administration Tool. The attack uses reflection to
insert arbitrary content into the "change password" page.

This patch fixes the reflection issue by not printing user-specified content on
the website anymore.

Signed-off-by: Kai Blin <kai@samba.org>
12 years agotalloc: Support PYTHON environment variable.
Jelmer Vernooij [Tue, 26 Jul 2011 19:07:20 +0000 (21:07 +0200)]
talloc: Support PYTHON environment variable.

Autobuild-User: Jelmer Vernooij <jelmer@samba.org>
Autobuild-Date: Tue Jul 26 22:21:30 CEST 2011 on sn-devel-104

12 years agos3-build: Only define ldb3 when not in standalone build.
Jelmer Vernooij [Tue, 26 Jul 2011 13:21:02 +0000 (15:21 +0200)]
s3-build: Only define ldb3 when not in standalone build.

This prevents errors about it by 'make SYMBOLCHECK=1' if there is a
system ldb present.

Autobuild-User: Jelmer Vernooij <jelmer@samba.org>
Autobuild-Date: Tue Jul 26 18:21:48 CEST 2011 on sn-devel-104

12 years agoshares: Remove dependencies on share modules.
Jelmer Vernooij [Tue, 26 Jul 2011 11:32:39 +0000 (13:32 +0200)]
shares: Remove dependencies on share modules.

The build system will already pull these in - if necessary.

12 years agos4:samba-tool: ldapcmp needs CredentialsOptionsDouble
Stefan Metzmacher [Tue, 26 Jul 2011 12:23:34 +0000 (14:23 +0200)]
s4:samba-tool: ldapcmp needs CredentialsOptionsDouble

metze

Autobuild-User: Stefan Metzmacher <metze@samba.org>
Autobuild-Date: Tue Jul 26 17:09:32 CEST 2011 on sn-devel-104

12 years agos3:lib change default share security access mask
Christian Ambach [Tue, 26 Jul 2011 11:43:14 +0000 (13:43 +0200)]
s3:lib change default share security access mask

when there is no share SD set, the default share SD that
is used e.g. for the output of sharesec -v defaults to a
value that is not equivalent to the desired FULL access.

This is a more or less a cosmetical follow-up for the patches
in Bug #8201 that makes them more consumeable by printing
FULL (that is what the user expects) instead of a bitmask
in hexadecimal form.

previous output:
REVISION:1
OWNER:(NULL SID)
GROUP:(NULL SID)
ACL:S-1-1-0:ALLOWED/0/0x101f01ff

with patch:
REVISION:1
OWNER:(NULL SID)
GROUP:(NULL SID)
ACL:S-1-1-0:ALLOWED/0/FULL

Autobuild-User: Christian Ambach <ambi@samba.org>
Autobuild-Date: Tue Jul 26 15:57:55 CEST 2011 on sn-devel-104

12 years agolibsamba-util: Build in libbitmap.
Jelmer Vernooij [Tue, 26 Jul 2011 11:29:00 +0000 (13:29 +0200)]
libsamba-util: Build in libbitmap.

Autobuild-User: Jelmer Vernooij <jelmer@samba.org>
Autobuild-Date: Tue Jul 26 14:45:27 CEST 2011 on sn-devel-104

12 years agopolicy: Rename to samba-policy to avoid name space clashes.
Jelmer Vernooij [Mon, 25 Jul 2011 20:32:12 +0000 (22:32 +0200)]
policy: Rename to samba-policy to avoid name space clashes.

12 years agocli_composite: Lowercase name.
Jelmer Vernooij [Mon, 25 Jul 2011 20:27:17 +0000 (22:27 +0200)]
cli_composite: Lowercase name.

12 years agocli_smb_common: Lowercase name.
Jelmer Vernooij [Mon, 25 Jul 2011 19:24:35 +0000 (21:24 +0200)]
cli_smb_common: Lowercase name.

12 years agocli_cldap: Lowercase name.
Jelmer Vernooij [Mon, 25 Jul 2011 19:24:20 +0000 (21:24 +0200)]
cli_cldap: Lowercase name.

12 years agocli_spools: Lowercase name.
Jelmer Vernooij [Mon, 25 Jul 2011 19:23:31 +0000 (21:23 +0200)]
cli_spools: Lowercase name.

12 years agos3: Fix MIT trusts
Volker Lendecke [Mon, 25 Jul 2011 10:38:27 +0000 (12:38 +0200)]
s3: Fix MIT trusts

Winbind can't really cope with trusts that don't have a SID associated. This
happens with external MIT trusts for example. This filters them out when
sending the trust list from child to parent.

Autobuild-User: Volker Lendecke <vlendec@samba.org>
Autobuild-Date: Tue Jul 26 11:39:53 CEST 2011 on sn-devel-104

12 years agos4:kdc: canonicalize the principal if HDB_F_FOR_TGS_REQ is given
Stefan Metzmacher [Mon, 25 Jul 2011 08:06:47 +0000 (10:06 +0200)]
s4:kdc: canonicalize the principal if HDB_F_FOR_TGS_REQ is given

Windows seems to always canonicalize the principal in TGS replies.

metze

Autobuild-User: Stefan Metzmacher <metze@samba.org>
Autobuild-Date: Tue Jul 26 03:25:06 CEST 2011 on sn-devel-104

12 years agos4:heimdal_build: hdb.asn1 needs --sequence=HDB-Ext-KeySet --sequence=Keys
Stefan Metzmacher [Mon, 25 Jul 2011 09:06:18 +0000 (11:06 +0200)]
s4:heimdal_build: hdb.asn1 needs --sequence=HDB-Ext-KeySet --sequence=Keys

metze

12 years agos4:heimdal: import lorikeet-heimdal-201107241840 (commit 0fdf11fa3cdb47df9f5393ebf36d...
Stefan Metzmacher [Mon, 25 Jul 2011 16:51:53 +0000 (18:51 +0200)]
s4:heimdal: import lorikeet-heimdal-201107241840 (commit 0fdf11fa3cdb47df9f5393ebf36d9f5742243036)

12 years agoFix typo Loggs -> Logs.
Jeremy Allison [Mon, 25 Jul 2011 20:37:32 +0000 (13:37 -0700)]
Fix typo Loggs -> Logs.

Autobuild-User: Jeremy Allison <jra@samba.org>
Autobuild-Date: Mon Jul 25 23:49:04 CEST 2011 on sn-devel-104

12 years agos3:docs: document the smbclient "tid" command
Michael Adam [Mon, 25 Jul 2011 09:46:33 +0000 (11:46 +0200)]
s3:docs: document the smbclient "tid" command

Autobuild-User: Michael Adam <obnox@samba.org>
Autobuild-Date: Mon Jul 25 13:14:57 CEST 2011 on sn-devel-104

12 years agos3:docs: document the smbclient "tdis" command
Michael Adam [Mon, 25 Jul 2011 09:44:39 +0000 (11:44 +0200)]
s3:docs: document the smbclient "tdis" command

12 years agos3:docs: document the smbclient "tcon" command
Michael Adam [Mon, 25 Jul 2011 09:42:00 +0000 (11:42 +0200)]
s3:docs: document the smbclient "tcon" command

12 years agos3:docs: document the smbclient "logoff" command
Michael Adam [Mon, 25 Jul 2011 09:39:04 +0000 (11:39 +0200)]
s3:docs: document the smbclient "logoff" command

12 years agolib/ccan: update to init-1192-gdd04041
Rusty Russell [Mon, 25 Jul 2011 08:48:27 +0000 (18:18 +0930)]
lib/ccan: update to init-1192-gdd04041

This imports licensing clarifications and updates as discussed on
samba-technical ("Subject: Re: ccan code breaks older build farm
systems").

In particular, the recent version have per-file license markers, and
some modules are relicenced more liberally: in particular Simo pointed
out that htable was GPL, and indirectly included by libtdb2, which
would have made that GPL as well.

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
Autobuild-User: Rusty Russell <rusty@rustcorp.com.au>
Autobuild-Date: Mon Jul 25 12:03:40 CEST 2011 on sn-devel-104

12 years agolib/ccan: add README
Rusty Russell [Mon, 25 Jul 2011 08:37:11 +0000 (18:07 +0930)]
lib/ccan: add README

README points out that these code snippets have their own licenses,
and that their home is elsewhere.

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
12 years agos4:auth/kerberos: activate windows related krb5 flags
Stefan Metzmacher [Sun, 24 Jul 2011 20:02:21 +0000 (22:02 +0200)]
s4:auth/kerberos: activate windows related krb5 flags

metze

Autobuild-User: Stefan Metzmacher <metze@samba.org>
Autobuild-Date: Mon Jul 25 09:45:01 CEST 2011 on sn-devel-104

12 years agos4:heimdal: build samba4kgetcred
Stefan Metzmacher [Sun, 24 Jul 2011 21:09:19 +0000 (23:09 +0200)]
s4:heimdal: build samba4kgetcred

metze

12 years agos3-utils/net_rpc_printer.c: fix error message
Björn Baumbach [Sun, 24 Jul 2011 07:09:59 +0000 (09:09 +0200)]
s3-utils/net_rpc_printer.c: fix error message

Signed-off-by: Stefan Metzmacher <metze@samba.org>
Autobuild-User: Stefan Metzmacher <metze@samba.org>
Autobuild-Date: Sun Jul 24 19:01:47 CEST 2011 on sn-devel-104

12 years agos3: Fix Coverity ID 2596, REVERSE_INULL
Volker Lendecke [Sun, 24 Jul 2011 13:21:32 +0000 (15:21 +0200)]
s3: Fix Coverity ID 2596, REVERSE_INULL

Autobuild-User: Volker Lendecke <vlendec@samba.org>
Autobuild-Date: Sun Jul 24 16:37:19 CEST 2011 on sn-devel-104

12 years agocli_raw: Make name lowercase.
Jelmer Vernooij [Fri, 22 Jul 2011 19:18:32 +0000 (21:18 +0200)]
cli_raw: Make name lowercase.

Autobuild-User: Jelmer Vernooij <jelmer@samba.org>
Autobuild-Date: Sat Jul 23 23:20:51 CEST 2011 on sn-devel-104

12 years agocharset: Make name lowercase everywhere.
Jelmer Vernooij [Fri, 22 Jul 2011 16:33:31 +0000 (18:33 +0200)]
charset: Make name lowercase everywhere.

12 years agowafsamba: Properly lock object store when retrieving version through Bazaar.
Jelmer Vernooij [Fri, 22 Jul 2011 10:44:59 +0000 (12:44 +0200)]
wafsamba: Properly lock object store when retrieving version through Bazaar.

12 years agoremove the fedora package, and point at the repository instead
Jelmer Vernooij [Mon, 18 Jul 2011 08:37:21 +0000 (10:37 +0200)]
remove the fedora package, and point at the repository instead

12 years agoREADME.Coding: Mention that PEP8 is the standard for Python code.
Jelmer Vernooij [Sun, 17 Jul 2011 11:33:03 +0000 (13:33 +0200)]
README.Coding: Mention that PEP8 is the standard for Python code.

Almost all of our existing code is PEP8, and virtually every other free software
project in Python uses PEP8.

12 years agoupdate TODO: net has been renamed to samba-tool.
Jelmer Vernooij [Sun, 17 Jul 2011 11:29:32 +0000 (13:29 +0200)]
update TODO: net has been renamed to samba-tool.

12 years agoscripting/bin: Some formatting fixes.
Jelmer Vernooij [Sun, 17 Jul 2011 11:28:21 +0000 (13:28 +0200)]
scripting/bin: Some formatting fixes.

12 years agos3:libsmb: cli_set_secdesc() only needs a const struct security_descriptor
Stefan Metzmacher [Sat, 23 Jul 2011 07:55:06 +0000 (09:55 +0200)]
s3:libsmb: cli_set_secdesc() only needs a const struct security_descriptor

metze

Autobuild-User: Stefan Metzmacher <metze@samba.org>
Autobuild-Date: Sat Jul 23 11:08:19 CEST 2011 on sn-devel-104

12 years agolibcli/security: add some const to marshall_sec_desc[_buf]()
Stefan Metzmacher [Sat, 23 Jul 2011 07:54:31 +0000 (09:54 +0200)]
libcli/security: add some const to marshall_sec_desc[_buf]()

metze

12 years agos3:libsmb: remove unused cli_query_secdesc_old()
Stefan Metzmacher [Sat, 23 Jul 2011 07:54:04 +0000 (09:54 +0200)]
s3:libsmb: remove unused cli_query_secdesc_old()

metze

12 years agos3:libsmb_xattr: make use of the new cli_query_secdesc()
Stefan Metzmacher [Sat, 23 Jul 2011 07:43:32 +0000 (09:43 +0200)]
s3:libsmb_xattr: make use of the new cli_query_secdesc()

metze

12 years agos3-utils/net_rpc.c: replace cli_query_secdesc_old()
Björn Baumbach [Fri, 22 Jul 2011 15:07:30 +0000 (17:07 +0200)]
s3-utils/net_rpc.c: replace cli_query_secdesc_old()

Signed-off-by: Stefan Metzmacher <metze@samba.org>
12 years agos3-utils/net_rpc_printer.c: replace cli_query_secdesc_old()
Björn Baumbach [Fri, 22 Jul 2011 15:00:23 +0000 (17:00 +0200)]
s3-utils/net_rpc_printer.c: replace cli_query_secdesc_old()

Signed-off-by: Stefan Metzmacher <metze@samba.org>
12 years agos3-utils/smbcacls.c: replace cli_query_secdesc_old()
Björn Baumbach [Fri, 22 Jul 2011 14:56:04 +0000 (16:56 +0200)]
s3-utils/smbcacls.c: replace cli_query_secdesc_old()

Signed-off-by: Stefan Metzmacher <metze@samba.org>
12 years agos3-client/client.c: replace cli_query_secdesc_old()
Björn Baumbach [Fri, 22 Jul 2011 14:51:10 +0000 (16:51 +0200)]
s3-client/client.c: replace cli_query_secdesc_old()

Signed-off-by: Stefan Metzmacher <metze@samba.org>
12 years agos3-torture: run_nttrans_create(): replace cli_query_secdesc_old()
Björn Baumbach [Fri, 22 Jul 2011 13:50:13 +0000 (15:50 +0200)]
s3-torture: run_nttrans_create(): replace cli_query_secdesc_old()

Signed-off-by: Stefan Metzmacher <metze@samba.org>
12 years agos3-libsmb: introduce new cli_query_secdesc() which returns NTSTATUS
Björn Baumbach [Fri, 22 Jul 2011 13:11:31 +0000 (15:11 +0200)]
s3-libsmb: introduce new cli_query_secdesc() which returns NTSTATUS

Replacement for cli_query_secdesc_old()

Signed-off-by: Stefan Metzmacher <metze@samba.org>
12 years agos3-libsmb: rename cli_query_secdesc() to cli_query_secdesc_old()
Björn Baumbach [Fri, 22 Jul 2011 13:02:23 +0000 (15:02 +0200)]
s3-libsmb: rename cli_query_secdesc() to cli_query_secdesc_old()

Will introduce new cli_query_secdesc() function

Signed-off-by: Stefan Metzmacher <metze@samba.org>
12 years agos3-libsmb: finally remove cli_read_old()
Björn Baumbach [Fri, 22 Jul 2011 12:23:56 +0000 (14:23 +0200)]
s3-libsmb: finally remove cli_read_old()

Replaced by new cli_read() which returns NTSTATUS instead of ssize_t.

Signed-off-by: Stefan Metzmacher <metze@samba.org>
12 years agos3-libsmb/libsmb_file.c: replace cli_read_old() with cli_read()
Björn Baumbach [Fri, 22 Jul 2011 12:22:29 +0000 (14:22 +0200)]
s3-libsmb/libsmb_file.c: replace cli_read_old() with cli_read()

Signed-off-by: Stefan Metzmacher <metze@samba.org>
12 years agos3-torture/nbio.c: replace cli_read_old() with cli_read()
Björn Baumbach [Fri, 22 Jul 2011 12:01:12 +0000 (14:01 +0200)]
s3-torture/nbio.c: replace cli_read_old() with cli_read()

Signed-off-by: Stefan Metzmacher <metze@samba.org>
12 years agos3-torture/utable.c: replace cli_read_old() with cli_read()
Björn Baumbach [Fri, 22 Jul 2011 11:46:57 +0000 (13:46 +0200)]
s3-torture/utable.c: replace cli_read_old() with cli_read()

Signed-off-by: Stefan Metzmacher <metze@samba.org>
12 years agos3-utils/net_rpc_printer.c: print more info on write error
Björn Baumbach [Fri, 22 Jul 2011 11:44:49 +0000 (13:44 +0200)]
s3-utils/net_rpc_printer.c: print more info on write error

Signed-off-by: Stefan Metzmacher <metze@samba.org>
12 years agos3-utils/net_rpc_printer.c: return on read error in net_copy_file()
Björn Baumbach [Fri, 22 Jul 2011 11:39:05 +0000 (13:39 +0200)]
s3-utils/net_rpc_printer.c: return on read error in net_copy_file()

replace cli_read_old() with cli_read()

Signed-off-by: Stefan Metzmacher <metze@samba.org>
12 years agos3-torture/denytest.c: replace cli_read_old() with cli_read()
Björn Baumbach [Fri, 22 Jul 2011 11:06:13 +0000 (13:06 +0200)]
s3-torture/denytest.c: replace cli_read_old() with cli_read()

Signed-off-by: Stefan Metzmacher <metze@samba.org>
12 years agos3-libgpo/gpo_filesync.c: return on read error
Björn Baumbach [Fri, 22 Jul 2011 10:44:56 +0000 (12:44 +0200)]
s3-libgpo/gpo_filesync.c: return on read error

replace cli_read_old() with cli_read()

Signed-off-by: Stefan Metzmacher <metze@samba.org>
12 years agos3-client/clitar.c: replace cli_read_old() with cli_read()
Björn Baumbach [Fri, 22 Jul 2011 10:35:03 +0000 (12:35 +0200)]
s3-client/clitar.c: replace cli_read_old() with cli_read()

Signed-off-by: Stefan Metzmacher <metze@samba.org>
12 years agos3-torture: run_oplock2(): replace cli_read_old() with cli_read()
Björn Baumbach [Fri, 22 Jul 2011 10:29:59 +0000 (12:29 +0200)]
s3-torture: run_oplock2(): replace cli_read_old() with cli_read()

Signed-off-by: Stefan Metzmacher <metze@samba.org>
12 years agos3-torture: run_fdsesstest(): replace cli_read_old() with cli_read()
Björn Baumbach [Fri, 22 Jul 2011 10:19:34 +0000 (12:19 +0200)]
s3-torture: run_fdsesstest(): replace cli_read_old() with cli_read()

Signed-off-by: Stefan Metzmacher <metze@samba.org>
12 years agos3-torture: run_fdpasstest(): replace cli_read_old() with cli_read()
Björn Baumbach [Fri, 22 Jul 2011 10:12:42 +0000 (12:12 +0200)]
s3-torture: run_fdpasstest(): replace cli_read_old() with cli_read()

Signed-off-by: Stefan Metzmacher <metze@samba.org>
12 years agos3-torture: run_locktest7(): replace cli_read_old() with cli_read()
Stefan Metzmacher [Sat, 23 Jul 2011 07:16:27 +0000 (09:16 +0200)]
s3-torture: run_locktest7(): replace cli_read_old() with cli_read()

Signed-off-by: Stefan Metzmacher <metze@samba.org>
12 years agos3-torture: run_locktest7(): goto fail on read error
Stefan Metzmacher [Sat, 23 Jul 2011 07:10:09 +0000 (09:10 +0200)]
s3-torture: run_locktest7(): goto fail on read error

Signed-off-by: Stefan Metzmacher <metze@samba.org>
12 years agoFix bug 8314] - smbd crash with unknown user.
Jeremy Allison [Fri, 22 Jul 2011 23:40:54 +0000 (16:40 -0700)]
Fix bug 8314] - smbd crash with unknown user.

All other auth modules code with being called with
auth_method->private_data being NULL, make the auth_server
module cope with this too.

Autobuild-User: Jeremy Allison <jra@samba.org>
Autobuild-Date: Sat Jul 23 02:55:01 CEST 2011 on sn-devel-104

12 years agos3:libsmb: move cli_state->desthost to cli_state->conn.remote_name
Stefan Metzmacher [Fri, 22 Jul 2011 14:53:51 +0000 (16:53 +0200)]
s3:libsmb: move cli_state->desthost to cli_state->conn.remote_name

metze

Autobuild-User: Stefan Metzmacher <metze@samba.org>
Autobuild-Date: Fri Jul 22 18:17:41 CEST 2011 on sn-devel-104

12 years agos3:winbindd_cm: use controller instead of cli->desthost
Stefan Metzmacher [Fri, 22 Jul 2011 14:52:55 +0000 (16:52 +0200)]
s3:winbindd_cm: use controller instead of cli->desthost

The should have the same value.

metze

12 years agos3:net_util: use server_name instead of cli->desthost
Stefan Metzmacher [Fri, 22 Jul 2011 14:52:11 +0000 (16:52 +0200)]
s3:net_util: use server_name instead of cli->desthost

They should be the same.

metze

12 years agos3:net_rpc_registry: use pipe_hnd->desthost instead of cli->desthost
Stefan Metzmacher [Fri, 22 Jul 2011 14:51:19 +0000 (16:51 +0200)]
s3:net_rpc_registry: use pipe_hnd->desthost instead of cli->desthost

metze

12 years agos3:net_rpc_printer: make use of cli_state_remote_name()
Stefan Metzmacher [Fri, 22 Jul 2011 14:50:43 +0000 (16:50 +0200)]
s3:net_rpc_printer: make use of cli_state_remote_name()

metze

12 years agos3:net_rpc_join: make use of cli_state_remote_name()
Stefan Metzmacher [Fri, 22 Jul 2011 14:49:28 +0000 (16:49 +0200)]
s3:net_rpc_join: make use of cli_state_remote_name()

metze

12 years agos3:net_rpc_join: use pipe_hnd->desthost instead of cli->desthost
Stefan Metzmacher [Fri, 22 Jul 2011 14:48:38 +0000 (16:48 +0200)]
s3:net_rpc_join: use pipe_hnd->desthost instead of cli->desthost

metze

12 years agos3:net_rpc: make use of cli_state_remote_name()
Stefan Metzmacher [Fri, 22 Jul 2011 14:48:02 +0000 (16:48 +0200)]
s3:net_rpc: make use of cli_state_remote_name()

metze

12 years agos3:net_rpc: use netr->desthost instead of cli->desthost
Stefan Metzmacher [Fri, 22 Jul 2011 14:47:35 +0000 (16:47 +0200)]
s3:net_rpc: use netr->desthost instead of cli->desthost

metze

12 years agos3:net_rap: make use of cli_state_remote_name()
Stefan Metzmacher [Fri, 22 Jul 2011 14:46:16 +0000 (16:46 +0200)]
s3:net_rap: make use of cli_state_remote_name()

metze

12 years agos3:rpcclient: make use of cli_state_remote_name()
Stefan Metzmacher [Fri, 22 Jul 2011 14:45:51 +0000 (16:45 +0200)]
s3:rpcclient: make use of cli_state_remote_name()

metze

12 years agos3:rpcclient: use rpc_pipe->desthost instead of cli->desthost
Stefan Metzmacher [Fri, 22 Jul 2011 14:45:12 +0000 (16:45 +0200)]
s3:rpcclient: use rpc_pipe->desthost instead of cli->desthost

metze

12 years agos3:cli_pipe_schannel: make use of cli_state_remote_name()
Stefan Metzmacher [Fri, 22 Jul 2011 14:44:28 +0000 (16:44 +0200)]
s3:cli_pipe_schannel: make use of cli_state_remote_name()

metze

12 years agos3:cli_pipe: make use of cli_state_remote_name()
Stefan Metzmacher [Fri, 22 Jul 2011 14:44:02 +0000 (16:44 +0200)]
s3:cli_pipe: make use of cli_state_remote_name()

metze

12 years agos3:cli_pipe: use result->desthost instead of cli->desthost
Stefan Metzmacher [Fri, 22 Jul 2011 14:43:27 +0000 (16:43 +0200)]
s3:cli_pipe: use result->desthost instead of cli->desthost

metze

12 years agos3:libsmb_server: make use of cli_state_remote_name()
Stefan Metzmacher [Fri, 22 Jul 2011 14:34:29 +0000 (16:34 +0200)]
s3:libsmb_server: make use of cli_state_remote_name()

metze