1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-12 09:18:10 +03:00
Commit Graph

29598 Commits

Author SHA1 Message Date
Jelmer Vernooij
13bbd3b3b1 pyglue: Make all_interfaces argumen to interface_ips() optional.
Autobuild-User(master): Jelmer Vernooij <jelmer@samba.org>
Autobuild-Date(master): Sun Oct 21 21:26:01 CEST 2012 on sn-devel-104
2012-10-21 21:26:01 +02:00
Jelmer Vernooij
f67c0a28cf pyglue: Mention parameters in interface_ips() docstring. 2012-10-21 10:42:40 -07:00
Gregor Beck
bcfa721a36 s3:build: move sessionid_tdb.o and conn_tdb.o to SMBD_OBJ_BASE
and use SMBD_OBJ_BASE for a couple of targets where sessionid_tdb and conn_tdb
were used.

Signed-off-by: Stefan Metzmacher <metze@samba.org>
Signed-off-by: Michael Adam <obnox@samba.org>
2012-10-19 12:15:00 +02:00
Jelmer Vernooij
e3a48bb5f6 samba-tool user test: Fix expected output.
Autobuild-User(master): Jelmer Vernooij <jelmer@samba.org>
Autobuild-Date(master): Fri Oct 19 11:37:44 CEST 2012 on sn-devel-104
2012-10-19 11:37:44 +02:00
Jelmer Vernooij
364ed82d22 samba.tests.docs: Ignore removed parameters. 2012-10-19 09:21:01 +02:00
Jelmer Vernooij
ed37b8ad14 samba.tests.docs: Assume docs are generated by waf. 2012-10-19 09:16:55 +02:00
Jelmer Vernooij
cfa72bcc5e samba.tests.docs: Write error output from xsltproc to standard out. 2012-10-19 09:10:14 +02:00
Jelmer Vernooij
8412b57f5c samba.tests.docs: Skip tests if xsltproc is not present. 2012-10-19 09:10:14 +02:00
Jelmer Vernooij
2a31f0b509 smb.conf(5): Consistent spelling of parameter names.
This includes spacing and casing.
2012-10-19 09:10:14 +02:00
Jelmer Vernooij
32fad2b910 samba.tests.docs: Support spaces before synonyms. 2012-10-19 09:10:14 +02:00
Jelmer Vernooij
be4dea45da samba.tests.docs: Support synonyms. 2012-10-19 09:10:14 +02:00
Jelmer Vernooij
d0e644e0c8 samba.tests.docs: Distinguish between unknown and undocumened parameters. 2012-10-19 09:10:14 +02:00
Jelmer Vernooij
d2f8fe855d tests: Convert find_missing_doc into a unit test. 2012-10-19 09:10:13 +02:00
Jelmer Vernooij
d09f151638 samba-tool user: Fix typos, improve messages. 2012-10-18 22:34:29 +02:00
Alexander Wuerstlein
64886e312f Warn when setting UID/GID without idmap_ldb:use rfc2307 = Yes
Signed-off-by: Andrew Bartlett <abartlet@samba.org>

Autobuild-User(master): Andrew Bartlett <abartlet@samba.org>
Autobuild-Date(master): Thu Oct 18 09:51:35 CEST 2012 on sn-devel-104
2012-10-18 09:51:35 +02:00
Alexander Wuerstlein
071047e895 Tests for 'samba-tool user create' with RFC2307 attributes
Check if attributes are correctly set and read from SamDB
Test automatic creation of attributes from getpwent (NSS)
Check if overriding NSS attributes works

getpwent will be skipped if the current UID of the user running the
tests has no passwd entry (getpwuid(geteuid())).

If a user with the name of the current UID already exists in the
directory, the getpwent test will fail. If that should happen, the
test would need to be updated to use a nonexistent UID that is
visible to the Python 'pwd' module.

Signed-off-by: Andrew Bartlett <abartlet@samba.org>
2012-10-18 17:10:58 +11:00
Alexander Wuerstlein
bfdaaf2327 Set RFC2307 attributes in samba-tool create
Optionally set RFC2307 (NIS Schema) attributes in samba-tool create.
Mainly needed for UID mapping to be usable.
Not all attributes are set-able, only harmless and non-overlapping
ones (uid, uidNumber, gidNumber, loginShell, gecos). Description and
homeDirectory should already be set, userPassword seems problematic.

Signed-off-by: Andrew Bartlett <abartlet@samba.org>
2012-10-18 17:10:58 +11:00
Andrew Bartlett
9eb022c8c6 provision: No longer use the wheel group in new AD Domains
The issue here is that if we set S-1-5-32-544 (administrators) to a
GID only, then users cannot force a mandetory profile to be owned by
administrators (which is a requirement).

