ambi/samba-autobuild/.git
11 years agoWHATSNEW: Update with fix for smbd-fileserver.conf.pid startup failures
Andrew Bartlett [Mon, 2 Jul 2012 22:21:23 +0000 (08:21 +1000)]
WHATSNEW: Update with fix for smbd-fileserver.conf.pid startup failures

11 years agos4-dns: Remove refernece to BIND 9.7 supporting GSS-TSIG
Andrew Bartlett [Sun, 1 Jul 2012 22:06:53 +0000 (08:06 +1000)]
s4-dns: Remove refernece to BIND 9.7 supporting GSS-TSIG

This support is too painful to use.

Andrew Bartlett

11 years agos4-bind: Remove patches now incorporated into bind9
Andrew Bartlett [Sun, 1 Jul 2012 21:24:21 +0000 (07:24 +1000)]
s4-bind: Remove patches now incorporated into bind9

These patches are in bind9 now, and we do not recomment using them any more
as the improved version in bind 9.8 is much less prone to failure.

Andrew Bartlett

11 years agos4-dns: Remove dynamic DNS instructions for bind 9.7
Andrew Bartlett [Sun, 1 Jul 2012 21:21:54 +0000 (07:21 +1000)]
s4-dns: Remove dynamic DNS instructions for bind 9.7

This version of BIND only ever caused pain when trying to do dynamic DNS.

If users are using this version, simply treat it as a static server.

Andrew Bartlett

11 years agoauth: Remove .get_challenge (only used for security=server)
Andrew Bartlett [Sat, 30 Jun 2012 08:30:57 +0000 (18:30 +1000)]
auth: Remove .get_challenge (only used for security=server)

With NTLMSSP, for NTLM2 we need to be able to set the effective challenge,
so if we ever did use a module that needed this functionlity, we would
downgrade to just NTLM.

Now that security=server has been removed, we have no such module.

This will make it easier to make the auth subsystem async, as we will
not need to consider making .get_challenge async.

Andrew Bartlett

11 years agoauth/gensec: Remove unused gensec_security parameter
Andrew Bartlett [Sat, 30 Jun 2012 07:32:50 +0000 (17:32 +1000)]
auth/gensec: Remove unused gensec_security parameter

11 years agoselftest: Give Samba4 processes a little longer to clean up
Andrew Bartlett [Fri, 29 Jun 2012 03:38:11 +0000 (13:38 +1000)]
selftest: Give Samba4 processes a little longer to clean up

This may help write out gcov data correctly.

Andrew Bartlett

11 years agofile_server: add [globals] to generated smb.conf
Andrew Bartlett [Tue, 17 Apr 2012 02:56:21 +0000 (12:56 +1000)]
file_server: add [globals] to generated smb.conf

11 years agos3-libpidfile: fix check for running process.
Björn Baumbach [Mon, 2 Jul 2012 13:43:49 +0000 (15:43 +0200)]
s3-libpidfile: fix check for running process.

Call pidfile_pid() with process name instead of pid file name.
pidfile_pid does create the pid file name by itself.

Signed-off-by: Michael Adam <obnox@samba.org>
Autobuild-User(master): Michael Adam <obnox@samba.org>
Autobuild-Date(master): Mon Jul  2 19:19:21 CEST 2012 on sn-devel-104

11 years agos3-libpidfile: some more debug output
Björn Baumbach [Mon, 2 Jul 2012 13:30:49 +0000 (15:30 +0200)]
s3-libpidfile: some more debug output

Signed-off-by: Michael Adam <obnox@samba.org>
11 years agos4-torture: more printf removal from samlogon torture test.
Günther Deschner [Mon, 2 Jul 2012 13:29:06 +0000 (15:29 +0200)]
s4-torture: more printf removal from samlogon torture test.

Guenther

Autobuild-User(master): Günther Deschner <gd@samba.org>
Autobuild-Date(master): Mon Jul  2 17:19:55 CEST 2012 on sn-devel-104

11 years agoWHATSNEW: mention initial support for SMB3
Michael Adam [Mon, 2 Jul 2012 10:49:30 +0000 (12:49 +0200)]
WHATSNEW: mention initial support for SMB3

Autobuild-User(master): Michael Adam <obnox@samba.org>
Autobuild-Date(master): Mon Jul  2 15:15:53 CEST 2012 on sn-devel-104

11 years agoWHATSNEW: Mention SMB 2.1 support (reauthentication/mulit-credit) and config default
Michael Adam [Mon, 2 Jul 2012 10:14:46 +0000 (12:14 +0200)]
WHATSNEW: Mention SMB 2.1 support (reauthentication/mulit-credit) and config default

11 years agoWHATSNEW: prepare for 4.0 beta3
Michael Adam [Mon, 2 Jul 2012 10:12:22 +0000 (12:12 +0200)]
WHATSNEW: prepare for 4.0 beta3

