1
0
mirror of https://github.com/samba-team/samba.git synced 2025-02-10 13:57:47 +03:00

12717 Commits

Author SHA1 Message Date
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
Jelmer Vernooij
c3b00b471a r22827: Change license to LGPL (discussed with tridge).
(This used to be commit 1193c759622edd9e6843d9b7f53d9532748ce8a0)
2007-10-10 14:52:21 -05:00
Stefan Metzmacher
518f41fec0 r22825: let longhorn beta3 work with samba4
if we return a zero assoc_group_id longhorn beta3 stops
after getting the bind_ack.

metze
(This used to be commit 09aea65960073cc8b50a4b39531490876f6d89ef)
2007-10-10 14:52:20 -05:00
Stefan Metzmacher
4bb3160555 r22824: - add a simple test which shows how a lock rejects
a write on a different file handle.
  SMB2-LOCK-BLOCK-WRITE

- make it possible to run each SMB2-LOCK-* test on its own

metze
(This used to be commit 9c02f690bc07ebf99cb272e255a24d7061d8e730)
2007-10-10 14:52:20 -05:00
Andrew Tridgell
5c0963acc3 r22813: improve error messages in RAW-NOTIFY test
(This used to be commit f5b2011db9b05fcca82f6a6b3976aa1b4924b0a8)
2007-10-10 14:52:20 -05:00
Rafal Szczesniak
7e14a25dc6 r22811: two more memory allocation checks.
rafal
(This used to be commit d66b13f6facdba407604f33211574f43163b186c)
2007-10-10 14:52:19 -05:00
Rafal Szczesniak
a4e4ff9273 r22810: when a test runs against domain controller use domain name
instead of target host name specified in binding string.

metze: this fixes the problem with passing name resolution
down the socket wrapper calls. NET tests now run against
$SERVER flawlessly.

rafal
(This used to be commit 44eacd8654a26dbd473050705f28966ce08ccd70)
2007-10-10 14:52:19 -05:00
Rafal Szczesniak
945cb016a4 r22809: use buffer size specified in libnet context.
rafal
(This used to be commit c78dfd356777f133427fb8d9013f38f19d43ecbd)
2007-10-10 14:52:19 -05:00
Rafal Szczesniak
7c636fd2fe r22808: store default buffer size for samr operations in libnet context.
This allows not requiring it as an argument in some function calls
and still enables specifying any size if it's necessary via libnet
context.

rafal
(This used to be commit 3e4b0c5b3b6d6bd155c8ce11b2342f4af08342f6)
2007-10-10 14:52:19 -05:00
Rafal Szczesniak
6bf83794e5 r22804: convert libnet_rpc_userinfo function to use "continue" functions
instead of a single handler.

rafal
(This used to be commit c27c0523ac695ef71df9b3176a69c6fb25b02ac0)
2007-10-10 14:52:18 -05:00
Stefan Metzmacher
06dae806f9 r22793: use a state struct for r_do_release_demand to avoid a memleak on errors
metze
(This used to be commit a4111527315c2b193a5235c6d32e9f392066506f)
2007-10-10 14:52:18 -05:00
Stefan Metzmacher
bb691629f5 r22792: only don't free on success
metze
(This used to be commit 2259bc2cad3333d41a6972ad9659820f85906bba)
2007-10-10 14:52:18 -05:00
Stefan Metzmacher
4ef7bab6d0 r22791: make it possible to use smb2_create_blob_add() in the server code too
metze
(This used to be commit c08eeb62ca001cebcb7af2b655269e4b388e69c1)
2007-10-10 14:52:18 -05:00
Stefan Metzmacher
e1635caaf3 r22790: fix initialization for chained requests
metze
(This used to be commit e1cc933c009f98264c0e8c65bfd93a0d1219a0e2)
2007-10-10 14:52:17 -05:00
Stefan Metzmacher
2dacfdf099 r22789: fix loading of internal samba4 modules
metze
(This used to be commit f6740c8b7abdaa65c8467220bf2d14e21fe71053)
2007-10-10 14:52:17 -05:00
Stefan Metzmacher
7e330c7c0c r22788: fix typo
metze
(This used to be commit 635a636e89e462825efaacd5563c40fec2ceefb1)
2007-10-10 14:52:17 -05:00
Stefan Metzmacher
6bf99b9e85 r22774: correctly initialize the smbsrv_connection when switching to SMB2
metze
(This used to be commit 0fa4eb7323d95b6b8fb0c98225aebfa0b05e685a)
2007-10-10 14:52:17 -05:00
Jelmer Vernooij
cf4d161f15 r22769: Fix include location.
(This used to be commit 74d51579aff73913cae31734bddc3b5a48cd32fa)
2007-10-10 14:52:16 -05:00
Rafal Szczesniak
665065a1df r22764: - replace talloc_zero with composite_create
- use event context provided with libnet context instead of creating
  a new one

