samba.git
11 years agoVERSION: Mark as the beta5 release 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

11 years agos4-dsdb: Provide a way to handle conflicts due to rename
Andrew Bartlett [Fri, 8 Jun 2012 02:25:29 +0000 (12:25 +1000)]
s4-dsdb: Provide a way to handle conflicts due to rename

This allows us to proceed with replication when the source DC is sending us an object
which has a matching object in this NC (by name) but not by GUID.

Andrew Bartlett

11 years agos4-librpc: Fix private context for dcerpc_connect_timeout_handler
Andrew Bartlett [Sun, 29 Jul 2012 10:37:39 +0000 (20:37 +1000)]
s4-librpc: Fix private context for dcerpc_connect_timeout_handler

This was incorrect in 02a356ea775a3ba589cb50af3c861ab86aaffa0b.

Andrew Bartlett

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

11 years agos4-repl: Use ldb_dn_new() to create the rootDSE DN
Andrew Bartlett [Sun, 29 Jul 2012 08:47:24 +0000 (18:47 +1000)]
s4-repl: Use ldb_dn_new() to create the rootDSE DN

Based on a patch proposal by Matthieu Patou <mat@matws.net>.

Andrew Bartlett

11 years agos4-repl: Use NULL for pointer test when checking for ldb_msg_new() failure
Andrew Bartlett [Sun, 29 Jul 2012 08:46:40 +0000 (18:46 +1000)]
s4-repl: Use NULL for pointer test when checking for ldb_msg_new() failure

11 years agos3-libsmbclient: Add missing talloc_stackframe() calls
Andrew Bartlett [Sun, 29 Jul 2012 01:25:04 +0000 (11:25 +1000)]
s3-libsmbclient: Add missing talloc_stackframe() calls

These caused a panic with the new assertion on the talloc stackframe being
in place.

Andrew Bartlett

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

11 years agos4-dbcheck: Add lastKnownParent when moving an object to lostAndFound
Andrew Bartlett [Sat, 28 Jul 2012 00:59:09 +0000 (10:59 +1000)]
s4-dbcheck: Add lastKnownParent when moving an object to lostAndFound

Autobuild-User(master): Andrew Bartlett <abartlet@samba.org>
Autobuild-Date(master): Sat Jul 28 05:40:43 CEST 2012 on sn-devel-104

11 years agolib/param: Rename "socket address" to "nbt client socket address" to clarify role
Andrew Bartlett [Fri, 27 Jul 2012 02:56:22 +0000 (12:56 +1000)]
lib/param: Rename "socket address" to "nbt client socket address" to clarify role

This parameter is only used in our NBT client code and in nmbd as a
fallback when we fail to select a better interface from "interfaces"
to use directly.

Andrew Bartlett

Autobuild-User(master): Andrew Bartlett <abartlet@samba.org>
Autobuild-Date(master): Fri Jul 27 12:16:25 CEST 2012 on sn-devel-104

11 years agolib/param: Remove use of lp{cfg,}_socket_address outside the NBT client and server
Andrew Bartlett [Fri, 27 Jul 2012 02:31:28 +0000 (12:31 +1000)]
lib/param: Remove use of lp{cfg,}_socket_address outside the NBT client and server

In these other cases, control of the sockets to bind to can be obtained using
"bind interfaces only = yes" and "interfaces = ".

Andrew Bartlett

11 years agolib/param: Mark lpcfg_cachedir and lpcfg_statedir as const char *
Andrew Bartlett [Fri, 27 Jul 2012 01:11:58 +0000 (11:11 +1000)]
lib/param: Mark lpcfg_cachedir and lpcfg_statedir as const char *

This matters as we sync up the declarations with the source3/param code.

Andrew Bartlett

Autobuild-User(master): Andrew Bartlett <abartlet@samba.org>
Autobuild-Date(master): Fri Jul 27 05:26:45 CEST 2012 on sn-devel-104