11 years agoDisable selections of USE_LINUX_THREAD_CREDENTIALS until we have specific
Jeremy Allison [Sun, 1 Jul 2012 22:32:44 +0000 (15:32 -0700)]
Disable selections of USE_LINUX_THREAD_CREDENTIALS until we have specific
32-bit and 64-bit versions.

Autobuild-User(master): Jeremy Allison <jra@samba.org>
Autobuild-Date(master): Mon Jul  2 03:02:47 CEST 2012 on sn-devel-104

11 years agoccan: make it a grouping library.
Rusty Russell [Sat, 30 Jun 2012 07:35:38 +0000 (17:05 +0930)]
ccan: make it a grouping library.

Andrew Bartlett pointed out that making CCAN a non-library will break
the build in a different way in future: when two separate private
libraries start using the same CCAN module, the symbol duplicate
detection will fire (since private libaries don't use any symbol
hiding).  That doesn't happen yet, but it will surely happen
eventually.

So, for now at least, we build as a private library again.  This
unfortunately means the top-level build creates a libccan.so, which
contains all the ccan modules whether you need them or not.  Given the
size of the library, I don't think this is a win.  But it's simple.

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
Autobuild-User(master): Rusty Russell <rusty@rustcorp.com.au>
Autobuild-Date(master): Sat Jun 30 11:19:04 CEST 2012 on sn-devel-104

11 years agoDon't allow asynchronous creates to be canceled in SMB2.
Jeremy Allison [Fri, 29 Jun 2012 21:25:53 +0000 (14:25 -0700)]
Don't allow asynchronous creates to be canceled in SMB2.

Autobuild-User(master): Jeremy Allison <jra@samba.org>
Autobuild-Date(master): Sat Jun 30 04:10:02 CEST 2012 on sn-devel-104

11 years agoMake schedule_deferred_open_message_smb() return an indication of success.
Jeremy Allison [Fri, 29 Jun 2012 20:56:26 +0000 (13:56 -0700)]
Make schedule_deferred_open_message_smb() return an indication of success.

11 years agoMake schedule_deferred_open_message_smb2() return an indication of success.
Jeremy Allison [Fri, 29 Jun 2012 20:53:31 +0000 (13:53 -0700)]
Make schedule_deferred_open_message_smb2() return an indication of success.

11 years agoAllow for async opens.
Jeremy Allison [Fri, 29 Jun 2012 20:14:10 +0000 (13:14 -0700)]
Allow for async opens.

If the SMB_VFS_OPEN() function returns -1, EINTR -> NT_STATUS_RETRY,
then queue the open up to be completed when the async open completes.

11 years agoAdd new bool field async_open to struct deferred_open_record. Not used yet.
Jeremy Allison [Fri, 29 Jun 2012 20:00:29 +0000 (13:00 -0700)]
Add new bool field async_open to struct deferred_open_record. Not used yet.

11 years agoFix defer_open() fuction in the open code path to cope with a NULL lck parameter.
Jeremy Allison [Fri, 29 Jun 2012 19:56:57 +0000 (12:56 -0700)]
Fix defer_open() fuction in the open code path to cope with a NULL lck parameter.

11 years agoAdd uint64_t mid field to the files_struct.
Jeremy Allison [Fri, 29 Jun 2012 19:41:47 +0000 (12:41 -0700)]
Add uint64_t mid field to the files_struct.

Ensure it is initialized so we know what mid created this file.

11 years agos3:waf add sendfile support for Tru64, which is the same as HP-UX's
Björn Jacke [Fri, 29 Jun 2012 21:43:56 +0000 (23:43 +0200)]
s3:waf add sendfile support for Tru64, which is the same as HP-UX's

Autobuild-User(master): Björn Jacke <bj@sernet.de>
Autobuild-Date(master): Sat Jun 30 02:22:21 CEST 2012 on sn-devel-104

11 years agos3: add sendfile support for Tru64, which is the same as HP-UX's
Björn Jacke [Fri, 29 Jun 2012 21:36:24 +0000 (23:36 +0200)]
s3: add sendfile support for Tru64, which is the same as HP-UX's

11 years agoTry and fix the autoconf build on Solaris/Nexenta/etc.
Jeremy Allison [Fri, 29 Jun 2012 20:46:23 +0000 (13:46 -0700)]
Try and fix the autoconf build on Solaris/Nexenta/etc.

Their AC_TRY_RUN doesn't include any current CPPFLAGS. Make
the set[res]uid checks independent of this. Needs a small
change to the waf build in order to code with the change.

Autobuild-User(master): Jeremy Allison <jra@samba.org>
Autobuild-Date(master): Sat Jun 30 00:32:36 CEST 2012 on sn-devel-104

