obnox/samba/samba-obnox.git
10 years agolibcli: use LOCK_ORDER_1 for schannel_store.tdb master-smb2-witness-durable-wip
Michael Adam [Tue, 28 Jan 2014 12:03:26 +0000 (13:03 +0100)]
libcli: use LOCK_ORDER_1 for schannel_store.tdb

I.e. don't allow any other simultaneous locks.

Signed-off-by: Michael Adam <obnox@samba.org>
10 years agotorture:smb2:durable-open: add test lock2-oplock
Michael Adam [Tue, 28 Jan 2014 09:53:10 +0000 (10:53 +0100)]
torture:smb2:durable-open: add test lock2-oplock

open with batch oplock. disconnect. reconnect durable.
take a BRL, unlock.

Signed-off-by: Michael Adam <obnox@samba.org>
10 years agodbwrap: use DBWRAP_LOCK_ORDER_VALID() in db_open()
Michael Adam [Tue, 28 Jan 2014 10:58:05 +0000 (11:58 +0100)]
dbwrap: use DBWRAP_LOCK_ORDER_VALID() in db_open()

instead of the hand written test.

Signed-off-by: Michael Adam <obnox@samba.org>
10 years agodbrwap: completely check validity of lock oder in dbwrap_check_lock_order()
Michael Adam [Mon, 27 Jan 2014 16:34:31 +0000 (17:34 +0100)]
dbrwap: completely check validity of lock oder in dbwrap_check_lock_order()

This is currently not strictly necessay, because the
only caller catches the DBWRAP_LOCK_ORDER_NONE case,
and maximum is already checked,  but this seems too dangerous to me.

Use the new DBWRAP_LOCK_ORDER_VALID() macro.

Signed-off-by: Michael Adam <obnox@samba.org>
SQ: add min test (use the ..._VALID() macro)

10 years agodbwrap: add a comment explaining the supported lock orders
Michael Adam [Tue, 28 Jan 2014 10:44:21 +0000 (11:44 +0100)]
dbwrap: add a comment explaining the supported lock orders

Signed-off-by: Michael Adam <obnox@samba.org>
10 years agodbwrap: add DBWRAP_LOCK_ORDER_VALID()
Michael Adam [Tue, 28 Jan 2014 10:54:06 +0000 (11:54 +0100)]
dbwrap: add DBWRAP_LOCK_ORDER_VALID()

Signed-off-by: Michael Adam <obnox@samba.org>
10 years agodbrwap: add DBWRAP_LOCK_ORDER_MIN
Michael Adam [Tue, 28 Jan 2014 11:04:38 +0000 (12:04 +0100)]
dbrwap: add DBWRAP_LOCK_ORDER_MIN

10 years agodbwrap: move definition of DBWRAP_LOCK_ORDER_MAX to the private header.
Michael Adam [Tue, 28 Jan 2014 10:52:36 +0000 (11:52 +0100)]
dbwrap: move definition of DBWRAP_LOCK_ORDER_MAX to the private header.

This is only needed internally.

Signed-off-by: Michael Adam <obnox@samba.org>
10 years agodbwrap: explicitly use DBWRAP_LOCK_ORDER_NONE in tdb->ntdb conversion
Michael Adam [Tue, 28 Jan 2014 11:42:31 +0000 (12:42 +0100)]
dbwrap: explicitly use DBWRAP_LOCK_ORDER_NONE in tdb->ntdb conversion

Make lack of lock order checking more visible.

Signed-off-by: Michael Adam <obnox@samba.org>
10 years agos4:cluster: use DBWRAP_LOCK_ODER_NONE for local_db_tmp_open()
Michael Adam [Mon, 27 Jan 2014 16:26:50 +0000 (17:26 +0100)]
s4:cluster: use DBWRAP_LOCK_ODER_NONE for local_db_tmp_open()

Make lack of lock oder checking more visible.

Signed-off-by: Michael Adam <obnox@samba.org>
10 years agolibcli: use DBWRAP_LOCK_ORDER_NONE when opening schannel_store.tdb
Michael Adam [Mon, 27 Jan 2014 16:25:54 +0000 (17:25 +0100)]
libcli: use DBWRAP_LOCK_ORDER_NONE when opening schannel_store.tdb

Make lack of lock order checking more visible.

