kai/samba.git
11 years agos3:smb2_server: use 'i' instead of '1' as vector index in smbd_smb2_request_pending_t...
Stefan Metzmacher [Sun, 5 Aug 2012 14:35:08 +0000 (16:35 +0200)]
s3:smb2_server: use 'i' instead of '1' as vector index in smbd_smb2_request_pending_timer()

If we reach this code i is currently always 1, but it's easier to unstand this
way.

metze

Autobuild-User(master): Stefan Metzmacher <metze@samba.org>
Autobuild-Date(master): Sun Aug  5 20:00:26 CEST 2012 on sn-devel-104

11 years agos3:smb2_lock: remove unused in_smbpid
Stefan Metzmacher [Sun, 5 Aug 2012 12:26:40 +0000 (14:26 +0200)]
s3:smb2_lock: remove unused in_smbpid

metze

11 years agos3:smb2_write: remove unused in_smbpid
Stefan Metzmacher [Sun, 5 Aug 2012 12:26:40 +0000 (14:26 +0200)]
s3:smb2_write: remove unused in_smbpid

metze

11 years agos3:smb2_read: remove unused in_smbpid
Stefan Metzmacher [Sun, 5 Aug 2012 12:25:48 +0000 (14:25 +0200)]
s3:smb2_read: remove unused in_smbpid

metze

11 years agos4:domain join: setup RODC invocationId
Stefan Metzmacher [Fri, 3 Aug 2012 10:47:11 +0000 (12:47 +0200)]
s4:domain join: setup RODC invocationId

Pair-Programmed-With: Björn Baumbach <bb@sernet.de>

metze

Autobuild-User(master): Stefan Metzmacher <metze@samba.org>
Autobuild-Date(master): Sat Aug  4 18:27:21 CEST 2012 on sn-devel-104

11 years agodoc: Remove build/ from doxygen config or it will not work in brew.
Andreas Schneider [Fri, 3 Aug 2012 16:21:38 +0000 (18:21 +0200)]
doc: Remove build/ from doxygen config or it will not work in brew.

Autobuild-User(master): Andreas Schneider <asn@cryptomilk.org>
Autobuild-Date(master): Sat Aug  4 16:31:22 CEST 2012 on sn-devel-104

11 years agos3:smbd: add support for SMB_EXTENDED_SIGNATURES in SMBtconX
Stefan Metzmacher [Fri, 3 Aug 2012 06:44:39 +0000 (08:44 +0200)]
s3:smbd: add support for SMB_EXTENDED_SIGNATURES in SMBtconX

metze

Autobuild-User(master): Stefan Metzmacher <metze@samba.org>
Autobuild-Date(master): Sat Aug  4 14:28:04 CEST 2012 on sn-devel-104

11 years agos3:smbd: setup the application session key with the first tcon on a session
Stefan Metzmacher [Fri, 3 Aug 2012 06:42:43 +0000 (08:42 +0200)]
s3:smbd: setup the application session key with the first tcon on a session

Look for Server.Session.SessionKeyState in [MS-SMB].
The first SMBtconX sets the state to available, which makes it possible
to protect the session key at that stage, if client and server
support TREE_CONNECT_ANDX_EXTENDED_SIGNATURE.

metze

11 years agos3:rpc_server/wkssvc: make usage of session_extract_session_key()
Stefan Metzmacher [Sat, 4 Aug 2012 08:05:51 +0000 (10:05 +0200)]
s3:rpc_server/wkssvc: make usage of session_extract_session_key()

This makes sure we return NO_USER_SESSION_KEY if there's no session key.

metze

11 years agos3:rpc_server/netlogon: make usage of session_extract_session_key()
Stefan Metzmacher [Sat, 4 Aug 2012 08:05:51 +0000 (10:05 +0200)]
s3:rpc_server/netlogon: make usage of session_extract_session_key()

This makes sure we return NO_USER_SESSION_KEY if there's no session key.

metze

11 years agos3:smbd: setup session->global->signing_/application_key during SPNEGO SMB1 session...
Stefan Metzmacher [Thu, 2 Aug 2012 16:47:48 +0000 (18:47 +0200)]
s3:smbd: setup session->global->signing_/application_key during SPNEGO SMB1 session setups

metze