11 years agoFix typo in configure.in check for USE_LINUX_THREAD_CREDENTIALS.
Jeremy Allison [Fri, 29 Jun 2012 18:15:49 +0000 (11:15 -0700)]
Fix typo in configure.in check for USE_LINUX_THREAD_CREDENTIALS.

11 years agos3:smbd: make use of smbXsrv_open for smb1/2/3
Stefan Metzmacher [Fri, 8 Jun 2012 15:51:47 +0000 (17:51 +0200)]
s3:smbd: make use of smbXsrv_open for smb1/2/3

This makes sure we generate unique persistent file ids,
which are stored in smbXsrv_open_global.tdb.

Pair-Programmed-With: Michael Adam <obnox@samba.org>

metze

Autobuild-User(master): Stefan Metzmacher <metze@samba.org>
Autobuild-Date(master): Fri Jun 29 21:01:11 CEST 2012 on sn-devel-104

11 years agos3:smbd: add smbXsrv_open* infrastructure
Stefan Metzmacher [Mon, 6 Feb 2012 22:06:41 +0000 (23:06 +0100)]
s3:smbd: add smbXsrv_open* infrastructure

Pair-Programmed-With: Michael Adam <obnox@samba.org>

metze

11 years agos3:smbXsrv.idl: add smbXsrv_open* structures
Stefan Metzmacher [Mon, 12 Mar 2012 17:38:07 +0000 (18:38 +0100)]
s3:smbXsrv.idl: add smbXsrv_open* structures

struct smbXsrv_open will represent a SMB 1 or SMB 2
open file handle, while 'files_struct' will be changed
to handle just the protocol independent glue for the SMB_VFS layer.

Note: the format is not stable yet, we need to add more things
      when we start to support durable handles.

metze

11 years agos3:configure: fix numerous compile warnings about implicit declaration of 'exit'
Björn Jacke [Fri, 29 Jun 2012 15:16:11 +0000 (17:16 +0200)]
s3:configure: fix numerous compile warnings about implicit declaration of 'exit'

use return instead of exit in configure tests to fix those warnings:

warning: incompatible implicit declaration of built-in function 'exit'

Autobuild-User(master): Björn Jacke <bj@sernet.de>
Autobuild-Date(master): Fri Jun 29 19:08:54 CEST 2012 on sn-devel-104

11 years agos3: fix the logic in bsd_statvfs
Björn Jacke [Fri, 29 Jun 2012 15:01:47 +0000 (17:01 +0200)]
s3: fix the logic in bsd_statvfs

11 years agos3:cclean avoid segfault in case of ctdb missbehaviour
Gregor Beck [Fri, 29 Jun 2012 09:42:34 +0000 (11:42 +0200)]
s3:cclean avoid segfault in case of ctdb missbehaviour

Signed-off-by: Michael Adam <obnox@samba.org>
Autobuild-User(master): Michael Adam <obnox@samba.org>
Autobuild-Date(master): Fri Jun 29 17:06:05 CEST 2012 on sn-devel-104

11 years agos3:cclean: fix memory allocation
Gregor Beck [Fri, 29 Jun 2012 09:36:54 +0000 (11:36 +0200)]
s3:cclean: fix memory allocation

Signed-off-by: Michael Adam <obnox@samba.org>
11 years agopackaging(RHEL-CTDB): package cclean tool
Gregor Beck [Wed, 27 Jun 2012 13:07:15 +0000 (15:07 +0200)]
packaging(RHEL-CTDB): package cclean tool

Signed-off-by: Michael Adam <obnox@samba.org>
11 years agopackaging(RHEL-CTDB): make makespec.sh aware of new location of version.h
Gregor Beck [Wed, 27 Jun 2012 12:11:23 +0000 (14:11 +0200)]
packaging(RHEL-CTDB): make makespec.sh aware of new location of version.h

Signed-off-by: Michael Adam <obnox@samba.org>
11 years agos3_dbrwap_ctdb: improve a comment in db_ctdb_can_use_local_record()
Michael Adam [Fri, 29 Jun 2012 08:55:32 +0000 (10:55 +0200)]
s3_dbrwap_ctdb: improve a comment in db_ctdb_can_use_local_record()

Pair-Programmed-With: Gregor Beck <gbeck@sernet.de>

11 years agos3:dbwrap_ctdb: fix a comment in db_ctdb_fetch()
Michael Adam [Fri, 29 Jun 2012 08:52:33 +0000 (10:52 +0200)]
s3:dbwrap_ctdb: fix a comment in db_ctdb_fetch()

Pair-Programmed-With: Gregor Beck <gbeck@sernet.de>