There is no particularly useful reason for us to enforce this matching
a system group.

Andrew Bartlett
2012-10-18 17:10:58 +11:00
Ricky Nance
d09ac9636a Removed phpldapadmin inclusion for Samba 4.
Signed-off-by: Andrew Bartlett <abartlet@samba.org>

Autobuild-User(master): Andrew Bartlett <abartlet@samba.org>
Autobuild-Date(master): Wed Oct 17 12:55:44 CEST 2012 on sn-devel-104
2012-10-17 12:55:44 +02:00
Andrew Bartlett
83d34bb2bb dns_server: Try and use the dns-SERVER account if we were configured with it 2012-10-17 11:09:17 +02:00
Stefan Metzmacher
266b4c5963 Revert "provision: Always create DNS user."
This reverts commit c2d14747d6.

samba_upgradedns handles creates/removed the dns acount.

See
https://lists.samba.org/archive/samba-technical/2012-October/thread.html#87578

metze
2012-10-16 08:38:25 +02:00
Matthieu Patou
2c3a8081ea s4-dns: Fix the comments about ignoring zones in internal server
Acked-By: Kai Blin <kai@samba.org>

Autobuild-User(master): Kai Blin <kai@samba.org>
Autobuild-Date(master): Sat Oct 13 12:37:53 CEST 2012 on sn-devel-104
2012-10-13 12:37:53 +02:00
Jelmer Vernooij
ff82afb1f8 selftest: Move more tests to common list script.
Autobuild-User(master): Jelmer Vernooij <jelmer@samba.org>
Autobuild-Date(master): Fri Oct 12 02:06:42 CEST 2012 on sn-devel-104
2012-10-12 02:06:41 +02:00
Jelmer Vernooij
21b58b5eac samba.join: Fix multiple spaces.
Autobuild-User(master): Jelmer Vernooij <jelmer@samba.org>
Autobuild-Date(master): Thu Oct 11 20:30:43 CEST 2012 on sn-devel-104
2012-10-11 20:30:43 +02:00
Jelmer Vernooij
1aa291c331 selftest: Move some tests to common test script. 2012-10-11 18:50:40 +02:00
Jelmer Vernooij
2adf27a99b samba.provision.sambadns: Use == to compare strings, not 'is'. 2012-10-11 18:50:40 +02:00
Jelmer Vernooij
c2d14747d6 provision: Always create DNS user.
The DNS user is currently only used by the bind9 plugin. This makes it
easier to later on switch between the builtin DNS server and bind
backend.

In addition, ideally the internal DNS server would use that (separate)
user too.

Autobuild-User(master): Jelmer Vernooij <jelmer@samba.org>
Autobuild-Date(master): Thu Oct 11 17:05:40 CEST 2012 on sn-devel-104
2012-10-11 17:05:40 +02:00
Karolin Seeger
f9a4a9bfe1 samba-tool: Some more unifications...
in the usage message.

Karolin
2012-10-09 17:12:07 +02:00
Andrew Bartlett
2f0753b456 samba-tool: skip chown in sysvolreset when it would fail on a GID
This skips the chown of the files if (for example) the domain Admins group
were to own the file and not be able to because the group maps only to a GID.

This essentially papers over the problem, but may be enough to get us past
the Samba 4.0 release.

Andrew Bartlett

Autobuild-User(master): Andrew Bartlett <abartlet@samba.org>
Autobuild-Date(master): Tue Oct  9 15:24:44 CEST 2012 on sn-devel-104
2012-10-09 15:24:44 +02:00
Amitay Isaacs
e65a24b59f s4-rpc: dnsserver: Ignore DNS zones that are not used by RPC dnsserver
..TrustAnchors zone is not interpreted by RPC dnsserver code.

Signed-off-by: Amitay Isaacs <amitay@gmail.com>

Autobuild-User(master): Amitay Isaacs <amitay@samba.org>
Autobuild-Date(master): Tue Oct  9 03:21:07 CEST 2012 on sn-devel-104
2012-10-09 03:21:07 +02:00
Amitay Isaacs
d70f3644a4 s4-dns: dlz_bind9: Ignore zones that are not used by BIND9 DLZ plugin
Signed-off-by: Amitay Isaacs <amitay@gmail.com>
2012-10-09 10:36:32 +11:00
Stefan Metzmacher
8746faf846 s4:scripting/python: add '-V' as alias for '--version'
metze