Autobuild-User(master): Stefan Metzmacher <metze@samba.org>
Autobuild-Date(master): Sat Aug  4 11:09:42 CEST 2012 on sn-devel-104

11 years agos3:smbd: setup session->global->signing_/application_key during old SMB1 session...
Stefan Metzmacher [Thu, 2 Aug 2012 16:47:48 +0000 (18:47 +0200)]
s3:smbd: setup session->global->signing_/application_key during old SMB1 session setups

metze

11 years agos3:smbd: keep the "application session key" during SMB1 reauth
Stefan Metzmacher [Thu, 2 Aug 2012 16:46:09 +0000 (18:46 +0200)]
s3:smbd: keep the "application session key" during SMB1 reauth

metze

11 years agos4:torture: add support for SMB_EXTENDED_SIGNATURES during SMBtconX
Stefan Metzmacher [Thu, 2 Aug 2012 06:51:13 +0000 (08:51 +0200)]
s4:torture: add support for SMB_EXTENDED_SIGNATURES during SMBtconX

metze

11 years agos4:libcli: add support for SMB_EXTENDED_SIGNATURES during SMBtconX
Stefan Metzmacher [Thu, 2 Aug 2012 06:51:13 +0000 (08:51 +0200)]
s4:libcli: add support for SMB_EXTENDED_SIGNATURES during SMBtconX

metze

11 years agos3:libsmb: add EXTENDED_SIGNATURE support in cli_tcon_andx*()
Stefan Metzmacher [Wed, 1 Aug 2012 09:47:07 +0000 (11:47 +0200)]
s3:libsmb: add EXTENDED_SIGNATURE support in cli_tcon_andx*()

metze

11 years agolibcli/smb: add smb1cli_session_protect_session_key()
Stefan Metzmacher [Wed, 1 Aug 2012 07:01:25 +0000 (09:01 +0200)]
libcli/smb: add smb1cli_session_protect_session_key()

metze

11 years agolibcli/smb: add smb_key_derivation() for TREE_CONNECT_ANDX_EXTENDED_SIGNATURES support
Stefan Metzmacher [Wed, 1 Aug 2012 07:28:06 +0000 (09:28 +0200)]
libcli/smb: add smb_key_derivation() for TREE_CONNECT_ANDX_EXTENDED_SIGNATURES support

metze

11 years agolibcli/smb: pass hdr/len to smb_signing_check/sign_pdu() and skip the nbt header
Stefan Metzmacher [Fri, 3 Aug 2012 07:58:29 +0000 (09:58 +0200)]
libcli/smb: pass hdr/len to smb_signing_check/sign_pdu() and skip the nbt header

metze

11 years agos3:smbd: skip nbt header in srv_check_sign_mac()
Stefan Metzmacher [Fri, 3 Aug 2012 07:57:19 +0000 (09:57 +0200)]
s3:smbd: skip nbt header in srv_check_sign_mac()

metze

11 years agolibcli/smb: change smb_signing to skip the NBT_HEADER_SIZE internally
Stefan Metzmacher [Fri, 3 Aug 2012 07:29:20 +0000 (09:29 +0200)]
libcli/smb: change smb_signing to skip the NBT_HEADER_SIZE internally

metze

11 years agoauth/ntlmssp: avoid talloc_tos() in ntlmssp_client_initial()
Stefan Metzmacher [Sat, 4 Aug 2012 07:07:24 +0000 (09:07 +0200)]
auth/ntlmssp: avoid talloc_tos() in ntlmssp_client_initial()

This avoids a smb_panic at log level = 10.
If we don't have a talloc stackframe yet.

metze

11 years agos3-ctdb: return proper exit code
Christian Ambach [Fri, 3 Aug 2012 10:42:41 +0000 (12:42 +0200)]
s3-ctdb: return proper exit code

do not loose the result from ctdbd_messaging_send_blob()

Autobuild-User(master): Christian Ambach <ambi@samba.org>
Autobuild-Date(master): Fri Aug  3 14:49:01 CEST 2012 on sn-devel-104

11 years agos3-ctdb: adjust a loglevel
Christian Ambach [Fri, 3 Aug 2012 10:29:10 +0000 (12:29 +0200)]
s3-ctdb: adjust a loglevel