11 years agos3:dbwrap_ctdb: expand the comment for the db_ctdb_can_use_local_copy() function
Michael Adam [Fri, 29 Jun 2012 08:51:37 +0000 (10:51 +0200)]
s3:dbwrap_ctdb: expand the comment for the db_ctdb_can_use_local_copy() function

Pair-Programmed-With: Gregor Beck <gbeck@sernet.de>

11 years agos3:dbwrap_ctdb: rename db_ctdb_own_record() -> db_ctdb_can_use_local_copy()
Michael Adam [Fri, 29 Jun 2012 08:47:56 +0000 (10:47 +0200)]
s3:dbwrap_ctdb: rename db_ctdb_own_record() -> db_ctdb_can_use_local_copy()

This matches the function's intention much closer, since it
also tests whether we have a valid local read only copy.

Pair-Programmed-With: Gregor Beck <gbeck@sernet.de>

11 years agos3:dbrwap_ctdb: remove commented out legacy code
Michael Adam [Fri, 29 Jun 2012 08:43:11 +0000 (10:43 +0200)]
s3:dbrwap_ctdb: remove commented out legacy code

11 years agos3:dbwrap_ctdb: fix fetch/fetch_locked when samba is built against old ctdb
Michael Adam [Fri, 29 Jun 2012 08:39:07 +0000 (10:39 +0200)]
s3:dbwrap_ctdb: fix fetch/fetch_locked when samba is built against old ctdb

The introduction of read only copies has broken the algorithm for
deteting whether we can use the local record copy for fetch_locked
and fetch: For fetch locked the new code always uses the local copy
if there is one...

This patch re-establish the original algorithm for the build against
a ctdb without read only record copies.

Reported-by: Gregor Beck <gbeck@sernet.de>
11 years agolib/ccan: readd execinfo dependency to failtest
Stefan Metzmacher [Fri, 29 Jun 2012 13:06:02 +0000 (15:06 +0200)]
lib/ccan: readd execinfo dependency to failtest

metze

Signed-off-by: Michael Adam <obnox@samba.org>
11 years agolibcli/smb: add SMB2_CAP_DIRECTORY_LEASING to SMB2_CAP_ALL
Stefan Metzmacher [Tue, 26 Jun 2012 12:47:58 +0000 (14:47 +0200)]
libcli/smb: add SMB2_CAP_DIRECTORY_LEASING to SMB2_CAP_ALL

metze

Signed-off-by: Michael Adam <obnox@samba.org>
11 years agolib/util: fix fd leak in anonymous_shared_allocate() if MAP_ANON is not available
Stefan Metzmacher [Tue, 26 Jun 2012 11:48:36 +0000 (13:48 +0200)]
lib/util: fix fd leak in anonymous_shared_allocate() if MAP_ANON is not available

metze

11 years agos3:smb2_server: remove max_charge check in smbd_smb2_request_verify_creditcharge()
Stefan Metzmacher [Fri, 29 Jun 2012 11:16:11 +0000 (13:16 +0200)]
s3:smb2_server: remove max_charge check in smbd_smb2_request_verify_creditcharge()

The client can send any credit charge value, it's ok to send more than needed.

metze

Signed-off-by: Michael Adam <obnox@samba.org>
11 years agos3:build: tell linker to use corefoundation on all darwin releases
Björn Jacke [Fri, 29 Jun 2012 10:49:21 +0000 (12:49 +0200)]
s3:build: tell linker to use corefoundation on all darwin releases

Autobuild-User(master): Björn Jacke <bj@sernet.de>
Autobuild-Date(master): Fri Jun 29 14:43:39 CEST 2012 on sn-devel-104

11 years agos3: merge bsd_statvfs and darwin_statvfs
Björn Jacke [Thu, 28 Jun 2012 19:34:40 +0000 (21:34 +0200)]
s3: merge bsd_statvfs and darwin_statvfs

11 years agoccan: we're subsystems, not a library.
Rusty Russell [Fri, 29 Jun 2012 02:39:06 +0000 (12:09 +0930)]
ccan: we're subsystems, not a library.

Don't expose a libccan.so; it would produce clashes if someone else
does the same thing.  Unfortunately, if we just change it from a
SAMBA_LIBRARY to a SAMBA_SUBSYSTEM, it doesn't create a static library
as we'd like, but links all the object files in.  This means we get
many duplicates (eg. everyone gets a copy of tally, even though only
ntdb wants it).

So, the solution is twofold:
1) Make the ccan modules separate.
2) Make the ccan modules SAMBA_SUBSYSTEMs not SAMBA_LIBRARYs so we don't
   build shared libraries which we can't share.
3) Make the places which uses ccan explicit.

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
Autobuild-User(master): Rusty Russell <rusty@rustcorp.com.au>
Autobuild-Date(master): Fri Jun 29 06:22:44 CEST 2012 on sn-devel-104