Autobuild-User(master): Stefan Metzmacher <metze@samba.org>
Autobuild-Date(master): Mon Oct  8 17:52:52 CEST 2012 on sn-devel-104
2012-10-08 17:52:52 +02:00
Stefan Metzmacher
309434a773 s4:samba-tool: allow 'samba-tool --version'
metze
2012-10-08 16:13:06 +02:00
Stefan Metzmacher
2fce71c89a s4:samba-tool: use normal option parsing in SuperCommand
We use the epilog to print the subcommands.

metze
2012-10-08 16:13:06 +02:00
Stefan Metzmacher
8d4943dcf9 s4:samba-tool: add optional epilog to _create_parser()
metze
2012-10-08 16:13:06 +02:00
Karolin Seeger
acea51cc37 samba-tool: Unify usage messages.
Karolin

Autobuild-User(master): Karolin Seeger <kseeger@samba.org>
Autobuild-Date(master): Mon Oct  8 14:26:52 CEST 2012 on sn-devel-104
2012-10-08 14:26:51 +02:00
Karolin Seeger
a2f3ec0577 samba-tool: Clarify usage of --help.
Karolin
2012-10-08 11:47:22 +02:00
Karolin Seeger
171bf9827b samba-tool: Fix typo in usage.
Karolin
2012-10-08 11:14:42 +02:00
Matthieu Patou
4b83c43ac2 s4-dns: fix a warning
Autobuild-User(master): Matthieu Patou <mat@samba.org>
Autobuild-Date(master): Mon Oct  8 10:45:41 CEST 2012 on sn-devel-104
2012-10-08 10:45:40 +02:00
Matthieu Patou
ffab1d7cb2 s4-dns: Ignore zones that shouldn't be returned currently
RootDNSServers should never be returned (Windows DNS server don't)
..TrustAnchors should never be returned as is, (Windows returns
TrustAnchors) and for the moment we don't support DNSSEC so we'd better
not return this zone.
2012-10-07 22:11:48 -07:00
Matthieu Patou
95ea6d765b s4-join: factorize code, add info 2012-10-07 22:11:47 -07:00
Matthieu Patou
d57e0d8a6d s4-join: add some documentation 2012-10-07 22:11:47 -07:00
Matthieu Patou
193b15efea s4-repl: make dreplsrv_partition_find_for_nc return BAD_NC only 2012-10-07 21:51:03 -07:00
Matthieu Patou
dc002a394b drsuapi: Validate the input parameters for the drsuapi_UpdateRefs function 2012-10-07 21:51:03 -07:00
Matthieu Patou
8be6a106ab drsuapi: check more carefully the validity of the NC
Check that both the GUID and DN are the GUID/DN of a NC if not return
WERR_DS_DRA_BAD_NC
2012-10-07 21:51:03 -07:00
Matthieu Patou
97f0b8d9c9 drs-replica-info: level_not_supported is wrong when we do support (partialy the level) 2012-10-07 21:51:02 -07:00
Matthieu Patou
85259635d6 ldap-server: sscanf result was never used to mistyped var 2012-10-07 21:51:02 -07:00
Matthieu Patou
97d0ad0c5e ldap-server: remove warning for the ret not being used 2012-10-07 21:51:02 -07:00
Matthieu Patou
5374334d68 s4-drs: fix the logic to allow REPL_SECRET if the account has GET_ALL_CHANGES 2012-10-07 21:51:02 -07:00
Matthieu Patou
8dbba524bf s4-drs: EXOP_REPL_SECRETS can be called by RW DC as well 2012-10-07 21:51:02 -07:00
Matthieu Patou
2eae16102a drs-getncchanges: do not set the highestUsn to 0
Paragraph 4.1.10.5 says that
         if err = 0 then
         msgOut.pNC := msgIn.pNC
         msgOut.usnvecFrom := msgIn.usnvecFrom
so no need to set the highestUsn to 0
2012-10-07 21:51:01 -07:00
Matthieu Patou
303ef62b29 kcc: return invalid parameter if the taskId is not 0 2012-10-07 21:51:01 -07:00
Matthieu Patou
f98abc7baa drs-crackname: if there is no sid do not return the domain 2012-10-07 21:51:01 -07:00
Matthieu Patou
e332f98909 devel-crackname: Print if count > 0 2012-10-07 21:51:01 -07:00
Matthieu Patou
9269870a70 Implement the LIST_INFO_FOR_SERVER input format 2012-10-07 21:51:01 -07:00
Matthieu Patou
3dd2b804b9 getdcinfo: Check that the server object has a serverreference objects pointing to a DC object
The problem was found by the DRSR testsuite where server objects were
created in the Site container without serverrefrence attribute
triggering error in the testsuite.
2012-10-07 21:51:01 -07:00
Björn Baumbach
9a6f648122 s4: samba_backup: Fix typos.
Signed-off-by: Stefan Metzmacher <metze@samba.org>
2012-10-03 16:26:53 +02:00
Stefan Metzmacher
9837fd8cc6 s4:tortore/rpc/lsa: make more use of torture_assert*
Currently samba3.rpc.lsa.privileges.lsa.Privileges(s3dc)
seems to be flakey.

We may be able to find the bug with this,
or at least mark it as flapping.

metze
2012-10-03 16:26:52 +02:00
Jelmer Vernooij
df23b17fa9 provision: Use logger rather than print.
Autobuild-User(master): Jelmer Vernooij <jelmer@samba.org>
Autobuild-Date(master): Wed Oct  3 14:24:09 CEST 2012 on sn-devel-104
2012-10-03 14:24:09 +02:00
Matthieu Patou
c1677e3b2f s4-provision: do not skip setting the acls on sysvol
Autobuild-User(master): Matthieu Patou <mat@samba.org>
Autobuild-Date(master): Wed Oct  3 10:26:06 CEST 2012 on sn-devel-104
2012-10-03 10:26:06 +02:00
Matthieu Patou
f4b9007faf s4-dns: fix a non handled memory out of memory
Signed-off-by: Kai Blin <kai@samba.org>

Autobuild-User(master): Kai Blin <kai@samba.org>
Autobuild-Date(master): Tue Oct  2 09:43:52 CEST 2012 on sn-devel-104
2012-10-02 09:43:52 +02:00
Jeremy Allison
9f83968e1c Add samba3.samba3badnameblob test to check regressions in bug #9215.
Bad name in SMB1 openX can cause a crash in iconv inside glibc.

Autobuild-User(master): Jeremy Allison <jra@samba.org>
Autobuild-Date(master): Mon Oct  1 23:29:25 CEST 2012 on sn-devel-104
2012-10-01 23:29:25 +02:00
Kai Blin
81805222ec s4 dns: Fix return code for deleted records
This fixes bug #9225. We already had a test for this scenario, but the test wasn't
correct. This patch fixes the test, and also fixes the bug.

Signed-off-by: Kai Blin <kai@samba.org>

Autobuild-User(master): Kai Blin <kai@samba.org>
Autobuild-Date(master): Sun Sep 30 13:09:14 CEST 2012 on sn-devel-104
2012-09-30 13:09:14 +02:00
Kai Blin
ecb4a8a824 s4 dns: Get rid of deprecated allocation result check 2012-09-30 10:44:03 +02:00
Jelmer Vernooij
b7822a55c4 samba4-tests: Move 'samba.tests.source' up.
We would like to run this as early as possible so we get a quick
failure when there is trailing whitespace.

Autobuild-User(master): Jelmer Vernooij <jelmer@samba.org>
Autobuild-Date(master): Thu Sep 27 20:26:27 CEST 2012 on sn-devel-104
2012-09-27 20:26:27 +02:00
Jelmer Vernooij
0883e174bf sanba.upgradehelpers: Use standard functionality for getting temp dir. 2012-09-27 18:45:12 +02:00
Jelmer Vernooij
2a797f29aa s4-python: Various formatting fixes.
* Trailing whitespace
* use of "==" where "is" should be used
* double spaces
2012-09-27 18:45:12 +02:00
Jelmer Vernooij
6986f7bdda samba.tests.source: Check for trailing whitespace in Python files. 2012-09-27 18:45:12 +02:00
Ricky Nance
ee0012de1a samba-tool domain provision: DNS forwarder default
Provision would break with an exception if there was no value given for the DNS forwarder, this simply sets a default to "none".

Signed-off-by: Jelmer Vernooij <jelmer@samba.org>

Autobuild-User(master): Jelmer Vernooij <jelmer@samba.org>
Autobuild-Date(master): Thu Sep 27 04:35:33 CEST 2012 on sn-devel-104
2012-09-27 04:35:33 +02:00
Jelmer Vernooij
90b1a94cb4 netlogon: Per MS-NRPC, don't send unknown workstation flags back to the
client.
2012-09-26 22:12:07 +02:00
Volker Lendecke
5022b3d8c1 s4: Fix a -Wunused-value warning
Autobuild-User(master): Volker Lendecke <vl@samba.org>
Autobuild-Date(master): Wed Sep 26 21:52:00 CEST 2012 on sn-devel-104
2012-09-26 21:52:00 +02:00
Jelmer Vernooij
c5e83ee9a5 samba-tool: Hide 'samba-tool domain samba3upgrade'.
This subcommand is provided for backwards compatibility only; new use of
it should be discouraged. Its new name is 'samba-tool domain
classicupgrade'.

Bug: https://bugzilla.samba.org/show_bug.cgi?id=9047
2012-09-26 07:58:31 +02:00
Stefan Metzmacher
7a14f09f9c s4:torture/smb2: remove samba specific stuff from smb2.oplock
metze
2012-09-26 06:16:06 +02:00
Andrew Bartlett
3c4d0ce469 samba_dnsupdate: Safely update/create names for Samba3 targets as well
This avoids unlocked writes to the dns_hosts_file, and may fix some of our
issues on the build farm where large numbers of tests fail due to failed name resolution.

Andrew Bartlett

Autobuild-User(master): Andrew Bartlett <abartlet@samba.org>
Autobuild-Date(master): Wed Sep 26 05:48:25 CEST 2012 on sn-devel-104
2012-09-26 05:48:25 +02:00
Andrew Bartlett
6d7c651f2f samba_dnsupdate: Move to using tmpfile/rename to keep the dns_hosts_file consistent
This may be the cause of some of the large failure modes on the build farm.

Andrew Bartlett
2012-09-26 04:08:26 +02:00
Jelmer Vernooij
fa332b71dc s4-python: Override SIGINT handler in scripts only.
Override the SIGINT handler in a few select cases only, rather than
doing so in one of the samba Python modules. I've done this where it
matters most; we can add this code to other scripts too if necessary.

This means that importing the 'samba' module from a third party
application does not have side-effects on the state of the signal
handlers.

Bug: https://bugzilla.samba.org/show_bug.cgi?id=9068
2012-09-25 20:59:09 +02:00
Volker Lendecke
f01013b1a4 s4-torture: Fix some nonemtpy blank lines 2012-09-25 07:22:43 -07:00
Stefan Metzmacher
f240a4c2e7 s4:rpc_server/drsuapi: use talloc_zero instead of talloc() in dcesrv_drsuapi_DsBind()
metze

Autobuild-User(master): Stefan Metzmacher <metze@samba.org>
Autobuild-Date(master): Tue Sep 25 03:06:13 CEST 2012 on sn-devel-104
2012-09-25 03:06:13 +02:00
Stefan Metzmacher
bbac4fb42f s4:rpc_server/drsuapi: fix a crash in dcesrv_drsuapi_DsGetDomainControllerInfo_1()
metze
2012-09-25 01:14:15 +02:00
Jelmer Vernooij
f44ad36718 samba-tool domain provision: DNS forwarder is not a boolean.
Autobuild-User(master): Jelmer Vernooij <jelmer@samba.org>
Autobuild-Date(master): Tue Sep 25 00:48:43 CEST 2012 on sn-devel-104
2012-09-25 00:48:42 +02:00
Jelmer Vernooij
78cb9fd91b Remove compatibility code for setproctitle() now moved to libreplace. 2012-09-24 23:06:07 +02:00
Jelmer Vernooij
fd8d4ec347 replace: Support setproctitle().
This uses the setproctitle() from libc, libsetproctitle or libbsd.
If none is available it provides a dummy implementation.
2012-09-24 23:06:07 +02:00
Jelmer Vernooij
6641d76562 samba-tool domain-provision: Avoid python2.5-isms. 2012-09-24 23:06:07 +02:00
Jelmer Vernooij
61ce3e871a samba-tool domain-provision: Fix docstring. 2012-09-24 23:06:07 +02:00
Andrew Bartlett
0991aed60c torture: More torture_assert() calls in rpc.lsa
Autobuild-User(master): Andrew Bartlett <abartlet@samba.org>
Autobuild-Date(master): Mon Sep 24 05:27:46 CEST 2012 on sn-devel-104
2012-09-24 05:27:46 +02:00
Andrew Bartlett
a807a63f3d torture: use torture_assert rather than return false in rpc.lsa
This will help ensure we always generate correct subunit failures.

Andrew Bartlett
2012-09-24 03:51:07 +02:00
Andrew Bartlett
f0908c1dc6 torture: tidy up rpc.lsa OpenPolicy2 test to more clearly use torture_fail() 2012-09-24 03:51:07 +02:00
Andrew Bartlett
00b1267468 build: Add missing dep on tdb_compat 2012-09-24 03:51:07 +02:00
Matthias Dieter Wallnöfer
5f973631b6 s4:dns_server - introduce the wildcard binding feature
We need the wildcard binding feature otherwise we might get bound to a
private interface in case of multiple interfaces and no "interfaces"
parameter in smb.conf.

Code taken from source4/ldap_server/ldap_server.c

Signed-off-by: Kai Blin <kai@samba.org>

Autobuild-User(master): Kai Blin <kai@samba.org>
Autobuild-Date(master): Sun Sep 23 23:44:03 CEST 2012 on sn-devel-104
2012-09-23 23:44:03 +02:00
Andrew Bartlett
502135df9f lib/replace: Try to fix build on HP-UX for os2_delete test
The issue is that this file is both used in an autoconf test, and
later in a smbtorture test.  Because os2_delete.c does not include
replace.h, bool may not be defined.

So, instead we shift the need for bool to a different header.

(The readdir tests in repdir.m4 are not yet in the waf configure).

Andrew Bartlett
2012-09-23 14:31:01 +10:00
Michael Adam
a4c54f6658 s4:torture:smb2: add a durable-open.read-only test
Pair-Programmed-With: Stefan Metzmacher <metze@samba.org>

Autobuild-User(master): Stefan Metzmacher <metze@samba.org>
Autobuild-Date(master): Sun Sep 23 05:47:30 CEST 2012 on sn-devel-104
2012-09-23 05:47:30 +02:00
Michael Adam
6f6b1c6ac1 s4:torture:smb2:compound: remove two unused macros 2012-09-22 10:19:01 +02:00
Michael Adam
8df0b023c5 s4:torture:smb2: don't skip the compound.interim2 test for non win7/win2k8 2012-09-22 10:19:01 +02:00
Michael Adam
917e714831 s4:torture:smb2: don't skip the compound.interim1 test for non win7/win2k8 2012-09-22 10:19:01 +02:00
Stefan Metzmacher
25437df8a6 s4:torture:smb2: extend the compound.invalid1 test
Test that when turning the related flag back off for the
last compound request, the return code changes from
invalid parameter to file closed.

Pair-Programmed-With: Michael Adam <obnox@samba.org>
2012-09-22 10:18:58 +02:00
Michael Adam
bd8d50b451 s4:torture:smb2: fix the compound.invalid3 test to work against windows 2012-09-22 10:18:57 +02:00
Michael Adam
8e525a29a7 s4:torture:smb2: fix compound.related3 test to work against windows 2012-09-22 10:18:56 +02:00
Stefan Metzmacher
cb157e19cb s4:dns.py: reproducer for (bug #9184)
metze

Autobuild-User(master): Stefan Metzmacher <metze@samba.org>
Autobuild-Date(master): Sat Sep 22 06:08:05 CEST 2012 on sn-devel-104
2012-09-22 06:08:04 +02:00
Gregor Beck
160ca49953 libtorture: factor out simple ui backend
Signed-off-by: Stefan Metzmacher <metze@samba.org>
2012-09-21 16:26:39 +02:00
Christof Schmitt
d9747b15c4 s4-torture: Complete test for winbindd PAC parsing
Decode the PAC through the wbcAuthenticateUserEx call, also decode it
locally and compare the result.

Signed-off-by: Andrew Bartlett <abartlet@samba.org>
2012-09-20 19:49:32 -07:00
Daniele Dario
48e6da64fd Correct command help message
Autobuild-User(master): Volker Lendecke <vl@samba.org>
Autobuild-Date(master): Thu Sep 20 16:55:17 CEST 2012 on sn-devel-104
2012-09-20 16:55:17 +02:00
Michael Adam
1c2f1a1862 s4:torture:smb2: add a new test durable-v2-open.app-instance
Pair-Programmed-With: Stefan Metzmacher <metze@samba.org>
2012-09-19 21:21:37 +02:00
Michael Adam
a397c85164 s4:libci: add a SMB2_CREATE_APP_INSTANCE_ID blob to the request if the in.app_instance_id is present 2012-09-19 21:21:37 +02:00
Michael Adam
562719f75f s4:libcli: add a app_instance_id member to the smb2_create input struct 2012-09-19 21:21:37 +02:00
Stefan Metzmacher
e6c600aa2c s4:torture/smb2: improve the smb2.create.blob test
metze
2012-09-19 21:21:36 +02:00
Jelmer Vernooij
c0d4f2462f s4-python: Formatting fixes, break lines.
Autobuild-User(master): Jelmer Vernooij <jelmer@samba.org>
Autobuild-Date(master): Sun Sep 16 15:58:04 CEST 2012 on sn-devel-104
2012-09-16 15:58:04 +02:00
Jelmer Vernooij
0ff2ea56d9 samba.netcmd: Formatting fixes, break lines. 2012-09-16 14:20:11 +02:00
Jelmer Vernooij
ebcb6a7447 samba.provision.common: Fix formatting. 2012-09-16 14:20:11 +02:00
Jelmer Vernooij
cd7dcf4571 samba.provision.sambadns: Fix formatting. 2012-09-16 14:20:11 +02:00
Jelmer Vernooij
858135920d samba.provision.backend: Fix formatting. 2012-09-16 14:20:11 +02:00
Jelmer Vernooij
fdb873a203 samba.provision: Fix formatting, NameErrors. 2012-09-16 14:20:11 +02:00
Michael Adam
58e62ae776 s4:torture: fix error reporting in the raw.oplock-brl3 test
Error was assigned to a variable that was not returned.

Autobuild-User(master): Michael Adam <obnox@samba.org>
Autobuild-Date(master): Fri Sep 14 14:05:20 CEST 2012 on sn-devel-104
2012-09-14 14:05:20 +02:00
Kai Blin
fee75752fb s4 provision: Ask for the dns forwarder IP address during interactive provision
Signed-off-by: Stefan Metzmacher <metze@samba.org>
2012-09-12 16:51:29 +02:00
Andrew Bartlett
1627fcda3e dns_server: Remove parameter 'dns recursive queries' and base this on 'dns forwarder'
This simplifies a very common configuration.

Andrew Bartlett

Signed-off-by: Stefan Metzmacher <metze@samba.org>
2012-09-12 16:51:29 +02:00
Stefan Metzmacher
9583366d1e s4:dns_server: remove wrong and unused dsdb_check_access_on_dn() check
metze
2012-09-12 16:51:29 +02:00
Andrew Bartlett
61a07df824 dns_server: Attempt to SET and UNSET the sessionInfo to match the incoming user
This avoids re-opening the DB as the correct user, but applies all the right ACLs
and resulting owner.

This needs a bit more testing...

Andrew Bartlett

Signed-off-by: Stefan Metzmacher <metze@samba.org>
Signed-off-by: Kai Blin <kai@samba.org>
2012-09-12 16:51:29 +02:00
Stefan Metzmacher
c4aef88b32 s4:samba_upgradedns: delete dns-HOSTNAME account if using the internal dns server
metze
2012-09-12 16:51:29 +02:00
Stefan Metzmacher
0c55510a0d s4:upgradehelpers.py: don't require a dns-$HOSTNAME account
metze
2012-09-12 16:51:29 +02:00
Stefan Metzmacher
50084e5732 s4:provision: don't add the dns-HOSTNAME account if we use the internal dns server
metze
2012-09-12 16:51:29 +02:00
Kai Blin
56058ea597 s4 dns: use the internal DNS server per default 2012-09-12 16:51:29 +02:00
Kai Blin
2af8129085 s4 dns: Add libaddns-based simple tests 2012-09-12 16:51:29 +02:00
Kai Blin
76801b502d s4 dns: Run python tests in fl2003dc env 2012-09-12 16:51:29 +02:00
Kai Blin
cf3aab61fa s4 dns: Improve logging of delegated dns updates 2012-09-12 16:51:29 +02:00
Stefan Metzmacher
aa1e84ae60 s4:selftest: run thet dlz_bind9. tests in the chgdcpass env
metze
2012-09-12 16:51:29 +02:00
Stefan Metzmacher
2c4255084a s4:scripting: rename upgradeprovision -> samba_upgradeprovision
metze
2012-09-12 07:07:27 +02:00
Stefan Metzmacher
a0baaf2064 s4:setup: remove standalone 'provision'
metze
2012-09-12 07:07:27 +02:00
Andrew Bartlett
ac804f0d7f smbd-posix_acls: Use a IDL union to store the ACL entry
This is a clearer, long-term-stable structure we can hash without
risking it changing.

Andrew Bartlett
2012-09-12 05:26:16 +02:00
Michael Adam
df5f962c60 s4:torture:smb2: fix error reporting in the oplock-brl3 test
(Error was set to an unused variable)

Autobuild-User(master): Michael Adam <obnox@samba.org>
Autobuild-Date(master): Tue Sep 11 22:09:18 CEST 2012 on sn-devel-104
2012-09-11 22:09:18 +02:00
Michael Adam
439c907f6b s4:torture:smb2: fix error reporting in the oplock-brl2 test
(Error was set to an unused variable)
2012-09-11 20:10:08 +02:00
Michael Adam
e9df135ca5 s4:torture:smb2: fix error reporting in the oplock-brl1 test
(Error was set to an unused variable)
2012-09-11 20:10:08 +02:00
Michael Adam
c960e55fbf s4:torture:smb2: remove an unused variable from the oplock-exclusive2 test 2012-09-11 20:10:07 +02:00
Michael Adam
7c6f1fb294 s4:torture:smb2: remove an unused variable from the oplock-exclusive1 test 2012-09-11 20:10:07 +02:00
Andrew Bartlett
6fbce905db provision: Only give the "no posix ACLs" exception if we could not set the SD
This will allow us to run make test on all platforms again, as we emululate the posix ACLs using the fake_acls
module.  By then testing smbd.have_posix_acls() we gain a more specific error message.

Andrew Bartlett
2012-09-11 16:25:36 +02:00
Andrew Bartlett
1a3d6de20a torture: Add discard_const_p() to work around dlz_create prototype 2012-09-11 16:25:35 +02:00
Michael Adam
a4358f6ffd s4:torture:smb2: add a durable-open.delete_on_close2 test
This test verifies that the delete on close flag is kept during
a disconnect and is still active on the reconnected handle.
When the reconnected handle is closed, the file is deleted.
2012-09-11 14:29:54 +02:00
Michael Adam
3d7196d0a4 s4:torture:smb2: fix the durable-open.delete_on_close1 test
This test used to flap because there was an invalid check of
the file-id. This might or might not be the same after a
new open. Hence the flapping.

The new version simply opens a file as durable handle with
delete_on_close set, writes a byte and closes the file.
Then on a new connect, the file is opened again, and it is checked
that the file has been created (again) and that it is empty.
2012-09-11 14:29:54 +02:00
Stefan Metzmacher
fdd2a7e65f s4:setup/tests: make use of samba-tool domain provision
metze
2012-09-11 08:35:56 +02:00
Stefan Metzmacher
318770a67f s4:scripting: install samba_kcc to SBINDIR
It's use as "%s/samba_kcc", dyn_SCRIPTSBINDIR" similar
to samba_spnupdate and samba_dnsupdate.

metze
2012-09-11 08:35:56 +02:00
Stefan Metzmacher
15c793fa34 s4:scripting: use the 'sbin_files' variable
metze
2012-09-11 08:35:56 +02:00
Stefan Metzmacher
a4fc79f8fc s4:samba-tool: add 'samba-tool domain provision'
This is mostly a copy of the standalone source4/setup/provision.

metze
2012-09-11 08:35:49 +02:00
Stefan Metzmacher
ca3f285390 s4:python/netcmd: give the Commad implementations access to the raw arguments
metze
2012-09-11 08:23:56 +02:00
Stefan Metzmacher
7f98cf1698 s4:samba-tool: remove unused code in testparm.py
metze
2012-09-11 08:23:56 +02:00
Stefan Metzmacher
475755ef9f s4:samba-tool: allow sys.exit(ret) to control the exit code
Some subcommands may use sys.exit(0), which shouldn't be reported
as an error to the caller.

metze
2012-09-11 08:23:55 +02:00
Volker Lendecke
814dc3c62b smbtorture: Test that delete requests are not special
Signed-off-by: Jeremy Allison <jra@samba.org>
2012-09-10 14:58:51 -07:00
Michele Baldessari
008bb29023 Set trans to a value that is not LDB_SUCCESS (all LDB_ constants are
positive) so that any "goto failed:" call does not end up calling
ldb_transaction_cancel() if trans is initialized to 0 (LDB_SUCCESS)
by chance.

Signed-off-by: Jeremy Allison <jra@samba.org>
2012-09-10 14:58:28 -07:00
Stefan Metzmacher
06809f4ba9 s4:provision: ask the admin about the desired DNS implementation
In interactive mode we should let the admin confirm which
implementation he wants.

metze

Autobuild-User(master): Stefan Metzmacher <metze@samba.org>
Autobuild-Date(master): Mon Sep 10 11:45:08 CEST 2012 on sn-devel-104
2012-09-10 11:45:08 +02:00
Matthieu Patou
e3b6b465ee Force cast to long as on some platform tv_usec is 32bit long
Autobuild-User(master): Matthieu Patou <mat@samba.org>
Autobuild-Date(master): Mon Sep 10 07:33:50 CEST 2012 on sn-devel-104
2012-09-10 07:33:50 +02:00
Michael Adam
4931a9010f s4:torture:smb2: simplify durable-open.file-position test to only use one I/O and one handle
Signed-off-by: Stefan Metzmacher <metze@samba.org>
2012-09-07 23:39:42 +02:00
Michael Adam
97be058c9e s4:torture:smb2: change the durable-open.file-position test to use one connection only
And do a tcp disconnect followed by a session reconnect instead
of immediately using the already opened second connection.

Signed-off-by: Stefan Metzmacher <metze@samba.org>
2012-09-07 23:39:39 +02:00
Michael Adam
32956300a7 s4:torture:smb2: fix durable-v2-open.reopen2 to pass against windows
The DH2Q response blob is not sent upon successful durable handle v2 reconnect.

Signed-off-by: Stefan Metzmacher <metze@samba.org>
2012-09-07 23:39:37 +02:00