11 years agos3-ctdb: Fix ctdb_serverids_exist for target nodes that died
Volker Lendecke [Mon, 16 Jul 2012 14:18:19 +0000 (16:18 +0200)]
s3-ctdb: Fix ctdb_serverids_exist for target nodes that died

Signed-off-by: Christian Ambach <ambi@samba.org>
11 years agos3-ctdb: Add debugs to ctdb_serverids_exist
Volker Lendecke [Mon, 16 Jul 2012 13:50:06 +0000 (15:50 +0200)]
s3-ctdb: Add debugs to ctdb_serverids_exist

Signed-off-by: Christian Ambach <ambi@samba.org>
11 years agolib/dbwrap: rewrite lock order check to ease debugging
Gregor Beck [Wed, 1 Aug 2012 13:31:18 +0000 (15:31 +0200)]
lib/dbwrap: rewrite lock order check to ease debugging

Signed-off-by: Stefan Metzmacher <metze@samba.org>
Autobuild-User(master): Stefan Metzmacher <metze@samba.org>
Autobuild-Date(master): Fri Aug  3 12:52:38 CEST 2012 on sn-devel-104

11 years agodocs-xml: fix pid directory example
Björn Baumbach [Mon, 30 Jul 2012 15:09:07 +0000 (17:09 +0200)]
docs-xml: fix pid directory example

Signed-off-by: Stefan Metzmacher <metze@samba.org>
Autobuild-User(master): Stefan Metzmacher <metze@samba.org>
Autobuild-Date(master): Fri Aug  3 10:30:37 CEST 2012 on sn-devel-104

11 years agodocs-xml: fix dfree cache time example
Björn Baumbach [Mon, 30 Jul 2012 15:02:55 +0000 (17:02 +0200)]
docs-xml: fix dfree cache time example

Signed-off-by: Stefan Metzmacher <metze@samba.org>
11 years agos4:dsdb:replicated_objects: do not move 'instanceType' to the end of msg->elements...
Stefan Metzmacher [Thu, 2 Aug 2012 14:27:20 +0000 (16:27 +0200)]
s4:dsdb:replicated_objects: do not move 'instanceType' to the end of msg->elements on RODC replication

It's very important that the order of msg->elements and md->ctr.ctr1.array
is the same.

metze

11 years agos4: samba_spnupdate: fix "if we are DNS server" check
Björn Baumbach [Wed, 1 Aug 2012 13:09:00 +0000 (15:09 +0200)]
s4: samba_spnupdate: fix "if we are DNS server" check

We need to check if we have hasMasterNCs. If we are RODC we have
hasFullReplicaNCs instead of hasMasterNCs.

TODO: maybe check for hasFullReplicaNCs, too?

Signed-off-by: Stefan Metzmacher <metze@samba.org>
11 years agobuild: fix typo
Andrew Bartlett [Fri, 3 Aug 2012 00:00:56 +0000 (10:00 +1000)]
build: fix typo

Autobuild-User(master): Andrew Bartlett <abartlet@samba.org>
Autobuild-Date(master): Fri Aug  3 03:56:38 CEST 2012 on sn-devel-104

11 years agos3-pysmbd: Add hook for get_nt_acl()
Andrew Bartlett [Thu, 2 Aug 2012 05:16:13 +0000 (15:16 +1000)]
s3-pysmbd: Add hook for get_nt_acl()

Autobuild-User(master): Andrew Bartlett <abartlet@samba.org>
Autobuild-Date(master): Thu Aug  2 13:27:55 CEST 2012 on sn-devel-104

11 years agos3-pysmbd: fix DEBUG
Andrew Bartlett [Thu, 2 Aug 2012 03:36:55 +0000 (13:36 +1000)]
s3-pysmbd: fix DEBUG

11 years agos3-pysmbd: Add my copyright
Andrew Bartlett [Thu, 2 Aug 2012 03:36:43 +0000 (13:36 +1000)]
s3-pysmbd: Add my copyright

11 years agos3-pysmbd: Add set_nt_acl() function based on parts of vfstest
Andrew Bartlett [Thu, 2 Aug 2012 03:35:24 +0000 (13:35 +1000)]
s3-pysmbd: Add set_nt_acl() function based on parts of vfstest

This will allow us to set the full NT ACL on a file, using the VFS
layer, during provision of the AD DC.