11 years agoMove back to using per-thread credentials on Linux. Fixes the glibc native AIO lost...
Jeremy Allison [Thu, 28 Jun 2012 20:41:19 +0000 (13:41 -0700)]
Move back to using per-thread credentials on Linux. Fixes the glibc native AIO lost wakeup problem.

See this post:

https://lists.samba.org/archive/samba-technical/2012-June/085101.html

for details.

Autobuild-User(master): Jeremy Allison <jra@samba.org>
Autobuild-Date(master): Fri Jun 29 03:57:45 CEST 2012 on sn-devel-104

11 years agoReplace all uses of setXX[ug]id() and setgroups with samba_setXX[ug]id() calls.
Jeremy Allison [Thu, 28 Jun 2012 18:59:51 +0000 (11:59 -0700)]
Replace all uses of setXX[ug]id() and setgroups with samba_setXX[ug]id() calls.

Will allow thread-specific credentials to be added by modifying
the central definitions. Deliberately left the setXX[ug]id()
call in popt as this is not used in Samba.

11 years agoAdd missing setresgid() wrapper.
Jeremy Allison [Tue, 26 Jun 2012 01:08:36 +0000 (18:08 -0700)]
Add missing setresgid() wrapper.

11 years agodocs-xml: document "server max protocol" "SMB2" selects PROTOCOL_SMB2_10
Stefan Metzmacher [Sun, 3 Jun 2012 21:09:33 +0000 (23:09 +0200)]
docs-xml: document "server max protocol" "SMB2" selects PROTOCOL_SMB2_10

metze

Autobuild-User(master): Stefan Metzmacher <metze@samba.org>
Autobuild-Date(master): Fri Jun 29 02:07:17 CEST 2012 on sn-devel-104

11 years agos3:param: change "server max protocol" to "SMB2" (SMB2_10)
Stefan Metzmacher [Sun, 3 Jun 2012 21:04:44 +0000 (23:04 +0200)]
s3:param: change "server max protocol" to "SMB2" (SMB2_10)

metze

11 years agolib/param: let "SMB2" select PROTOCOL_SMB2_10
Stefan Metzmacher [Sun, 3 Jun 2012 21:02:56 +0000 (23:02 +0200)]
lib/param: let "SMB2" select PROTOCOL_SMB2_10

metze

11 years agos3:smb2_server: make the logic in smbd_smb2_request_verify_creditcharge() simpler
Stefan Metzmacher [Mon, 25 Jun 2012 21:35:46 +0000 (23:35 +0200)]
s3:smb2_server: make the logic in smbd_smb2_request_verify_creditcharge() simpler

We just need a max_charge variable to make the algorithm independent
of multi_credit support.

metze

11 years agos3:smb2_server: simplify smbd_smb2_request_verify_creditcharge() a bit.
Stefan Metzmacher [Mon, 25 Jun 2012 19:14:43 +0000 (21:14 +0200)]
s3:smb2_server: simplify smbd_smb2_request_verify_creditcharge() a bit.

A credit charge of 0 is really not a special case, it just means the same
as 1.

metze

11 years agos3:smb2_negprot: support SMB2_CAP_LARGE_MTU on everything but port 139
Stefan Metzmacher [Mon, 25 Jun 2012 19:40:00 +0000 (21:40 +0200)]
s3:smb2_negprot: support SMB2_CAP_LARGE_MTU on everything but port 139

In future we'll have other transports like RDMA.
This makes NBT (tcp port 139) special instead of port 445.

metze

11 years agos3:smb2_server: grant extra credits for multi-credit requests
Stefan Metzmacher [Mon, 25 Jun 2012 19:45:54 +0000 (21:45 +0200)]
s3:smb2_server: grant extra credits for multi-credit requests

metze

11 years agos3:smb2_server: implement credit granting similar to windows
Stefan Metzmacher [Wed, 27 Jun 2012 13:33:43 +0000 (15:33 +0200)]
s3:smb2_server: implement credit granting similar to windows

This makes it much easier to compare traces.

metze

11 years agos3:smb2_server: make sure sequence numbers don't wrap at UINT64_MAX
Stefan Metzmacher [Wed, 27 Jun 2012 13:33:43 +0000 (15:33 +0200)]
s3:smb2_server: make sure sequence numbers don't wrap at UINT64_MAX

metze

11 years agos3:smb2_server: make sure we don't grant more credits than we allow
Stefan Metzmacher [Wed, 27 Jun 2012 13:33:43 +0000 (15:33 +0200)]
s3:smb2_server: make sure we don't grant more credits than we allow

If the client hasn't consumed the lowest seqnum, but the distance
between lowest and highest seqnum has reached max credits.

In that case we should stop granting credits.

metze

