1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-25 23:21:54 +03:00
Commit Graph

2666 Commits

Author SHA1 Message Date
Andrew Bartlett
2b250bf7fd r3554: Use the new talloc_reference changes to simply the conversion of
returned validation information into the server_info struct.

Also allow for easier expansion to different variations on validation
levels.

Andrew Bartlett
(This used to be commit 316b74029c)
2007-10-10 13:05:31 -05:00
Andrew Bartlett
438a54b8b4 r3553: Allow talloc_reference to take a NULL pointer for the "ptr" argument.
This allows potentially NULL pointers to be referenced, without an if ()
for every use.  (previously, it would segfault).

Update doco, and allow talloc_unlink to match.

Andrew Bartlett
(This used to be commit 59757c7f9d)
2007-10-10 13:05:31 -05:00
Andrew Tridgell
8a5c9c2841 r3552: fixed sense of ACL test
(This used to be commit 630af28a0f)
2007-10-10 13:05:31 -05:00
Andrew Tridgell
b875cdf5db r3551: these utils need system/filesys.h
(This used to be commit 1b945f9f4b)
2007-10-10 13:05:31 -05:00
Andrew Tridgell
d8ddb03e90 r3550: fixed initial attribute on file create (inlusion of FILE_ATTRIBUTE_ARCHIVE)
(This used to be commit b07feaafd1)
2007-10-10 13:05:31 -05:00
Andrew Tridgell
12f4a44cf5 r3549: added support for DOS extended attribute lists (name/value pairs)
stored in posix xattrs
(This used to be commit bad6a88371)
2007-10-10 13:05:31 -05:00
Andrew Tridgell
2b4e716f7a r3548: removed extra net/if.h include
(This used to be commit 1551f211d9)
2007-10-10 13:05:31 -05:00
Andrew Tridgell
a9ecd7a575 r3547: fixed waitpid in fcntl_lock.c (thanks to jbm for pointing this out)
(This used to be commit 864a142409)
2007-10-10 13:05:31 -05:00
Andrew Tridgell
3a7eff64f2 r3546: including includes.h twice causes gcc 3.4 to crash with pch
(This used to be commit 51c1c2af68)
2007-10-10 13:05:30 -05:00
Andrew Tridgell
9fe5fa11d6 r3545: initial support for using extended attributes to hold extended dos attributes of files.
I decided to use IDL/NDR to encode the attribute, as it gives us a
simple way to describe and extend the saved attributes.

The xattr code needs to hook into quite a few more places in the pvfs
code, but this at least gets the basics done. I will start encoding
alternate data streams streams, DOS EAs etc soon using the same basic
mechanism.

I'll probably stick to "version 1" for the xattr.idl for quite a while
even though it will be changing, as I don't expect anyone to be
deploying this in production just yet. Once we have production users
we will need to keep compatibility by supporting all the old version
numbers in xattr.idl.
(This used to be commit c54253ed1b)
2007-10-10 13:05:30 -05:00
Andrew Tridgell
0a8dff9e47 r3544: fixed some #include lines to make them more consistent
(This used to be commit a1a0118bd3)
2007-10-10 13:05:30 -05:00
Andrew Tridgell
e8010adffe r3543: fixed some #include lines to make them more consistent, and fixed
conditional compilation of xattr client code
(This used to be commit 321fb06a62)
2007-10-10 13:05:30 -05:00
Andrew Bartlett
ba8b9d49cd r3542: Re-indent, and fix a use-after-free by doing the talloc_destroy just a
little later.

Andrew Bartlett
(This used to be commit b7c2a4fc34)
2007-10-10 13:05:30 -05:00
Andrew Bartlett
c772c75400 r3541: Add support (to be verified with the squid team) for the Squid 3.0
multiplexed helper system.

This system prefixes every request with a number, and we maintian a
state machine for each of these integers.  This means that we can have
multiple outstanding challenges, without the overhead of a whole
ntlm_auth process.

In future, the actual password check will also be async.

Andrew Bartlett
(This used to be commit 9ea34abce3)
2007-10-10 13:05:30 -05:00
Andrew Tridgell
1d97e7b9d8 r3540: added testing of SMBntcancel in the open/open/close mux
testing. Interestingly, w2k3 does not allow the cancel of an
outstanding async open request, whereas it does allow the cancel of an
outstanding async lock request. To support this I have changed the
pvfs_wait interface to provide a enum on why the event is happening,
so the callback can decide what to do.
(This used to be commit f23d6a2800)
2007-10-10 13:05:30 -05:00
Andrew Tridgell
80eef3ea66 r3539: much nicer async open delay code.
The previous code didn't handle the case where the file got renamed or
deleted while waiting for the sharing violation delay. To handle this
we need to make the 2nd open a full open call, including the name
resolve call etc. Luckily this simplifies the logic.