Andrew Bartlett

11 years agos3-pypassdb: Fix wrapper for pdb_domain_info to return correct dns_{domain,forest}
Andrew Bartlett [Thu, 2 Aug 2012 08:05:03 +0000 (18:05 +1000)]
s3-pypassdb: Fix wrapper for pdb_domain_info to return correct dns_{domain,forest}

11 years agos4:torture: send the TCONX_FLAG_EXTENDED_RESPONSE flag
Stefan Metzmacher [Thu, 2 Aug 2012 06:48:11 +0000 (08:48 +0200)]
s4:torture: send the TCONX_FLAG_EXTENDED_RESPONSE flag

metze

Autobuild-User(master): Stefan Metzmacher <metze@samba.org>
Autobuild-Date(master): Thu Aug  2 10:54:18 CEST 2012 on sn-devel-104

11 years agos4:libcli: send the TCONX_FLAG_EXTENDED_RESPONSE flag
Stefan Metzmacher [Thu, 2 Aug 2012 06:48:11 +0000 (08:48 +0200)]
s4:libcli: send the TCONX_FLAG_EXTENDED_RESPONSE flag

metze

11 years agoheimdal: fixed -Werror=format error in com_err
Andrew Tridgell [Thu, 2 Aug 2012 04:59:37 +0000 (14:59 +1000)]
heimdal: fixed -Werror=format error in com_err

This needs to be merged upstream

Autobuild-User(master): Andrew Tridgell <tridge@samba.org>
Autobuild-Date(master): Thu Aug  2 08:59:24 CEST 2012 on sn-devel-104

11 years agos3:smbd: add a optional_support helper variable to reply_tcon_and_X() save-diskspace-tags/ldb-1.1.9
Stefan Metzmacher [Wed, 1 Aug 2012 10:01:07 +0000 (12:01 +0200)]
s3:smbd: add a optional_support helper variable to reply_tcon_and_X()

metze

Autobuild-User(master): Stefan Metzmacher <metze@samba.org>
Autobuild-Date(master): Wed Aug  1 18:25:26 CEST 2012 on sn-devel-104

11 years agos3:smbd: make use of TCONX_FLAG_DISCONNECT_TID define
Stefan Metzmacher [Wed, 1 Aug 2012 09:48:30 +0000 (11:48 +0200)]
s3:smbd: make use of TCONX_FLAG_DISCONNECT_TID define

metze

11 years agos3:libsmb: add a optional_support helper variable
Stefan Metzmacher [Wed, 1 Aug 2012 09:46:22 +0000 (11:46 +0200)]
s3:libsmb: add a optional_support helper variable

metze

11 years agos3:libsmb: add a tcon_flags helper variable
Stefan Metzmacher [Wed, 1 Aug 2012 09:45:36 +0000 (11:45 +0200)]
s3:libsmb: add a tcon_flags helper variable

metze

11 years agolibcli/smb: move some TCON related defines to smb_constants.h
Stefan Metzmacher [Wed, 1 Aug 2012 09:33:27 +0000 (11:33 +0200)]
libcli/smb: move some TCON related defines to smb_constants.h

metze

11 years agos3:rpc_client: rename pipe_auth_data->user_session_key to transport_session_key
Stefan Metzmacher [Wed, 1 Aug 2012 09:00:02 +0000 (11:00 +0200)]
s3:rpc_client: rename pipe_auth_data->user_session_key to transport_session_key

metze

11 years agos3:libsmb: remove unused cli_state->user_session_key
Stefan Metzmacher [Wed, 1 Aug 2012 08:50:30 +0000 (10:50 +0200)]
s3:libsmb: remove unused cli_state->user_session_key

metze

11 years agos3:utils/net_rpc*: make use of cli_get_session_key()
Stefan Metzmacher [Wed, 1 Aug 2012 08:48:53 +0000 (10:48 +0200)]
s3:utils/net_rpc*: make use of cli_get_session_key()

metze

11 years agos3:libnet_join: make use of cli_get_session_key() in libnet_join_joindomain_rpc()
Stefan Metzmacher [Wed, 1 Aug 2012 08:30:06 +0000 (10:30 +0200)]
s3:libnet_join: make use of cli_get_session_key() in libnet_join_joindomain_rpc()

metze