11 years agolib/param: Remove unused "paranoid server security"
Andrew Bartlett [Fri, 27 Jul 2012 00:34:05 +0000 (10:34 +1000)]
lib/param: Remove unused "paranoid server security"

This became unused when security=server went away.

Andrew Bartlett

11 years agodocs: Mark "socket address" as deprecated
Andrew Bartlett [Mon, 23 Jul 2012 03:15:23 +0000 (13:15 +1000)]
docs: Mark "socket address" as deprecated

11 years agoparam: Make socket_address common, Revert 611ef42053eb99f4c29d4efa86eaea9f1ca06286
Andrew Bartlett [Sun, 22 Jul 2012 23:23:04 +0000 (09:23 +1000)]
param: Make socket_address common, Revert 611ef42053eb99f4c29d4efa86eaea9f1ca06286

This essentially reverts the commit 611ef42053eb99f4c29d4efa86eaea9f1ca06286
Author: Yasuma Takeda <yasuma@osstech.co.jp>
Date:   Fri Dec 5 13:37:51 2008 -0800

    Fix bug #5944 - nmbd does not boot if socket adress = "" is defined in smb.conf

Intead, the documentation is fixed so that the correct default is
recorded.  Removing the special case handling here allows this to be
dealt with in the same way as all other parameters.

Andrew Bartlett

11 years agolib/param: Merge parameter tables into a common file
Andrew Bartlett [Mon, 23 Jul 2012 03:53:16 +0000 (13:53 +1000)]
lib/param: Merge parameter tables into a common file

This file is then included into both loadparm systems.

Andrew Bartlett

Pair-Programmed-With: Andrew Tridgell <tridge@samba.org>

11 years agolib/param: Merge in source3 parameters into parmeter table
Andrew Bartlett [Thu, 26 Jul 2012 23:07:19 +0000 (09:07 +1000)]
lib/param: Merge in source3 parameters into parmeter table

This finishes the series to remove the various warnings from smb.conf
loading when a source3 parameter is used.

Based on an earlier patch
Pair-Programmed-With: Andrew Tridgell <tridge@samba.org>

Andrew Bartlett

11 years agolib/param: Merge "Security Options" section from source3/param
Andrew Bartlett [Fri, 27 Jul 2012 00:15:10 +0000 (10:15 +1000)]
lib/param: Merge "Security Options" section from source3/param

This will make the merge of the whole table smoother.

Based on an earlier patch
Pair-Programmed-With: Andrew Tridgell <tridge@samba.org>

Andrew Bartlett

11 years agolib/param: Merge "Logging Options" section from source3/param
Andrew Bartlett [Thu, 26 Jul 2012 23:54:39 +0000 (09:54 +1000)]
lib/param: Merge "Logging Options" section from source3/param

This will make the merge of the whole table smoother.

Based on an earlier patch
Pair-Programmed-With: Andrew Tridgell <tridge@samba.org>

Andrew Bartlett

11 years agos3-param: Merge "log file" parameter with lib/param
Andrew Bartlett [Fri, 27 Jul 2012 00:01:44 +0000 (10:01 +1000)]
s3-param: Merge "log file" parameter with lib/param

The lib/param code uses a special handler for setting the log file.

We need to set this here, so that we can make this table common.

Andrew Bartlett

11 years agolib/param: Merge "Protocol Options" section from source3/param
Andrew Bartlett [Thu, 26 Jul 2012 06:45:59 +0000 (16:45 +1000)]
lib/param: Merge "Protocol Options" section from source3/param

This will make the merge of the whole table smoother.

Based on an earlier patch
Pair-Programmed-With: Andrew Tridgell <tridge@samba.org>

Andrew Bartlett

11 years agolib/param: Merge "Tuning Options" section from source3/param
Andrew Bartlett [Thu, 26 Jul 2012 06:37:21 +0000 (16:37 +1000)]
lib/param: Merge "Tuning Options" section from source3/param

This will reduced the weight of the eventual merge of all of source3/param.

Andrew Bartlett