Signed-off-by: Michael Adam <obnox@samba.org>
10 years agodbwrap: introduce DBWRAP_LOCK_ORDER_NONE for lock order "0".
Michael Adam [Mon, 27 Jan 2014 16:20:56 +0000 (17:20 +0100)]
dbwrap: introduce DBWRAP_LOCK_ORDER_NONE for lock order "0".

Ther are still some databases which are opened (locally) with
lock oder 0, which means don't do lock oder checking,
thereby circumventing this deadlock-prevention mechanism.

Add a symbolic constant for this "0" to make this circumvention
more explicit.

Signed-off-by: Michael Adam <obnox@samba.org>
10 years agos3:rpc_client: optimize the netlogon_creds_cli.tdb for read-only access
Michael Adam [Mon, 27 Jan 2014 15:21:14 +0000 (16:21 +0100)]
s3:rpc_client: optimize the netlogon_creds_cli.tdb for read-only access

Usually a record in this DB will be written once and then read
many times by winbindd processes on multiple nodes (when run in
a cluster). In order not to introduce a big performance penalty
with the increased correctness achieved by storing the netlogon
creds, in a cluster setup, we should activate ctdb's read only
record copies on this db.

Signed-off-by: Michael Adam <obnox@samba.org>
10 years agodbrwap: add DBRWAP_FLAG_OPTIMIZE_READONLY_ACCESS
Michael Adam [Tue, 28 Jan 2014 10:31:44 +0000 (11:31 +0100)]
dbrwap: add DBRWAP_FLAG_OPTIMIZE_READONLY_ACCESS

Signed-off-by: Michael Adam <obnox@samba.org>
10 years agodbwrap: add dbwrap_flags argument to dbwrap_local_open()
Michael Adam [Mon, 27 Jan 2014 15:38:25 +0000 (16:38 +0100)]
dbwrap: add dbwrap_flags argument to dbwrap_local_open()

To be consistent with db_open() and prepare for future
possible extensions.

Signed-off-by: Michael Adam <obnox@samba.org>
10 years agodbwrap: add a dbwrap_flags argument to db_open_ntdb()
Michael Adam [Tue, 28 Jan 2014 11:37:36 +0000 (12:37 +0100)]
dbwrap: add a dbwrap_flags argument to db_open_ntdb()

for consistency and to perpare for possible future
flags that the ntdb backend might be aware of.

Signed-off-by: Michael Adam <obnox@samba.org>
10 years agodbwrap: add a dbwrap_flags argument to db_open_tdb()
Michael Adam [Tue, 28 Jan 2014 11:33:42 +0000 (12:33 +0100)]
dbwrap: add a dbwrap_flags argument to db_open_tdb()

...for consistency and in preparation of future flags
that the tdb backend might be aware of.

Signed-off-by: Michael Adam <obnox@samba.org>
10 years agodbwrap: add a dbwrap_flags argument to db_open_ctdb()
Michael Adam [Tue, 28 Jan 2014 11:53:24 +0000 (12:53 +0100)]
dbwrap: add a dbwrap_flags argument to db_open_ctdb()

This is in preparation of directly supporting ctdb read only
record copies when opening a ctdb database from samba.

Signed-off-by: Michael Adam <obnox@samba.org>
10 years agos3:registry: introduce REG_DBWRAP_FLAGS to use for all db_open calls
Michael Adam [Mon, 27 Jan 2014 15:19:52 +0000 (16:19 +0100)]
s3:registry: introduce REG_DBWRAP_FLAGS to use for all db_open calls

This is in accordance with the use of REG_TDB_FLAGS.

Signed-off-by: Michael Adam <obnox@samba.org>
10 years agodbwrap: add a dbwrap_flags argument to db_open()
Michael Adam [Mon, 27 Jan 2014 13:49:12 +0000 (14:49 +0100)]
dbwrap: add a dbwrap_flags argument to db_open()

This is in preparation to support handing flags to backends,
in particular activating read only record support for ctdb
databases. For a start, this does nothing but adding the
parameter, and all databases use DBWRAP_FLAG_NONE.

Signed-off-by: Michael Adam <obnox@samba.org>
10 years agodbwrap: add flags DBWRAP_FLAG_NONE
Michael Adam [Mon, 27 Jan 2014 12:38:51 +0000 (13:38 +0100)]
dbwrap: add flags DBWRAP_FLAG_NONE