11 years agos3:smb2_server: check the credit_charge against the already granted credits
Stefan Metzmacher [Tue, 26 Jun 2012 12:28:07 +0000 (14:28 +0200)]
s3:smb2_server: check the credit_charge against the already granted credits

metze

11 years agos3:smb2_server: split out a smb2_validate_sequence_number() function
Stefan Metzmacher [Mon, 25 Jun 2012 21:17:55 +0000 (23:17 +0200)]
s3:smb2_server: split out a smb2_validate_sequence_number() function

metze

11 years agos3:smb2_server: clear sequence window if we got the lowest sequence id
Stefan Metzmacher [Tue, 26 Jun 2012 06:08:37 +0000 (08:08 +0200)]
s3:smb2_server: clear sequence window if we got the lowest sequence id

Otherwise we'll never consume sequence id '0'.

metze

11 years agos3:smb2_server: fix calculation of the next bitmap_offset
Stefan Metzmacher [Mon, 25 Jun 2012 21:39:37 +0000 (23:39 +0200)]
s3:smb2_server: fix calculation of the next bitmap_offset

metze

11 years agos3:smb2_server: remove unused and confusing DEFAULT_SMB2_MAX_CREDIT_BITMAP_FACTOR
Stefan Metzmacher [Mon, 25 Jun 2012 21:38:32 +0000 (23:38 +0200)]
s3:smb2_server: remove unused and confusing DEFAULT_SMB2_MAX_CREDIT_BITMAP_FACTOR

metze

11 years agos3:smb2_server: call smbd_smb2_request_validate() also in smbd_smb2_first_negprot()
Stefan Metzmacher [Mon, 25 Jun 2012 21:14:24 +0000 (23:14 +0200)]
s3:smb2_server: call smbd_smb2_request_validate() also in smbd_smb2_first_negprot()

We need to consume message_id 0, for SMB1 negprot starts.

metze

11 years agos3:smb2_server: start the connection with one credit granted to the client
Stefan Metzmacher [Tue, 26 Jun 2012 12:23:12 +0000 (14:23 +0200)]
s3:smb2_server: start the connection with one credit granted to the client

metze

11 years agos3: fine tune and clean up statvfs tests
Björn Jacke [Thu, 28 Jun 2012 19:17:28 +0000 (21:17 +0200)]
s3: fine tune and clean up statvfs tests

This should also fix the build on Tru64. Tru64 has a POSIX compliant statvfs()
function while most *BSD systems ignore POSIX.

Autobuild-User(master): Björn Jacke <bj@sernet.de>
Autobuild-Date(master): Thu Jun 28 23:07:23 CEST 2012 on sn-devel-104

11 years agodocs-xml: fix typos and format in smb.conf server max protocol man
Björn Baumbach [Wed, 27 Jun 2012 11:06:50 +0000 (13:06 +0200)]
docs-xml: fix typos and format in smb.conf server max protocol man

11 years agopackaging(RHEL-CTDB): fix build dependencies
Björn Baumbach [Thu, 3 May 2012 12:11:42 +0000 (14:11 +0200)]
packaging(RHEL-CTDB): fix build dependencies

Building manual pages needs rsync for copying built mans.
source3/script/installmo.sh calls msgfmt, thats part of gettext.

11 years agoselftest: run pdbtest against s3dc as well
Andrew Bartlett [Thu, 28 Jun 2012 11:21:23 +0000 (21:21 +1000)]
selftest: run pdbtest against s3dc as well

This validates the password expiry, account disable in the s3 auth code
and the save/restore of values in tdbsam.

It also provides the first test of some net sam set subcommands.

Andrew Bartlett

Autobuild-User(master): Andrew Bartlett <abartlet@samba.org>
Autobuild-Date(master): Thu Jun 28 20:39:38 CEST 2012 on sn-devel-104

11 years agoselftest: use a loop rather than declare tests for both dc and s3dc
Andrew Bartlett [Thu, 28 Jun 2012 10:42:31 +0000 (20:42 +1000)]
selftest: use a loop rather than declare tests for both dc and s3dc

11 years agolibrpc/ndr: Initilaise the remainder of struct dom_sid after a pull
Andrew Bartlett [Tue, 26 Jun 2012 10:07:32 +0000 (20:07 +1000)]
librpc/ndr: Initilaise the remainder of struct dom_sid after a pull

This copes with the fact that r->sub_auths is a fixed-size array, not
an allocated pointer, and so will still have some bytes no filled in
if the sid did not have a MAX_SUB_AUTHS sub-authorities.

Andrew Bartlett

11 years agos4-torture: fix typo in samlogon test.
Günther Deschner [Thu, 28 Jun 2012 12:57:17 +0000 (14:57 +0200)]
s4-torture: fix typo in samlogon test.

Guenther

