1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-23 17:34:34 +03:00
Commit Graph

78865 Commits

Author SHA1 Message Date
Andrew Bartlett
7724533d80 wintest: Change to a new Win2008R2 VM 2012-02-23 16:14:19 +11:00
Andrew Bartlett
bea05159e4 s3-libsmb: Remove unused spnego functions 2012-02-23 16:14:19 +11:00
Andrew Bartlett
757c9b79ea s3-rpc_server Remove unused function auth_generic_server_start() 2012-02-23 16:14:18 +11:00
Michael Adam
fe24ab4e53 s4:smbcli:smb2: add a random GUID to the transport connection in smb2_transport_init()
This GUID is used in the smb2 negprot when max protocol is bigger than 0x0202.
According to section 2.2.3 of the MS-SMB2 document, the Client GUID filed in the
SMB2 negotiate request must be filled with a (non-zero) GUID if there are other
dialects than 0x0202 in the dialects field.

http://msdn.microsoft.com/en-us/library/cc246543%28v=prot.13%29.aspx

Apart from corresponding to the docs, this change makes some of our durable-open
tests (e.g reopen2 and open-oplock) _not_ hang when running against windows 8
preview (which might be still buggy).

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

Autobuild-User: Michael Adam <obnox@samba.org>
Autobuild-Date: Thu Feb 23 03:23:57 CET 2012 on sn-devel-104
2012-02-23 03:23:57 +01:00
Matthias Dieter Wallnöfer
0c733221cf s3:wscript_build - fix TDB dependency for source3/lib/util.c
https://bugzilla.samba.org/show_bug.cgi?id=8708

Signed-off-by: Andrew Tridgell <tridge@samba.org>

Autobuild-User: Andrew Tridgell <tridge@samba.org>
Autobuild-Date: Thu Feb 23 01:43:04 CET 2012 on sn-devel-104
2012-02-23 01:43:04 +01:00
Matthias Dieter Wallnöfer
ed405df823 examples/testsmbc.c - substitute deprecated function "bzero" with "memset"
Here we do not make any use of libreplace and hence it would be overkill
to include the right headers for Solaris.

This fixes bug: https://bugzilla.samba.org/show_bug.cgi?id=8767

Signed-off-by: Andrew Tridgell <tridge@samba.org>
2012-02-22 23:57:24 +01:00
Matthias Dieter Wallnöfer
b2ff4b06d6 examples/testsmbc.c - quiet implicit cast warnings on OpenSolaris
https://bugzilla.samba.org/show_bug.cgi?id=8767

Signed-off-by: Andrew Tridgell <tridge@samba.org>
2012-02-22 23:57:24 +01:00
Matthias Dieter Wallnöfer
a19185249a examples/testsmbc.c - remove unused function "print_list_fn"
It does not get referenced from anywhere.

Signed-off-by: Andrew Tridgell <tridge@samba.org>
2012-02-22 23:57:24 +01:00
Matthias Dieter Wallnöfer
2522712994 examples/testsmbc.c - remove unused variables
Signed-off-by: Andrew Tridgell <tridge@samba.org>
2012-02-22 23:57:24 +01:00
Volker Lendecke
e673afada1 s3-vfstest: Return an error code if cmd failed
Autobuild-User: Volker Lendecke <vl@samba.org>
Autobuild-Date: Wed Feb 22 23:56:18 CET 2012 on sn-devel-104
2012-02-22 23:56:17 +01:00
Richard Sharpe
1082532500 Honor SeTakeOwnershiPrivilege when client asks for SEC_STD_WRITE_OWNER but has no permission for that, but token has SeTakeOwnershipPrivilege
Autobuild-User: Richard Sharpe <sharpe@samba.org>
Autobuild-Date: Wed Feb 22 19:19:32 CET 2012 on sn-devel-104
2012-02-22 19:19:32 +01:00
Volker Lendecke
ee2e3d56a2 s3-vfstest: Fake smb_requests
Autobuild-User: Volker Lendecke <vl@samba.org>
Autobuild-Date: Wed Feb 22 17:32:28 CET 2012 on sn-devel-104
2012-02-22 17:32:24 +01:00
Volker Lendecke
b0c21afffe s3-vfstest: Initialize some more 2012-02-22 15:48:06 +01:00
Volker Lendecke
db17767d4d s3: Add an error msg when a share mode entry is discarded 2012-02-22 15:48:06 +01:00
Michael Adam
77889f63e6 s4:torture:smb2: add a durable-open.open-oplock test
this is a variant of the open-lease test that does the initial
durable open with a batch oplock instead of a RH lease.

This is e.g. useful do analyse a (mis?) behaviour with current
windows 8 preview versions, compared to w2k8r2