This is in preparation of adding a dbwrap_flags argument to db_open
and firends.

Signed-off-by: Michael Adam <obnox@samba.org>
10 years agos3:smbd: skip empty records in smbXsrv_open_cleanup()
Stefan Metzmacher [Tue, 24 Dec 2013 08:00:01 +0000 (09:00 +0100)]
s3:smbd: skip empty records in smbXsrv_open_cleanup()

This should avoid scary ndr_pull errors, if there's
a cleanup race.

Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Michael Adam <obnox@samba.org>
10 years agosmbd:smb2: fix durable reconnect: set fsp->fnum from the smbXsrv_open->local_id
Michael Adam [Thu, 23 Jan 2014 23:09:50 +0000 (00:09 +0100)]
smbd:smb2: fix durable reconnect: set fsp->fnum from the smbXsrv_open->local_id

Originally, fsp->fnum was left at the INVALID fnum value.

Signed-off-by: Michael Adam <obnox@samba.org>
10 years agosmbd:smb2: add SMB2_HDR_FLAG_REPLAY_OPERATION to the allowed flags
Michael Adam [Fri, 24 Jan 2014 09:01:47 +0000 (10:01 +0100)]
smbd:smb2: add SMB2_HDR_FLAG_REPLAY_OPERATION to the allowed flags

for some calls: create, read, write, ioct and set_info

10 years agoMore AD-voodoo (TM) by Metze ;-)
Michael Adam [Mon, 27 Jan 2014 15:45:26 +0000 (16:45 +0100)]
More AD-voodoo (TM) by Metze  ;-)

10 years agowitness: hack: make the principle name node-unique by adding a local IP
Gregor Beck [Fri, 24 Jan 2014 08:43:31 +0000 (09:43 +0100)]
witness: hack: make the principle name node-unique by adding a local IP

Only like this, the client sends notify requests after registering.

10 years agosmbd: don't unconditionally start the witnessd.
Michael Adam [Fri, 24 Jan 2014 08:42:19 +0000 (09:42 +0100)]
smbd: don't unconditionally start the witnessd.

Use "rpc_daemon:witnessd = fork" in the config instead.

10 years agoTMP: witnessd get interface list from faktotum
Gregor Beck [Wed, 22 Jan 2014 14:41:07 +0000 (15:41 +0100)]
TMP: witnessd get interface list from faktotum

10 years agosrv_mgmt: construct princ_name like w2012
Gregor Beck [Wed, 22 Jan 2014 14:39:55 +0000 (15:39 +0100)]
srv_mgmt: construct princ_name like w2012

10 years agosmbd:smb2: grant a persistent open without a batch oplock.
Michael Adam [Wed, 22 Jan 2014 14:35:27 +0000 (15:35 +0100)]
smbd:smb2: grant a persistent open without a batch oplock.

persistent handles on CA + scale-out shares are granted
without the request for batch oplocks (or handle leases).

10 years agosmbd:smb2: treat persistent handles in durable reconnect v2
Michael Adam [Wed, 22 Jan 2014 14:26:28 +0000 (15:26 +0100)]
smbd:smb2: treat persistent handles in durable reconnect v2

10 years agosmbd:smb2: only honour the durable v2 timeout when persistent is requested
Michael Adam [Wed, 22 Jan 2014 14:21:56 +0000 (15:21 +0100)]
smbd:smb2: only honour the durable v2 timeout when persistent is requested

This is according to [MS-SMB2], 3.3.5.9.10.

10 years agoHACK: set epmd rpc service mode to external
Michael Adam [Wed, 22 Jan 2014 09:21:51 +0000 (10:21 +0100)]
HACK: set epmd rpc service mode to external

(needed for registering services since another hack commit
starts the external daemon unconditionally)

10 years agorpc: print error code in debug message when registering end point fails
Michael Adam [Wed, 22 Jan 2014 09:20:37 +0000 (10:20 +0100)]
rpc: print error code in debug message when registering end point fails

10 years agoTMP: add debug messages to dcerpc_ep
Michael Adam [Wed, 22 Jan 2014 09:19:53 +0000 (10:19 +0100)]
TMP: add debug messages to dcerpc_ep

