garming/samba-autobuild/.git
12 years agolibndr: Rename ndr64_transfer_syntax and null_ndr_syntax_id so they have a ndr_ prefix.
Jelmer Vernooij [Sun, 18 Mar 2012 15:46:57 +0000 (16:46 +0100)]
libndr: Rename ndr64_transfer_syntax and null_ndr_syntax_id so they have a ndr_ prefix.

This makes the NDR namespace a bit clearer, in preparation of ABI checking.

12 years agolibrpc/wscript_build: Santizize formatting.
Jelmer Vernooij [Sun, 18 Mar 2012 01:21:24 +0000 (02:21 +0100)]
librpc/wscript_build: Santizize formatting.

12 years agos3-winbindd Only use SamLogonEx when we can get unencrypted session keys
Andrew Bartlett [Wed, 14 Dec 2011 23:00:36 +0000 (10:00 +1100)]
s3-winbindd Only use SamLogonEx when we can get unencrypted session keys

This ensures that we have some check on the session keys being returned
as the RC4 cipher is not checksumed.

The check comes from the fact that the credentials chain is tied to
the session key, and so if the credentials check passes then the
netlogon session key will be correct, and so the user session key
will be correctly decrypted.

Andrew Bartlett

Signed-off-by: Jeremy Allison <jra@samba.org>
Autobuild-User: Jeremy Allison <jra@samba.org>
Autobuild-Date: Mon Mar 19 21:31:46 CET 2012 on sn-devel-104

12 years agos4:selftest: add test for "samba-tool group list"
Michael Adam [Sun, 18 Mar 2012 22:40:18 +0000 (23:40 +0100)]
s4:selftest: add test for "samba-tool group list"

Autobuild-User: Michael Adam <obnox@samba.org>
Autobuild-Date: Mon Mar 19 02:30:39 CET 2012 on sn-devel-104

12 years agos4:samba-tool: add simple command "group list"
Michael Adam [Thu, 8 Mar 2012 21:39:24 +0000 (22:39 +0100)]
s4:samba-tool: add simple command "group list"

12 years agos4:selftest: add a new testsuite for the "samba-tool group" command
Michael Adam [Sun, 18 Mar 2012 21:19:46 +0000 (22:19 +0100)]
s4:selftest: add a new testsuite for the "samba-tool group" command

12 years agoupgrade provision didn't run findprovisionrange anymore
Matthieu Patou [Sat, 17 Mar 2012 07:19:40 +0000 (00:19 -0700)]
upgrade provision didn't run findprovisionrange anymore

Autobuild-User: Matthieu Patou <mat@samba.org>
Autobuild-Date: Sat Mar 17 09:51:46 CET 2012 on sn-devel-104

12 years agoRewrite findprovisionrange to use factorized functions
Matthieu Patou [Sat, 17 Mar 2012 07:19:09 +0000 (00:19 -0700)]
Rewrite findprovisionrange to use factorized functions

12 years agoFactorize code from findprovisionusnranges in order to solve bug #8504
Matthieu Patou [Sat, 17 Mar 2012 07:18:39 +0000 (00:18 -0700)]
Factorize code from findprovisionusnranges in order to solve bug #8504

12 years agos3:gse: fix debug message in gse_get_server_auth_token()
Stefan Metzmacher [Fri, 2 Mar 2012 20:41:51 +0000 (21:41 +0100)]
s3:gse: fix debug message in gse_get_server_auth_token()

metze

Autobuild-User: Stefan Metzmacher <metze@samba.org>
Autobuild-Date: Sat Mar 17 03:21:06 CET 2012 on sn-devel-104

12 years agoFix second part of bug #8811 - sd_has_inheritable_components segfaults on an SD that...
Jeremy Allison [Fri, 16 Mar 2012 22:26:57 +0000 (15:26 -0700)]
Fix second part of bug #8811 - sd_has_inheritable_components segfaults on an SD that se_access_check accepts.

This fixes a coredump with a NULL DACL in add_directory_inheritable_components().

Autobuild-User: Jeremy Allison <jra@samba.org>
Autobuild-Date: Sat Mar 17 01:05:57 CET 2012 on sn-devel-104

12 years agos4:samba-tool: remove remains of patch conflict resolution
Michael Adam [Fri, 16 Mar 2012 14:25:38 +0000 (15:25 +0100)]
s4:samba-tool: remove remains of patch conflict resolution

Autobuild-User: Michael Adam <obnox@samba.org>
Autobuild-Date: Fri Mar 16 19:13:32 CET 2012 on sn-devel-104

12 years agoStop installing popt_common.h as its symbols are in a private library.
Jelmer Vernooij [Fri, 16 Mar 2012 14:02:20 +0000 (15:02 +0100)]
Stop installing popt_common.h as its symbols are in a private library.

Autobuild-User: Jelmer Vernooij <jelmer@samba.org>
Autobuild-Date: Fri Mar 16 17:39:31 CET 2012 on sn-devel-104

