David Disseldorp [Fri, 22 Jun 2012 16:49:50 +0000 (18:49 +0200)]
s3-torture: Use static printer for smbd spooler test
David Disseldorp [Thu, 21 Jun 2012 13:49:55 +0000 (15:49 +0200)]
s3-printing: use euid for vlp job tracking
vlp can be called by print_run_command as root with euids set
appropriately, vlp should use this to track the job owner.
David Disseldorp [Thu, 9 Feb 2012 11:08:27 +0000 (12:08 +0100)]
s3-printing: fill print_generic sysjob id on job submission
Change the generic print backend to fill the printing backend job
identifier (sysjob) on submission of a new job.
This is needed to ensure correct mapping of spoolss jobs and entries in
the backend print queue.
This and the last 13 commits attempt to address bug 8719.
David Disseldorp [Wed, 8 Feb 2012 17:47:11 +0000 (18:47 +0100)]
s3-printing: pass lpq command to job_submit
Currently the generic print backend does not fill the printing backend
job identifier (sysjob) on submission of a new job. The sysjob
identifier is required to correctly map jobs in the printer queue to
corresponding spoolss print jobs.
Passing the lpq command to job_submit allows the generic print backend
to check the printer queue for the new job following submission. This
behaviour will come in a later commit.
David Disseldorp [Wed, 8 Feb 2012 16:03:06 +0000 (17:03 +0100)]
s3-printing: remove unused print_job_fname()
David Disseldorp [Wed, 8 Feb 2012 16:57:02 +0000 (17:57 +0100)]
s3-printing: pass a talloc ctx to unpack_pjob
Rather than allocating the devicemode on a null context.
David Disseldorp [Wed, 8 Feb 2012 15:55:40 +0000 (16:55 +0100)]
s3-printing: return talloced print jobs
print_job_find() currently returns print jobs to callers via a
statically allocated variable, this is particularly messy as the
device mode is talloced under the static variable.
This change adds or passes a talloc context to all callers, giving them
ownership of the returned print job.
David Disseldorp [Wed, 8 Feb 2012 14:01:15 +0000 (15:01 +0100)]
s3-printing: clean up print_job_pause/resume interface
Currently both return a bool and sometimes set a werr pointer argument,
always return werror instead.
David Disseldorp [Wed, 8 Feb 2012 12:45:40 +0000 (13:45 +0100)]
s3-printing: fix potential print db refcount leak
David Disseldorp [Wed, 1 Feb 2012 12:21:04 +0000 (13:21 +0100)]
s3-spoolss: remove duplicate "." in smbd spooler path
David Disseldorp [Mon, 30 Jan 2012 16:35:28 +0000 (17:35 +0100)]
s3-printing: remove print_parse_jobid()
With all callers fixed, it is now safe to remove.
David Disseldorp [Mon, 30 Jan 2012 15:05:21 +0000 (16:05 +0100)]
s3-printing: remove redundant variable set
David Disseldorp [Mon, 30 Jan 2012 12:35:21 +0000 (13:35 +0100)]
s3-printing: remove print_parse_jobid() calls from printing.c
In all cases the spoolss layer job id can be determinded from the
printing subsystem allocated job identifier (sysjob).
David Disseldorp [Fri, 27 Jan 2012 11:33:27 +0000 (12:33 +0100)]
s3-printing: rename queue->job sysjob
Print jobs maintain two job identifiers, the jobid allocated by the
spoolss layer (pj->jobid), and the job identifier defined by the
printing backend (pj->sysjob).
Printer job queues currently only contain a single job identifier
variable (queue->job), the variable is sometimes representative of the
spoolss layer job identifier, and more often representative of the
printing backend id.
This change renames the queue job identifier from queue->job to
queue->sysjob, in preparation for a change to only store the printing
backend identifier.
David Disseldorp [Mon, 30 Jan 2012 12:44:33 +0000 (13:44 +0100)]
s3-printing: remove print_parse_jobid() from print_cups.c
The spoolss print job identifier is now passed to the cups layer via
struct printjob, therefore it is no longer necessary to parse the job
filename to determine it.
David Disseldorp [Thu, 26 Jan 2012 14:28:34 +0000 (15:28 +0100)]
s3-printing: store print jobid as part of struct printjob
Printing code in some places relies upon the spool-file format to
retrieve the print jobid. By storing the jobid as part of struct
printjob, and hence in the printing TDB, we can move away from this ugly
behaviour.
David Disseldorp [Thu, 21 Jun 2012 15:12:23 +0000 (17:12 +0200)]
torture: add test for smbd print job spooling
Clients can print by performing file IO on a printer share, rather than
issuing spoolss RPCs.
This commit attempts to reproduce bug 8719.
Stefan Metzmacher [Fri, 22 Jun 2012 13:10:00 +0000 (15:10 +0200)]
dbwrap: don't ignore the result of dbwrap_parse_record in dbwrap_fetch_int32()
metze
Autobuild-User(master): Stefan Metzmacher <metze@samba.org>
Autobuild-Date(master): Fri Jun 22 17:10:52 CEST 2012 on sn-devel-104
Stefan Metzmacher [Fri, 22 Jun 2012 13:08:22 +0000 (15:08 +0200)]
dbwrap: intialize state.status in dbwrap_fetch_int32()
This might not be needed, but it makes it more clear that
we won't use uninitialized memory, it the callback was not triggered.
metze
Volker Lendecke [Tue, 12 Jun 2012 10:58:47 +0000 (12:58 +0200)]
dbwrap: Convert fetch_int32 to dbwrap_parse_record
Now dbwrap_fetch_int32 is used in smbd/locking/posix.c is used a
lot more often than before.
Signed-off-by: Stefan Metzmacher <metze@samba.org>
Volker Lendecke [Tue, 12 Jun 2012 10:14:59 +0000 (12:14 +0200)]
s3: Remove reduce_windows_lock_ref_count, used only once
Signed-off-by: Stefan Metzmacher <metze@samba.org>
Volker Lendecke [Tue, 12 Jun 2012 10:13:15 +0000 (12:13 +0200)]
s3: Make reduce_windows_lock_ref_count static
Signed-off-by: Stefan Metzmacher <metze@samba.org>
Volker Lendecke [Tue, 12 Jun 2012 10:11:40 +0000 (12:11 +0200)]
s3: Use dbwrap_util for windows_lock_ref_count
Signed-off-by: Stefan Metzmacher <metze@samba.org>
Volker Lendecke [Fri, 15 Jun 2012 08:52:07 +0000 (10:52 +0200)]
dbwrap: Add dbwrap_fetch_int32
Signed-off-by: Stefan Metzmacher <metze@samba.org>
Volker Lendecke [Fri, 15 Jun 2012 08:50:00 +0000 (10:50 +0200)]
dbwrap: Add dbwrap_change_int32_atomic
Signed-off-by: Stefan Metzmacher <metze@samba.org>
Stefan Metzmacher [Fri, 22 Jun 2012 12:58:25 +0000 (14:58 +0200)]
script/autobuild: fix path to random-sleep.sh
metze
Stefan Metzmacher [Fri, 22 Jun 2012 10:58:04 +0000 (12:58 +0200)]
selftest/knownfail: mark ^samba4.raw.session.expire1 as knownfail
Autobuild-User(master): Stefan Metzmacher <metze@samba.org>
Autobuild-Date(master): Fri Jun 22 15:03:16 CEST 2012 on sn-devel-104
Stefan Metzmacher [Fri, 22 Jun 2012 09:02:39 +0000 (11:02 +0200)]
s4:torture/raw: add raw.session.expire1
This demonstrates the interaction of CAP_DYNAMIC_REAUTH
and NT_STATUS_NETWORK_SESSION_EXPIRED.
metze
Stefan Metzmacher [Fri, 22 Jun 2012 10:10:00 +0000 (12:10 +0200)]
s3:smbd: fix warning in smbd_tevent_trace_callback() without profile support
metze
Stefan Metzmacher [Fri, 22 Jun 2012 10:20:54 +0000 (12:20 +0200)]
s3:serverid: don't ignore the result of dbwrap_parse_record()
metze
Stefan Metzmacher [Fri, 22 Jun 2012 07:40:53 +0000 (09:40 +0200)]
s4:torture/smb2: run smb2.session.reauth5 in a subdirectory
This way we can give anonymous full access to the directory.
metze
Autobuild-User(master): Stefan Metzmacher <metze@samba.org>
Autobuild-Date(master): Fri Jun 22 11:30:06 CEST 2012 on sn-devel-104
Rusty Russell [Fri, 22 Jun 2012 05:37:44 +0000 (15:07 +0930)]
tdb: don't use err.h in tests.
It's not portable. While we could use ccan/err, it seems overkill since
we actually only use it in one test (I obviously cut & paste the #include).
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
Autobuild-User(master): Rusty Russell <rusty@rustcorp.com.au>
Autobuild-Date(master): Fri Jun 22 09:22:28 CEST 2012 on sn-devel-104
Rusty Russell [Fri, 22 Jun 2012 05:37:44 +0000 (15:07 +0930)]
tdb: make TDB_NOSYNC merely disable sync.
(As suggested by Stefan Metzmacher, based on the change to ntdb.)
Since commit
ec96ea690edbe3398d690b4a953d487ca1773f1c, we handle the case
where a process dies during a transaction commit. Unfortunately, TDB_NOSYNC
means this no longer works, as it disables the recovery area as well as the
actual msync/fsync. We should do everything except the syncs.
This also means we can do a complete test with $TDB_NO_FSYNC set; just
to get more complete coverage, we disable it explicitly for one test
(where we override the actual sync calls anyway).
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
Rusty Russell [Fri, 22 Jun 2012 05:37:44 +0000 (15:07 +0930)]
dbwrap: dbwrap_hash_size().
Implemented for ntdb and tdb; falls back to 0 for others.
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
Rusty Russell [Fri, 22 Jun 2012 05:37:44 +0000 (15:07 +0930)]
dbwrap: dbwrap_name().
Useful for debug messages: particularly once we start switching between .tdb
and .ntdb files.
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
Rusty Russell [Fri, 22 Jun 2012 05:37:44 +0000 (15:07 +0930)]
dbwrap: dbwrap_transaction_start_nonblock().
Implemented for ntdb and tdb; falls back to the blocking variant
for others.
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
Rusty Russell [Fri, 22 Jun 2012 05:37:44 +0000 (15:07 +0930)]
dbwrap: dbwrap_fetch_locked_timeout().
Implemented for ntdb and tdb; falls back to the non-timeout variant
for others.
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
Rusty Russell [Fri, 22 Jun 2012 05:37:43 +0000 (15:07 +0930)]
dbwrap: add dbwrap_check() function.
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
Rusty Russell [Fri, 22 Jun 2012 05:37:43 +0000 (15:07 +0930)]
dbwrap: dbwrap_local_open()
This simply opens a tdb: it will eventually switch depending on the
extension.
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
Rusty Russell [Fri, 22 Jun 2012 05:37:43 +0000 (15:07 +0930)]
dbwrap: remove get_flags().
The flags returned were TDB-specific: this was only used for detecting
the endianness of obsolete databases (the conversion code was put in in
2003, with reference to Samba 2.3).
It's easier to remove it than to translate the NTDB flags to TDB flags,
and it's a really weird thing to ask for anyway.
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
Rusty Russell [Fri, 22 Jun 2012 05:37:36 +0000 (15:07 +0930)]
util_tdb: move timeout chainlock variants from source3/lib/util/util_tdb.c
We're about to use them for dbwrap.
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
Rusty Russell [Fri, 22 Jun 2012 00:14:42 +0000 (09:44 +0930)]
util: util_ntdb ntdb_fetch_int32/ntdb_store_int32 and ntdb_add_int32_atomic
Similar to the util_tdb versions, but return the error code.
ntdb_add_int32_atomic seems a clearer name than tdb_change_int32_atomic.
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
Rusty Russell [Fri, 22 Jun 2012 00:14:41 +0000 (09:44 +0930)]
util: util_ntdb.c gets NTDB_ERROR => NTSTATUS map.
Very similar to the tdb version.
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
Rusty Russell [Fri, 22 Jun 2012 00:14:41 +0000 (09:44 +0930)]
util: util_ntdb.c gains bystring functions.
Very similar to the util_tdb versions, but these return the error.
I've only implemented those functions actually used.
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
Rusty Russell [Fri, 22 Jun 2012 00:14:41 +0000 (09:44 +0930)]
util: ntdb_new() supports NTDB_CLEAR_IF_FIRST.
There are various issues with NTDB_CLEAR_IF_FIRST which makes it
better if we don't have to use it, but much of the code does, so
we fake up support here.
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
Rusty Russell [Fri, 22 Jun 2012 00:14:41 +0000 (09:44 +0930)]
util: util_ntdb.c
The first function is ntdb_new: this is preferred over ntdb_open, as
it makes the ntdb_context returned (and all NTDB_DATA returned from
ntdb_fetch) valid talloc pointers.
The API is very similar to tdb_wrap_open().
Note that we handle $TDB_NO_FSYNC here, since ntdb doesn't do that
hack (and it's great for speeding up testing!).
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
Rusty Russell [Fri, 22 Jun 2012 00:14:41 +0000 (09:44 +0930)]
ntdb: take advantage of direct access across expand.
This means we no longer have to unmap if we want to compare a record.
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
Rusty Russell [Fri, 22 Jun 2012 00:14:41 +0000 (09:44 +0930)]
ntdb: test arbitrary operations during ntdb_parse_record().
In particular, this tests that we can store enough records to make the
database expand while we map the given record. We use a global lock for
this, but it could happen in theory with another process.
It also tests the that we can recurse inside ntdb_parse_record().
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
Rusty Russell [Fri, 22 Jun 2012 00:14:41 +0000 (09:44 +0930)]
ntdb: make database read-only during ntdb_parse() callback.
Since we have a readlock, any write will grab a write lock: if it happens
to be on the same bucket, we'll fail.
For that reason, enforce read-only so every write operation fails
(even for NTDB_NOLOCK or NTDB_INTERNAL dbs), and document it!
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
Rusty Russell [Fri, 22 Jun 2012 00:14:40 +0000 (09:44 +0930)]
ntdb: allow direct access for NTDB_INTERNAL dbs during expansion.
NTDB_INTERNAL databases need to malloc and copy to keep old versions
around if we expand, in a similar way to the manner in which keep old
mmaps around.
Of course, it only works for read-only accesses, since the two copies
are not synced.
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
Rusty Russell [Fri, 22 Jun 2012 00:14:40 +0000 (09:44 +0930)]
ntdb: enhancement to allow direct access to the ntdb map during expansion.
This means keeping the old mmap around when we expand the database.
We could revert to read/write, except for platforms with incoherent
mmap (ie. OpenBSD), where we need to use mmap for all accesses.
Thus we keep a linked list of old maps, and unmap them when the last access
finally goes away.
This is required if we want ntdb_parse_record() callbacks to be able
to expand the database.
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
Rusty Russell [Fri, 22 Jun 2012 00:14:40 +0000 (09:44 +0930)]
ntdb: don't munmap the database on every close.
Since we can have multiple openers, we should leave the mmap in place
for the other openers to use. Enhance the test to check the bug (it
still works, because without mmap we fall back to read/write, but
performance would be terrible!).
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
Rusty Russell [Fri, 22 Jun 2012 00:14:40 +0000 (09:44 +0930)]
ntdb: hand correct error code when alloc_read allocation fails.
-ECUTNPASTE. This is not a usage error!
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
Rusty Russell [Fri, 22 Jun 2012 00:14:36 +0000 (09:44 +0930)]
autobuild: always set TDB_NO_FSYNC.
Then we unset it inside the tdb test target itself. This means that
new code can't accidently forget it, and we can set it in the
'buildnice' script on sn-devel, for example.
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
Rusty Russell [Thu, 21 Jun 2012 23:47:13 +0000 (09:17 +0930)]
ntdb: respect TDB_NO_FSYNC flag for 'make test'
This reduces test time from 31 seconds to 6, on my laptop.
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
Stefan Metzmacher [Thu, 21 Jun 2012 22:28:26 +0000 (00:28 +0200)]
s4:torture/smb2: add smb2.durable-open.lock-oplock
metze
Autobuild-User(master): Stefan Metzmacher <metze@samba.org>
Autobuild-Date(master): Fri Jun 22 03:37:54 CEST 2012 on sn-devel-104
Stefan Metzmacher [Thu, 21 Jun 2012 21:06:08 +0000 (23:06 +0200)]
selftest: samba3.smb2.durable-open.lock => samba3.smb2.durable-open.lock-lease
metze
Stefan Metzmacher [Thu, 21 Jun 2012 10:10:09 +0000 (12:10 +0200)]
s4:torture/smb2: rename smb2.durable-open.lock to smb2.durable-open.lock-lease
metze
Michael Adam [Wed, 20 Jun 2012 12:16:13 +0000 (14:16 +0200)]
autobuild: run "samba3-ctdb" by default
Autobuild-User(master): Michael Adam <obnox@samba.org>
Autobuild-Date(master): Fri Jun 22 01:46:13 CEST 2012 on sn-devel-104
Michael Adam [Wed, 20 Jun 2012 12:15:34 +0000 (14:15 +0200)]
autobuild: run "samba-ctdb" by default to catch dbwrap_ctdb regressions
Michael Adam [Wed, 20 Jun 2012 12:09:09 +0000 (14:09 +0200)]
autobuild: add a target "samba3-ctdb" that builds samba3 (autoconf) with cluster support
This is achieved by using the ctdb header files copied in from current ctdb
master. Tests are not run. For this we would need to have a full ctdb built and
configured.
Michael Adam [Wed, 20 Jun 2012 12:05:50 +0000 (14:05 +0200)]
autobuild: add a target "samba-ctdb" that builds samba (waf) with cluster support
This is achieved by using the ctdb header files copied in from current ctdb
master. Tests are not run. For this we would need to have a full ctdb built and
configured.
Michael Adam [Wed, 20 Jun 2012 11:23:04 +0000 (13:23 +0200)]
autobuild: rename the "samba4-libs" target to "samba-libs"
Michael Adam [Wed, 20 Jun 2012 11:22:18 +0000 (13:22 +0200)]
autobuild: rename the "samba4" target to "samba"
Michael Adam [Wed, 20 Jun 2012 10:01:32 +0000 (12:01 +0200)]
Add current headers from ctdb master.
(ctdb.h, ctdb_protocol.h, ctdb_private.h, ctdb_typesafe_cb.h, ctdb_client.h)
This will allow us to check for build regressions against ctdb from autobuild.
Björn Baumbach [Thu, 21 Jun 2012 11:45:18 +0000 (13:45 +0200)]
wintest: enable dns forwarding for internal dns
Internal DNS will forward dns requests to the original nameserver
(specified in resolv.conf).
Signed-off-by: Kai Blin <kai@samba.org>
Autobuild-User(master): Kai Blin <kai@samba.org>
Autobuild-Date(master): Thu Jun 21 23:47:35 CEST 2012 on sn-devel-104
Björn Baumbach [Thu, 21 Jun 2012 11:43:22 +0000 (13:43 +0200)]
wintest: get original nameserver for forwarding on a more general place
Signed-off-by: Kai Blin <kai@samba.org>
Björn Baumbach [Tue, 5 Jun 2012 11:57:59 +0000 (13:57 +0200)]
wintest: extend get_is_dc function with additional expectations
Windows Server 2003 r2 answers "wintest2k3 is not a DC."
Signed-off-by: Kai Blin <kai@samba.org>
Björn Baumbach [Tue, 12 Jun 2012 17:45:51 +0000 (19:45 +0200)]
wintest: check netcats exitstatus instead of output
There are many netcat implementations with different output messages.
Signed-off-by: Kai Blin <kai@samba.org>
Björn Baumbach [Tue, 5 Jun 2012 08:35:19 +0000 (10:35 +0200)]
wintest: set recursive queries for internal dns
Need dns recursive queries = yes, since
host expects answers with RA-bit.
Signed-off-by: Kai Blin <kai@samba.org>
Björn Baumbach [Thu, 31 May 2012 12:15:47 +0000 (14:15 +0200)]
wintest: add option to select the dns backend
This is an option to use the internal dns.
Signed-off-by: Kai Blin <kai@samba.org>
Björn Baumbach [Fri, 1 Jun 2012 14:16:16 +0000 (16:16 +0200)]
wintest: set nameserver on a more general place
Signed-off-by: Kai Blin <kai@samba.org>
Björn Baumbach [Thu, 31 May 2012 09:13:59 +0000 (11:13 +0200)]
wintest: add option to use ntvfs instead of s3fs
Signed-off-by: Kai Blin <kai@samba.org>
Björn Baumbach [Wed, 30 May 2012 13:00:07 +0000 (15:00 +0200)]
wintest: add working bbaumbach.conf file for use with VirtualBox
Signed-off-by: Kai Blin <kai@samba.org>
Jeremy Allison [Wed, 20 Jun 2012 22:50:00 +0000 (15:50 -0700)]
Fix bug #8974 - Kernel oplocks are broken when uid(file) != uid(process).
Based on a fix from "Etienne Dechamps " <e-t172@akegroup.org>
Autobuild-User(master): Jeremy Allison <jra@samba.org>
Autobuild-Date(master): Thu Jun 21 21:53:58 CEST 2012 on sn-devel-104
Jelmer Vernooij [Thu, 21 Jun 2012 14:44:55 +0000 (16:44 +0200)]
Add --disable-ntdb option for building.
Autobuild-User(master): Jelmer Vernooij <jelmer@samba.org>
Autobuild-Date(master): Thu Jun 21 19:59:57 CEST 2012 on sn-devel-104
Jelmer Vernooij [Tue, 19 Jun 2012 10:43:08 +0000 (12:43 +0200)]
samdb: Accept a list of member variables rather than a comma-separated string.
Stefan Metzmacher [Wed, 20 Jun 2012 12:07:51 +0000 (14:07 +0200)]
s3:idmap_cache: also store negative entries for unknown sids
metze
Autobuild-User(master): Stefan Metzmacher <metze@samba.org>
Autobuild-Date(master): Thu Jun 21 18:04:05 CEST 2012 on sn-devel-104
Stefan Metzmacher [Thu, 24 May 2012 07:08:21 +0000 (09:08 +0200)]
s3:winbindd: do not expose negative cache idmap entries as valid mappings (bug #9002)
metze
Stefan Metzmacher [Fri, 2 Mar 2012 04:08:17 +0000 (05:08 +0100)]
s3:winbindd: discard the expired gid cache if we're online (bug #9002)
This matches the uid case...
metze
Volker Lendecke [Thu, 14 Jun 2012 18:33:52 +0000 (20:33 +0200)]
s3: Remove an unnecessary ()
Signed-off-by: Michael Adam <obnox@samba.org>
Autobuild-User(master): Michael Adam <obnox@samba.org>
Autobuild-Date(master): Thu Jun 21 16:05:30 CEST 2012 on sn-devel-104
Volker Lendecke [Wed, 20 Jun 2012 09:47:53 +0000 (11:47 +0200)]
s3: Use string_term_tdb_data where appropriate
Signed-off-by: Michael Adam <obnox@samba.org>
Volker Lendecke [Wed, 20 Jun 2012 09:47:32 +0000 (11:47 +0200)]
s3: Fix const warnings
Signed-off-by: Michael Adam <obnox@samba.org>
Andrew Bartlett [Thu, 21 Jun 2012 06:21:54 +0000 (16:21 +1000)]
s4-provision: Give better clues on what Samba needs for s3fs ACL support
Autobuild-User(master): Andrew Bartlett <abartlet@samba.org>
Autobuild-Date(master): Thu Jun 21 14:07:55 CEST 2012 on sn-devel-104
Alexander Bokovoy [Wed, 13 Jun 2012 14:02:18 +0000 (17:02 +0300)]
s3-rpcclient: support all known netr_LogonControl2 variants properly
logonctrl2 function in rpcclient did not allow to specify arguments
to most of netr_LogonControl2 function code points.
In addition, make descriptive help to show what is expected at each
function code point.
Autobuild-User(master): Alexander Bokovoy <ab@samba.org>
Autobuild-Date(master): Thu Jun 21 12:11:19 CEST 2012 on sn-devel-104
Stefan Metzmacher [Wed, 20 Jun 2012 20:28:54 +0000 (22:28 +0200)]
s4:torture/smb2: add smb2.durable-open.delete_on_close1
metze
Autobuild-User(master): Stefan Metzmacher <metze@samba.org>
Autobuild-Date(master): Thu Jun 21 10:19:00 CEST 2012 on sn-devel-104
Michael Adam [Fri, 15 Jun 2012 22:30:55 +0000 (00:30 +0200)]
s3:move serverid_equal() to serverid.c
Signed-off-by: Stefan Metzmacher <metze@samba.org>
Michael Adam [Fri, 15 Jun 2012 22:26:26 +0000 (00:26 +0200)]
s3:util: rename procid_equal() to serverid_equal()
Signed-off-by: Stefan Metzmacher <metze@samba.org>
Michael Adam [Fri, 15 Jun 2012 22:09:24 +0000 (00:09 +0200)]
s3:util: remove (now) unused cluster_id_equal()
Signed-off-by: Stefan Metzmacher <metze@samba.org>
Michael Adam [Fri, 15 Jun 2012 22:07:16 +0000 (00:07 +0200)]
s3:smbstatus: use procid_equal() instead of equivalent cluster_id_equal()
Signed-off-by: Stefan Metzmacher <metze@samba.org>
Volker Lendecke [Fri, 15 Jun 2012 12:29:08 +0000 (14:29 +0200)]
s3: Remove a user of procid_is_me
Signed-off-by: Michael Adam <obnox@samba.org>
Signed-off-by: Stefan Metzmacher <metze@samba.org>
Volker Lendecke [Fri, 15 Jun 2012 12:29:08 +0000 (14:29 +0200)]
s3: Remove a user of procid_is_me
Signed-off-by: Michael Adam <obnox@samba.org>
Signed-off-by: Stefan Metzmacher <metze@samba.org>
Michael Adam [Fri, 15 Jun 2012 11:58:20 +0000 (13:58 +0200)]
s3:util: reformat procid_equal() to adhere to coding guidelines
Signed-off-by: Stefan Metzmacher <metze@samba.org>
Michael Adam [Fri, 15 Jun 2012 11:56:39 +0000 (13:56 +0200)]
s3:util: also compare the unique_id in procid_equal().
Signed-off-by: Stefan Metzmacher <metze@samba.org>
Michael Adam [Wed, 20 Jun 2012 22:39:21 +0000 (00:39 +0200)]
script: really sleep in "random-sleep.sh"
Signed-off-by: Stefan Metzmacher <metze@samba.org>
Amitay Isaacs [Tue, 19 Jun 2012 06:49:33 +0000 (16:49 +1000)]
samba-tool: gpo: Fix creation of filesystem ACL from directory ACL
Autobuild-User(master): Amitay Isaacs <amitay@samba.org>
Autobuild-Date(master): Thu Jun 21 03:25:57 CEST 2012 on sn-devel-104
Amitay Isaacs [Wed, 20 Jun 2012 07:29:55 +0000 (17:29 +1000)]
s4-pysmb: Parse security info as an unsigned integer
Andrew Bartlett [Wed, 20 Jun 2012 08:23:18 +0000 (18:23 +1000)]
s4-torture: Expand whoami test to confirm the user token.
This uses the tokenGroups attribute on LDAP and the posix whoami call
to confirm that user token matches between LDAP and CIFS.
I have a seperate patch for the anonymous case, because this isn't
consistent at this stage, and we need to study and fix that.
Andrew Bartlett
Autobuild-User(master): Andrew Bartlett <abartlet@samba.org>
Autobuild-Date(master): Wed Jun 20 18:43:43 CEST 2012 on sn-devel-104
Andrew Bartlett [Wed, 20 Jun 2012 07:26:48 +0000 (17:26 +1000)]
s4-torture: Change the unix.whoami test to use torture_assert()
Rusty Russell [Wed, 20 Jun 2012 12:01:21 +0000 (21:31 +0930)]
ntdb: fix occasional abort in testing.
Occasionally, the capability test inserts multiple used records and they
clash, but our primitive test layout engine doesn't handle hash clashes
and aborts.
Force a seed value which we know doesn't clash.
Reported-by: Andrew Bartlett <abartlet@samba.org>
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
Autobuild-User(master): Rusty Russell <rusty@rustcorp.com.au>
Autobuild-Date(master): Wed Jun 20 16:50:20 CEST 2012 on sn-devel-104