10 years agowitness: fix copy and paste error in debug msg.
Michael Adam [Wed, 22 Jan 2014 08:44:28 +0000 (09:44 +0100)]
witness: fix copy and paste error in debug msg.

10 years agohack persistent:remove unused
Michael Adam [Tue, 21 Jan 2014 10:38:01 +0000 (11:38 +0100)]
hack persistent:remove unused

10 years agosmb2:persistent hack fix typo
Michael Adam [Tue, 21 Jan 2014 10:36:47 +0000 (11:36 +0100)]
smb2:persistent hack fix typo

10 years agosmbd: announce caps - fix typos
Michael Adam [Mon, 20 Jan 2014 21:57:37 +0000 (22:57 +0100)]
smbd: announce caps - fix typos

10 years agoHACK:smbd:smb2: fake support for persistent handles...
Michael Adam [Mon, 20 Jan 2014 15:16:08 +0000 (16:16 +0100)]
HACK:smbd:smb2: fake support for persistent handles...

10 years agosmbd:smb2: Add persistent flag to global open structure
Michael Adam [Mon, 20 Jan 2014 14:52:48 +0000 (15:52 +0100)]
smbd:smb2: Add persistent flag to global open structure

10 years agoadapt run_smbtorture_open_all.sh script for another cluster
Gregor Beck [Mon, 20 Jan 2014 14:52:08 +0000 (15:52 +0100)]
adapt run_smbtorture_open_all.sh script for another cluster

10 years agoCommit metze's AD voodoo
Gregor Beck [Mon, 20 Jan 2014 14:51:39 +0000 (15:51 +0100)]
Commit metze's AD voodoo

10 years agoTEST Results
Gregor Beck [Thu, 16 Jan 2014 13:58:43 +0000 (14:58 +0100)]
TEST Results

10 years agoFIXUP: s4:torture:smb2: add test open-lease-all
Gregor Beck [Thu, 16 Jan 2014 10:48:10 +0000 (11:48 +0100)]
FIXUP: s4:torture:smb2: add test open-lease-all

10 years agos4:torture:smb2: add test open-lease-all
Gregor Beck [Thu, 16 Jan 2014 10:42:36 +0000 (11:42 +0100)]
s4:torture:smb2: add test open-lease-all

10 years agos4:torture:smb2: add test open-oplock-all
Gregor Beck [Thu, 22 Aug 2013 10:08:10 +0000 (12:08 +0200)]
s4:torture:smb2: add test open-oplock-all

10 years agos4:torture:smb2: make test pattern tables static
Gregor Beck [Thu, 22 Aug 2013 10:06:40 +0000 (12:06 +0200)]
s4:torture:smb2: make test pattern tables static

10 years agos4:torture:smb2: display share capabilities
Gregor Beck [Thu, 22 Aug 2013 10:05:56 +0000 (12:05 +0200)]
s4:torture:smb2: display share capabilities

10 years agos4:torture:smb2: remove some unused labels
Gregor Beck [Thu, 22 Aug 2013 10:04:45 +0000 (12:04 +0200)]
s4:torture:smb2: remove some unused labels

10 years agos4:libcli/smb2: honor option "client max protocol"
Gregor Beck [Wed, 21 Aug 2013 13:45:55 +0000 (15:45 +0200)]
s4:libcli/smb2: honor option "client max protocol"

10 years agosrvsvc.idl: add STYPE_CLUSTER_XXX
Gregor Beck [Fri, 2 Aug 2013 11:34:43 +0000 (13:34 +0200)]
srvsvc.idl: add STYPE_CLUSTER_XXX

10 years agofoo
Gregor Beck [Mon, 17 Jun 2013 11:06:23 +0000 (13:06 +0200)]
foo

10 years agoRevert "s4:torture:smb2: durable_v2_open_oplock be verbose on failure"
Gregor Beck [Thu, 30 May 2013 10:54:51 +0000 (12:54 +0200)]
Revert "s4:torture:smb2: durable_v2_open_oplock be verbose on failure"

This reverts commit 07dfb247be19b7fefd271d987932475e10ba903d.

10 years agoRevert "s4:torture:smb2: durable_v2_open_lease be verbose on failure"
Gregor Beck [Thu, 30 May 2013 10:54:43 +0000 (12:54 +0200)]
Revert "s4:torture:smb2: durable_v2_open_lease be verbose on failure"