12 years agobuild: Do not use --export-dynamic flag on OpenBSD 5.x
Amitay Isaacs [Fri, 16 Mar 2012 11:57:09 +0000 (22:57 +1100)]
build: Do not use --export-dynamic flag on OpenBSD 5.x

With --export-dynamic flag on OpenBSD 5.x, extra symbols get added in the
data segment which causes ABI generation script to fail.

Autobuild-User: Amitay Isaacs <amitay@samba.org>
Autobuild-Date: Fri Mar 16 16:04:31 CET 2012 on sn-devel-104

12 years agos3-notify: Lift "/." handling up one level
Volker Lendecke [Thu, 15 Mar 2012 12:02:15 +0000 (13:02 +0100)]
s3-notify: Lift "/." handling up one level

This slightly simplifies the code

Autobuild-User: Volker Lendecke <vl@samba.org>
Autobuild-Date: Fri Mar 16 14:28:44 CET 2012 on sn-devel-104

12 years agos3-notify: Simplify if-expressions
Volker Lendecke [Thu, 15 Mar 2012 11:22:50 +0000 (12:22 +0100)]
s3-notify: Simplify if-expressions

12 years agos3-dbwrap: Move "lock_order" initialization to db_open_xx
Volker Lendecke [Thu, 15 Mar 2012 10:10:35 +0000 (11:10 +0100)]
s3-dbwrap: Move "lock_order" initialization to db_open_xx

12 years agobuild: Fix build issue on OpenBSD 5.x
Amitay Isaacs [Fri, 16 Mar 2012 02:34:05 +0000 (13:34 +1100)]
build: Fix build issue on OpenBSD 5.x

Do not use -Wl,-no-undefined flag on OpenBSD 5.x (tested on 5.0)

Autobuild-User: Amitay Isaacs <amitay@samba.org>
Autobuild-Date: Fri Mar 16 05:14:03 CET 2012 on sn-devel-104

12 years agoRemove more unnecessary shebang lines in python files.
Jelmer Vernooij [Thu, 15 Mar 2012 15:03:57 +0000 (16:03 +0100)]
Remove more unnecessary shebang lines in python files.

Autobuild-User: Jelmer Vernooij <jelmer@samba.org>
Autobuild-Date: Fri Mar 16 02:48:52 CET 2012 on sn-devel-104