Autobuild-User: Michael Adam <obnox@samba.org>
Autobuild-Date: Tue Feb 21 19:51:21 CET 2012 on sn-devel-104
2012-02-21 19:51:21 +01:00
Michael Adam
1f1ff1cf0a s4:torture:smb2: extend and prettify comment for durable-open.open-lease test 2012-02-21 18:11:07 +01:00
Michael Adam
0d3d8256d8 s4:torture:smb2:durable-open: rename the open test to open-lease 2012-02-21 18:11:06 +01:00
Michael Adam
a36e257160 s4:torture:smb2: move some initialization and call to smb2_create together in durable-open.open test 2012-02-21 18:11:06 +01:00
Michael Adam
65da3b74fa s4:torture:smb2: fix a typo in the durable-open.open test file name 2012-02-21 18:11:06 +01:00
Volker Lendecke
7906d0b50b s3: Fix smbd -i
We end up in a nested event loop without this.

Autobuild-User: Volker Lendecke <vl@samba.org>
Autobuild-Date: Tue Feb 21 17:24:28 CET 2012 on sn-devel-104
2012-02-21 17:24:28 +01:00
Volker Lendecke
c86584adaf s3: Fix typos 2012-02-21 15:43:28 +01:00
Amitay Isaacs
20b79c3ea3 upgradedns: Upgrade DNS provision from BIND9_FLATFILE to AD based DNS
This script can be used to convert provision from BIND9_FLATFILE to
BIND9_DLZ or SAMBA_INTERNAL dns backends. In addition, the script
migrates the DNS data in zone file (if available).

Autobuild-User: Amitay Isaacs <amitay@samba.org>
Autobuild-Date: Tue Feb 21 14:50:10 CET 2012 on sn-devel-104
2012-02-21 14:50:09 +01:00
Amitay Isaacs
6daf04eb6e s4-provision: dns: Add txt DNS record 2012-02-21 23:08:35 +11:00
Amitay Isaacs
597449235e s4-provision: dns: Do not re-calculate ntdsguid, use from names 2012-02-21 23:08:35 +11:00
Amitay Isaacs
9b9fdeefb4 s4-provision: dns: Refactor population of dns data code
Code is split in 4 functions
 - create_dns_legacy
 - fill_dns_data_legacy
 - create_dns_partitions
 - fill_dns_data_partitions

This is useful to upgrade dns provision from file based DNS backend
to AD based DNS backend.
2012-02-21 23:08:35 +11:00
Amitay Isaacs
1a70332f95 dlz_bind9: Fix the log message level 2012-02-21 23:08:35 +11:00
Amitay Isaacs
4bba5fcecd samba-tool: dns: Update the copyright
Autobuild-User: Amitay Isaacs <amitay@samba.org>
Autobuild-Date: Tue Feb 21 09:55:07 CET 2012 on sn-devel-104
2012-02-21 09:55:07 +01:00
Amitay Isaacs
61d4d74145 samba-tool: dns: Fix the output display of DNS records 2012-02-21 18:24:30 +11:00
Amitay Isaacs
b45d6a6d69 samba-tool: dns: Add extra references for string objects as workaround
This is a workaround for bug in pidl generated python bindings, where
C object hold a pointer to python string without increasing reference
count in python. So when the python string goes out of scope, the
C pointer loses the value.
2012-02-21 18:24:30 +11:00
Amitay Isaacs
a8a6b27e06 samba-tool: dns: Add support to add/update/delete MX and SRV records 2012-02-21 18:24:30 +11:00
Amitay Isaacs
28b12827b6 samba-tool: dns: Convert dns data into a dns record for comparison
and compare two dns records directly. Refactor dns name comparision
as dns_name_equal().
2012-02-21 18:24:30 +11:00
Amitay Isaacs
4272a76075 samba-tool: dns: Convert dns data in a string to DNS record 2012-02-21 18:24:30 +11:00
Amitay Isaacs
1fc2fb5de1 samba-tool: dns: Add MXRecord type to add/update mx records 2012-02-21 18:24:30 +11:00
Amitay Isaacs
169db33303 dlz_bind9: Do not remove LDB record in subrdataset and delrdataset
This fixes the problem of large number of deleted records in DNS
partitions due to frequent dynamic dns updates from windows
clients. The typical pattern for dynamic update get converted
into subrdataset() followed by addrdataset().  If there are no
dnsRecord attributes left as a result of sub/delrdataset(),
leave the LDB entry for dns name as is. The subsequent
addrdataset() would add the dnsRecord attribute without
re-creating the same entry.
2012-02-21 18:24:30 +11:00
Amitay Isaacs
89586ed164 lib/tdb2: 2.0.0 ABI
Signed-off-by: Amitay Isaacs <amitay@gmail.com>
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>