Autobuild-User(master): Günther Deschner <gd@samba.org>
Autobuild-Date(master): Thu Jun 28 18:43:46 CEST 2012 on sn-devel-104

11 years agos4-torture: use torture context for printing debug output.
Günther Deschner [Thu, 28 Jun 2012 11:59:50 +0000 (13:59 +0200)]
s4-torture: use torture context for printing debug output.

Guenther

11 years agos3: Fix compilation of pthreadpool_sync.c on platforms without pthread.h
Volker Lendecke [Thu, 28 Jun 2012 09:19:31 +0000 (11:19 +0200)]
s3: Fix compilation of pthreadpool_sync.c on platforms without pthread.h

Signed-off-by: Bjoern Jacke <bj@sernet.de>
Autobuild-User(master): Björn Jacke <bj@sernet.de>
Autobuild-Date(master): Thu Jun 28 16:43:13 CEST 2012 on sn-devel-104

11 years agos3:smbd: change nt_open_pipe() to uint16_t pnum/fnum
Stefan Metzmacher [Thu, 28 Jun 2012 10:22:07 +0000 (12:22 +0200)]
s3:smbd: change nt_open_pipe() to uint16_t pnum/fnum

This is SMB1 code...

metze

Autobuild-User(master): Stefan Metzmacher <metze@samba.org>
Autobuild-Date(master): Thu Jun 28 14:47:45 CEST 2012 on sn-devel-104

11 years agos3:smb2_create: add usefull DEBUG() message
Stefan Metzmacher [Thu, 28 Jun 2012 08:02:01 +0000 (10:02 +0200)]
s3:smb2_create: add usefull DEBUG() message

All calls which take an file handle have the same,
so we should also log it, when we create a handle.

metze

Autobuild-User(master): Stefan Metzmacher <metze@samba.org>
Autobuild-Date(master): Thu Jun 28 12:41:49 CEST 2012 on sn-devel-104

11 years agos3:smbd/files: fsp->fnum is uint64_t not int!
Stefan Metzmacher [Thu, 28 Jun 2012 08:00:37 +0000 (10:00 +0200)]
s3:smbd/files: fsp->fnum is uint64_t not int!

metze

11 years agos3:brlock: s/int/uint64_t for fnum
Stefan Metzmacher [Thu, 28 Jun 2012 07:54:41 +0000 (09:54 +0200)]
s3:brlock: s/int/uint64_t for fnum

fsp->fnum and lock->fnum are uint64_t already and we should not truncate the value here.

Currently this doesn't matter as we only use 16-bit.

But as 'int' is int32_t and we later compare fnum with lock->fnum == fnum,
the cast from int32_t to uint64_t goes via int64_t instead of uint32_t.

This means even if fsp->fnum just uses 32-bit of the uint64_t
we'll get the wrong result, as the implicit cast from a negative int32_t
value to uint64_t adds 0xFFFFFFFF00000000.

metze

11 years agos3:brlock: add some const to print_lock_struct()
Stefan Metzmacher [Thu, 28 Jun 2012 07:54:14 +0000 (09:54 +0200)]
s3:brlock: add some const to print_lock_struct()

metze

11 years agos3:wscript: use LOCKING subsystem for smbtorture3
Stefan Metzmacher [Wed, 27 Jun 2012 22:51:45 +0000 (00:51 +0200)]
s3:wscript: use LOCKING subsystem for smbtorture3

metze

11 years agosource4/smbd/pidfile: don't panic if pid file is corrupt.
Rusty Russell [Thu, 28 Jun 2012 01:34:25 +0000 (11:04 +0930)]
source4/smbd/pidfile: don't panic if pid file is corrupt.

In particular, on a virtual machine after a forced reboot, it
contained "Ille" instead of a valid PID.  Given it was the right
length, I'm assuming it was filesystem corruption.

process_exists_by_pid() then panics, when given a pid < 1.

Reported-by: lostogre on #samba-technical
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
Autobuild-User(master): Rusty Russell <rusty@rustcorp.com.au>
Autobuild-Date(master): Thu Jun 28 05:19:24 CEST 2012 on sn-devel-104

11 years agoreplace: define INT64_MAX when not defined
Björn Jacke [Wed, 27 Jun 2012 17:23:15 +0000 (19:23 +0200)]
replace: define INT64_MAX when not defined

Tru64 doesn't have any stdint.h

Autobuild-User(master): Björn Jacke <bj@sernet.de>
Autobuild-Date(master): Thu Jun 28 00:45:58 CEST 2012 on sn-devel-104

11 years agos3-param: Rename loadparm_s3_context -> loadparm_s3_helpers
Andrew Bartlett [Wed, 27 Jun 2012 13:24:39 +0000 (23:24 +1000)]
s3-param: Rename loadparm_s3_context -> loadparm_s3_helpers