12 years agosamba.tests.source: Verify that only executable python files (and only executable...
Jelmer Vernooij [Thu, 15 Mar 2012 15:03:36 +0000 (16:03 +0100)]
samba.tests.source: Verify that only executable python files (and only executable files) have a shebang line.

12 years agowafsamba: Remove shebang lines from non-executable files.
Jelmer Vernooij [Thu, 15 Mar 2012 14:56:27 +0000 (15:56 +0100)]
wafsamba: Remove shebang lines from non-executable files.

12 years agoMake reinit_after_fork_pipe_handler code with reads being interrupted by a signal.
Jeremy Allison [Thu, 15 Mar 2012 20:24:57 +0000 (13:24 -0700)]
Make reinit_after_fork_pipe_handler code with reads being interrupted by a signal.

Autobuild-User: Jeremy Allison <jra@samba.org>
Autobuild-Date: Thu Mar 15 23:29:47 CET 2012 on sn-devel-104

12 years agos3:smbd: call file_close_user() before removing tree connects in conn_close_all()
Stefan Metzmacher [Mon, 12 Mar 2012 17:04:01 +0000 (18:04 +0100)]
s3:smbd: call file_close_user() before removing tree connects in conn_close_all()

This will help later if we have to handle a SMB2TreeDisconnect different
compared to a SMB2SessionLogoff and a TCPDisconnect.

metze

Autobuild-User: Stefan Metzmacher <metze@samba.org>
Autobuild-Date: Thu Mar 15 21:56:09 CET 2012 on sn-devel-104

12 years agos4:selftest: make the use of writetimeupdatedelay consistent across all tests
Michael Adam [Thu, 15 Mar 2012 16:32:51 +0000 (17:32 +0100)]
s4:selftest: make the use of writetimeupdatedelay consistent across all tests

Pair-Programmed-With: Stefan Metzmacher <metze@samba.org>

Autobuild-User: Michael Adam <obnox@samba.org>
Autobuild-Date: Thu Mar 15 20:20:13 CET 2012 on sn-devel-104

12 years agos3:selftest: reactivate the writetimeupdatedelay speed-up
Michael Adam [Thu, 15 Mar 2012 16:28:38 +0000 (17:28 +0100)]
s3:selftest: reactivate the writetimeupdatedelay speed-up

Pair-Programmed-With: Stefan Metzmacher <metze@samba.org>

12 years agos3:smbd: let smbd/nmbd/winbindd child processes terminate if the parent process died.
Michael Adam [Thu, 15 Mar 2012 15:29:27 +0000 (16:29 +0100)]
s3:smbd: let smbd/nmbd/winbindd child processes terminate if the parent process died.

This applies to all child processes making use of reinit_after_fork().
It is implemented by establishing a pipe between parent and child.
The child watches for EOF on the read end of the pipe, indidcating
an exited parent.

Pair-Programmed-With: Stefan Metzmacher <metze@samba.org>

12 years agoidl: add offload data transfer ioctl types
David Disseldorp [Thu, 15 Mar 2012 13:43:26 +0000 (14:43 +0100)]
idl: add offload data transfer ioctl types

For future use in handling FSCTL_OFFLOAD_READ, FSCTL_OFFLOAD_WRITE and
IOCTL_STORAGE_QUERY_PROPERTY requests new to Windows 8.

Based on preliminary data structure documentation from:
http://msdn.microsoft.com/en-us/library/windows/hardware/hh451101%28v=vs.85%29.aspx
http://msdn.microsoft.com/en-us/library/windows/hardware/hh451122%28v=vs.85%29.aspx
http://msdn.microsoft.com/en-us/library/windows/desktop/hh449428%28v=vs.85%29.aspx
http://msdn.microsoft.com/en-us/library/windows/hardware/hh451469%28v=vs.85%29.aspx

Signed-off-by: Andreas Schneider <asn@samba.org>
Signed-off-by: Lars Müller <lars@samba.org>
Autobuild-User: David Disseldorp <ddiss@samba.org>
Autobuild-Date: Thu Mar 15 18:40:11 CET 2012 on sn-devel-104

12 years agos4:selftest: remove python shebang accidentially re-added to the "samba-tool user...
Michael Adam [Thu, 15 Mar 2012 13:37:04 +0000 (14:37 +0100)]
s4:selftest: remove python shebang accidentially re-added to the "samba-tool user" test

Autobuild-User: Michael Adam <obnox@samba.org>
Autobuild-Date: Thu Mar 15 16:17:54 CET 2012 on sn-devel-104

12 years agos4:selftest: fix message typo in test for "samba-tool user list"
Michael Adam [Thu, 15 Mar 2012 06:59:30 +0000 (07:59 +0100)]
s4:selftest: fix message typo in test for "samba-tool user list"

Spotted by kukks - thanks.

Autobuild-User: Michael Adam <obnox@samba.org>
Autobuild-Date: Thu Mar 15 14:24:29 CET 2012 on sn-devel-104

12 years agos3: Use talloc_tos() in notify_send()
Volker Lendecke [Wed, 14 Mar 2012 10:30:28 +0000 (11:30 +0100)]
s3: Use talloc_tos() in notify_send()

Signed-off-by: Stefan Metzmacher <metze@samba.org>
Autobuild-User: Stefan Metzmacher <metze@samba.org>
Autobuild-Date: Thu Mar 15 12:43:41 CET 2012 on sn-devel-104

12 years agos3: Fix lock ordering in notify_add
Volker Lendecke [Wed, 14 Mar 2012 09:52:03 +0000 (10:52 +0100)]
s3: Fix lock ordering in notify_add

It's not necessary to keep the global notify record locked during
the inotify and notify_onelevel.tdb operations.

Signed-off-by: Stefan Metzmacher <metze@samba.org>
12 years agos3: properly free the notify_onelevel record
Volker Lendecke [Wed, 14 Mar 2012 12:19:22 +0000 (13:19 +0100)]
s3: properly free the notify_onelevel record

Signed-off-by: Stefan Metzmacher <metze@samba.org>
12 years agos3: Replace some callers of cluster_id_equal
Volker Lendecke [Wed, 14 Mar 2012 09:33:53 +0000 (10:33 +0100)]
s3: Replace some callers of cluster_id_equal

Signed-off-by: Stefan Metzmacher <metze@samba.org>
12 years agos3: Remove the separate server_id arg to notify_init
Volker Lendecke [Wed, 14 Mar 2012 09:31:13 +0000 (10:31 +0100)]
s3: Remove the separate server_id arg to notify_init

The server_id is tied to the messaging_context

Signed-off-by: Stefan Metzmacher <metze@samba.org>
12 years agos3: Fix blank line endings
Volker Lendecke [Sat, 10 Mar 2012 23:01:51 +0000 (00:01 +0100)]
s3: Fix blank line endings

Autobuild-User: Volker Lendecke <vl@samba.org>
Autobuild-Date: Thu Mar 15 10:59:46 CET 2012 on sn-devel-104

12 years agoauth/gensec_gssapi: gss_krb5_lucid_context_v1_t is not shared with the gse code anymore
Stefan Metzmacher [Fri, 2 Mar 2012 21:01:48 +0000 (22:01 +0100)]
auth/gensec_gssapi: gss_krb5_lucid_context_v1_t is not shared with the gse code anymore

metze

Autobuild-User: Stefan Metzmacher <metze@samba.org>
Autobuild-Date: Thu Mar 15 09:16:16 CET 2012 on sn-devel-104

12 years agos4:librpc/rpc: avoid an unused talloc_reference() from dcerpc_request_send()
Stefan Metzmacher [Tue, 13 Mar 2012 14:18:54 +0000 (15:18 +0100)]
s4:librpc/rpc: avoid an unused talloc_reference() from dcerpc_request_send()

metze

12 years agos4:librpc/rpc: pass a mem_ctx to dcerpc_request_send()
Stefan Metzmacher [Tue, 13 Mar 2012 14:18:08 +0000 (15:18 +0100)]
s4:librpc/rpc: pass a mem_ctx to dcerpc_request_send()

metze

12 years agos4:librpc/rpc: use tevent_req_defer_callback() in dcerpc_alter_context_*
Stefan Metzmacher [Tue, 13 Mar 2012 14:41:16 +0000 (15:41 +0100)]
s4:librpc/rpc: use tevent_req_defer_callback() in dcerpc_alter_context_*

metze

12 years agos4:librpc/rpc: use tevent_req_defer_callback() in dcerpc_bind_*
Stefan Metzmacher [Tue, 13 Mar 2012 14:14:33 +0000 (15:14 +0100)]
s4:librpc/rpc: use tevent_req_defer_callback() in dcerpc_bind_*

metze

12 years agos4:librpc/rpc: convert dcerpc_alter_context_send/recv to tevent_req
Stefan Metzmacher [Tue, 13 Mar 2012 14:37:49 +0000 (15:37 +0100)]
s4:librpc/rpc: convert dcerpc_alter_context_send/recv to tevent_req

Many thanks to Andrew Bartlett <abartlet@samba.org> for the
debugging, which lead to the following line:

       talloc_steal(state, raw_packet->data);

metze

12 years agos4:librpc/rpc: convert dcerpc_bind_send/recv to tevent_req
Stefan Metzmacher [Tue, 13 Mar 2012 13:52:40 +0000 (14:52 +0100)]
s4:librpc/rpc: convert dcerpc_bind_send/recv to tevent_req

Many thanks to Andrew Bartlett <abartlet@samba.org> for the
debugging, which lead to the following line:

       talloc_steal(state, raw_packet->data);

metze

12 years agos4:librpc/rpc: also notify requests which are not shipped about a dead connection
Stefan Metzmacher [Wed, 14 Mar 2012 13:59:45 +0000 (14:59 +0100)]
s4:librpc/rpc: also notify requests which are not shipped about a dead connection

metze

12 years agos4:librpc/rpc: ship requests via an immediate event
Stefan Metzmacher [Wed, 14 Mar 2012 13:57:32 +0000 (14:57 +0100)]
s4:librpc/rpc: ship requests via an immediate event

Deep inside dcerpc_ship_next_request() some code path
could trigger dcerpc_connection_dead(), which means
it's not safe to do any processing after calling dcerpc_ship_next_request().

metze

12 years agos4:librpc/rpc: if the connecion is dead we're done
Stefan Metzmacher [Wed, 14 Mar 2012 13:25:48 +0000 (14:25 +0100)]
s4:librpc/rpc: if the connecion is dead we're done

There's no point in doing anymore processing,
it can just lead to crashes.

metze

12 years agos4:librpc/rpc: if the connection is dead we don't want to be called recursivly.
Stefan Metzmacher [Wed, 14 Mar 2012 13:24:54 +0000 (14:24 +0100)]
s4:librpc/rpc: if the connection is dead we don't want to be called recursivly.

metze

12 years agos3: Update waf build to include missed dependancy on Lion.
Ira Cooper [Thu, 15 Mar 2012 00:43:46 +0000 (20:43 -0400)]
s3: Update waf build to include missed dependancy on Lion.

Autobuild-User: Ira Cooper <ira@samba.org>
Autobuild-Date: Thu Mar 15 07:34:43 CET 2012 on sn-devel-104

12 years agoutil: Add --disable-fault-handling.
Ira Cooper [Wed, 14 Mar 2012 16:56:02 +0000 (12:56 -0400)]
util: Add --disable-fault-handling.

On some platforms you can not debug coredumps after the default signal handler
gets done dumping core.  This allows waf to have an option to disable our
default signal handler.

12 years agolibsmbclient-raw: Install smb_composite.h.
Jelmer Vernooij [Wed, 14 Mar 2012 22:20:07 +0000 (23:20 +0100)]
libsmbclient-raw: Install smb_composite.h.

Autobuild-User: Jelmer Vernooij <jelmer@samba.org>
Autobuild-Date: Thu Mar 15 02:57:59 CET 2012 on sn-devel-104

12 years agobuild: Do not build with utmp when we do not have utmp.h
Andrew Bartlett [Wed, 14 Mar 2012 11:37:33 +0000 (22:37 +1100)]
build: Do not build with utmp when we do not have utmp.h

This matches the autoconf build, and should partially address bug #8709.

Andrew Bartlett

Autobuild-User: Andrew Bartlett <abartlet@samba.org>
Autobuild-Date: Thu Mar 15 01:12:15 CET 2012 on sn-devel-104

12 years agobuild: param must require cups to get the cups headers path in -I
Andrew Bartlett [Wed, 14 Mar 2012 11:28:38 +0000 (22:28 +1100)]
build: param must require cups to get the cups headers path in -I

12 years agos3-krb5: Remove GSS_WRAP_IOV conditional
Andrew Bartlett [Sat, 10 Mar 2012 19:44:17 +0000 (06:44 +1100)]
s3-krb5: Remove GSS_WRAP_IOV conditional

We already confirm that we have this functionality before we set HAVE_KRB5 at
configure time.

Andrew Bartlett

12 years agowintest: test wbinfo --krb5auth
Andrew Bartlett [Mon, 12 Mar 2012 07:23:01 +0000 (18:23 +1100)]
wintest: test wbinfo --krb5auth

This will ensure that this functionality is tested with MIT krb5, as the
make test system only reaches this code with Heimdal.

Andrew Bartlett

12 years agoselftest: test wbinfo --authenticate and --krb5auth
Andrew Bartlett [Sun, 11 Mar 2012 02:00:01 +0000 (13:00 +1100)]
selftest: test wbinfo --authenticate and --krb5auth

12 years agobuild: Ensure that we clean build objects from auth/ as well
Andrew Bartlett [Sat, 10 Mar 2012 22:08:36 +0000 (09:08 +1100)]
build: Ensure that we clean build objects from auth/ as well

12 years agoselftest/flapping: mark ^samba3.rpc.spoolss.*printserver.enum_printers_servername...
Stefan Metzmacher [Wed, 14 Mar 2012 19:46:21 +0000 (20:46 +0100)]
selftest/flapping: mark ^samba3.rpc.spoolss.*printserver.enum_printers_servername as flakey

I got this:

[370/1371 in 21m20s] samba3.rpc.spoolss.printserver (s3dc)
Testing servername behaviour in EnumPrinters and GetPrinters
Testing EnumPrinters(\\127.0.0.2) level 2
Testing OpenPrinterEx()
WARNING!: ../source4/torture/rpc/spoolss.c:5907: r.out.result was
WERR_INVALID_PARAM, expected WERR_OK: OpenPrinterEx failed
WARNING!: ../source4/torture/rpc/spoolss.c:6417: Expression
`call_OpenPrinterEx(tctx, p, short_name, ((void *)0), &handle)' failed: failed
to open printer
UNEXPECTED(failure): samba3.rpc.spoolss.printserver
.printserver.enum_printers_servername
REASON: _StringException: _StringException:
../source4/torture/rpc/spoolss.c:6499: Expression
`test_OnePrinter_servername(tctx, p, b, servername, info[i].info2.printername)'
failed: failed to check printer

metze

Autobuild-User: Stefan Metzmacher <metze@samba.org>
Autobuild-Date: Wed Mar 14 23:02:46 CET 2012 on sn-devel-104

12 years agoselftest/flapping: mark ^samba3.rpc.spoolss.*printserver.openprinter_badnamelist...
Stefan Metzmacher [Wed, 14 Mar 2012 16:00:14 +0000 (17:00 +0100)]
selftest/flapping: mark ^samba3.rpc.spoolss.*printserver.openprinter_badnamelist as flakey

I saw this a few times today:

[370/528 in 19m28s] samba3.rpc.spoolss.printserver (s3dc)
Using seed 1331739572
Testing OpenPrinter(\\127.0.0.2)
Testing GetPrinterData(Architecture)
Testing OpenPrinter(__INVALID_PRINTER__) with bad name
Testing OpenPrinterEx(__INVALID_PRINTER__) with bad name
Testing OpenPrinter(\\__INVALID_HOST__) with bad name
Testing OpenPrinterEx(\\__INVALID_HOST__) with bad name
Testing OpenPrinter() with bad name
Testing OpenPrinterEx() with bad name
Testing OpenPrinter(\\\) with bad name
Testing OpenPrinterEx(\\\) with bad name
Testing OpenPrinter(\\\__INVALID_PRINTER__) with bad name
Testing OpenPrinterEx(\\\__INVALID_PRINTER__) with bad name
Testing OpenPrinter(\\127.0.0.2\) with bad name
WARNING!: ../source4/torture/rpc/spoolss.c:5765: op.out.result was WERR_OK,
expected WERR_INVALID_PRINTER_NAME: unexpected result
UNEXPECTED(failure): samba3.rpc.spoolss.printserver
.printserver.openprinter_badnamelist
REASON: _StringException: _StringException:
../source4/torture/rpc/spoolss.c:5821: Expression
`test_OpenPrinter_badname(tctx, b, badname)' failed:

metze

12 years agoselftest/flapping: mark samba4.blackbox.gentest as flakey
Stefan Metzmacher [Wed, 14 Mar 2012 12:10:43 +0000 (13:10 +0100)]
selftest/flapping: mark samba4.blackbox.gentest as flakey

https://git.samba.org/autobuild.flakey/2012-03-14-1307/samba4.stdout

    [1228/1371 in 1h19s] samba4.blackbox.gentest(dc)
    UNEXPECTED(failure): samba4.blackbox.gentest(dc).gentest
    REASON: _StringException: _StringException: seed=1
    Connecting to \localdcest1 as Administrator - instance 0
    Connecting to \localdcest1est1 as Administrator - instance 1
    Connecting to \localdcest1est2 as Administrator - instance 0
    Connecting to \localdcest1est2 as Administrator - instance 1
    0
    OPEN num_open_handles=1 h=0 (gentest\foo4)
    Notify count inconsistent 1 0
    Failed at operation 88 - MKDIR
    gentest failed

I saw this more than 10 times in the last year already.

metze

12 years agos3:selftest: add support for 'make test FAIL_IMMEDIATELY=1'
Stefan Metzmacher [Wed, 14 Mar 2012 11:18:50 +0000 (12:18 +0100)]
s3:selftest: add support for 'make test FAIL_IMMEDIATELY=1'

This is what autobuild uses in order to let the build abort on the first
failure.

metze

12 years agos4:selftest: fix a message-typo in the "samba-tool user" testsuite.
Michael Adam [Wed, 14 Mar 2012 00:00:06 +0000 (01:00 +0100)]
s4:selftest: fix a message-typo in the "samba-tool user" testsuite.

Autobuild-User: Michael Adam <obnox@samba.org>
Autobuild-Date: Wed Mar 14 21:19:11 CET 2012 on sn-devel-104

12 years agos4:selftest: add a new test for "samba-tool user list"
Michael Adam [Fri, 9 Mar 2012 13:32:55 +0000 (14:32 +0100)]
s4:selftest: add a new test for "samba-tool user list"

12 years agotesttools/matchers.py: fix a comment typo
Michael Adam [Fri, 9 Mar 2012 11:00:32 +0000 (12:00 +0100)]
testtools/matchers.py: fix a comment typo

12 years agos3-spoolss: Check return type of update_dsspooler().
Andreas Schneider [Tue, 14 Feb 2012 10:56:37 +0000 (11:56 +0100)]
s3-spoolss: Check return type of update_dsspooler().

Autobuild-User: Andreas Schneider <asn@cryptomilk.org>
Autobuild-Date: Wed Mar 14 19:38:45 CET 2012 on sn-devel-104

12 years agos3-spoolss: Check return codes in update_dsspooler.
Andreas Schneider [Mon, 13 Feb 2012 18:00:41 +0000 (19:00 +0100)]
s3-spoolss: Check return codes in update_dsspooler.

12 years agos3-printing: Check for browseable too.
Andreas Schneider [Fri, 10 Feb 2012 13:00:05 +0000 (14:00 +0100)]
s3-printing: Check for browseable too.

12 years agos3-printing: Make printer a const char *.
Andreas Schneider [Fri, 10 Feb 2012 12:45:24 +0000 (13:45 +0100)]
s3-printing: Make printer a const char *.

12 years agos3-rpc_client: Add debug message for printer dataex errors.
Andreas Schneider [Mon, 13 Feb 2012 17:57:26 +0000 (18:57 +0100)]
s3-rpc_client: Add debug message for printer dataex errors.

12 years agos3-rpc_server: Increase debug level for policy handle.
Andreas Schneider [Mon, 13 Feb 2012 17:58:32 +0000 (18:58 +0100)]
s3-rpc_server: Increase debug level for policy handle.

12 years agosamba3util: Add ccan to dependency list now that str_checksum() uses a ccan function.
Jelmer Vernooij [Wed, 14 Mar 2012 13:30:50 +0000 (14:30 +0100)]
samba3util: Add ccan to dependency list now that str_checksum() uses a ccan function.

Autobuild-User: Jelmer Vernooij <jelmer@samba.org>
Autobuild-Date: Wed Mar 14 17:55:51 CET 2012 on sn-devel-104

12 years agos3:smb2_server: fix a compiler warning
Christian Ambach [Tue, 13 Mar 2012 12:08:50 +0000 (13:08 +0100)]
s3:smb2_server: fix a compiler warning

Autobuild-User: Christian Ambach <ambi@samba.org>
Autobuild-Date: Wed Mar 14 16:06:48 CET 2012 on sn-devel-104

12 years agos3:smbd: also create ncalrpc/np directory before forking rpc daemons
Stefan Metzmacher [Wed, 14 Mar 2012 09:56:28 +0000 (10:56 +0100)]
s3:smbd: also create ncalrpc/np directory before forking rpc daemons

After the fixes to directory_create_or_exist(), this should not be
needed anymore, but lets try to make autobuild reliable first.

metze

Autobuild-User: Stefan Metzmacher <metze@samba.org>
Autobuild-Date: Wed Mar 14 13:44:41 CET 2012 on sn-devel-104

12 years agolib/util: only change umask during mkdir()
Stefan Metzmacher [Wed, 14 Mar 2012 09:52:50 +0000 (10:52 +0100)]
lib/util: only change umask during mkdir()

metze

12 years agolib/util: cope with races between lstat and mkdir in directory_create_or_exist()
Stefan Metzmacher [Wed, 14 Mar 2012 09:50:34 +0000 (10:50 +0100)]
lib/util: cope with races between lstat and mkdir in directory_create_or_exist()

metze

12 years agolib/util: use a helper variable in directory_create_or_exist()
Stefan Metzmacher [Wed, 14 Mar 2012 09:46:14 +0000 (10:46 +0100)]
lib/util: use a helper variable in directory_create_or_exist()

metze

12 years agolib/util: do an early return on error directory_create_or_exist()
Stefan Metzmacher [Wed, 14 Mar 2012 09:43:54 +0000 (10:43 +0100)]
lib/util: do an early return on error directory_create_or_exist()

metze

12 years agolib/util: remove unneeded else branch in directory_create_or_exist()
Stefan Metzmacher [Wed, 14 Mar 2012 09:41:47 +0000 (10:41 +0100)]
lib/util: remove unneeded else branch in directory_create_or_exist()

metze

12 years agolib/util: don't start DEBUG output with 'error '
Stefan Metzmacher [Wed, 14 Mar 2012 09:39:49 +0000 (10:39 +0100)]
lib/util: don't start DEBUG output with 'error '

This confused the subunit code.

metze

12 years agos4-dsdb: Fix the case for attribute name msDS-hasMasterNCs
Amitay Isaacs [Wed, 14 Mar 2012 04:59:27 +0000 (15:59 +1100)]
s4-dsdb: Fix the case for attribute name msDS-hasMasterNCs

Autobuild-User: Amitay Isaacs <amitay@samba.org>
Autobuild-Date: Wed Mar 14 11:59:02 CET 2012 on sn-devel-104

12 years agolib/tdb: remove unnecessary XOPEN and FILE_OFFSET_BITS defines in test/
Rusty Russell [Wed, 14 Mar 2012 05:01:01 +0000 (15:31 +1030)]
lib/tdb: remove unnecessary XOPEN and FILE_OFFSET_BITS defines in test/

These were relics: they don't need to be defined here as long as we are
careful to include the replace headers before any standard headers (we are).

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
Autobuild-User: Rusty Russell <rusty@rustcorp.com.au>
Autobuild-Date: Wed Mar 14 10:12:26 CET 2012 on sn-devel-104

12 years agolib/tdb2: remove unneccessary _FILE_OFFSET_BITS define in test/.
Rusty Russell [Wed, 14 Mar 2012 04:59:55 +0000 (15:29 +1030)]
lib/tdb2: remove unneccessary _FILE_OFFSET_BITS define in test/.

This was a relic from testing; it can interfere with compile.

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
12 years agoautoconf: make autoconf build work on OS X 10.6
Matthieu Patou [Tue, 13 Mar 2012 05:49:32 +0000 (22:49 -0700)]
autoconf: make autoconf build work on OS X 10.6

Autobuild-User: Matthieu Patou <mat@samba.org>
Autobuild-Date: Wed Mar 14 08:31:19 CET 2012 on sn-devel-104

12 years agolib/crypto: Detect CommonCrypto and use it if available
Matthieu Patou [Mon, 12 Mar 2012 23:21:28 +0000 (16:21 -0700)]
lib/crypto: Detect CommonCrypto and use it if available

CommonCrypto/CommonDigest is available on Mac and there is function in
the libc for MD5 calculation. MD5Final is a C define of CC_MD5_Final.
Under some circumstance we have the symbol defined twice in samba
binaries on Snow Leopard at least.

By detecting CommonCrypto/CommonDigest we end up always using the system
version if available.

12 years agolib/tdb2: make summary handle capabilities properly.
Rusty Russell [Wed, 14 Mar 2012 03:21:26 +0000 (13:51 +1030)]
lib/tdb2: make summary handle capabilities properly.

Another PPC issue (endian?) revealed that the summary code did not handle
capabilities correctly: in fact, it went into an endless loop.

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
Autobuild-User: Rusty Russell <rusty@rustcorp.com.au>
Autobuild-Date: Wed Mar 14 06:51:43 CET 2012 on sn-devel-104

12 years agolib/tdb2: fix error string formatting.
Rusty Russell [Wed, 14 Mar 2012 03:07:51 +0000 (13:37 +1030)]
lib/tdb2: fix error string formatting.

This caused a crash on PPC64 when we failed the mmap (found by failtest,
reported by Amitay)

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
12 years agolib/tdb2: Add gcc-style format attribute to tdb_logerr.
Rusty Russell [Wed, 14 Mar 2012 02:38:58 +0000 (13:08 +1030)]
lib/tdb2: Add gcc-style format attribute to tdb_logerr.

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
12 years agoFix bug #8811 - sd_has_inheritable_components segfaults on an SD that se_access_check...
Jeremy Allison [Wed, 14 Mar 2012 02:26:02 +0000 (19:26 -0700)]
Fix bug #8811 - sd_has_inheritable_components segfaults on an SD that se_access_check accepts.

Autobuild-User: Jeremy Allison <jra@samba.org>
Autobuild-Date: Wed Mar 14 05:08:03 CET 2012 on sn-devel-104

12 years agoFix bug #8795 - Samba does not handle the Owner Rights permissions at all
Richard Sharpe [Tue, 13 Mar 2012 23:47:17 +0000 (16:47 -0700)]
Fix bug #8795 - Samba does not handle the Owner Rights permissions at all

Signed-off-by: Jeremy Allison <jra@samba.org>
Autobuild-User: Jeremy Allison <jra@samba.org>
Autobuild-Date: Wed Mar 14 02:26:34 CET 2012 on sn-devel-104

12 years agoSecond part of fix for bug #7933 - samba fails to honor SEC_STD_WRITE_OWNER bit with...
Jeremy Allison [Tue, 13 Mar 2012 19:16:26 +0000 (12:16 -0700)]
Second part of fix for bug #7933 - samba fails to honor SEC_STD_WRITE_OWNER bit with the acl_xattr module.

Error found by Andrew Bartlett <abartlet@samba.org> and Ricky Nance
<ricky.nance@weaubleau.k12.mo.us>.

Don't use a pointer when you really mean a bool flag.

Autobuild-User: Jeremy Allison <jra@samba.org>
Autobuild-Date: Tue Mar 13 21:56:15 CET 2012 on sn-devel-104

12 years agoFix bug #8807 - dcerpc_lsa_lookup_sids_noalloc() crashes when groups has more than...
Christian Ambach [Tue, 13 Mar 2012 17:07:11 +0000 (10:07 -0700)]
Fix bug #8807 - dcerpc_lsa_lookup_sids_noalloc() crashes when groups has more than 1000 groups

Use correct talloc heirarchy.

Signed-off-by: Jeremy Allison <jra@samba.org>
12 years agos4-python: Add missing python source file encoding.
Andreas Schneider [Tue, 13 Mar 2012 16:14:37 +0000 (17:14 +0100)]
s4-python: Add missing python source file encoding.

See http://www.python.org/dev/peps/pep-0263/

Autobuild-User: Andreas Schneider <asn@cryptomilk.org>
Autobuild-Date: Tue Mar 13 19:31:09 CET 2012 on sn-devel-104

12 years agos4-python: Remove env from non-executable webserver script.
Andreas Schneider [Tue, 13 Mar 2012 10:59:21 +0000 (11:59 +0100)]
s4-python: Remove env from non-executable webserver script.

12 years agos4-python: Remove env from non-executable samba_tool scripts.
Andreas Schneider [Tue, 13 Mar 2012 10:58:19 +0000 (11:58 +0100)]
s4-python: Remove env from non-executable samba_tool scripts.

12 years agos4-python: Remove env from non-executable dcerpc scripts.
Andreas Schneider [Tue, 13 Mar 2012 10:57:33 +0000 (11:57 +0100)]
s4-python: Remove env from non-executable dcerpc scripts.

12 years agos4-python: Remove execute flag from non-executable rpc_talloc script.
Andreas Schneider [Tue, 13 Mar 2012 10:56:25 +0000 (11:56 +0100)]
s4-python: Remove execute flag from non-executable rpc_talloc script.

12 years agos4-python: Remove env from non-executable blackbox test scripts.
Andreas Schneider [Tue, 13 Mar 2012 10:55:50 +0000 (11:55 +0100)]
s4-python: Remove env from non-executable blackbox test scripts.

12 years agos4-python: Remove execute flag from ndrdump blackbox script.
Andreas Schneider [Tue, 13 Mar 2012 10:55:05 +0000 (11:55 +0100)]
s4-python: Remove execute flag from ndrdump blackbox script.

12 years agos4-python: Remove env from non-executable test scripts.
Andreas Schneider [Tue, 13 Mar 2012 10:54:11 +0000 (11:54 +0100)]
s4-python: Remove env from non-executable test scripts.

12 years agos4-python: Remove env from non-executable netcmd scripts.
Andreas Schneider [Tue, 13 Mar 2012 10:35:03 +0000 (11:35 +0100)]
s4-python: Remove env from non-executable netcmd scripts.

12 years agos4-python: Remove execute flag from netcmd scripts.
Andreas Schneider [Tue, 13 Mar 2012 10:27:03 +0000 (11:27 +0100)]
s4-python: Remove execute flag from netcmd scripts.

12 years agos4-python: Remove env from non-executable samba scripts.
Andreas Schneider [Tue, 13 Mar 2012 10:24:38 +0000 (11:24 +0100)]
s4-python: Remove env from non-executable samba scripts.