Volker Lendecke
8576256738
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
2012-05-21 22:10:15 +02:00
Stefan Metzmacher
ce11eb5b94
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
2012-05-21 19:27:43 +02:00
Matthieu Patou
1d53e57bbf
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
2012-05-19 20:28:00 +02:00
Matthieu Patou
db866864f7
s4-dsdb: naming context needs to have the extended-dn syntax too
2012-05-19 09:35:29 -07:00
Matthieu Patou
a9b4d7e7de
libcli: make it easier to understand that a control was not correctly encoded
2012-05-19 09:35:28 -07:00
Jeremy Allison
32cbf20e65
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
2012-05-19 06:26:33 +02:00
Jeremy Allison
87a62df8e6
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.
2012-05-18 19:33:37 -07:00
Volker Lendecke
5c219a1c5c
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
2012-05-18 18:25:42 +02:00
Stefan Metzmacher
61e023bbf6
s4:torture: rename raw.session.reauth => raw.session.reauth1
...
metze
2012-05-18 16:36:16 +02:00
Stefan Metzmacher
d58f7cd546
s3:smbd: allow creating new spnego sessions only with a 0 vuid
...
Found by the raw.context test.
metze
2012-05-18 16:36:16 +02:00
Stefan Metzmacher
84ce4484e7
s3:smbd: SMBtdis should return ERRSRV, ERRinvnid instead of NETWORK_NAME_DELETED
...
Found by the raw.context test.
metze
2012-05-18 16:36:16 +02:00
Stefan Metzmacher
d79b46f358
selftest/Samba3: add 'smbd:suicide mode = yes'
...
metze
2012-05-18 16:36:16 +02:00
Michael Adam
7db637483b
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
2012-05-18 16:34:27 +02:00
Michael Adam
0c3137c2e1
s3:idmap_cache: add common exit point to idmap_cache_find_sid2unixid()
2012-05-18 14:44:15 +02:00
Michael Adam
ecb24fd459
s3:idmap_cache: improve debug messages in idmap_cache_find_sid2unixid()
2012-05-18 14:44:15 +02:00
Volker Lendecke
f5ca3f11e4
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
2012-05-18 13:12:14 +02:00
Andrew Bartlett
45082a88c7
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
2012-05-18 09:35:13 +02:00
Andrew Bartlett
8c52d1b8ac
s4-torture: Always use torture_assert() to handle failures
2012-05-18 15:44:43 +10:00
Andrew Bartlett
e919cadcca
s4-torture: provide correct torture failures for failure to connect
2012-05-18 15:44:43 +10:00
Andrew Bartlett
8e5badc256
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
2012-05-18 15:44:43 +10:00
Thomas Nagy
4626f25b53
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
2012-05-18 15:44:43 +10:00
Andrew Bartlett
975e799e86
s4-torture: Fix rpc.samr.priv test to use torture_assert() macros
2012-05-18 15:44:43 +10:00
Andrew Bartlett
ae338bf3f5
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
2012-05-18 15:44:43 +10:00
Andrew Bartlett
611ca8e819
build: Move generated files out of the normal build tree
...
This avoids some dual-build-system interactions.
Andrew Bartlett
2012-05-18 15:44:43 +10:00
Andrew Bartlett
584a51b2ca
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
2012-05-18 15:44:43 +10:00
Jelmer Vernooij
01c502ddd4
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
2012-05-18 04:50:17 +02:00
Jeremy Allison
e0b924b6d5
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
2012-05-18 02:59:34 +02:00
Jeremy Allison
dc3ace63d4
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
2012-05-18 00:20:36 +02:00
Volker Lendecke
182faceab2
s3: Check for serverid_exists in close_directory
...
Signed-off-by: Jeremy Allison <jra@samba.org>
2012-05-17 13:17:22 -07:00
Volker Lendecke
2db3ecbc95
s3: Check for serverid_exists in close_remove_share_mode
...
Signed-off-by: Jeremy Allison <jra@samba.org>
2012-05-17 13:17:22 -07:00
Volker Lendecke
43296090f9
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>
2012-05-17 13:17:22 -07:00
Volker Lendecke
49237b0cef
s3: Check for serverid_exists in find_oplock_types
...
Signed-off-by: Jeremy Allison <jra@samba.org>
2012-05-17 13:17:22 -07:00
Volker Lendecke
e34b7306fc
s3: Test whether get_share_mode_lock cleans up stale processes
...
Signed-off-by: Jeremy Allison <jra@samba.org>
2012-05-17 13:17:22 -07:00
Volker Lendecke
4e1656a782
s3: Check for serverid_exists in rename_share_filename
...
Signed-off-by: Jeremy Allison <jra@samba.org>
2012-05-17 13:17:22 -07:00
Volker Lendecke
6379709b88
s3: Do not check the PIDs is parse_share_modes
...
We do that when conflicts arise
Signed-off-by: Jeremy Allison <jra@samba.org>
2012-05-17 13:17:22 -07:00
Volker Lendecke
5017bbe70d
s3: Check for serverid_exists in smb_posix_unlink
...
Signed-off-by: Jeremy Allison <jra@samba.org>
2012-05-17 13:17:22 -07:00
Volker Lendecke
4962ab2aa8
s3: Check for serverid_exists in open_mode_check
...
Signed-off-by: Jeremy Allison <jra@samba.org>
2012-05-17 13:17:21 -07:00
Volker Lendecke
689a04bc6c
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>
2012-05-17 13:17:21 -07:00
Volker Lendecke
f45966d169
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>
2012-05-17 13:17:21 -07:00
Stefan Metzmacher
918eb3ecc5
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
2012-05-17 21:53:11 +02:00
Stefan Metzmacher
50e1861381
s4:torture: add smb2.session.reconnect2 test
...
This uses just one transport connection
and demonstrates the implicit logoff of the previous session.
metze
2012-05-17 20:04:35 +02:00
Stefan Metzmacher
908b737a29
s4:torture: rename smb2.session.reconnect to smb2.session.reconnect1
...
metze
2012-05-17 20:04:34 +02:00
Stefan Metzmacher
184227d269
s4:torture: remove unused vars in smb2.session.reauth*
...
metze
2012-05-17 20:04:34 +02:00
Stefan Metzmacher
90c309b053
s4:auth/gensec_gssapi: add "gensec_gssapi:requested_life_time" option
...
metze
2012-05-17 20:04:34 +02:00
Stefan Metzmacher
bffa1c5547
s3:gse: implement gensec_gse_expire_time()
...
metze
2012-05-17 20:04:33 +02:00
Stefan Metzmacher
6b38d0274a
s4:auth/gensec: implement gensec_gssapi_expire_time()
...
metze
2012-05-17 20:04:33 +02:00
Stefan Metzmacher
9ac855c8b8
auth/gensec: implement gensec_spnego_expire_time()
...
metze
2012-05-17 20:04:33 +02:00
Stefan Metzmacher
dce6fdf195
auth/gensec: add gensec_expire_time()
...
metze
2012-05-17 20:04:32 +02:00
Stefan Metzmacher
677c4fd2c1
s4:auth/gensec_gssapi: add missing 'break' statements
...
metze
2012-05-17 20:04:32 +02:00
Stefan Metzmacher
943cb79596
s4:auth/gensec_gssapi: remember the expire time
...
metze
2012-05-17 20:04:31 +02:00