This reverts commit 6988302759855ab21dbfc6333983b0141f50081d.

10 years agos4:torture:smb2: durable_v2_open_lease be verbose on failure
Gregor Beck [Thu, 30 May 2013 08:26:51 +0000 (10:26 +0200)]
s4:torture:smb2: durable_v2_open_lease be verbose on failure

10 years agos4:torture:smb2: durable_v2_open_oplock be verbose on failure
Gregor Beck [Thu, 30 May 2013 08:26:38 +0000 (10:26 +0200)]
s4:torture:smb2: durable_v2_open_oplock be verbose on failure

10 years agos4:torture:smb2: fix superfluous newline
Gregor Beck [Thu, 30 May 2013 08:24:34 +0000 (10:24 +0200)]
s4:torture:smb2: fix superfluous newline

10 years agorun_smbtorture.sh
faktotum [Wed, 29 May 2013 12:08:51 +0000 (14:08 +0200)]
run_smbtorture.sh

10 years agos4:torture:smb2:durable_v2 let print test_persistent_open_xxx if the share is CA
Gregor Beck [Tue, 28 May 2013 13:53:27 +0000 (15:53 +0200)]
s4:torture:smb2:durable_v2 let print test_persistent_open_xxx if the share is CA

10 years agos4:torture:smb2:durable_v2 test_durable_v2_open_xxx_table do not stop at first failure
Gregor Beck [Tue, 28 May 2013 13:52:25 +0000 (15:52 +0200)]
s4:torture:smb2:durable_v2 test_durable_v2_open_xxx_table do not stop at first failure

10 years agos4:torture:smb2:durable_v2 make open-lease more verbose
Gregor Beck [Tue, 28 May 2013 12:53:04 +0000 (14:53 +0200)]
s4:torture:smb2:durable_v2 make open-lease more verbose

10 years agos4:torture:smb2:durable_v2 make open-oplock more verbose
Gregor Beck [Tue, 28 May 2013 12:42:15 +0000 (14:42 +0200)]
s4:torture:smb2:durable_v2 make open-oplock more verbose

10 years agorpcclient witness: use popt in Register()
Gregor Beck [Thu, 14 Nov 2013 12:03:45 +0000 (13:03 +0100)]
rpcclient witness: use popt in Register()

10 years agorpcclient witness: print witness version in getInterfaceList()
Gregor Beck [Thu, 14 Nov 2013 12:03:22 +0000 (13:03 +0100)]
rpcclient witness: print witness version in getInterfaceList()

10 years agoFIXUP: rpcclient witness: RegisterEx()
Gregor Beck [Thu, 14 Nov 2013 11:05:59 +0000 (12:05 +0100)]
FIXUP: rpcclient witness: RegisterEx()

10 years agorpcclient witness: RegisterEx()
Gregor Beck [Thu, 14 Nov 2013 10:23:54 +0000 (11:23 +0100)]
rpcclient witness: RegisterEx()

10 years agoWIP: add function AsyncNotify_Move()
Gregor Beck [Fri, 1 Nov 2013 14:16:04 +0000 (15:16 +0100)]
WIP: add function AsyncNotify_Move()

10 years agoWIP: add function AsyncNotify_Move()
Gregor Beck [Fri, 1 Nov 2013 08:03:34 +0000 (09:03 +0100)]
WIP: add function AsyncNotify_Move()

10 years agoWIP: add function AsyncNotify_Move()
Gregor Beck [Wed, 30 Oct 2013 10:53:11 +0000 (11:53 +0100)]
WIP: add function AsyncNotify_Move()

10 years agolibrpc: add witness_RegisterEx for V2
Gregor Beck [Wed, 28 Aug 2013 13:58:55 +0000 (15:58 +0200)]
librpc: add witness_RegisterEx for V2

10 years agorpcclient: add witness_notifyResponse_type's for V2
Gregor Beck [Thu, 22 Aug 2013 13:47:07 +0000 (15:47 +0200)]
rpcclient: add witness_notifyResponse_type's for V2

10 years agolibrpc: add witness_notifyResponse_type's for V2
Gregor Beck [Thu, 22 Aug 2013 13:45:57 +0000 (15:45 +0200)]
librpc: add witness_notifyResponse_type's for V2