I also expanded the RAW-MUX test to include the case where we do
open/open/open/close/close, with the 3rd open async, and that open
gets retried after both the first close and the 2nd close, with the
first retry failing and the 2nd retry working. The tests the "async
reply after a async reply" logic in pvfs_open().
(This used to be commit eded2ad9c9)
2007-10-10 13:05:29 -05:00
Jelmer Vernooij
96ffc6d945 r3536: Some minor IDL updates/fixes/additions
(This used to be commit 6fab01df00)
2007-10-10 13:05:29 -05:00
Andrew Tridgell
b2617daeb6 r3532: make sharing violation delay in pvfs configurable with "posix:sharedelay = usecs"
(This used to be commit c475877649)
2007-10-10 13:05:29 -05:00
Andrew Tridgell
39cd0639e9 r3531: add support for RAW_OPEN_MKNEW, RAW_OPEN_CREATE and RAW_OPEN_CTEMP in pvfs
(This used to be commit 1d2f0a55c1)
2007-10-10 13:05:29 -05:00
Andrew Tridgell
8fa7f264c6 r3530: make sure we match ntvfs_async_state_pop() with ntvfs_async_state_push()
(This used to be commit 730ae0600e)
2007-10-10 13:05:29 -05:00
Andrew Tridgell
f71a4941f0 r3529: fixed signing support for SMBntcancel requests (no reply means seq
number rises by 1, not 2)
(This used to be commit 201ff734d4)
2007-10-10 13:05:29 -05:00
Andrew Tridgell
c870ae8b89 r3528: added support for the SMBntcancel() operation, which cancels any
outstanding async operation (triggering an immediate timeout).

pvfs now passes the RAW-MUX test
(This used to be commit 3423e2f414)
2007-10-10 13:05:28 -05:00
Stefan Metzmacher
92cac50045 r3527: I hate compiler warnings...
metze
(This used to be commit d264aacfd5)
2007-10-10 13:05:28 -05:00
Andrew Bartlett
7d4809f5af r3524: Remove unused variable.
Andrew Bartlett
(This used to be commit a9f57319b8)
2007-10-10 13:05:28 -05:00
Andrew Tridgell
252e010abf r3523: removed a useless level 0 DEBUG()
(This used to be commit b36967466f)
2007-10-10 13:05:28 -05:00
Andrew Tridgell
00a1262f89 r3522: added async support to most of the ntvfs_map_*() functions, allowing functions like
SMBopenx, SMBread and SMBwrite to be performed async
(This used to be commit 9e80eb18ae)
2007-10-10 13:05:28 -05:00
Tim Potter
500ce03f7c r3521: Collect printer driver names in EnumPrinterDrivers.
(This used to be commit 86f54db1ef)
2007-10-10 13:05:28 -05:00
Andrew Tridgell
d4f667c377 r3520: minor portability fix (for struct timeval)
(This used to be commit ea1ad5897d)
2007-10-10 13:05:28 -05:00
Andrew Bartlett
37baa01e75 r3519: Include time headers to fix the build.
Andrew Bartlett
(This used to be commit d13e2aa89e)
2007-10-10 13:05:28 -05:00
Andrew Tridgell
a9c00f35f9 r3518: fixed some includes to be consistent.
- use #include <XXX.h> for operating system includes
 - use includes relative to include/ for things like system/wait.h

also fixed the thread backend to work somewhat. To fix it properly we need to do this:

 - add a configure test for support for thread local storage (the __thread keyword)
 - refuse to do pthreads if tls doesn't work
 - refuse to do pthreads if seteuid() affects process instead of thread
 - defined THREAD_LOCAL as __thread when WITH_PTHREADS
 - add THREAD_LOCAL to all the global data structures that should be
   thread local (there are quite a few)