11 years agos3:rpc_client: make use of smbXcli_session_application_key()
Stefan Metzmacher [Wed, 1 Aug 2012 08:18:22 +0000 (10:18 +0200)]
s3:rpc_client: make use of smbXcli_session_application_key()

metze

11 years agos4:libcli/raw: remove unused smbcli_session->user_session_key
Stefan Metzmacher [Wed, 1 Aug 2012 07:41:53 +0000 (09:41 +0200)]
s4:libcli/raw: remove unused smbcli_session->user_session_key

metze

11 years agos4:librpc/dcerpc_smb2: sync smb2_session_key() with smb_session_key()
Stefan Metzmacher [Wed, 1 Aug 2012 07:10:09 +0000 (09:10 +0200)]
s4:librpc/dcerpc_smb2: sync smb2_session_key() with smb_session_key()

metze

11 years agos4:librpc/dcerpc_smb: make use of smbXcli_session_application_key()
Stefan Metzmacher [Wed, 1 Aug 2012 07:09:34 +0000 (09:09 +0200)]
s4:librpc/dcerpc_smb: make use of smbXcli_session_application_key()

metze

11 years agolibcli/smb: remove unused smb2cli_session_application_key()
Stefan Metzmacher [Wed, 1 Aug 2012 07:01:01 +0000 (09:01 +0200)]
libcli/smb: remove unused smb2cli_session_application_key()

metze

11 years agos4:librpc/dcerpc_smb2: make use of smbXcli_session_application_key()
Stefan Metzmacher [Wed, 1 Aug 2012 06:59:57 +0000 (08:59 +0200)]
s4:librpc/dcerpc_smb2: make use of smbXcli_session_application_key()

metze

11 years agolibcli/smb: add smbXcli_session_application_key()
Stefan Metzmacher [Wed, 1 Aug 2012 06:59:01 +0000 (08:59 +0200)]
libcli/smb: add smbXcli_session_application_key()

metze

11 years agos4:libcli/smb_composite: make use of smb1cli_session_set_session_key()
Stefan Metzmacher [Wed, 1 Aug 2012 06:57:40 +0000 (08:57 +0200)]
s4:libcli/smb_composite: make use of smb1cli_session_set_session_key()

metze

11 years agos4:libcli/smb_composite: always use set_user_session_key() helper
Stefan Metzmacher [Wed, 1 Aug 2012 06:55:49 +0000 (08:55 +0200)]
s4:libcli/smb_composite: always use set_user_session_key() helper

metze

11 years agos3:libsmb: make use of smb1cli_session_set_session_key()
Stefan Metzmacher [Wed, 1 Aug 2012 06:54:51 +0000 (08:54 +0200)]
s3:libsmb: make use of smb1cli_session_set_session_key()

metze

11 years agolibcli/smb: allow resetting of the smb1 application_key
Stefan Metzmacher [Wed, 1 Aug 2012 12:14:39 +0000 (14:14 +0200)]
libcli/smb: allow resetting of the smb1 application_key

We need this untill we have fixed all callers...

metze

11 years agolibcli/smb: let smb1cli_session_set_id() reset the application_key
Stefan Metzmacher [Wed, 1 Aug 2012 11:25:18 +0000 (13:25 +0200)]
libcli/smb: let smb1cli_session_set_id() reset the application_key

We have some callers which reuse smbXcli_session,
e.g. cli_state_set_uid()

metze

11 years agolibcli/smb: add smb1cli_session_set_session_key()
Stefan Metzmacher [Wed, 1 Aug 2012 06:53:30 +0000 (08:53 +0200)]
libcli/smb: add smb1cli_session_set_session_key()

metze

11 years agos3:ctdbd_conn: use unitX_t types consistently throughout the module
Michael Adam [Mon, 30 Jul 2012 13:31:59 +0000 (09:31 -0400)]
s3:ctdbd_conn: use unitX_t types consistently throughout the module

