Andrew Bartlett [Fri, 25 May 2012 00:17:34 +0000 (10:17 +1000)]
WHATSNEW: update for alpha21, and mark as release
The plan has changed. This will we hope be the last alpha.
Andrew Bartlett
Andrew Bartlett [Thu, 24 May 2012 22:52:47 +0000 (08:52 +1000)]
wintest: s3fs is now the default in provision
Andrew Bartlett [Thu, 24 May 2012 10:31:37 +0000 (20:31 +1000)]
doc: Explain our build systems for Samba 4.0
Stefan Metzmacher [Mon, 12 Dec 2011 12:50:04 +0000 (13:50 +0100)]
s3:smbd/signing: use smbd_server_connection as talloc parent for its smb1 signing state
metze
Autobuild-User: Stefan Metzmacher <metze@samba.org>
Autobuild-Date: Fri May 25 00:23:53 CEST 2012 on sn-devel-104
Ira Cooper [Thu, 24 May 2012 01:42:26 +0000 (21:42 -0400)]
s3-passdb: Fix negative SID->uid/gid/both cache handling
-1 uid/gid/both signals a non existent uid/gid/both.
Signed-off-by: Stefan Metzmacher <metze@samba.org>
Stefan Metzmacher [Thu, 24 May 2012 11:46:11 +0000 (13:46 +0200)]
s3:smbd: remove global 'smbd_server_conn' !!!
For now we still use a global 'global_smbXsrv_connection'
in order to pass the connection state to exit_server*().
metze
Autobuild-User: Stefan Metzmacher <metze@samba.org>
Autobuild-Date: Thu May 24 20:07:20 CEST 2012 on sn-devel-104
Stefan Metzmacher [Thu, 24 May 2012 10:26:46 +0000 (12:26 +0200)]
s3:smbd: only call file_init_global() in the parent smbd
metze
Stefan Metzmacher [Thu, 24 May 2012 10:20:30 +0000 (12:20 +0200)]
s3:smbd/files: split file_init_global() out of file_init()
metze
Stefan Metzmacher [Thu, 24 May 2012 10:41:20 +0000 (12:41 +0200)]
s3:smbd: remove unused var in smbXsrv_connection_init_tables()
metze
Stefan Metzmacher [Thu, 24 May 2012 09:57:02 +0000 (11:57 +0200)]
s4:smb_server/smb: fix talloc_free() bug
ERROR: talloc_free with references at ../source4/smb_server/smb/receive.c:637
reference at ../source4/ntvfs/posix/pvfs_wait.c:86
metze
Alexander Bokovoy [Thu, 24 May 2012 13:28:31 +0000 (16:28 +0300)]
waf: for MIT krb5 build require kerberos version above 1.9
MIT krb5 implementation provides sufficient support for features
used in Samba 4 starting with 1.9. Require version above when using
system MIT krb5 build.
Autobuild-User: Alexander Bokovoy <ab@samba.org>
Autobuild-Date: Thu May 24 18:15:36 CEST 2012 on sn-devel-104
Alexander Bokovoy [Thu, 24 May 2012 12:38:41 +0000 (15:38 +0300)]
s3-smbldap: Add API for external callback to perform LDAP bind in smbldap
In order to support other bind methods, introduce a generic bind callback.
When smbldap_state.bind_callback is set, it means there is an alternative
way to perform LDAP bind to ldap_simple_bind_s() so call it instead.
The call is wrapped in become_root()/unbecome_root() to allow proper permissions
in smbd to access needed resources in the callback, for example, credential caches.
When run outside smbd, become_root()/unbecome_root() are no-op.
The API expectation is similar to ldap_simple_bind_s().
A caller of smbldap API can pass additional information to the callback by setting
smbldap_state.bind_callback_data pointer.
Both callback and the data pointer elements of smbldap_state structure get
cleaned up if someone sets proper credentials on smbldap_state with
smbldap_set_creds() so if you are interested in using smbldap_state.bind_dn
with the callback, make sure to set callback after credentials are set.
Alexander Bokovoy [Thu, 24 May 2012 12:24:12 +0000 (15:24 +0300)]
s4/scripting: in MIT build do not install samba-tool, it is not usable yet
Andrew Bartlett [Thu, 24 May 2012 03:36:20 +0000 (13:36 +1000)]
s4-selftest: Demonstrate the correct behaviour between specified usernames and kerberos ccache
This shows that a username/password on the command line must always
override any credentials cache in the environment.
Andrew Bartlett
Alexander Bokovoy [Thu, 24 May 2012 12:17:40 +0000 (15:17 +0300)]
auth/credentials: 'workgroup' set via command line will not drop existing ccache
The root cause for existing ccache being invalidated was use of global loadparm with
'workgroup' value set as if from command line. However, we don't really need to take
'workgroup' parameter value's nature into account when invalidating existing ccache.
When -U is used on the command line, one can specify a password to force ccache
invalidation.
The commit also reverts previous fix now that root cause is clear.
Stefan Metzmacher [Wed, 23 May 2012 11:22:47 +0000 (13:22 +0200)]
s3:smbd/msdfs: pass allow_broken_path to resolve_dfspath_wcard()
metze
Autobuild-User: Stefan Metzmacher <metze@samba.org>
Autobuild-Date: Thu May 24 16:14:01 CEST 2012 on sn-devel-104
Stefan Metzmacher [Wed, 23 May 2012 11:09:40 +0000 (13:09 +0200)]
s3:smbd/msdfs: pass 'allow_broken_path' to get_referred_path()
Note the DCERPC code should not be smb2 specific!
I wonder why this is at all smb2 specific...
metze
Stefan Metzmacher [Wed, 23 May 2012 11:06:55 +0000 (13:06 +0200)]
s3:smbd/msdfs: let create_conn_struct() also fake the 'smbd_server_connection'
metze
Stefan Metzmacher [Thu, 24 May 2012 08:43:56 +0000 (10:43 +0200)]
s3:smbd/files: work without sconn->file_bmap and assign fsp->fnum = -1
For faked connection_structs we do not need valid fnum values,
e.g. in the dfs and printing code.
metze
Stefan Metzmacher [Thu, 24 May 2012 09:22:11 +0000 (11:22 +0200)]
s3:smbd/files: fix error path and correctly cleanup
metze
Andrew Bartlett [Thu, 24 May 2012 06:53:34 +0000 (16:53 +1000)]
selftest: Run only the samba3 tests on builds without the AD DC
Autobuild-User: Andrew Bartlett <abartlet@samba.org>
Autobuild-Date: Thu May 24 11:51:40 CEST 2012 on sn-devel-104
Andrew Bartlett [Thu, 24 May 2012 06:30:00 +0000 (16:30 +1000)]
WHATSNEW: Move to document changes for beta1
This is not the beta1 release, but this is the preperation for such a release.
Andrew Bartlett
Andrew Bartlett [Thu, 24 May 2012 04:56:27 +0000 (14:56 +1000)]
s4-provision: Make s3fs the default way to install a new Samba4 DC
With s3fs now well settled into master, we now throw the swtich and make
it the default.
There is still much to do, but we need to be using s3fs by default to
find out exactly what that is.
Andrew Bartlett
Andrew Bartlett [Thu, 24 May 2012 03:37:09 +0000 (13:37 +1000)]
s4-selftest: Always delete the user at the end of test_passwords.sh
If this test is run in the "dc" environment (rather than "dc:local") is would not delete the
test user.
Andrew Bartlett
Amitay Isaacs [Wed, 23 May 2012 01:53:59 +0000 (11:53 +1000)]
dlz_bind9: Make the talloc destructor static and return 0.
Autobuild-User: Amitay Isaacs <amitay@samba.org>
Autobuild-Date: Thu May 24 03:32:50 CEST 2012 on sn-devel-104
Amitay Isaacs [Wed, 23 May 2012 01:52:16 +0000 (11:52 +1000)]
dlz_bind9: Fix the named crash on reloading named
When reloading zones, named first creates new zone instance and then shuts down
the old instance. Since ldb layer, keeps the same LDB open, talloc_free() on samdb
handle, causes talloc "access after use" error.
This patch keeps only single context (dlz_bind9_data) and uses reference counting
to decide when to actually free the context. Since samdb handle is reused, use
talloc_unlink() instead of talloc_free() on samdb handle.
Ira Cooper [Wed, 23 May 2012 13:40:11 +0000 (09:40 -0400)]
s3-configure: Fix configure version information.
version.h moved from include -> include/autoconf.
Autobuild-User: Ira Cooper <ira@samba.org>
Autobuild-Date: Thu May 24 01:34:24 CEST 2012 on sn-devel-104
Stefan Metzmacher [Wed, 23 May 2012 10:46:20 +0000 (12:46 +0200)]
s3:rpc_server/dfs: pass allow_broken_path=true to create_junction()
DCERPC code can't be smb2 specific!
I'm not sure if 'true' is the correct value here, but at least
it matches the old behavior and the tcp and smb1 cases.
metze
Autobuild-User: Stefan Metzmacher <metze@samba.org>
Autobuild-Date: Wed May 23 21:56:05 CEST 2012 on sn-devel-104
Stefan Metzmacher [Wed, 23 May 2012 11:21:57 +0000 (13:21 +0200)]
s3:smbd/proto.h: remove unused resolve_dfspath() prototype
metze
Stefan Metzmacher [Wed, 23 May 2012 15:04:42 +0000 (17:04 +0200)]
s3:smbd/files: remove unused VALID_FNUM()
metze
Stefan Metzmacher [Wed, 23 May 2012 13:24:01 +0000 (15:24 +0200)]
s3:smb2_server: make use of nt_status_np_pipe()
metze
Stefan Metzmacher [Wed, 23 May 2012 13:23:23 +0000 (15:23 +0200)]
s3:smbd: use nt_status_np_pipe for smb1
metze
Stefan Metzmacher [Wed, 23 May 2012 13:21:28 +0000 (15:21 +0200)]
s3:smbd: add nt_status_np_pipe()
This mapps between NT_STATUS_CONNECTION_* to NT_STATUS_PIPE_*
metze
Alexander Bokovoy [Wed, 23 May 2012 14:34:24 +0000 (17:34 +0300)]
blackbox: fix samba4.blackbox.kinit test
This deserves some explanation.
With commit
518232d4578d700f5f5ea1609275a6cd1de3a1e7 samba4.blackbox.kinit test set
was wrapped with password settings reset before and after the tests with an idea to
maintain reliable state for the tests. As result, the resetting of the password
settings was done after the test that tried to use smbclient with a Kerberos ticket
obtained with machine account credentials.
However, the code in credentials_krb5.c, function cli_credentials_get_client_gss_creds(),
never worked correctly when credentials were already in ccache. Instead, gensec_gssapi module
always re-kinited even if existing credentials were available in the ccache. This had an effect
on 'samba4.blackbox.kinit(dc:local).reset password policies(dc:local)' test equal to
never having initialized ccache at all, as if 'rm -f $KRB5CCNAME' was run before the test.
When the issue of not using already initialized credentials from ccache was fixed with
d0aae88f1290e6a7a6d4bfc24aa62795e4892a31 'auth-credentials: Support using pre-fetched ccache
when obtaining kerberos credentials' commit, Samba 4 credentials library started to correctly
re-used already obtained credentials from ccaches. This caused failure of the test
'samba4.blackbox.kinit(dc:local).reset password policies(dc:local)' because machine account
has no permissions to modify password settings.
Thus, the correct fix is to reset ccache state before performing the test.
Autobuild-User: Alexander Bokovoy <ab@samba.org>
Autobuild-Date: Wed May 23 18:46:12 CEST 2012 on sn-devel-104
Andreas Schneider [Mon, 21 May 2012 16:25:28 +0000 (18:25 +0200)]
gse: Use the smb_gss_oid_equal wrapper.
Signed-off-by: Andreas Schneider <asn@samba.org>
Andreas Schneider [Mon, 21 May 2012 16:24:31 +0000 (18:24 +0200)]
krb5samba: Add smb_gss_oid_equal wrapper.
Signed-off-by: Andreas Schneider <asn@samba.org>
Alexander Bokovoy [Tue, 22 May 2012 10:52:48 +0000 (13:52 +0300)]
s3-autoconf: fix typo after migrating DNS resolver code to lib/addns
Alexander Bokovoy [Mon, 21 May 2012 15:38:56 +0000 (18:38 +0300)]
wafsamba: ensure TO_LIST does not fail with empty string
Alexander Bokovoy [Mon, 21 May 2012 14:54:13 +0000 (17:54 +0300)]
libcli/dns: make 'clidns' private library out of DNS code in WAF build
After consolidating DNS resolver code to lib/addns, there is one piece
that still needs to be moved into a common DNS resolver library: DNS_HOSTS_FILE
subsystem. Unfortunately, direct move would require lib/addns to depend on
libcli/util/{ntstatus.h,werror.h} (provided by errors subsystem).
In addition, moving libcli/dns/* code to lib/addns/ would make conflicting
the dns_tkey_record struct. The conflict comes from source4/dns_server/ and is due
to use of IDL to define the struct. lib/addns/ library also provides its own definition
so we either need to keep them in sync (rewrite code in lib/addns/ a bit) or
depend on generated IDL headers.
Thus, making a private library and subsystem clidns is an intermediate step
that allows to buy some time fore refactoring.
Alexander Bokovoy [Mon, 21 May 2012 09:45:12 +0000 (12:45 +0300)]
Introduce system MIT krb5 build with --with-system-mitkrb5 option.
System MIT krb5 build also enabled by specifying --without-ad-dc
When --with-system-mitkrb5 (or --withou-ad-dc) option is passed to top level
configure in WAF build we are trying to detect and use system-wide MIT krb5
libraries. As result, Samba 4 DC functionality will be disabled due to the fact
that it is currently impossible to implement embedded KDC server with MIT krb5.
Thus, --with-system-mitkrb5/--without-ad-dc build will only produce
* Samba 4 client libraries and their Python bindings
* Samba 3 server (smbd, nmbd, winbindd from source3/)
* Samba 3 client libraries
In addition, Samba 4 DC server-specific tests will not be compiled into smbtorture.
This in particular affects spoolss_win, spoolss_notify, and remote_pac rpc tests.
Alexander Bokovoy [Fri, 18 May 2012 12:24:38 +0000 (15:24 +0300)]
s4: samba-tool is usable without export-keytab command, make sure it does not break
When export_keytab is not compiled in (pure client-side Samba 4 build as with
system MIT krb5), export-keytab command of samba-tool will not be available.
Make sure it is not provided but its absence does not break the Python tool.
Alexander Bokovoy [Fri, 18 May 2012 07:05:38 +0000 (10:05 +0300)]
auth-credentials: Support using pre-fetched ccache when obtaining kerberos credentials
When credentials API is used by a client-side program that already as fetched required
tickets into a ccache, we need to skip re-initializing ccache. This is used in FreeIPA
when Samba 4 Python bindings are run after mod_auth_kerb has obtained user tickets
already.
Alexander Bokovoy [Fri, 18 May 2012 07:00:58 +0000 (10:00 +0300)]
s3-passdb: add unixid_from_uid/unixid_from_gid/unixid_from_both API
struct unixid is defined in idmap.idl and therefore to use it one
would need generated headers from librpc/gen_ndr. Not all of these
files are installed and available as public headers. Also, they
pull in some support headers which requires them to be available
via specific locations like <librpc/gen_ndr/*> or <libcli/util>.
Instead of pulling the headers to get structure and enum definitions,
introduce three simple helpers to fill in 'struct unixid' based on
the type of id. This is sufficient for PASSDB users and does not
require exposing generated headers or code.
Alexander Bokovoy [Tue, 15 May 2012 13:28:44 +0000 (16:28 +0300)]
dns: fix comments and make s4/libcli/resolve dns resolver working
After migrating to use libaddns, reply_to_addrs() needed to change the
way answers are iterated through. Originally libroken implementation
gave all answers as separate records with last one being explicitly NULL.
libaddns unmarshalling code gives all non-NULL answers and should be
iterated with explicit reply->num_answers in use.
Alexander Bokovoy [Wed, 9 May 2012 21:00:03 +0000 (00:00 +0300)]
lib/krb5_wrap: implement krb5_cc_get_lifetime for MIT Kerberos
In case krb5_cc_get_lifetime is not available, iterate over
existing tickets in the keytab, find the one marked as TKT_FLAG_INITIAL,
and use its lifetime. This is how it is implemented in Heimdal and
how it was suggested to be done by MIT Kerberos developers.
Simo Sorce [Tue, 8 May 2012 16:38:20 +0000 (12:38 -0400)]
gensec_gssapi: Make it possible to build with MIT krb5
We need to ifdef out some minor things here because there is no available API
to set these options in MIT.
The realm and canonicalize options should be not interesting in the client
case. Same for the send_to_kdc hacks.
Also the OLD DES3 enctype is not at all interesting. I am not aware that
Windows will ever use DES3 and no modern implementation relies on that enctype
anymore as it has been fully deprecated long ago, so we can simply ignore it.
Simo Sorce [Wed, 2 May 2012 16:53:34 +0000 (12:53 -0400)]
auth and s4-rpc_server: Do not use features we currently can't implement with MIT Kerbros build
Simo Sorce [Sat, 5 May 2012 03:11:19 +0000 (23:11 -0400)]
s4-resolve: Remove dependency on libroken
Use available native samba resolver functions
Simo Sorce [Sat, 5 May 2012 03:07:14 +0000 (23:07 -0400)]
addns: Make ads_dns_lookup_srv pulic
Simo Sorce [Fri, 4 May 2012 20:47:27 +0000 (16:47 -0400)]
Move source3/libads/dns.c to lib/addns
Simo Sorce [Sat, 5 May 2012 02:32:47 +0000 (22:32 -0400)]
s3-ads-dns: Avoid unnecessary dependencies
Simo Sorce [Fri, 4 May 2012 21:27:36 +0000 (17:27 -0400)]
s3-ads-dns: Break dependency on lp_parm
In preparation of making this code common to s3 and s4
Simo Sorce [Fri, 4 May 2012 20:49:05 +0000 (16:49 -0400)]
s3-ad-dns: Use more standard uint and booleans defs
In preparation of making this code common to s3 and s4
Simo Sorce [Mon, 7 May 2012 20:14:07 +0000 (16:14 -0400)]
addns: Fix talloc hiereachy
Attach request to local memory context not to potentially long lived connection
Stefan Metzmacher [Thu, 3 May 2012 13:52:41 +0000 (15:52 +0200)]
s3:smbd: use reply_force_doserror(req, ERRSRV, ERRbaduid) on SMBulogoff
We don't support security = share anymore, so we should always have
a valid session.
Found by the raw.context test.
metze
Autobuild-User: Stefan Metzmacher <metze@samba.org>
Autobuild-Date: Wed May 23 12:47:37 CEST 2012 on sn-devel-104
Herb Lewis [Tue, 22 May 2012 23:40:17 +0000 (16:40 -0700)]
Second part of fix for bug 8953 - winbind can hang as nbt_getdc() has no timeout.
If we're running with SEC_ADS and we don't get a cldap response from
the server when querying its name, don't fall back to NetBIOS requests
as they're unlikely to succeed.
Signed-off-by: Jeremy Allison <jra@samba.org>
Autobuild-User: Jeremy Allison <jra@samba.org>
Autobuild-Date: Wed May 23 03:49:36 CEST 2012 on sn-devel-104
Jeremy Allison [Tue, 22 May 2012 23:25:14 +0000 (16:25 -0700)]
Fix bug #8953 - winbind can hang as nbt_getdc() has no timeout.
Add a timeout_in_seconds parameter to nbt_getdc() to make it fail
after that time with NT_STATUS_IO_TIMEOUT.
Michael Adam [Tue, 22 May 2012 09:56:36 +0000 (11:56 +0200)]
s3:smbd: remove unused 'connection_struct->used'
Pair-Programmed-With: Stefan Metzmacher <metze@samba.org>
Autobuild-User: Stefan Metzmacher <metze@samba.org>
Autobuild-Date: Tue May 22 16:42:22 CEST 2012 on sn-devel-104
Jeremy Allison [Mon, 21 May 2012 21:29:11 +0000 (14:29 -0700)]
Added torture test for bug #8910. Test remove_duplicate_addrs2().
Autobuild-User: Jeremy Allison <jra@samba.org>
Autobuild-Date: Tue May 22 01:31:17 CEST 2012 on sn-devel-104
Volker Lendecke [Mon, 21 May 2012 12:41:40 +0000 (14:41 +0200)]
s3: Fix vfs_xattr_tdb.c
"size" is the maximum buffer, only copy what we actually got. For me, this
fixes valgrind errors in the DIR1 test that might potentially make DIR1
non-flaky again.
Signed-off-by: Jeremy Allison <jra@samba.org>
Autobuild-User: Jeremy Allison <jra@samba.org>
Autobuild-Date: Mon May 21 22:10:15 CEST 2012 on sn-devel-104
Stefan Metzmacher [Mon, 21 May 2012 09:44:09 +0000 (11:44 +0200)]
s3:smb2_ioctl: Fix Coverity ID 701771 Uninitialized scalar variable
metze
Autobuild-User: Stefan Metzmacher <metze@samba.org>
Autobuild-Date: Mon May 21 19:27:44 CEST 2012 on sn-devel-104
Matthieu Patou [Fri, 11 May 2012 21:25:49 +0000 (14:25 -0700)]
s4-dsdb: allow modification of some deleted object if the show-deleted control is presented
Autobuild-User: Matthieu Patou <mat@samba.org>
Autobuild-Date: Sat May 19 20:28:01 CEST 2012 on sn-devel-104
Matthieu Patou [Wed, 9 May 2012 15:51:57 +0000 (08:51 -0700)]
s4-dsdb: naming context needs to have the extended-dn syntax too
Matthieu Patou [Tue, 15 May 2012 17:10:16 +0000 (10:10 -0700)]
libcli: make it easier to understand that a control was not correctly encoded
Jeremy Allison [Sat, 19 May 2012 02:29:36 +0000 (19:29 -0700)]
Move the set_write_time() call to after get_existing_share_mode_lock() returns with a share mode.
get_existing_share_mode_lock() isn't really the right
call here, as we're being called after
close_remove_share_mode() inside close_normal_file()
so it's quite normal to not have an existing share
mode here. However, get_share_mode_lock() doesn't
work because that will create a new share mode if
one doesn't exist - so stick with this call (just
ignore any error we get if the share mode doesn't
exist.
The previous commit raised the error message debug
level inside get_share_mode_lock_internal() so
we don't always get a level 1 error message if
get_existing_share_mode_lock() fails.
Autobuild-User: Jeremy Allison <jra@samba.org>
Autobuild-Date: Sat May 19 06:26:33 CEST 2012 on sn-devel-104
Jeremy Allison [Sat, 19 May 2012 02:24:51 +0000 (19:24 -0700)]
Raise the debug level from 1 to 5 in get_share_mode_lock_internal()
This isn't a fatal condition, there is a valid codepath
that can cause this message.
Volker Lendecke [Wed, 2 May 2012 13:54:03 +0000 (15:54 +0200)]
s4:torture: Add raw.session.reauth2 test
Signed-off-by: Stefan Metzmacher <metze@samba.org>
Autobuild-User: Stefan Metzmacher <metze@samba.org>
Autobuild-Date: Fri May 18 18:25:42 CEST 2012 on sn-devel-104
Stefan Metzmacher [Fri, 18 May 2012 11:39:48 +0000 (13:39 +0200)]
s4:torture: rename raw.session.reauth => raw.session.reauth1
metze
Stefan Metzmacher [Thu, 3 May 2012 14:13:08 +0000 (16:13 +0200)]
s3:smbd: allow creating new spnego sessions only with a 0 vuid
Found by the raw.context test.
metze
Stefan Metzmacher [Thu, 3 May 2012 13:53:56 +0000 (15:53 +0200)]
s3:smbd: SMBtdis should return ERRSRV, ERRinvnid instead of NETWORK_NAME_DELETED
Found by the raw.context test.
metze
Stefan Metzmacher [Wed, 16 May 2012 23:06:29 +0000 (01:06 +0200)]
selftest/Samba3: add 'smbd:suicide mode = yes'
metze
Michael Adam [Fri, 18 May 2012 09:37:18 +0000 (11:37 +0200)]
s3:idmap_cache: improve checks for format of value string in idmap_cache_find_sid2unixid()
Autobuild-User: Michael Adam <obnox@samba.org>
Autobuild-Date: Fri May 18 16:34:27 CEST 2012 on sn-devel-104
Michael Adam [Wed, 16 May 2012 21:10:04 +0000 (23:10 +0200)]
s3:idmap_cache: add common exit point to idmap_cache_find_sid2unixid()
Michael Adam [Wed, 16 May 2012 15:49:47 +0000 (17:49 +0200)]
s3:idmap_cache: improve debug messages in idmap_cache_find_sid2unixid()
Volker Lendecke [Fri, 18 May 2012 07:10:02 +0000 (09:10 +0200)]
s3: Revert the serverid changes, they need more work
Autobuild-User: Volker Lendecke <vl@samba.org>
Autobuild-Date: Fri May 18 13:12:14 CEST 2012 on sn-devel-104
Andrew Bartlett [Fri, 18 May 2012 05:43:31 +0000 (15:43 +1000)]
s4-torture: Improve torture test boilerplate, use torture_assert()
This ensures that if this fails, it is reported as a subunit error correctly.
Andrew Bartlett
Autobuild-User: Andrew Bartlett <abartlet@samba.org>
Autobuild-Date: Fri May 18 09:35:13 CEST 2012 on sn-devel-104
Andrew Bartlett [Fri, 18 May 2012 05:06:28 +0000 (15:06 +1000)]
s4-torture: Always use torture_assert() to handle failures
Andrew Bartlett [Fri, 18 May 2012 04:22:27 +0000 (14:22 +1000)]
s4-torture: provide correct torture failures for failure to connect
Andrew Bartlett [Thu, 17 May 2012 22:28:18 +0000 (08:28 +1000)]
build: Also look for iconv in /usr/local by default
This should help the build find iconv on FreeBSD and similar systems,
and make it possible to operate with 8-bit character sets.
Andrew Bartlett
Thomas Nagy [Thu, 17 May 2012 12:49:08 +0000 (14:49 +0200)]
Add include/lib folders from the commandline
By using opt.add_option(..., match=['Checking for library iconv'], dest='iconvdir'),
all configuration tests displaying 'Checking for library iconv' will get
$(iconvdir)/lib and $(iconvdir)/include
Andrew Bartlett [Thu, 17 May 2012 03:10:31 +0000 (13:10 +1000)]
s4-torture: Fix rpc.samr.priv test to use torture_assert() macros
Andrew Bartlett [Thu, 17 May 2012 03:21:57 +0000 (13:21 +1000)]
autobuild: Run ABI check on samba4-libs as well.
Because this build is without the developer options (so as to check that we build without those)
we do not do an ABI check by default.
Andrew Bartlett
Andrew Bartlett [Thu, 17 May 2012 01:12:07 +0000 (11:12 +1000)]
build: Move generated files out of the normal build tree
This avoids some dual-build-system interactions.
Andrew Bartlett
Andrew Bartlett [Thu, 17 May 2012 06:43:48 +0000 (16:43 +1000)]
build: Move generated version.h to a waf-invisible location
Generally, it is better if our generated header files for the autoconf
build do not end up in places that the waf build can see.
Andrew Bartlett
Jelmer Vernooij [Thu, 17 May 2012 21:48:26 +0000 (23:48 +0200)]
pygensec: Fix init of variable if not specified.
Thanks to Wolfgang Sourdeau for reporting this.
Bug: https://bugzilla.samba.org/show_bug.cgi?id=8946
Autobuild-User: Jelmer Vernooij <jelmer@samba.org>
Autobuild-Date: Fri May 18 04:50:17 CEST 2012 on sn-devel-104
Jeremy Allison [Thu, 17 May 2012 21:54:03 +0000 (14:54 -0700)]
Note that "keepalive" only applies to SMB1 connections.
Autobuild-User: Jeremy Allison <jra@samba.org>
Autobuild-Date: Fri May 18 02:59:34 CEST 2012 on sn-devel-104
Jeremy Allison [Thu, 17 May 2012 00:16:17 +0000 (17:16 -0700)]
Fix the waf build with the new "cleans up stale processes" test.
Autobuild-User: Jeremy Allison <jra@samba.org>
Autobuild-Date: Fri May 18 00:20:36 CEST 2012 on sn-devel-104
Volker Lendecke [Mon, 7 May 2012 13:23:29 +0000 (15:23 +0200)]
s3: Check for serverid_exists in close_directory
Signed-off-by: Jeremy Allison <jra@samba.org>
Volker Lendecke [Mon, 7 May 2012 13:23:29 +0000 (15:23 +0200)]
s3: Check for serverid_exists in close_remove_share_mode
Signed-off-by: Jeremy Allison <jra@samba.org>
Volker Lendecke [Mon, 14 May 2012 12:57:34 +0000 (14:57 +0200)]
s3: Be less picky on stale share mode entries
If a process died, the share mode entry might be bogus. Ignore those entries.
Signed-off-by: Jeremy Allison <jra@samba.org>
Volker Lendecke [Wed, 16 May 2012 23:51:26 +0000 (16:51 -0700)]
s3: Check for serverid_exists in find_oplock_types
Signed-off-by: Jeremy Allison <jra@samba.org>
Volker Lendecke [Fri, 11 May 2012 12:39:42 +0000 (14:39 +0200)]
s3: Test whether get_share_mode_lock cleans up stale processes
Signed-off-by: Jeremy Allison <jra@samba.org>
Volker Lendecke [Mon, 7 May 2012 13:23:10 +0000 (15:23 +0200)]
s3: Check for serverid_exists in rename_share_filename
Signed-off-by: Jeremy Allison <jra@samba.org>
Volker Lendecke [Mon, 7 May 2012 14:34:11 +0000 (16:34 +0200)]
s3: Do not check the PIDs is parse_share_modes
We do that when conflicts arise
Signed-off-by: Jeremy Allison <jra@samba.org>
Volker Lendecke [Mon, 7 May 2012 13:23:29 +0000 (15:23 +0200)]
s3: Check for serverid_exists in smb_posix_unlink
Signed-off-by: Jeremy Allison <jra@samba.org>
Volker Lendecke [Mon, 7 May 2012 13:23:10 +0000 (15:23 +0200)]
s3: Check for serverid_exists in open_mode_check
Signed-off-by: Jeremy Allison <jra@samba.org>
Volker Lendecke [Mon, 7 May 2012 10:22:50 +0000 (12:22 +0200)]
s3: Check for serverid_exists in notify_deferred_opens
We will remove the check in parse_share_modes soon
Signed-off-by: Jeremy Allison <jra@samba.org>
Volker Lendecke [Mon, 7 May 2012 10:57:07 +0000 (12:57 +0200)]
s3: Add "share_mode_stale_server"
This is a helper routine that prunes a dead share mode entry on demand. This
prepares for removing the serverids_exist call in parse_share_modes.
Signed-off-by: Jeremy Allison <jra@samba.org>
Stefan Metzmacher [Thu, 17 May 2012 16:32:49 +0000 (18:32 +0200)]
s4:torture: add smb2.session.expire1
metze
Autobuild-User: Stefan Metzmacher <metze@samba.org>
Autobuild-Date: Thu May 17 21:53:11 CEST 2012 on sn-devel-104
Stefan Metzmacher [Mon, 30 Apr 2012 14:40:14 +0000 (16:40 +0200)]
s4:torture: add smb2.session.reconnect2 test
This uses just one transport connection
and demonstrates the implicit logoff of the previous session.
metze