samba.git
11 years agontdb: respect TDB_NO_FSYNC flag for 'make test'
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>
11 years agos4:torture/smb2: add smb2.durable-open.lock-oplock
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

11 years agoselftest: samba3.smb2.durable-open.lock => samba3.smb2.durable-open.lock-lease
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

11 years agos4:torture/smb2: rename smb2.durable-open.lock to smb2.durable-open.lock-lease
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

11 years agoautobuild: run "samba3-ctdb" by default
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

11 years agoautobuild: run "samba-ctdb" by default to catch dbwrap_ctdb regressions
Michael Adam [Wed, 20 Jun 2012 12:15:34 +0000 (14:15 +0200)]
autobuild: run "samba-ctdb" by default to catch dbwrap_ctdb regressions

11 years agoautobuild: add a target "samba3-ctdb" that builds samba3 (autoconf) with cluster...
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.

11 years agoautobuild: add a target "samba-ctdb" that builds samba (waf) with cluster support
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.

11 years agoautobuild: rename the "samba4-libs" target to "samba-libs"
Michael Adam [Wed, 20 Jun 2012 11:23:04 +0000 (13:23 +0200)]
autobuild: rename the "samba4-libs" target to "samba-libs"

11 years agoautobuild: rename the "samba4" target to "samba"
Michael Adam [Wed, 20 Jun 2012 11:22:18 +0000 (13:22 +0200)]
autobuild: rename the "samba4" target to "samba"

11 years agoAdd current headers from ctdb master.
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.

11 years agowintest: enable dns forwarding for internal dns
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

11 years agowintest: get original nameserver for forwarding on a more general place
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>
11 years agowintest: extend get_is_dc function with additional expectations
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>
11 years agowintest: check netcats exitstatus instead of output
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>
11 years agowintest: set recursive queries for internal dns
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>
11 years agowintest: add option to select the dns backend
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>
11 years agowintest: set nameserver on a more general place
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>
11 years agowintest: add option to use ntvfs instead of s3fs
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>
11 years agowintest: add working bbaumbach.conf file for use with VirtualBox
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>
11 years agoFix bug #8974 - Kernel oplocks are broken when uid(file) != uid(process).
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

11 years agoAdd --disable-ntdb option for building.
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

11 years agosamdb: Accept a list of member variables rather than a comma-separated string.
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.

11 years agos3:idmap_cache: also store negative entries for unknown sids
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