11 years agolib/param: Merge "Printing Options" section from source3/param
Andrew Bartlett [Thu, 26 Jul 2012 06:33:47 +0000 (16:33 +1000)]
lib/param: Merge "Printing Options" section from source3/param

This will reduced the weight of the eventual merge of all of source3/param.

Andrew Bartlett

11 years agos3-build: Make recursive waf build a developer build again (to build developer test...
Andrew Bartlett [Thu, 26 Jul 2012 22:53:54 +0000 (08:53 +1000)]
s3-build: Make recursive waf build a developer build again (to build developer test facilities)

My commit f446506608ba93303b9c671bdaacd692f72bad28 was to work around the automatic ABI check
in the waf developer build.  However, now that the validity of loadparm options depends on
this being a developer build, we need to change back, but disable the ABI check.

Andrew Bartlett

11 years agos3:vlp: fix build on OS X
Björn Jacke [Thu, 26 Jul 2012 23:04:33 +0000 (01:04 +0200)]
s3:vlp: fix build on OS X

Autobuild-User(master): Björn Jacke <bj@sernet.de>
Autobuild-Date(master): Fri Jul 27 03:13:59 CEST 2012 on sn-devel-104

11 years agobuildtools: use egrep when we need the "-f patternfile" option
Björn Jacke [Thu, 26 Jul 2012 16:55:43 +0000 (18:55 +0200)]
buildtools: use egrep when we need the "-f patternfile" option

Solaris' default grep doesn't know the -f option

Autobuild-User(master): Björn Jacke <bj@sernet.de>
Autobuild-Date(master): Thu Jul 26 20:49:18 CEST 2012 on sn-devel-104

11 years agos3/aio_fork: fix build on irix
Björn Jacke [Thu, 26 Jul 2012 16:27:40 +0000 (18:27 +0200)]
s3/aio_fork: fix build on irix

IRIX needs _XOPEN_SOURCE defined for SCM_RIGHTS to be available

11 years agos3: use libreplace in pthreadpooltest to fix some builds
Björn Jacke [Thu, 26 Jul 2012 16:07:29 +0000 (18:07 +0200)]
s3: use libreplace in pthreadpooltest to fix some builds

11 years agos3: add Darwin sendfile support and merge with the FreeBSD code
Björn Jacke [Fri, 29 Jun 2012 18:16:18 +0000 (20:16 +0200)]
s3: add Darwin sendfile support and merge with the FreeBSD code

This is based on the adpotion of the FreeBSD sendfile code that was done by
James Peach for Darwin.

Autobuild-User(master): Björn Jacke <bj@sernet.de>
Autobuild-Date(master): Thu Jul 26 17:19:09 CEST 2012 on sn-devel-104

11 years agos3:waf: add Darwin sendfile() test
Björn Jacke [Mon, 2 Jul 2012 10:47:06 +0000 (12:47 +0200)]
s3:waf: add Darwin sendfile() test

11 years agos3:configure: add Darwin sendfile() test
Björn Jacke [Fri, 29 Jun 2012 18:13:57 +0000 (20:13 +0200)]
s3:configure: add Darwin sendfile() test

11 years agolib/param: Merge "Filename Handling" section from source3/param
Andrew Bartlett [Thu, 26 Jul 2012 06:32:11 +0000 (16:32 +1000)]
lib/param: Merge "Filename Handling" section from source3/param

This will make the merge of the whole table smoother.

Based on an earlier patch
Pair-Programmed-With: Andrew Tridgell <tridge@samba.org>

Andrew Bartlett

Autobuild-User(master): Andrew Bartlett <abartlet@samba.org>
Autobuild-Date(master): Thu Jul 26 14:16:02 CEST 2012 on sn-devel-104

11 years agolib/param: Merge "Domain Options" section from source3/param
Andrew Bartlett [Thu, 26 Jul 2012 06:28:51 +0000 (16:28 +1000)]
lib/param: Merge "Domain Options" section from source3/param

This will make the merge of the whole table smoother.

Based on an earlier patch
Pair-Programmed-With: Andrew Tridgell <tridge@samba.org>

Andrew Bartlett

11 years agolib/param: Merge "Logon Options" section from source3/param
Andrew Bartlett [Thu, 26 Jul 2012 06:25:29 +0000 (16:25 +1000)]
lib/param: Merge "Logon Options" section from source3/param

This will make the merge of the whole table smoother.

Based on an earlier patch
Pair-Programmed-With: Andrew Tridgell <tridge@samba.org>

Andrew Bartlett

11 years agolib/param: Merge "Browse Options" section from source3/param
Andrew Bartlett [Thu, 26 Jul 2012 06:03:09 +0000 (16:03 +1000)]
lib/param: Merge "Browse Options" section from source3/param

This will make the merge of the whole table smoother.

Based on an earlier patch
Pair-Programmed-With: Andrew Tridgell <tridge@samba.org>

Andrew Bartlett

11 years agolib/param: Merge "WINS Options" section from source3/param
Andrew Bartlett [Thu, 26 Jul 2012 06:00:40 +0000 (16:00 +1000)]
lib/param: Merge "WINS Options" section from source3/param

This will make the merge of the whole table smoother.

Based on an earlier patch
Pair-Programmed-With: Andrew Tridgell <tridge@samba.org>

Andrew Bartlett

11 years agolib/param: Merge "Locking Options" section from source3/param
Andrew Bartlett [Thu, 26 Jul 2012 05:58:54 +0000 (15:58 +1000)]
lib/param: Merge "Locking Options" section from source3/param

This will make the merge of the whole table smoother.

Based on an earlier patch
Pair-Programmed-With: Andrew Tridgell <tridge@samba.org>

Andrew Bartlett

11 years agolib/param: Merge "Ldap Options" section from source3/param
Andrew Bartlett [Thu, 26 Jul 2012 05:56:15 +0000 (15:56 +1000)]
lib/param: Merge "Ldap Options" section from source3/param

This will make the merge of the whole table smoother.

Based on an earlier patch
Pair-Programmed-With: Andrew Tridgell <tridge@samba.org>

Andrew Bartlett

11 years agolib/param: Merge "EventLog Options" section from source3/param
Andrew Bartlett [Thu, 26 Jul 2012 05:54:25 +0000 (15:54 +1000)]
lib/param: Merge "EventLog Options" section from source3/param

This will make the merge of the whole table smoother.

Based on an earlier patch
Pair-Programmed-With: Andrew Tridgell <tridge@samba.org>

Andrew Bartlett

11 years agolib/param: Merge "Miscellaneous Options" section from source3/param
Andrew Bartlett [Mon, 23 Jul 2012 23:44:03 +0000 (09:44 +1000)]
lib/param: Merge "Miscellaneous Options" section from source3/param

This will make the merge of the whole table smoother.

Based on an earlier patch
Pair-Programmed-With: Andrew Tridgell <tridge@samba.org>

Andrew Bartlett

11 years agos3:smb2_negprot: return the current system time in the SMB2 NEGPROT response
Stefan Metzmacher [Thu, 26 Jul 2012 07:55:29 +0000 (09:55 +0200)]
s3:smb2_negprot: return the current system time in the SMB2 NEGPROT response

metze

Autobuild-User(master): Stefan Metzmacher <metze@samba.org>
Autobuild-Date(master): Thu Jul 26 11:56:02 CEST 2012 on sn-devel-104

11 years agos3:smbd: fix compiler warnings in notify_internal.c
Stefan Metzmacher [Thu, 26 Jul 2012 06:37:43 +0000 (08:37 +0200)]
s3:smbd: fix compiler warnings in notify_internal.c

metze

11 years agolibcli/smb: add basic session->smb2.channel_sequence handling
Stefan Metzmacher [Wed, 25 Jul 2012 23:54:33 +0000 (01:54 +0200)]
libcli/smb: add basic session->smb2.channel_sequence handling

metze

11 years agolibcli/smb: add SMB2_HDR_CHANNEL_SEQUENCE
Stefan Metzmacher [Wed, 25 Jul 2012 23:54:02 +0000 (01:54 +0200)]
libcli/smb: add SMB2_HDR_CHANNEL_SEQUENCE

metze

11 years agolibcli/smb: introduce a smb2cli_session
Stefan Metzmacher [Thu, 26 Jul 2012 00:36:37 +0000 (02:36 +0200)]
libcli/smb: introduce a smb2cli_session

This maintains the shared state between multiple session
channels.

metze

11 years agos3:smb2_sesssetup: reject SMB2_SESSION_FLAG_BINDING requests
Stefan Metzmacher [Wed, 25 Jul 2012 22:11:13 +0000 (00:11 +0200)]
s3:smb2_sesssetup: reject SMB2_SESSION_FLAG_BINDING requests

metze

Autobuild-User(master): Stefan Metzmacher <metze@samba.org>
Autobuild-Date(master): Thu Jul 26 02:08:56 CEST 2012 on sn-devel-104

11 years agos3:libcli/smb: add SMB2_SESSION_FLAG_BINDING
Stefan Metzmacher [Wed, 25 Jul 2012 22:10:38 +0000 (00:10 +0200)]
s3:libcli/smb: add SMB2_SESSION_FLAG_BINDING

metze

11 years agos3:smb2_ioctl: fix GUID_compare() check in FSCTL_VALIDATE_NEGOTIATE_INFO
Stefan Metzmacher [Wed, 25 Jul 2012 14:43:58 +0000 (16:43 +0200)]
s3:smb2_ioctl: fix GUID_compare() check in FSCTL_VALIDATE_NEGOTIATE_INFO

metze

11 years agos3:smb2_ioctl: allow clients to send padding at the end of FSCTL_VALIDATE_NEGOTIATE_INFO
Stefan Metzmacher [Wed, 25 Jul 2012 14:38:45 +0000 (16:38 +0200)]
s3:smb2_ioctl: allow clients to send padding at the end of FSCTL_VALIDATE_NEGOTIATE_INFO

metze

11 years agos3:smb2_ioctl: remove FSCTL_VALIDATE_NEGOTIATE_INFO_224 implementation
Stefan Metzmacher [Wed, 25 Jul 2012 21:29:28 +0000 (23:29 +0200)]
s3:smb2_ioctl: remove FSCTL_VALIDATE_NEGOTIATE_INFO_224 implementation

Only Windows8 Beta uses this and it's broken, the client send wrong
capabilities. Just returning an error seems to be fine for the Windows8 Beta
client.

metze

11 years agolibcli/smb: setup tcon->smb2.should_encrypt in smb2cli_tcon_set_values()
Stefan Metzmacher [Wed, 25 Jul 2012 10:34:20 +0000 (12:34 +0200)]
libcli/smb: setup tcon->smb2.should_encrypt in smb2cli_tcon_set_values()

metze

Autobuild-User(master): Stefan Metzmacher <metze@samba.org>
Autobuild-Date(master): Wed Jul 25 16:44:22 CEST 2012 on sn-devel-104

11 years agolibcli/smb: pass smbXcli_session to smb2cli_tcon_set_values()
Stefan Metzmacher [Wed, 25 Jul 2012 10:33:39 +0000 (12:33 +0200)]
libcli/smb: pass smbXcli_session to smb2cli_tcon_set_values()

metze

11 years agos4:libcli/smb2: remove unused smb2_session->pid
Stefan Metzmacher [Wed, 25 Jul 2012 09:40:54 +0000 (11:40 +0200)]
s4:libcli/smb2: remove unused smb2_session->pid

metze

11 years agos3:libsmb: remove unused cli_state->smb2.pid
Stefan Metzmacher [Wed, 25 Jul 2012 09:26:22 +0000 (11:26 +0200)]
s3:libsmb: remove unused cli_state->smb2.pid

metze

11 years agos4:libcli/smb2: remove unused variable
Stefan Metzmacher [Wed, 25 Jul 2012 08:59:12 +0000 (10:59 +0200)]
s4:libcli/smb2: remove unused variable

metze

11 years agolibcli/smb: there's no PID field in the SMB2/3 header anymore
Stefan Metzmacher [Wed, 25 Jul 2012 08:58:34 +0000 (10:58 +0200)]
libcli/smb: there's no PID field in the SMB2/3 header anymore

It's a reserved field...

metze

11 years agolibcli/smb: pass smbXcli_tcon to smb2cli_req_create/send()
Stefan Metzmacher [Wed, 25 Jul 2012 08:36:27 +0000 (10:36 +0200)]
libcli/smb: pass smbXcli_tcon to smb2cli_req_create/send()

metze

11 years agos4:libcli/smb2: remove unused elements from smb2_tree
Stefan Metzmacher [Wed, 25 Jul 2012 07:31:15 +0000 (09:31 +0200)]
s4:libcli/smb2: remove unused elements from smb2_tree

metze

11 years agos4:torture/smb2: create temporary smbXcli_tcon/session structures instead of changing...
Stefan Metzmacher [Wed, 25 Jul 2012 07:29:00 +0000 (09:29 +0200)]
s4:torture/smb2: create temporary smbXcli_tcon/session structures instead of changing them

metze

11 years agos4:torture/smb2: use smb2cli_tcon_capabilities()
Stefan Metzmacher [Wed, 25 Jul 2012 07:27:34 +0000 (09:27 +0200)]
s4:torture/smb2: use smb2cli_tcon_capabilities()

metze

11 years agolibcli/smb: add smb2cli_tcon_capabilities()
Stefan Metzmacher [Wed, 25 Jul 2012 07:27:00 +0000 (09:27 +0200)]
libcli/smb: add smb2cli_tcon_capabilities()

metze

11 years agos3:libsmb: remove unused tcon specific elements from cli_state->smb2
Stefan Metzmacher [Wed, 25 Jul 2012 07:05:32 +0000 (09:05 +0200)]
s3:libsmb: remove unused tcon specific elements from cli_state->smb2

metze

11 years agos3:libsmb: remove cli_state->smb2.tid
Stefan Metzmacher [Wed, 25 Jul 2012 07:01:02 +0000 (09:01 +0200)]
s3:libsmb: remove cli_state->smb2.tid

metze

11 years agos4:torture: remove unused shm_setup()
Stefan Metzmacher [Wed, 25 Jul 2012 06:36:10 +0000 (08:36 +0200)]
s4:torture: remove unused shm_setup()

metze

11 years agos4:torture: replace shm_setup() with anonymous_shared_allocate()
Stefan Metzmacher [Wed, 25 Jul 2012 06:35:44 +0000 (08:35 +0200)]
s4:torture: replace shm_setup() with anonymous_shared_allocate()

metze

11 years agos3:torture: remove unused shm_setup()
Stefan Metzmacher [Wed, 25 Jul 2012 06:35:17 +0000 (08:35 +0200)]
s3:torture: remove unused shm_setup()

metze

11 years agos3:torture: replace shm_setup() with anonymous_shared_allocate()
Stefan Metzmacher [Wed, 25 Jul 2012 06:33:31 +0000 (08:33 +0200)]
s3:torture: replace shm_setup() with anonymous_shared_allocate()

metze

11 years agos3:smb2_server: simplify the talloc_pool handling for smbd_smb2_request
Stefan Metzmacher [Mon, 23 Jul 2012 16:22:59 +0000 (18:22 +0200)]
s3:smb2_server: simplify the talloc_pool handling for smbd_smb2_request

metze

11 years agoFix bug 9065: source3/registry/regfio.c: bad call to memcpy
David Binderman [Tue, 24 Jul 2012 22:46:10 +0000 (15:46 -0700)]
Fix bug 9065: source3/registry/regfio.c: bad call to memcpy
Signed-off-by: Jeremy Allison <jra@samba.org>
Autobuild-User(master): Jeremy Allison <jra@samba.org>
Autobuild-Date(master): Wed Jul 25 02:42:32 CEST 2012 on sn-devel-104