right now the thread backend falls over when you hit it with several
connections at once, due to the lack of __thread on some critical
structures.
(This used to be commit 0dc1deabd0)
2007-10-10 13:05:27 -05:00
Jelmer Vernooij
f7a13be68d r3517: Fix the build - Sorry!
(This used to be commit a5c9e0a185)
2007-10-10 13:05:27 -05:00
Jelmer Vernooij
52f7f9b8be r3516: dcerpc_epm_map_binding now checks the endpoints it nows first
and then possibly does a epm_Map call().
ncacn_np now also uses dcerpc_epm_map_binding()
(This used to be commit 77eec3fa18)
2007-10-10 13:05:27 -05:00
Jelmer Vernooij
695677f4bb r3515: Fix RemoteActivation correctly this time (-:
Thanks to tridge for some help on this one!
(This used to be commit 1104667190)
2007-10-10 13:05:27 -05:00
Jelmer Vernooij
9a65c54c72 r3514: Allow specification of username, password and domain and try to set up connection.
(This used to be commit 8076db7a1f)
2007-10-10 13:05:24 -05:00
Jelmer Vernooij
6d3c74a67b r3513: Add (the infrastructure for) DCOM support. Contents:
- Support for sending over the object UUID in DCERPC calls
 - Simple torture test for the DCOM "Simple" object
 - Generate extra argument for "object" interfaces in pidl
 - Some stubs for common DCOM functions
(This used to be commit c052f2e1ed)
2007-10-10 13:05:23 -05:00
Stefan Metzmacher
e0e6e0f99d r3512: - support DsCrackName GUID strings ('{faedf4f9-0de8-4582-b8b6-c475efefbe5a}')
- resolve the GUID's we got in DsGetDomainControllerInfo in the DsCrackNames test

metze
(This used to be commit f631069582)
2007-10-10 13:05:23 -05:00
Stefan Metzmacher
823f169fec r3511: teh PAC used 8byte alignment
metze
(This used to be commit 08b26ed7ec)
2007-10-10 13:05:23 -05:00
Stefan Metzmacher
f8f1d1b089 r3510: fix build on SuSE 9.1
metze
(This used to be commit 9cc1ab4eb2)
2007-10-10 13:05:23 -05:00
Stefan Metzmacher
29697cb8c1 r3509: - comment out a unused var
- fix a scalar vs pointer bug

metze
(This used to be commit 8e3f87b9e0)
2007-10-10 13:05:23 -05:00
Stefan Metzmacher
6305528505 r3508: fix the build
(tridge: please don't forget this file next time :-)

metze
(This used to be commit 5fec93013e)
2007-10-10 13:05:23 -05:00
Andrew Tridgell
dde0705807 r3507: - added deferred replies on sharing violation in pvfs open. The
deferred reply is short-circuited immediately when the file is
  closed by another user, allowing it to be opened by the waiting user.

- added a sane set of timeval manipulation routines

- converted all the events code and code that uses it to use struct
  timeval instead of time_t, which allows for microsecond resolution
  instead of 1 second resolution. This was needed for doing the pvfs
  deferred open code, and is why the patch is so big.
(This used to be commit 0d51511d40)
2007-10-10 13:05:23 -05:00
Tim Potter
90a8c4acc7 r3506: Test EnumPorts function.
(This used to be commit 354068aae1)
2007-10-10 13:05:22 -05:00
Tim Potter
e3e5ef95ad r3505: #include dynconfig.h
(This used to be commit 336eba61e9)
2007-10-10 13:05:22 -05:00
Jelmer Vernooij
a4a475bcfa r3501: More work towards MGMT support in gepdump
(This used to be commit adeb0cd267)
2007-10-10 13:05:22 -05:00
Andrew Tridgell
d685e56a77 r3500: cleaned up the AS_USER/AS_GUEST stuff in the core smb packet processing
(This used to be commit 8fa456afc9)
2007-10-10 13:05:22 -05:00
Andrew Tridgell
1f8bb2f925 r3499: setting an out param for a non-pointer doesn't do anything (and
generated a warning as it was being set to a ptr)
(This used to be commit ba81a48c9d)
2007-10-10 13:05:22 -05:00
Andrew Tridgell
02785df1b0 r3497: removed some include cruft, and split out librpc/gen_ndr/tables.h
(This used to be commit 7dd3a5a6da)
2007-10-10 13:05:22 -05:00
Andrew Tridgell
6f214cc510 r3494: got rid of include/rewrite.h, and split out the dynconfig.h header
(This used to be commit 558de54ec6)
2007-10-10 13:05:22 -05:00
Andrew Tridgell
acb23b2c5f r3493: fixed a bug in readx reply where the client specifies an invalid high
part of the maxcnt. This caused an allocation failure and server exit.

Note: we need to go back over all the places in the core smb_server
that can cause allocation failures based on user input and fix them to
instead produce a SMB error.

Thanks to Susan for finding this bug.
(This used to be commit 4aed1b7921)
2007-10-10 13:05:21 -05:00
Jelmer Vernooij
bd6bc9c5ee r3490: All tests work against NT4 now
(This used to be commit 640e3a8ce8)
2007-10-10 13:05:21 -05:00