11 years agos3:winbindd: do not expose negative cache idmap entries as valid mappings (bug #9002)
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

11 years agos3:winbindd: discard the expired gid cache if we're online (bug #9002)
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

11 years agos3: Remove an unnecessary ()
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

11 years agos3: Use string_term_tdb_data where appropriate
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>
11 years agos3: Fix const warnings
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>
11 years agos4-provision: Give better clues on what Samba needs for s3fs ACL support
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

11 years agos3-rpcclient: support all known netr_LogonControl2 variants properly
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

11 years agos4:torture/smb2: add smb2.durable-open.delete_on_close1
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

11 years agos3:move serverid_equal() to serverid.c
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>
11 years agos3:util: rename procid_equal() to serverid_equal()
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>
11 years agos3:util: remove (now) unused cluster_id_equal()
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>
11 years agos3:smbstatus: use procid_equal() instead of equivalent cluster_id_equal()
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>
11 years agos3: Remove a user of procid_is_me
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>
11 years agos3: Remove a user of procid_is_me
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>
11 years agos3:util: reformat procid_equal() to adhere to coding guidelines
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>
11 years agos3:util: also compare the unique_id in procid_equal().
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>
11 years agoscript: really sleep in "random-sleep.sh"
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>
11 years agosamba-tool: gpo: Fix creation of filesystem ACL from directory ACL
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

11 years agos4-pysmb: Parse security info as an unsigned integer
Amitay Isaacs [Wed, 20 Jun 2012 07:29:55 +0000 (17:29 +1000)]
s4-pysmb: Parse security info as an unsigned integer

11 years agos4-torture: Expand whoami test to confirm the user token.
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

11 years agos4-torture: Change the unix.whoami test to use torture_assert()
Andrew Bartlett [Wed, 20 Jun 2012 07:26:48 +0000 (17:26 +1000)]
s4-torture: Change the unix.whoami test to use torture_assert()

11 years agontdb: fix occasional abort in testing.
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

11 years agoscript/autobuild: delay start of small projects by 60 to 600 seconds
Stefan Metzmacher [Wed, 20 Jun 2012 09:03:48 +0000 (11:03 +0200)]
script/autobuild: delay start of small projects by 60 to 600 seconds

This should reduce the startup load.

metze

Autobuild-User(master): Stefan Metzmacher <metze@samba.org>
Autobuild-Date(master): Wed Jun 20 14:56:51 CEST 2012 on sn-devel-104

11 years agoscript/autobuild: don't use 'make -j 4' for bin/smbtorture4
Stefan Metzmacher [Wed, 20 Jun 2012 09:14:04 +0000 (11:14 +0200)]
script/autobuild: don't use 'make -j 4' for bin/smbtorture4

The '4' has no effect there, which results in NUM_JOBS == NUM_CORES.

metze

11 years agoscript/autobuild: don't use make -j for small projects
Stefan Metzmacher [Wed, 20 Jun 2012 08:36:23 +0000 (10:36 +0200)]
script/autobuild: don't use make -j for small projects

The top level and source3 builds take much longer than the standalone
projects, so there's no need to use 'make -j'.

metze

11 years agos3:smbd: fix the build with the --with-profiling-data option
Stefan Metzmacher [Wed, 20 Jun 2012 06:53:10 +0000 (08:53 +0200)]
s3:smbd: fix the build with the --with-profiling-data option

metze

11 years agos3:include: add START/END_PROFILE_STAMP()
Stefan Metzmacher [Wed, 20 Jun 2012 06:44:30 +0000 (08:44 +0200)]
s3:include: add START/END_PROFILE_STAMP()

This is needed when the profiling spans multiple functions.

metze

11 years agowafsamba/irixcc: next try to inject '-c99' the the build
Stefan Metzmacher [Wed, 20 Jun 2012 06:45:42 +0000 (08:45 +0200)]
wafsamba/irixcc: next try to inject '-c99' the the build

metze

11 years agoRevert "wafsamba/irixcc: add '-c99' option to cc"
Stefan Metzmacher [Tue, 19 Jun 2012 22:14:58 +0000 (00:14 +0200)]
Revert "wafsamba/irixcc: add '-c99' option to cc"

This reverts commit 59daf91f397c2ebef283ab9e6ecaabbe9dc58fc5.

Doesn't seem to work :-(

metze

11 years agoidmap-hash: Attempt to fix Coverity ID 709116 Overflowed array index write
Volker Lendecke [Wed, 20 Jun 2012 08:26:58 +0000 (10:26 +0200)]
idmap-hash: Attempt to fix Coverity ID 709116 Overflowed array index write

Signed-off-by: Michael Adam <obnox@samba.org>
Autobuild-User(master): Michael Adam <obnox@samba.org>
Autobuild-Date(master): Wed Jun 20 12:53:59 CEST 2012 on sn-devel-104

11 years agoidmap-hash: Fix Coverity ID 709117 Dereference before null check
Volker Lendecke [Wed, 20 Jun 2012 06:43:36 +0000 (08:43 +0200)]
idmap-hash: Fix Coverity ID 709117 Dereference before null check

Signed-off-by: Michael Adam <obnox@samba.org>
11 years agoidmap-hash: Fix Coverity 709118 Dereference before null check
Volker Lendecke [Wed, 20 Jun 2012 06:42:20 +0000 (08:42 +0200)]
idmap-hash: Fix Coverity 709118 Dereference before null check

Signed-off-by: Michael Adam <obnox@samba.org>
11 years agoidmap-hash: Adapt mapfile_read_line to README.Coding
Volker Lendecke [Wed, 20 Jun 2012 08:43:29 +0000 (10:43 +0200)]
idmap-hash: Adapt mapfile_read_line to README.Coding

Signed-off-by: Michael Adam <obnox@samba.org>
11 years agoidmap-hash: Fix Coverity ID 709119 Unused pointer value
Volker Lendecke [Wed, 20 Jun 2012 06:40:22 +0000 (08:40 +0200)]
idmap-hash: Fix Coverity ID 709119 Unused pointer value

"p" is overwritten further down again before it's first use

Signed-off-by: Michael Adam <obnox@samba.org>
11 years agoVERSION: Move on to beta3!
Andrew Bartlett [Wed, 20 Jun 2012 03:25:02 +0000 (13:25 +1000)]
VERSION: Move on to beta3!

Autobuild-User(master): Andrew Bartlett <abartlet@samba.org>
Autobuild-Date(master): Wed Jun 20 10:14:37 CEST 2012 on sn-devel-104

11 years agoVERSION: Mark as the beta2 release samba-4.0.0beta2
Andrew Bartlett [Wed, 20 Jun 2012 03:24:30 +0000 (13:24 +1000)]
VERSION: Mark as the beta2 release

11 years agoWHATNEW: Update for the beta2 release
Andrew Bartlett [Wed, 20 Jun 2012 03:23:56 +0000 (13:23 +1000)]
WHATNEW: Update for the beta2 release

11 years agos4-idmap: Add parameter 'idmap_ldb:use rfc2307' and correct implementation errors
Andrew Bartlett [Wed, 20 Jun 2012 02:51:43 +0000 (12:51 +1000)]
s4-idmap: Add parameter 'idmap_ldb:use rfc2307' and correct implementation errors

11 years agos4-provision: Remove --slapd-path option
Andrew Bartlett [Wed, 20 Jun 2012 02:41:06 +0000 (12:41 +1000)]
s4-provision: Remove --slapd-path option

This just leaves a default enough for the test code to still check the start
of the provision.  This may well be removed in future, and we wish to reduce
the extra options to provision.

Andrew Bartlett

11 years agos4-provision: Remove last unused remenants of the 'sid generator' configuration
Andrew Bartlett [Wed, 20 Jun 2012 01:48:11 +0000 (11:48 +1000)]
s4-provision: Remove last unused remenants of the 'sid generator' configuration

This was part of the now-abandoned S4 AD LDAP backend project.

Andrew Bartlett

11 years agoRevert "s4-libcli: Remove unused finddcs_nbt"
Andrew Bartlett [Fri, 8 Jun 2012 10:43:18 +0000 (20:43 +1000)]
Revert "s4-libcli: Remove unused finddcs_nbt"

This reverts commit 06c90cb6f55701effa4cbafaf189a4de8471949b.

There is genuine interest in using this currently unused code, so put
it back into the tree to avoid folks having to rewrite it.

It should be carefully hooked back into libnet at some point, and
possibly told how to talk to the s3 nmbd socket if nbt_server isn't
running.

The wscript patches are skipped, due to the way the extra
dep interacted with the build system.  When used, this will be resolved.

Andrew Bartlett

11 years agoFix unused variable warnings.
Jeremy Allison [Tue, 19 Jun 2012 17:26:58 +0000 (10:26 -0700)]
Fix unused variable warnings.

Autobuild-User(master): Jeremy Allison <jra@samba.org>
Autobuild-Date(master): Tue Jun 19 21:17:51 CEST 2012 on sn-devel-104

11 years agoFix unused variable warnings.
Jeremy Allison [Tue, 19 Jun 2012 17:23:02 +0000 (10:23 -0700)]
Fix unused variable warnings.

11 years agoRemove unused variables.
Jeremy Allison [Tue, 19 Jun 2012 17:18:28 +0000 (10:18 -0700)]
Remove unused variables.

11 years agoRemove unused variables and code.
Jeremy Allison [Tue, 19 Jun 2012 17:16:32 +0000 (10:16 -0700)]
Remove unused variables and code.

11 years agoFix more "set but not used" warnings.
Jeremy Allison [Tue, 19 Jun 2012 17:09:45 +0000 (10:09 -0700)]
Fix more "set but not used" warnings.

11 years agoFix a bunch of "set but not used" warnings.
Jeremy Allison [Tue, 19 Jun 2012 17:06:34 +0000 (10:06 -0700)]
Fix a bunch of "set but not used" warnings.

11 years agos3: We can depend on pthreadpool now
Volker Lendecke [Wed, 13 Jun 2012 11:06:16 +0000 (13:06 +0200)]
s3: We can depend on pthreadpool now

Signed-off-by: Jeremy Allison <jra@samba.org>
11 years agos3: Add a dummy implementation for the pthreadpool API
Volker Lendecke [Wed, 13 Jun 2012 11:05:17 +0000 (13:05 +0200)]
s3: Add a dummy implementation for the pthreadpool API

Signed-off-by: Jeremy Allison <jra@samba.org>
11 years agoRemove unused code now we set the correct command codes.
Jeremy Allison [Mon, 18 Jun 2012 23:36:30 +0000 (16:36 -0700)]
Remove unused code now we set the correct command codes.

11 years agoFix warning: variable ‘status’ set but not used.
Jeremy Allison [Mon, 18 Jun 2012 21:37:15 +0000 (14:37 -0700)]
Fix warning: variable ‘status’ set but not used.

11 years agoFix warnings using %lu to print a 64-bit value (should by %llu).
Jeremy Allison [Mon, 18 Jun 2012 21:35:02 +0000 (14:35 -0700)]
Fix warnings using %lu to print a 64-bit value (should by %llu).

11 years agoFix warning: variable ‘in_start_time’ set but not used.
Jeremy Allison [Mon, 18 Jun 2012 21:28:48 +0000 (14:28 -0700)]
Fix  warning: variable ‘in_start_time’ set but not used.

11 years agoFix warning: variable ‘XX’ set but not used.
Jeremy Allison [Mon, 18 Jun 2012 21:25:27 +0000 (14:25 -0700)]
Fix warning: variable ‘XX’ set but not used.

11 years agowaf: Fix make etags
Volker Lendecke [Tue, 19 Jun 2012 14:33:39 +0000 (16:33 +0200)]
waf: Fix make etags

vlendec@host:~/git/s3> make etags
WAF_MAKE=1 ./buildtools/bin/waf etags
Running: etags $(find /home/vlendec/git/s3 -name "*.[ch]" | egrep -v \.inst\.)
sh: /usr/bin/etags: Argument list too long
'etags' finished successfully (0.368s)

Autobuild-User(master): Stefan Metzmacher <metze@samba.org>
Autobuild-Date(master): Tue Jun 19 18:56:53 CEST 2012 on sn-devel-104

11 years agoselftest/flapping: mark samba4.nss.test using winbind as flakey
Stefan Metzmacher [Tue, 19 Jun 2012 13:19:44 +0000 (15:19 +0200)]
selftest/flapping: mark samba4.nss.test using winbind as flakey

[1427/1518 in 1h12m39s] samba4.nss.test using winbind(member)
UNEXPECTED(failure): samba4.nss.test using winbind(member).run nsstest(member)
REASON: _StringException: _StringException: ERROR setpwent: NSS_STATUS=-1  1 (nss_errno=0)
ERROR getpwent: NSS_STATUS=-1  1 (nss_errno=0)
ERROR endpwent: NSS_STATUS=-1  1 (nss_errno=0)
ERROR setgrent: NSS_STATUS=-1  1 (nss_errno=0)
ERROR getgrent: NSS_STATUS=-1  1 (nss_errno=0)
ERROR endgrent: NSS_STATUS=-1  1 (nss_errno=0)
ERROR Non existent user gave error -1
ERROR Non existent uid gave error -1
ERROR Non existent group gave error -1
ERROR Non existent gid gave error -1
total_errors=10

This seems to happen in all environments

metze

11 years agoRevert "s3-lib Remove unused sys_fcntl_long()"
Stefan Metzmacher [Tue, 19 Jun 2012 09:34:04 +0000 (11:34 +0200)]
Revert "s3-lib Remove unused sys_fcntl_long()"

This reverts commit 846a697e20478798288afb43cdb7a9f389a15c69.

This is still used in source3/smbd/oplock_irix.c

metze

11 years agos3:rpc_server/lsasd: remove dependency to libgen.h and basename()
Stefan Metzmacher [Tue, 19 Jun 2012 09:33:12 +0000 (11:33 +0200)]
s3:rpc_server/lsasd: remove dependency to libgen.h and basename()

metze

11 years agos3-auth: make_new_system_info_session() now does not query nss
Andrew Bartlett [Wed, 13 Jun 2012 23:41:05 +0000 (09:41 +1000)]
s3-auth: make_new_system_info_session() now does not query nss

This is important in some situations where these queries might be
costly LDAP queries and is just not required for the system token.
This is because the system token should be just the NT
AUTHORITY\SYSTEM user and just enough unix info to allow the token to
be used.

Andrew Bartlett

Signed-off-by: Andreas Schneider <asn@samba.org>
Autobuild-User(master): Andreas Schneider <asn@cryptomilk.org>
Autobuild-Date(master): Tue Jun 19 13:34:28 CEST 2012 on sn-devel-104

11 years agos3-auth: make_new_system_info_session() not query passdb
Andrew Bartlett [Tue, 12 Jun 2012 07:15:19 +0000 (17:15 +1000)]
s3-auth: make_new_system_info_session() not query passdb

This is important in some situations where these queries might be
costly LDAP queries and is just not required for the system token.
This is because the system token should be just the NT
AUTHORITY\SYSTEM user and just enough unix info to allow the token to
be used.

We query only NSS to get the name of sec_initial_uid()

Signed-off-by: Andreas Schneider <asn@samba.org>
11 years agos3-auth: inline make_session_info functions into only callers
Andrew Bartlett [Sun, 3 Jun 2012 13:12:22 +0000 (23:12 +1000)]
s3-auth: inline make_session_info functions into only callers

With the split up to handle system specially, there is no need for these
static helper functions any more.

Andrew Bartlett

Signed-off-by: Andreas Schneider <asn@samba.org>
11 years agoauth: Use only security_token_is_system to determine that a user is SYSTEM
Andrew Bartlett [Sun, 3 Jun 2012 12:34:13 +0000 (22:34 +1000)]
auth: Use only security_token_is_system to determine that a user is SYSTEM

This removes the duplication on how to detect that a user is system in Samba
now that the smbd system account is also only SID_NT_SYSTEM we can use the same
check everywhere.

Andrew Bartlett

Signed-off-by: Andreas Schneider <asn@samba.org>
11 years agos3-auth: Fix system token as just being SID_NT_SYSTEM
Andrew Bartlett [Sun, 3 Jun 2012 12:21:42 +0000 (22:21 +1000)]
s3-auth: Fix system token as just being SID_NT_SYSTEM

This removes the SID matching the sec_initial_uid().

Andrew Bartlett

Signed-off-by: Andreas Schneider <asn@samba.org>
11 years agos3-spoolss: delete_drivers should be called as the connecting user.
Andreas Schneider [Tue, 19 Jun 2012 07:48:38 +0000 (09:48 +0200)]
s3-spoolss: delete_drivers should be called as the connecting user.

Signed-off-by: Andreas Schneider <asn@samba.org>
11 years agontdb: add autoconf support.
Rusty Russell [Tue, 19 Jun 2012 03:13:17 +0000 (12:43 +0930)]
ntdb: add autoconf support.

This is copied from tdb; we build the utilities, but as nothing else
links against it, we shouldn't be adding anything to the normal samba
binary sizes.

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
Autobuild-User(master): Rusty Russell <rusty@rustcorp.com.au>
Autobuild-Date(master): Tue Jun 19 07:31:06 CEST 2012 on sn-devel-104

11 years agontdb: put it back into the build.
Rusty Russell [Tue, 19 Jun 2012 03:13:11 +0000 (12:43 +0930)]
ntdb: put it back into the build.

This doesn't do anything with it yet, just wires it back into the build.

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
11 years agolibcli: use tdb directly, not tdb_compat.
Rusty Russell [Tue, 19 Jun 2012 03:13:10 +0000 (12:43 +0930)]
libcli: use tdb directly, not tdb_compat.

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
11 years agolib/tdb_wrap: use tdb directly, not tdb_compat.
Rusty Russell [Tue, 19 Jun 2012 03:13:10 +0000 (12:43 +0930)]
lib/tdb_wrap: use tdb directly, not tdb_compat.

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
11 years agoldb: use tdb directly, not tdb_compat.
Rusty Russell [Tue, 19 Jun 2012 03:13:10 +0000 (12:43 +0930)]
ldb: use tdb directly, not tdb_compat.

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
11 years agolib/dbwrap: depend directly on tdb, not tdb_compat.
Rusty Russell [Tue, 19 Jun 2012 03:13:10 +0000 (12:43 +0930)]
lib/dbwrap: depend directly on tdb, not tdb_compat.

Simple change, as we get rid of tdb_compat in favour of either ntdb directly
or dbwrap.

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
11 years agolib/util_tdb: depend directly on tdb, not tdb_compat.
Rusty Russell [Tue, 19 Jun 2012 03:13:10 +0000 (12:43 +0930)]
lib/util_tdb: depend directly on tdb, not tdb_compat.

Simple change, as we get rid of tdb_compat in favour of tdb directly.

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
11 years agontdb: update documentation.
Rusty Russell [Tue, 19 Jun 2012 03:13:09 +0000 (12:43 +0930)]
ntdb: update documentation.

Update the design.lyx file with the latest status and the change in hashing.
Also, refresh and add examples to the TDB_porting.txt file.

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
11 years agontdb: optimize ntdb_fetch.
Rusty Russell [Tue, 19 Jun 2012 03:13:09 +0000 (12:43 +0930)]
ntdb: optimize ntdb_fetch.

We access the key on lookup, then access the data in the caller.  It
makes more sense to access both at once.  We also put in a likely()
for the case where the hash is not chained.

Before:
Adding 1000 records: 3644-3724(3675) ns (129656 bytes)
Finding 1000 records: 1596-1696(1622) ns (129656 bytes)
Missing 1000 records: 1409-1525(1452) ns (129656 bytes)
Traversing 1000 records: 1636-1747(1668) ns (129656 bytes)
Deleting 1000 records: 3138-3223(3175) ns (129656 bytes)
Re-adding 1000 records: 3278-3414(3329) ns (129656 bytes)
Appending 1000 records: 5396-5529(5426) ns (253312 bytes)
Churning 1000 records: 9451-10095(9584) ns (253312 bytes)
smbtorture results (--entries=1000)
ntdb speed 183881-191112(188223) ops/sec

After:
Adding 1000 records: 3590-3701(3640) ns (129656 bytes)
Finding 1000 records: 1539-1605(1566) ns (129656 bytes)
Missing 1000 records: 1398-1440(1413) ns (129656 bytes)
Traversing 1000 records: 1629-2015(1710) ns (129656 bytes)
Deleting 1000 records: 3118-3236(3163) ns (129656 bytes)
Re-adding 1000 records: 3235-3355(3275) ns (129656 bytes)
Appending 1000 records: 5335-5444(5385) ns (253312 bytes)
Churning 1000 records: 9350-9955(9494) ns (253312 bytes)
smbtorture results (--entries=1000)
ntdb speed 180559-199981(195106) ops/sec

11 years agontdb: add -h arg to ntdbrestore
Rusty Russell [Tue, 19 Jun 2012 03:13:09 +0000 (12:43 +0930)]
ntdb: add -h arg to ntdbrestore

Since our default hashsize is 8192 not 131, we look fat when we convert
near-empty TDBs.

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
11 years agontdb: reduce default hashsize on ntdbtorture.
Rusty Russell [Tue, 19 Jun 2012 03:13:08 +0000 (12:43 +0930)]
ntdb: reduce default hashsize on ntdbtorture.

Just like tdbtorture, having a hashsize of 2 stresses us much more!

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
11 years agontdb: add NTDB_ATTRIBUTE_HASHSIZE
Rusty Russell [Tue, 19 Jun 2012 03:13:08 +0000 (12:43 +0930)]
ntdb: add NTDB_ATTRIBUTE_HASHSIZE

Since we've given up on expansion, let them frob the hashsize again.
We have attributes, so we should use them for optional stuff like
this.

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>