10 years agoFIXUP: librpc: enum witness_version
Gregor Beck [Thu, 22 Aug 2013 13:44:23 +0000 (15:44 +0200)]
FIXUP: librpc: enum witness_version

10 years agorpcclient witness: use WITNESS_V1
Gregor Beck [Wed, 21 Aug 2013 08:21:34 +0000 (10:21 +0200)]
rpcclient witness: use WITNESS_V1

10 years agolibrpc: enum witness_version
Gregor Beck [Wed, 21 Aug 2013 08:21:03 +0000 (10:21 +0200)]
librpc: enum witness_version

10 years agorpcclient witness: print change notify
Gregor Beck [Tue, 6 Aug 2013 15:03:01 +0000 (17:03 +0200)]
rpcclient witness: print change notify

10 years agorpcclient witness: AsyncNotify()
Gregor Beck [Tue, 6 Aug 2013 12:41:32 +0000 (14:41 +0200)]
rpcclient witness: AsyncNotify()

10 years agorpcclient witness: hack to use only one rpc connection
Gregor Beck [Tue, 6 Aug 2013 12:08:58 +0000 (14:08 +0200)]
rpcclient witness: hack to use only one rpc connection

10 years agorpcclient witness: fix warning
Gregor Beck [Tue, 6 Aug 2013 12:08:35 +0000 (14:08 +0200)]
rpcclient witness: fix warning

10 years agorpcclient witness: WITNESS_VERSION
Gregor Beck [Tue, 6 Aug 2013 12:07:25 +0000 (14:07 +0200)]
rpcclient witness: WITNESS_VERSION

10 years agorpcclient witness: UnRegister()
Gregor Beck [Tue, 6 Aug 2013 11:37:36 +0000 (13:37 +0200)]
rpcclient witness: UnRegister()

10 years agorpcclient witness: Register()
Gregor Beck [Tue, 6 Aug 2013 10:55:09 +0000 (12:55 +0200)]
rpcclient witness: Register()

10 years agorpcclient witness: GetInterfaceList fix win_errstr
Gregor Beck [Tue, 6 Aug 2013 10:54:29 +0000 (12:54 +0200)]
rpcclient witness: GetInterfaceList fix win_errstr

10 years agorpcclient witness: GetInterfaceList
Gregor Beck [Tue, 6 Aug 2013 08:01:00 +0000 (10:01 +0200)]
rpcclient witness: GetInterfaceList

10 years agotorture:winreg: enable sd testing
Gregor Beck [Tue, 6 Aug 2013 07:31:50 +0000 (09:31 +0200)]
torture:winreg: enable sd testing

10 years agorpcclient witness: check ntstatus and werror
Gregor Beck [Tue, 6 Aug 2013 07:31:13 +0000 (09:31 +0200)]
rpcclient witness: check ntstatus and werror

10 years agoWIP: witness rpcclient
Gregor Beck [Mon, 5 Aug 2013 09:01:34 +0000 (11:01 +0200)]
WIP: witness rpcclient

10 years agolibrpc: enums and bitfields for witness protocol
Gregor Beck [Thu, 1 Aug 2013 08:40:08 +0000 (10:40 +0200)]
librpc: enums and bitfields for witness protocol

10 years agoTODO witness
Stefan Metzmacher [Sun, 4 Nov 2012 16:16:21 +0000 (17:16 +0100)]
TODO witness

10 years agoTODO librpc/idl: add basic witness.idl
Stefan Metzmacher [Fri, 2 Nov 2012 15:27:46 +0000 (16:27 +0100)]
TODO librpc/idl: add basic witness.idl

See [MS-SWN] for the details.

10 years agoTODO smb2_tcon: add some share flags/capabilities options (Default:off)
Stefan Metzmacher [Tue, 31 Jul 2012 06:55:20 +0000 (08:55 +0200)]
TODO smb2_tcon: add some share flags/capabilities options (Default:off)

10 years agoTODO: s3:smb2_negprot: announce persistent handle support (default: no)
Stefan Metzmacher [Thu, 26 Jul 2012 00:49:16 +0000 (02:49 +0200)]
TODO: s3:smb2_negprot: announce persistent handle support (default: no)

add "smbd:announce persistent handles" option (default: false)

metze

