Andrew Tridgell
c42219d735
r22969: fix some more places where we could end up with more than one event
...
context. We now have an event context on the torture_context, and we
can also get one from the cli_credentials structure
(This used to be commit c0f65eb6562e13530337c23e3447a6aa6eb8fc17)
2007-10-10 14:52:34 -05:00
Andrew Tridgell
ad1cde253e
r22968: andrew bartlett pointed out that the parent process could add a fd to
...
the epoll context which would then appear in the children. To fix this
we need to check for pid changes in more places. Luckily on platforms
where we have epoll(), getpid() is very very cheap.
(This used to be commit 4f84e6d569f9c9d7dd902f4550735f3ce2d3b424)
2007-10-10 14:52:33 -05:00
Andrew Bartlett
b5ae9019b0
r22967: Move to the TCP packet interface for the krb5_send_to_kdc plugin.
...
This replaces a lump of hand-crafted code with the generic packet
system used in the rest of Samba4.
(I started this while chasing down the epoll bug, which turned out to
be seperate)
(This used to be commit 2a7dec4e5dc453f509493f80fc1270416f30a36e)
2007-10-10 14:52:33 -05:00
Andrew Bartlett
1a7b251319
r22966: Make sure to return LOGON_FAILURE if the user's kerberos password is
...
incorrect.
Andrew Bartlett
(This used to be commit 9dc6f36e43170bc5bf4f94d893b5a3689460d237)
2007-10-10 14:52:33 -05:00
Andrew Tridgell
da9b4626bc
r22965: changed RAW-LOCK-BENCH to remove the scheduling uncertainty. We should
...
always get balanced locking now
(This used to be commit 4e6df7b9b1938b91a904ab061c36d65b169f93a8)
2007-10-10 14:52:33 -05:00
Andrew Tridgell
878f69468d
r22964: log an error on epoll_create failing on reopen
...
(This used to be commit a69f28599845d3ea3868a574c6b0ba8db8486ef5)
2007-10-10 14:52:32 -05:00
Andrew Tridgell
b6e64bad55
r22963: fixed the epoll/fork interaction in the epoll and aio backends
...
(This used to be commit aeca07659aa612bee0c4dd6bdbb24c799e912909)
2007-10-10 14:52:32 -05:00
Andrew Tridgell
e9eb862dc0
r22962: show progress separately for each client in RAW-BENCH-LOCK, this is
...
much more useful for seeing why we get unbalanced locking
(This used to be commit 1f1f57023b6d7d7d4938803e57f30e485ccba719)
2007-10-10 14:52:32 -05:00
Andrew Tridgell
2741921a50
r22961: use EVENT_FD_AUTOCLOSE and SOCKET_FLAG_NOCLOSE to fix up some hairy
...
problems with order of socket closing in krb5
(This used to be commit 46a7d83c2b49798c6c5389c13ec2b9785c47b85b)
2007-10-10 14:52:32 -05:00
Andrew Tridgell
59d1a2b30e
r22960: added a SOCKET_FLAG_NOCLOSE to allow us to tell the socket layer that
...
we will handle the close of the socket
(This used to be commit d57aaf5ba60464e5e782353a0879a84f8c70dd32)
2007-10-10 14:52:31 -05:00
Andrew Tridgell
87379e0d58
r22959: cope with a rather interesting interaction between epoll() and
...
fork(). See
http://junkcode.samba.org/ftp/unpacked/junkcode/epoll_fork.c for why
this is needed
(This used to be commit 6d06132ea9c5a1c7d098ba13f4146dc60e811e44)
2007-10-10 14:52:31 -05:00
Ronnie Sahlberg
402218516a
r22958: For SRVSVC/NetFileClose only Administrator is allowed to close open files.
...
If a normal user tries to close a file that exists, even that users own files the server
responds with this error on w2k
if the file does not exist, the server instead responds with WERR_BADFILE
(This used to be commit c17df8bed66d70765b85b6e04f2ad0a57073ffb4)
2007-10-10 14:52:31 -05:00
James Peach
66cc0b1e21
r22952: Make sure we look at extra_cflags when building custom targets.
...
(This used to be commit 2d990cd37410cec03fa96767b0cf84d7c17ca9c4)
2007-10-10 14:52:31 -05:00
Stefan Metzmacher
40cd2d7780
r22944: fix bug #4618 :
...
rename private -> private_data
metze
(This used to be commit 58551f2f28fce8f1fcd04736c47ecd7458f32ea2)
2007-10-10 14:52:30 -05:00
Michael Adam
3e5335063a
r22931: Fix logic in detection of the need to replace dlopen and friends.
...
Originally, dlfcn.o was only added to LIBREPLACEOBJ if dlopen
was found in libdl but header dlfcn.h was not appropriate.
Michael
(This used to be commit 7afa8d2a4707e999a380e747ccaae1de53a00251)
2007-10-10 14:52:30 -05:00
Andrew Bartlett
5ca5e6bdf9
r22921: This index saves another 7 seconds off a 'make quicktest', and is a common search operator.
...
Andrew Bartlett
(This used to be commit a258455e757dcc67637502bedf7066580cbf4034)
2007-10-10 14:52:30 -05:00
Stefan Metzmacher
283aeb2a37
r22913: try to work arround the unaligned memory access bug on Tru64
...
metze
(This used to be commit 3a7a30ab1cf724ad2420ae2a1011479fffd826fe)
2007-10-10 14:52:30 -05:00
Stefan Metzmacher
976d97f403
r22896: we pass SMB2-LOCK now
...
metze
(This used to be commit b8994c3d1c798a1ebca64312e4d7f019229cbff2)
2007-10-10 14:52:30 -05:00
Stefan Metzmacher
d15e4d30e6
r22894: don't send a 2nd request before the last one returned (at least with
...
STATUS_PENDING) otherwise longhorn beta3 just drops the connection
metze
(This used to be commit 503644a5e3b005e0660aca33a880de8d87d0d8aa)
2007-10-10 14:52:29 -05:00
Andrew Tridgell
e9dcc9a3da
r22887: and servicePrincipalName ....
...
(This used to be commit 45d668d19f661cbaff257b91ed2525577e3cf0d2)
2007-10-10 14:52:29 -05:00
Volker Lendecke
e1e759585e
r22886: Workaround to make RAW-NOTIFY a bit more reliable against Samba3. It
...
might take a bit for events to propagate from one to another connection,
in particular with a process per connection.
(This used to be commit 0c7a518b2dad83dc78f3e3058fd8e1267d0e928f)
2007-10-10 14:52:29 -05:00
Andrew Tridgell
71cbc569cb
r22885: now we use kernberos more, we need to index on userPrincipalName
...
(This used to be commit 600d39e0bacfd669bdee0ea3aec6bdc02113993b)
2007-10-10 14:52:29 -05:00
Andrew Bartlett
cb00a33c67
r22884: Be consistant with the case of these constants.
...
Andrew Bartlett
(This used to be commit 7b086eebd6af21674ca18c7d9b35cb2c6b57514a)
2007-10-10 14:52:28 -05:00
Andrew Bartlett
61e5856403
r22883: Indentation.
...
(This used to be commit 7548da913d56e3420c686a7d3a924c5f987a3eb1)
2007-10-10 14:52:28 -05:00
Andrew Bartlett
4febada51f
r22882: It seems entirly reasonable to follow metze's suggestion and check for
...
a valid file handle first.
Andrew Bartlett
(This used to be commit 3947db3dcbfe97e9ccb9b9bd2b3a69cf7683af9f)
2007-10-10 14:52:28 -05:00
Andrew Tridgell
3173a3cee6
r22881: show number of connected clients
...
(This used to be commit 42f6c5106ea4d0e35f88e0c9523cbd13206fecb5)
2007-10-10 14:52:28 -05:00
Andrew Bartlett
a4e571b589
r22877: Remove stray 'l'
...
(This used to be commit 97960421a17ea0f48b8b355e55d796f0837c73cd)
2007-10-10 14:52:27 -05:00
Andrew Tridgell
2e11a2b601
r22876: - try to reconnect once per second, not continously
...
- patch from ronnie to fix the lock offset on reconnect
(This used to be commit 77d7ca5590bfc416a2526bc8833158df4e9d7810)
2007-10-10 14:52:27 -05:00
Andrew Bartlett
bb84e0b584
r22875: We want to skip this test, it will fail unless run against IPC$ (which the pattern does not).
...
We need a way to list this against IPC$, but not have this skip entry
override it.
Andrew Bartlett
(This used to be commit 01ed78d20ac2c07b77f9aa1702c93e4fab427d0a)
2007-10-10 14:52:27 -05:00
Andrew Bartlett
3a88c56346
r22874: Expand the RPC-QFILEINFO-IPC test, and add a server implementation to match.
...
This should help with Vista joins.
Andrew Bartlett
(This used to be commit 8f85fb37862044d4b618e4184274bc67432af73b)
2007-10-10 14:52:27 -05:00
Andrew Bartlett
d307c116c8
r22873: Make the RAW-QFILEINFO-IPC test pass against Win2k3.
...
Next step is working on Samba4's IPC ntvfs module.
Andrew Bartlett
(This used to be commit aca0250492144a8f582fee8459c83b17391f9471)
2007-10-10 14:52:26 -05:00
Rafal Szczesniak
7731921835
r22871: restore testing against host name instead of ip address
...
rafal
(This used to be commit 5638210f2de88db5c4a769078f738b11ded5a61f)
2007-10-10 14:52:26 -05:00
Stefan Metzmacher
bf62b6642c
r22866: handle incoming chained smb2 requests in our server code to let
...
the windows explorer in longhorn beta3 work.
metze
(This used to be commit 2390c9f24daccec917608cac0870890cdc73cb1c)
2007-10-10 14:52:26 -05:00
Stefan Metzmacher
37f8c04d90
r22865: handle pending locks in smb2
...
metze
(This used to be commit 8329fa689521b12e4ce2ac094b3e322fa4ed4bb8)
2007-10-10 14:52:25 -05:00
Stefan Metzmacher
5eb7420f11
r22864: in SMB2 mode we need to cancel an existing lock with a conflicting lock
...
if they're on the same handle and the same range
metze
(This used to be commit 36384bb4a071dcc366ae1039bd0579f08b84e238)
2007-10-10 14:52:25 -05:00
Stefan Metzmacher
0543c06d25
r22863: in SMB2 mode we always need to return NT_STATUS_LOCK_NOT_GRANTED
...
metze
(This used to be commit 83a61a2892539b2bcfbdaac7ca169c99f2b4503a)
2007-10-10 14:52:25 -05:00
Stefan Metzmacher
5151068d5a
r22858: - let SMB2-LOCK-VALID-REQUEST pass against longhorn beta3
...
- add modify the SMB2-LOCK-BLOCK-WRITE test to also test reading
and name in SMB2-LOCK-RW-EXCLUSIV
- add SMB2-LOCK-NONE and SMB2-LOCK-SHARED
metze
(This used to be commit 258555975d3877cff3bc3022f3439cdd61f6c8ac)
2007-10-10 14:52:24 -05:00
Stefan Metzmacher
bd93b41d17
r22849: map smb2 lock to the generic level
...
metze
(This used to be commit fbbb144f8e5271a543c0b47b0105eccd357477ba)
2007-10-10 14:52:24 -05:00
Stefan Metzmacher
4eb1c753ab
r22843: pass smb2 lock requests to the ntvfs layer
...
metze
(This used to be commit 7fa00381ef4981ddb8f8816c924b7bb81628f4e6)
2007-10-10 14:52:24 -05:00
Stefan Metzmacher
a42f78cd50
r22842: fix directory listing of SMB2 and include directories and hidden files
...
metze
(This used to be commit e087772ec9ec561b13dbdf6bfead7394a184d7d9)
2007-10-10 14:52:24 -05:00
Andrew Bartlett
8861c4a68e
r22838: Add in an explority test for what QFSINFO operations are valid on IPC$
...
It seems most opertaions are supported, but that the values are not
consistant. I think these are very much hand-hacked stubs, which is
what they will be on Samba4 too.
I'll need to add some more 'don't fail for...' hacks before this
passes against Win2k3.
Andrew Bartlett
(This used to be commit dcb858d0c716b23be6c5d36b4aa6f155582ada63)
2007-10-10 14:52:23 -05:00
Andrew Tridgell
0f6b62072e
r22837: make RAW-BENCH-LOCK reconnect asynchronously when one of its servers
...
goges away
(This used to be commit cf0cdf5171d4e0ca01b697155ceb04ffc2863231)
2007-10-10 14:52:23 -05:00
Andrew Tridgell
ba0424fddb
r22836: started adding auto-reconnect logic to lockbench. This needs to be
...
made async.
(This used to be commit 9e1ea3e09c80adb0b9809ee83e0c7b1ec9156e42)
2007-10-10 14:52:23 -05:00
Andrew Tridgell
7df266a4f8
r22835: it's useful to see how much time is remaining in this test (so we can
...
tell if failures are due to the cleanup code)
(This used to be commit a4ff1927d452dce93403c456ea9ba3a6b4332f5c)
2007-10-10 14:52:22 -05:00
Andrew Tridgell
af0ba915f5
r22834: fixed a memory leak in the torture_open_connection() code, and removed
...
the duplicate handling of the unclist. This now exposes a function
torture_get_conn_index() which can be used by tests to work out which
host to talk to using the unclist. I will be using that as part of a
set of tests for clustered Samba that need to do auto-reconnect (to
allow testing of cluster node failure)
(This used to be commit b505c176a8d90e406fbf9a94840267d1d9dc34c6)
2007-10-10 14:52:22 -05:00
Andrew Tridgell
bb2571cb90
r22833: use EVENT_FD_AUTOCLOSE in our event test suite
...
(This used to be commit 9109d43595ce0a5e4b58df659f745da081ce5f4d)
2007-10-10 14:52:22 -05:00
Andrew Tridgell
a2b2502585
r22832: merged the latest tdb changes from ctdb to Samba4
...
(This used to be commit a88ab4fa3a07c31bc45c612043f9e096f384eda4)
2007-10-10 14:52:22 -05:00
Andrew Tridgell
bf27e58c2f
r22831: take advantage of EVENT_FD_AUTOCLOSE in the inotify code
...
(This used to be commit 419ef7393f9208e274745808980e0342e2e65a37)
2007-10-10 14:52:21 -05:00
Andrew Tridgell
ecc54f900f
r22830: merged the latest lib/events updates from ctdb to Samba4. This
...
includes a new EVENT_FD_AUTOCLOSE flag that prevents race conditions
where code using fd events might close a fd before releasing the
struct fd_event. That causes headaches for epoll.
(This used to be commit f1ad216de13b154a1f8747a44b0970dcc47a784a)
2007-10-10 14:52:21 -05:00
Andrew Tridgell
bc02bba449
r22829: system/select.h needs to bring in epoll.h for epoll usage in
...
lib/events
(This used to be commit 2c9d0b57f9cef96ac0878a9761f3c15774fda336)
2007-10-10 14:52:21 -05:00