Signed-off-by: Stefan Metzmacher <metze@samba.org>
11 years agoAdd two flags to allow for handling of Extended Signatures (Session Key Protection...
Richard Sharpe [Wed, 1 Aug 2012 02:36:18 +0000 (19:36 -0700)]
Add two flags to allow for handling of Extended Signatures (Session Key Protection) on a TCON_AND_X request and response.

Autobuild-User(master): Richard Sharpe <sharpe@samba.org>
Autobuild-Date(master): Wed Aug  1 06:36:37 CEST 2012 on sn-devel-104

11 years agoMake it possible to build under Solaris make as well as FreeBSD and Linux. Also add...
Richard Sharpe [Sun, 3 Jun 2012 05:27:22 +0000 (22:27 -0700)]
Make it possible to build under Solaris make as well as FreeBSD and Linux. Also add comments on changes that might be needed

11 years agoVERSION: Move on to beta6!
Andrew Bartlett [Tue, 31 Jul 2012 02:25:56 +0000 (12:25 +1000)]
VERSION: Move on to beta6!

Autobuild-User(master): Andrew Bartlett <abartlet@samba.org>
Autobuild-Date(master): Tue Jul 31 16:09:23 CEST 2012 on sn-devel-104

11 years agoVERSION: Mark as the beta5 release save-diskspace-tags/samba-4.0.0beta5
Andrew Bartlett [Tue, 31 Jul 2012 02:25:16 +0000 (12:25 +1000)]
VERSION: Mark as the beta5 release

11 years agoWHATSNEW: prepare for 4.0 beta5
Andrew Bartlett [Tue, 31 Jul 2012 02:24:49 +0000 (12:24 +1000)]
WHATSNEW: prepare for 4.0 beta5

11 years agos4-repl: Add tests for add replication conflicts and use of LostAndFound
Andrew Bartlett [Mon, 30 Jul 2012 06:00:58 +0000 (16:00 +1000)]
s4-repl: Add tests for add replication conflicts and use of LostAndFound

LostAndFound is used when we find children of a deleted object that are not themselves deleted.

Andrew Bartlett

11 years agos4-dsdb: Replace any existing lastKnownParent attribute during delete
Andrew Bartlett [Tue, 31 Jul 2012 00:47:57 +0000 (10:47 +1000)]
s4-dsdb: Replace any existing lastKnownParent attribute during delete

This allows a lastKnownParent from LostAndFound to be replaced.

Andrew Bartlett

11 years agos4-dsdb: Improve tracing in repl_meta_data
Andrew Bartlett [Tue, 31 Jul 2012 00:18:43 +0000 (10:18 +1000)]
s4-dsdb: Improve tracing in repl_meta_data

When we call ldb_module_done() rather than just calling the callback, we make log entries
that are critical in debugging.

Andrew Bartlett

11 years agos4-dsdb: Handle rename conflicts in both directions
Andrew Bartlett [Mon, 30 Jul 2012 02:11:35 +0000 (12:11 +1000)]
s4-dsdb: Handle rename conflicts in both directions

Previously we would only consider renaming the local object, now we can cope with
renaming the remote object as well.

This should avoid most of the cases where Samba AD replication can just stop.

Andrew Bartlett

11 years agolib/ldb: Ensure rename target does not exist before deleting old record
Andrew Bartlett [Tue, 31 Jul 2012 00:17:20 +0000 (10:17 +1000)]
lib/ldb: Ensure rename target does not exist before deleting old record

This is all in a transaction, but when we are handling rename errors in the repl_meta_data
module, we key off the error, and do not close the transaction.  We found that the
old record was gone and so could not try renaming it again to a conflict DN.

Andrew Bartlett

11 years agos4-dsdb: Request extended DN and show deleted when searching for a possible parent
Andrew Bartlett [Tue, 31 Jul 2012 07:10:42 +0000 (17:10 +1000)]
s4-dsdb: Request extended DN and show deleted when searching for a possible parent

This fixes up the lastKnownParent attribute on lostAndFound objects to have a GUID

(found by dbcheck).

Andrew Bartlett

11 years agos3: Fix Coverity ID 710791 Resource leak
Volker Lendecke [Mon, 30 Jul 2012 12:50:52 +0000 (14:50 +0200)]
s3: Fix Coverity ID 710791 Resource leak

Signed-off-by: Stefan Metzmacher <metze@samba.org>
Autobuild-User(master): Stefan Metzmacher <metze@samba.org>
Autobuild-Date(master): Tue Jul 31 13:34:53 CEST 2012 on sn-devel-104

11 years agos3: Fix Coverity ID 710803 Resource leak
Volker Lendecke [Mon, 30 Jul 2012 12:48:28 +0000 (14:48 +0200)]
s3: Fix Coverity ID 710803 Resource leak

Signed-off-by: Stefan Metzmacher <metze@samba.org>
11 years agos3: Fix Coverity ID 710818 Resource leak
Volker Lendecke [Mon, 30 Jul 2012 12:45:25 +0000 (14:45 +0200)]
s3: Fix Coverity ID 710818 Resource leak

Signed-off-by: Stefan Metzmacher <metze@samba.org>
11 years agos3: Fix Coverity ID 710827 Resource leak
Volker Lendecke [Mon, 30 Jul 2012 12:41:42 +0000 (14:41 +0200)]
s3: Fix Coverity ID 710827 Resource leak

Signed-off-by: Stefan Metzmacher <metze@samba.org>
11 years agotevent: Refer to the correct header in testsuite.c
Volker Lendecke [Mon, 30 Jul 2012 07:00:13 +0000 (09:00 +0200)]
tevent: Refer to the correct header in testsuite.c

Signed-off-by: Stefan Metzmacher <metze@samba.org>
11 years agos3: Make request_timed_out() static
Volker Lendecke [Wed, 30 May 2012 09:31:13 +0000 (11:31 +0200)]
s3: Make request_timed_out() static

Signed-off-by: Stefan Metzmacher <metze@samba.org>
11 years agos3:smbd: do a clean shutdown during release_ip() after CTDB_SRVID_RELEASE_IP
Stefan Metzmacher [Sun, 29 Jul 2012 21:23:09 +0000 (23:23 +0200)]
s3:smbd: do a clean shutdown during release_ip() after CTDB_SRVID_RELEASE_IP

metze

Autobuild-User(master): Stefan Metzmacher <metze@samba.org>
Autobuild-Date(master): Tue Jul 31 11:33:27 CEST 2012 on sn-devel-104

11 years agos3:smbd: use print_sockaddr() instead of client_socket_addr()
Stefan Metzmacher [Sun, 29 Jul 2012 21:27:56 +0000 (23:27 +0200)]
s3:smbd: use print_sockaddr() instead of client_socket_addr()

We already have a server address in sockaddr_storage format.

Also the name "client_socket" was very miss leading,
as it returns the local address of the socket.

metze

11 years agos3:smbd: move smbd_register_ips() next to release_ip()
Stefan Metzmacher [Sun, 29 Jul 2012 21:25:12 +0000 (23:25 +0200)]
s3:smbd: move smbd_register_ips() next to release_ip()

metze

11 years agos3:dbwrap_ctdb: initialize db_record->db
Stefan Metzmacher [Tue, 31 Jul 2012 07:30:29 +0000 (09:30 +0200)]
s3:dbwrap_ctdb: initialize db_record->db

metze

11 years agoldb: Add parameter to avoid NULL format string flagged by -Werror=format
Andrew Bartlett [Mon, 30 Jul 2012 11:53:15 +0000 (21:53 +1000)]
ldb: Add parameter to avoid NULL format string flagged by -Werror=format

Autobuild-User(master): Andrew Bartlett <abartlet@samba.org>
Autobuild-Date(master): Mon Jul 30 15:48:53 CEST 2012 on sn-devel-104

11 years agos3-utils: Add cast to fix error found by -Werror=format
Andrew Bartlett [Mon, 30 Jul 2012 07:54:39 +0000 (17:54 +1000)]
s3-utils: Add cast to fix error found by -Werror=format

Autobuild-User(master): Andrew Bartlett <abartlet@samba.org>
Autobuild-Date(master): Mon Jul 30 11:51:02 CEST 2012 on sn-devel-104

11 years agobuild: Add more -Werror flags now the tree is clean of these errors
Andrew Bartlett [Mon, 30 Jul 2012 03:40:57 +0000 (13:40 +1000)]
build: Add more -Werror flags now the tree is clean of these errors

Autobuild-User(master): Andrew Bartlett <abartlet@samba.org>
Autobuild-Date(master): Mon Jul 30 08:23:24 CEST 2012 on sn-devel-104

11 years agos4-torture: Fix format string errors found by -Werror=format
Andrew Bartlett [Mon, 30 Jul 2012 04:05:50 +0000 (14:05 +1000)]
s4-torture: Fix format string errors found by -Werror=format

11 years agolib/tdb: Fix format string errors found by -Werror=format in tdb tests
Andrew Bartlett [Mon, 30 Jul 2012 03:40:37 +0000 (13:40 +1000)]
lib/tdb: Fix format string errors found by -Werror=format in tdb tests

11 years agolib/ntdb: Fix format string errors found by -Werror=format in ntdb tests
Andrew Bartlett [Mon, 30 Jul 2012 03:40:19 +0000 (13:40 +1000)]
lib/ntdb: Fix format string errors found by -Werror=format in ntdb tests

11 years agolib/ccan: Fix format string errors found by -Werror=format in ccan failtest
Andrew Bartlett [Mon, 30 Jul 2012 03:39:41 +0000 (13:39 +1000)]
lib/ccan: Fix format string errors found by -Werror=format in ccan failtest

11 years agoauth/kerberos: Do not do pointer arithmatic on a void *
Andrew Bartlett [Mon, 30 Jul 2012 03:22:16 +0000 (13:22 +1000)]
auth/kerberos: Do not do pointer arithmatic on a void *

Found with -Werror=pointer-arith

Andrew Bartlett

11 years agos4-samba-tool ldapcmp: Fix synopsis
Andrew Bartlett [Fri, 6 Jul 2012 06:11:09 +0000 (16:11 +1000)]
s4-samba-tool ldapcmp: Fix synopsis

Autobuild-User(master): Andrew Bartlett <abartlet@samba.org>
Autobuild-Date(master): Mon Jul 30 06:25:46 CEST 2012 on sn-devel-104

11 years agos4-samba-tool ldapcmp: Add ridNextRID and rIDPreviousAllocationPool as per-DC attributes
Andrew Bartlett [Fri, 6 Jul 2012 06:10:35 +0000 (16:10 +1000)]
s4-samba-tool ldapcmp: Add ridNextRID and rIDPreviousAllocationPool as per-DC attributes

11 years agodfs_server_ad: s/acct/aname as acct() is a function
Stefan Metzmacher [Sun, 29 Jul 2012 23:21:16 +0000 (01:21 +0200)]
dfs_server_ad: s/acct/aname as acct() is a function

metze

Autobuild-User(master): Stefan Metzmacher <metze@samba.org>
Autobuild-Date(master): Mon Jul 30 03:17:49 CEST 2012 on sn-devel-104

11 years agodfs_server_ad: return STATUS_NOT_FOUND if the client connects to an ip address
Stefan Metzmacher [Sun, 29 Jul 2012 22:49:13 +0000 (00:49 +0200)]
dfs_server_ad: return STATUS_NOT_FOUND if the client connects to an ip address

metze

11 years agos4-dsdb: Fill in lastKnownParent when moving to lostAndFound
Andrew Bartlett [Sat, 28 Jul 2012 05:27:26 +0000 (15:27 +1000)]
s4-dsdb: Fill in lastKnownParent when moving to lostAndFound

Autobuild-User(master): Andrew Bartlett <abartlet@samba.org>
Autobuild-Date(master): Sun Jul 29 16:51:34 CEST 2012 on sn-devel-104

11 years agos4-dsdb: Do not strip base components off DN before searching for NC root
Andrew Bartlett [Sun, 29 Jul 2012 05:03:21 +0000 (15:03 +1000)]
s4-dsdb: Do not strip base components off DN before searching for NC root

11 years agos4-dsdb: Change move to lostAndFound to use container in this partiion and add debugging
Andrew Bartlett [Fri, 27 Jul 2012 23:40:39 +0000 (09:40 +1000)]
s4-dsdb: Change move to lostAndFound to use container in this partiion and add debugging

The logic looking for LostAndFound failed for a user, so add extensive
debugging to make this eaiser to trace down in future.

Andrew Bartlett

11 years agos4-dsdb: Provide a way to force incoming renames to take priority
Andrew Bartlett [Fri, 8 Jun 2012 02:26:32 +0000 (12:26 +1000)]
s4-dsdb: Provide a way to force incoming renames to take priority

This should mean that a samba-tool drs replicate --full-sync forces a
replication of all objects, regardless of if we think the local name
is newer and regards any local name as being in conflict.

Andrew Bartlett