Autobuild-User: Rusty Russell <rusty@rustcorp.com.au>
Autobuild-Date: Tue Feb 21 07:43:55 CET 2012 on sn-devel-104
2012-02-21 07:43:55 +01:00
Amitay Isaacs
abc74723ce lib/tdb2: Convert tdb2 to a standalone library
Adds a Makefile, configure script, and tdb2.pc.in.

Signed-off-by: Amitay Isaacs <amitay@gmail.com>
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
2012-02-21 15:29:52 +10:30
Amitay Isaacs
f7b999fac0 lib/tdb2: Fix wscript
Particularly fix the upcoming standalone build.

Signed-off-by: Amitay Isaacs <amitay@gmail.com>
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
2012-02-21 15:29:30 +10:30
Amitay Isaacs
4e9072660a lib/tdb2: Mark public function as such
Signed-off-by: Amitay Isaacs <amitay@gmail.com>
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
2012-02-21 15:29:22 +10:30
Amitay Isaacs
a63d731ae0 lib/tdb2: Do not include config.h in (to-be) public library, use replace.
Like tdb1, it's the caller's responsibility to set up various config
options (eg. by #include "config.h") before including the public
header.

We use HAVE_CCAN for including the (private) CCAN headers, otherwise
dummy macros are used.

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
2012-02-21 15:29:17 +10:30
Rusty Russell
e6901fa350 lib/tdb2: tools should use config.h, and replace where available.
The tdb2 tools should #include "config.h" before tdb2.h (about to
become a requirement) and use libreplace where available.

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
2012-02-21 15:29:12 +10:30
Rusty Russell
fb8cf568ca lib/ccan: define HAVE_CCAN.
This allows public headers to use CCAN if available, and dummy macros
if not (eg. tdb2).

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
2012-02-21 15:29:06 +10:30
Volker Lendecke
0528cb5f3a s3: Fix bug 8567 -- segfault in dom_sid_compare
The underlying problem was that with ldapsam:trusted we require the
a group mapping for the primary group of every user, including root.

Autobuild-User: Volker Lendecke <vl@samba.org>
Autobuild-Date: Mon Feb 20 22:36:23 CET 2012 on sn-devel-104
2012-02-20 22:36:23 +01:00
Michael Adam
9d66ad8c30 s4:torture:smb2: invalidate the handle after the connection has been killed
Not to run into using the old handle with a new tree connect in the error case.

Autobuild-User: Michael Adam <obnox@samba.org>
Autobuild-Date: Mon Feb 20 18:34:48 CET 2012 on sn-devel-104
2012-02-20 18:34:48 +01:00
Michael Adam
71164cef61 s4:torture: improve comment for the smb2.durable-open.reopen1 test 2012-02-20 17:02:24 +01:00
Volker Lendecke
e9b9ba14c0 s3-vfstest: Remove an unused variable
Autobuild-User: Volker Lendecke <vl@samba.org>
Autobuild-Date: Mon Feb 20 17:01:11 CET 2012 on sn-devel-104
2012-02-20 17:01:11 +01:00
Jelmer Vernooij
3992182fec popt: Check for popt manually as well, not just using pkg-config.
Older systems don't provide a pkg-config file for popt.

Autobuild-User: Jelmer Vernooij <jelmer@samba.org>
Autobuild-Date: Mon Feb 20 15:13:32 CET 2012 on sn-devel-104
2012-02-20 15:13:32 +01:00
Andrew Bartlett
f260596206 nsstest: Allocate the correct sized buffer for initgroups
Found by chance due to a re-order of the tests to start s3member
earlier and chasing down a malloc Abort into a valgrind error.  Only
happens when a user has more than 4 groups.

Andrew Bartlett

Autobuild-User: Andrew Bartlett <abartlet@samba.org>
Autobuild-Date: Mon Feb 20 05:23:04 CET 2012 on sn-devel-104
2012-02-20 05:23:04 +01:00
Andrew Bartlett
8c3bbc0979 selftest: test member server tests in security=ads
By testing more things against s3member (which is security=ads against samba4)
we can improve our test coverage.

Andrew Bartlett
2012-02-20 13:50:52 +11:00
Andrew Bartlett
3cd7fdab62 build: Add libbsd as a dep for LIBREPLACE_HOSTCC
Autobuild-User: Andrew Bartlett <abartlet@samba.org>
Autobuild-Date: Mon Feb 20 02:58:20 CET 2012 on sn-devel-104
2012-02-20 02:58:20 +01:00
Andrew Bartlett
cdfc49cc6a s4-smbd: Show time event was expected to run, as well as the current wall clock time 2012-02-20 10:50:48 +11:00