This helps clarify the role of this structure and wrapper function.

The purpose here is to provide helper functions to the lib/param
loadparm_context that point back at the s3 lp_ functions.  This allows
a struct loadparm_context to be passed to any point in the code, and
always refer to the correct loadparm system.  If this has not been
set, the variables loaded in the lib/param code will be returned.

As requested by Michael Adam.

Andrew Bartlett

Autobuild-User(master): Andrew Bartlett <abartlet@samba.org>
Autobuild-Date(master): Wed Jun 27 17:11:16 CEST 2012 on sn-devel-104

11 years agos3-pdb_samba4: Remove dupliate profilePath handling
Andrew Bartlett [Wed, 27 Jun 2012 09:23:05 +0000 (19:23 +1000)]
s3-pdb_samba4: Remove dupliate profilePath handling

Autobuild-User(master): Andrew Bartlett <abartlet@samba.org>
Autobuild-Date(master): Wed Jun 27 13:16:26 CEST 2012 on sn-devel-104

11 years agos4-selftest: expand passdb testing
Andrew Bartlett [Tue, 26 Jun 2012 10:59:25 +0000 (20:59 +1000)]
s4-selftest: expand passdb testing

This tests pdb_samba4 in the first instance

11 years agos3-pdbtest: Initialise more elements for testing
Andrew Bartlett [Wed, 27 Jun 2012 04:36:31 +0000 (14:36 +1000)]
s3-pdbtest: Initialise more elements for testing

If these were left as defaults, they cause issues when the backend (pdb_samba4)
returns the internal defaults from the directory, not the defaults from samu_new()

Andrew Bartlett

11 years agos3-pdb_samba4: Add support for lastLogon and lastLogoff
Andrew Bartlett [Wed, 27 Jun 2012 04:34:47 +0000 (14:34 +1000)]
s3-pdb_samba4: Add support for lastLogon and lastLogoff

11 years agos3-pdb_samba4: Fix time handling, use nt_time_to_unix()
Andrew Bartlett [Wed, 27 Jun 2012 04:56:04 +0000 (14:56 +1000)]
s3-pdb_samba4: Fix time handling, use nt_time_to_unix()

This matches 478d74fe1447c4588b14ef7040c8c13339d54026 which I failed to
merge from pdb_ads.

Andrew Bartlett

11 years agolib/ldb: Print trace messages for modify correctly
Andrew Bartlett [Wed, 27 Jun 2012 04:33:42 +0000 (14:33 +1000)]
lib/ldb: Print trace messages for modify correctly

11 years agos4-selftest: Test login with a password expired user
Andrew Bartlett [Wed, 27 Jun 2012 02:47:59 +0000 (12:47 +1000)]
s4-selftest: Test login with a password expired user

This uses rkpty to test changing an expired password.

Andrew Bartlett

11 years agos4-dsdb when setting DSDB_CONTROL_PASSWORD_BYPASS_LAST_SET_OID make it non-critical
Andrew Bartlett [Wed, 27 Jun 2012 02:45:37 +0000 (12:45 +1000)]
s4-dsdb when setting DSDB_CONTROL_PASSWORD_BYPASS_LAST_SET_OID make it non-critical

11 years agos4-dsdb: Remove hooks for non-directory password handling
Andrew Bartlett [Wed, 27 Jun 2012 02:42:31 +0000 (12:42 +1000)]
s4-dsdb: Remove hooks for non-directory password handling

This was an interesting hack, and the local_password module still exists, but
until it has a use case and a test case, remove the bypass of password_hash.

Andrew Bartlett

11 years agoselftest: allow NSS_WRAPPER_* vars to be exported to the environment
Andrew Bartlett [Wed, 27 Jun 2012 02:40:59 +0000 (12:40 +1000)]
selftest: allow NSS_WRAPPER_* vars to be exported to the environment

11 years agoselftest: Add extra users to nss_wrapper
Andrew Bartlett [Wed, 27 Jun 2012 07:51:55 +0000 (17:51 +1000)]
selftest: Add extra users to nss_wrapper

These will be used for a test using pdbtest and to run the client
test environment under nss_wrapper.

Andrew Bartlett

11 years agos3-pdbtest: show mis-matching times
Andrew Bartlett [Tue, 26 Jun 2012 23:04:46 +0000 (09:04 +1000)]
s3-pdbtest: show mis-matching times

11 years agos3:registry: change reg_import.c according to coding guidelines.
Michael Adam [Wed, 27 Jun 2012 06:20:59 +0000 (08:20 +0200)]
s3:registry: change reg_import.c according to coding guidelines.

Autobuild-User(master): Michael Adam <obnox@samba.org>
Autobuild-Date(master): Wed Jun 27 10:07:54 CEST 2012 on sn-devel-104