10 years agosamba-tool classicupgrade: Remove unsued upgrade_smbconf
Andrew Bartlett [Thu, 16 Jan 2014 02:08:16 +0000 (15:08 +1300)]
samba-tool classicupgrade: Remove unsued upgrade_smbconf

Signed-off-by: Andrew Bartlett <abartlet@samba.org>
Reviewed-By: Jelmer Vernooij <jelmer@samba.org>
Autobuild-User(master): Andrew Bartlett <abartlet@samba.org>
Autobuild-Date(master): Thu Jan 23 23:51:56 CET 2014 on sn-devel-104

10 years agosamba-tool classicupgrade: Remove unsued reference to samba3sam
Andrew Bartlett [Thu, 16 Jan 2014 02:07:31 +0000 (15:07 +1300)]
samba-tool classicupgrade: Remove unsued reference to samba3sam

Signed-off-by: Andrew Bartlett <abartlet@samba.org>
Reviewed-By: Jelmer Vernooij <jelmer@samba.org>
10 years agos3: Don't open the dir for stat/attr/acl related mask
Abhidnya Joshi [Thu, 23 Jan 2014 01:02:15 +0000 (17:02 -0800)]
s3: Don't open the dir for stat/attr/acl related mask

Signed-off-by: Abhidnya Joshi <achirmul@in.ibm.com>
Reviewed-by: Jeremy Allison <jra@samba.org>
Reviewed-by: Christof Schmitt <cs@samba.org>
Autobuild-User(master): Jeremy Allison <jra@samba.org>
Autobuild-Date(master): Thu Jan 23 03:56:35 CET 2014 on sn-devel-104

10 years agos3: ldap client can return NT_STATUS_OK when an error occurs in a paged search.
Daniel Liberman [Wed, 22 Jan 2014 00:25:41 +0000 (16:25 -0800)]
s3: ldap client can return NT_STATUS_OK when an error occurs in a paged search.

"Inside ads_do_search_all_args(), if the first call to ads_do_paged_search_args()
fails, the proper error status is returned.

But, if the execution is already inside the loop to get all the accounts doing
several calls to ads_do_paged_search_args(), and one of these calls times out,
the status returned is from the *first* call, so success. This causes
net_ads_search() to interpret the return from ads_do_search_retry() as
success and print all the accounts returned, but it’s only a subset."

Also ensure we free previously returned results on error
in subsequent fetches.

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

Reviewed-by: Jeremy Allison <jra@samba.org>
Reviewed-by: Richard Sharpe <realrichardsharpe@gmail.com>
Autobuild-User(master): Jeremy Allison <jra@samba.org>
Autobuild-Date(master): Thu Jan 23 01:40:54 CET 2014 on sn-devel-104

10 years agolog winbind version (when requested) in winbindd log
Noel Power [Wed, 22 Jan 2014 12:49:44 +0000 (12:49 +0000)]
log winbind version (when requested) in winbindd log

winbindd currently only logs the INTERFACE version request,
it would be useful to additionally have the version returned
in the log also.

Signed-off-by: Noel Power <noel.power@suse.com>
Reviewed-by: Jim McDonough <jmcd@samba.org>
Reviewed-by: David Disseldorp <ddiss@samba.org>
Autobuild-User(master): David Disseldorp <ddiss@samba.org>
Autobuild-Date(master): Wed Jan 22 21:57:04 CET 2014 on sn-devel-104

10 years agos4:torture/rpc: add invalidAuthenticate2
Stefan Metzmacher [Fri, 10 Jan 2014 11:19:08 +0000 (12:19 +0100)]
s4:torture/rpc: add invalidAuthenticate2

This add 'rpc.netlogon.netlogon.invalidAuthenticate2' as new test
it demonstrates the STATUS_BUFFER_OVERFLOW on computer names
larger than 15 characters.

Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
Autobuild-User(master): Stefan Metzmacher <metze@samba.org>
Autobuild-Date(master): Wed Jan 22 19:07:12 CET 2014 on sn-devel-104

10 years agos4:rpc_server/netlogon: return a zero return_authenticator and rid on error
Stefan Metzmacher [Sat, 11 Jan 2014 16:13:04 +0000 (17:13 +0100)]
s4:rpc_server/netlogon: return a zero return_authenticator and rid on error

Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>