rafal
(This used to be commit ce8414b3daad335eac356a393f1653e2e10e2640)
2007-10-10 14:52:16 -05:00
Rafal Szczesniak
da7f449a07 r22763: replace talloc_zero calls with composite_create and add more
allocation checks.

rafal
(This used to be commit 621f3e567478fc8067f08f3589b54bf58ca9e1f1)
2007-10-10 14:52:16 -05:00
Jelmer Vernooij
cc26fe9b74 r22762: Some ldb_map changes:
* Change license to LGPL, so it can be used by non-Samba users of
LDB (cleared with Martin as well).

* Include ldb_map in standalone build.

* Move ldb_map to its own directory
(This used to be commit a90202abca26c0da5425a2f3dd8494077c3290fd)
2007-10-10 14:52:15 -05:00
Stefan Metzmacher
7ef755d150 r22758: - add missing _talloc_set_name_const(ret, ret); to talloc_append_string()
- update manpage and add comments about _talloc_set_name_const(ret, ret);
  in all places which use them

metze
(This used to be commit 5cd100de829b75b83e49bd572a33a267cf86f215)
2007-10-10 14:52:15 -05:00
Stefan Metzmacher
aa4ab6d3c1 r22757: test if calling talloc_free() works on parent elements from within a destrutor
metze
(This used to be commit 305117fae0b4692b27b9cc7204fc59fb1312eabb)
2007-10-10 14:52:15 -05:00
Andrew Bartlett
112728c651 r22756: Make it easier to setup an LDAP replica. Provision with
--partitions-only (suggestions for a better name welcome) will setup
the partitions records, but no any data in those partitions.  This can
then point at the already configured remote LDAP server.

Andrew Bartlett
(This used to be commit ee7b06fc832ca7c572205c7c268c3c7c552effa0)
2007-10-10 14:52:15 -05:00
Stefan Metzmacher
19d56c775a r22752: bail out on talloc failure
metze
(This used to be commit da92bf88e55739daefd2a0c595e0fa61819fa348)
2007-10-10 14:52:10 -05:00
Jelmer Vernooij
31b47acf52 r22750: dlopen() is always available now (and returns a correct error if not supported by the system), thanks to libreplace.
(This used to be commit 1152a4f56d7402bf3aa00b5b108c5c6c668cec6b)
2007-10-10 14:52:09 -05:00
Stefan Metzmacher
7fe9a3255a r22749: fix memory leak of nbt_name_request structure which are used to send replies
and never have an async callback that could free it.

we only had the memory leak in the error path the
standard path was ok.

metze
(This used to be commit d2a2fe662db5b773f4bd54498d6b31b773633903)
2007-10-10 14:52:09 -05:00
Stefan Metzmacher
68b531e817 r22748: fix memleaks by passing an mem_ctx to
irpc_servers_byname()

metze
(This used to be commit b54584dfabee77ec7743cab431bda9765057a295)
2007-10-10 14:52:09 -05:00
Stefan Metzmacher
56ab0cd77c r22746: fix the build of the sqlite module
metze
(This used to be commit cd958034df67a606492b69e55f1f4bc5fa95383b)
2007-10-10 14:52:08 -05:00
Stefan Metzmacher
7a919bede7 r22743: set the talloc name to the string...
metze
(This used to be commit d907fb26a7b0a6543a4bf0b848327a0b7d0da9fa)
2007-10-10 14:52:08 -05:00
Jelmer Vernooij
b157580538 r22742: Fix tests.
(This used to be commit 7240c2d7e30968b751d944f8a9a50573fcbe6671)
2007-10-10 14:52:08 -05:00
Jelmer Vernooij
ac0e2b606f r22741: Add MSVC-specific pragma's for Wireshark. Patch from Ronnie.
(This used to be commit 40d6235b2491462bae480415e2ae075c041b3b7e)
2007-10-10 14:52:08 -05:00
Rafal Szczesniak
0ad4c05508 r22735: correct some comments
rafal
(This used to be commit 6d4268bcd3c28ed2928e68aea567517a671e314a)
2007-10-10 14:52:07 -05:00