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

2688 Commits

Author SHA1 Message Date
Jelmer Vernooij
08c4d0db0c r3334: Allow disabling IPv6 support using socket:noipv6
(This used to be commit 9c13f42c1f)
2007-10-10 13:04:56 -05:00
Andrew Tridgell
148f07c94b r3333: added configure tests for ipv6 support
(This used to be commit 9794570c6d)
2007-10-10 13:04:56 -05:00
Jelmer Vernooij
66790e49a2 r3332: Check result codes in some more places...
(This used to be commit 87833cc758)
2007-10-10 13:04:56 -05:00
Jelmer Vernooij
1331667abf r3331: Add string descriptions for a couple more WERROR's
(This used to be commit 1d374cdeb0)
2007-10-10 13:04:56 -05:00
Jelmer Vernooij
9f5c04c977 r3330: Use IPv6 for RPC client connections if we can
(This used to be commit 9426a65535)
2007-10-10 13:04:56 -05:00
Jelmer Vernooij
bb69e3bbe6 r3329: Add support for IPv6
(This used to be commit d829890124)
2007-10-10 13:04:56 -05:00
Andrew Tridgell
8004eac37f r3327: fixed another warning
we're now down the the last few warnings. Most are enum warnings
caused by unfinished code (unhandled enum levels). If you want to get
rid of those then work on finishing that code.
(This used to be commit b62f7bb971)
2007-10-10 13:04:55 -05:00
Andrew Tridgell
428d9f7c61 r3325: missed one of the torture changes ...
(This used to be commit 1629b593c6)
2007-10-10 13:04:55 -05:00
Andrew Tridgell
ba6d5fcb97 r3324: made the smbtorture code completely warning free
(This used to be commit 7067bb9b52)
2007-10-10 13:04:55 -05:00
Andrew Tridgell
a6ae640313 r3323: more warning reductions
(This used to be commit 5921587ec2)
2007-10-10 13:04:55 -05:00
Andrew Tridgell
e481385391 r3322: fixed a bunch of warnings in the build, including one case where it was a real bug
(This used to be commit 02d5d0f685)
2007-10-10 13:04:55 -05:00
Andrew Tridgell
6feaf6d4d6 r3321: make the test_echo.sh test suite test non-blocking on all rpc transports
this test now passes
(This used to be commit 3d270fd86c)
2007-10-10 13:04:54 -05:00
Andrew Tridgell
8262efeb0b r3320: fixed bugs in the rpc_server code in handling partial packet receives and sends
it now passes the non-blocking test suite
(This used to be commit 6cdf485fb2)
2007-10-10 13:04:54 -05:00
Andrew Tridgell
28c3dcf6a3 r3319: fixed a bug in the client library found by the new non-block testing code
(This used to be commit 1e62aa262a)
2007-10-10 13:04:53 -05:00
Andrew Tridgell
8c752ec861 r3318: generate random STATUS_MORE_ENTRIES errors (1 in 10 packets) as well
as randomly short recv/send when socket:testnonblock is enabled
(This used to be commit 718175a265)
2007-10-10 13:04:53 -05:00
Volker Lendecke
4a25682214 r3317: Fix the build
(This used to be commit 5e8fd27d6e)
2007-10-10 13:04:53 -05:00
Andrew Tridgell
c4cff94beb r3316: give the LDAP server a chance of operating correctly non-blocking (it
didn't handle EINTR or EAGAIN)
(This used to be commit c35a8f92c2)
2007-10-10 13:04:53 -05:00
Andrew Tridgell
c272e60955 r3315: converted the libcli/raw/ code to use the generic socket library. This
allows me to test with the socket:testnonblock option. It passes.
(This used to be commit 7cb4bf8662)
2007-10-10 13:04:53 -05:00
Andrew Tridgell
990d76f7cb r3314: added a option "socket:testnonblock" to the generic socket code. If
you set this option (either on the command line using --option or in
smb.conf) then every socket recv or send will return short by random
amounts. This allows you to test that the non-blocking socket logic in
your code works correctly.

I also removed the flags argument to socket_accept(), and instead made
the new socket inherit the flags of the old socket, which makes more
sense to me.
(This used to be commit 406d356e69)
2007-10-10 13:04:53 -05:00
Andrew Tridgell
34cd0662f0 r3313: in socket_accept() make the new socket non-blocking unless SOCKET_FLAG_BLOCK is set.
(This used to be commit a2d92aa431)
2007-10-10 13:04:53 -05:00
Andrew Tridgell
c8c3a56b8b r3312: in the brlock code, we prevent lock stampedes by attempting to not
wakeup all pending locks at once. This change means that we only
trigger this anti-stampede code for write locks, as for pending read
locks the correct behaviour is to stampede (as they will all succeed)
(This used to be commit 8021d1d742)
2007-10-10 13:04:53 -05:00
Tim Potter
c69b5f7642 r3311: Consistency updates for form name members.
Add tests for EnumForms, GetForm, AddForm, DeleteForm.
(This used to be commit 6c49ce976a)
2007-10-10 13:04:52 -05:00
Tim Potter
fd608a16e2 r3310: Update dependencies for swig wrappers.
(This used to be commit 5dcb300fca)
2007-10-10 13:04:52 -05:00
Tim Potter
d718b7f683 r3309: Add wrapper for dcerpc_server_name() function.
(This used to be commit 2d60a04f21)
2007-10-10 13:04:52 -05:00
Tim Potter
08dd85d26b r3308: Handle servers that don't have samr_Connect5.
(This used to be commit 52af866ffb)
2007-10-10 13:04:52 -05:00
Andrew Tridgell
aa19318fd5 r3307: fixed the send side of the smb_server code to be non-blocking. This
means the whole of the SMB handling code is now non-blocking.
(This used to be commit 30acedb943)
2007-10-10 13:04:52 -05:00
Andrew Tridgell
d668ec53b3 r3306: the main smb server code now handles non-blocking socket receives. I
haven't marked the socket non-blocking yet as I haven't checked that
the send path is OK for non-blocking.
(This used to be commit bda978cc2a)
2007-10-10 13:04:52 -05:00
Andrew Tridgell
4b3e91f3ec r3305: added ncalrpc to the list of rpc transports tested by test_echo.sh, so
it gets regularly tested when I make changes.
(This used to be commit e4216da824)
2007-10-10 13:04:52 -05:00
Andrew Tridgell
c6888da148 r3304: changed the API to lib/socket/ a little.
The main change is to make socket_recv() take a pre-allocated buffer,
rather than allocating one itself. This allows non-blocking users of
this API to avoid a memcpy(). As a result our messaging code is now
about 10% faster, and the ncacn_ip_tcp and ncalrpc code is also
faster.

The second change was to remove the unused mem_ctx argument from
socket_send(). Having it there implied that memory could be allocated,
which meant the caller had to worry about freeing that memory (if for
example it is sending in a tight loop using the same memory
context). Removing that unused argument keeps life simpler for users.
(This used to be commit a16e4756cd)
2007-10-10 13:04:52 -05:00
Tim Potter
9d1e2b29eb r3303: Call pull function for correct type instead of spoolss_PrinterInfo when
unmarshalling arrays.
(This used to be commit ee535b6801)
2007-10-10 13:04:51 -05:00
Tim Potter
fe54d8bc99 r3302: The security descriptors in spoolss_PrinterInfo2 and spoolss_PrinterInfo3
need to be marked as subcontext(0).

GetPrinter tests now work for all info levels!
(This used to be commit 53bd02960e)
2007-10-10 13:04:51 -05:00
Jelmer Vernooij
4eda9e51b3 r3301: Simplify code
(This used to be commit dcdc6666d5)
2007-10-10 13:04:51 -05:00
Andrew Tridgell
93c32f81e2 r3300: initialise *sendlen on failure, to allow for callers to check only for
NT_STATUS_IS_ERR()
(This used to be commit 80a109de84)
2007-10-10 13:04:51 -05:00
Jeremy Allison
971754c0ed r3295: Fix for SMB signing with 56-bit DES session keys. From Nalin Dahyabhai <nalin@redhat.com>.
Jeremy.
(This used to be commit afed78f359)
2007-10-10 13:04:51 -05:00
Stefan Metzmacher
157dc5e7ea r3291: fix the build, thx to pipitas for finding this
metze
(This used to be commit d331a83f08)
2007-10-10 13:04:51 -05:00
Stefan Metzmacher
fbb44e9616 r3290: allow SID_ANONYMOUS ( "S-1-5-7" ) to be the users sid
metze
(This used to be commit 177afd4855)
2007-10-10 13:04:51 -05:00
Stefan Metzmacher
bb26de6bbb r3289: Mr. L. and Mr. B.!
can we decide to not break WinXP clients:-)

metze
(This used to be commit 5eb0ff78d5)
2007-10-10 13:04:50 -05:00
Andrew Tridgell
074da7ccf7 r3288: - updated the path processing in pvfs to pass the RAW-CHKPATH test. This
rather extensive test reveals some really bizarre error code
  handling in w2k3.

- extended and simplified the RAW-CHKPATH test, making it easier to
  read (note that Samba3 fails the new tests - jra may wish to look)

- marked RAW-CHKPATH as pass for pvfs
(This used to be commit 32dccf91cf)
2007-10-10 13:04:50 -05:00
Tim Potter
50465fde65 r3287: The devicename and formname fields in a device mode are fixed length
strings.  Not sure how to write this as idl which maps to a char * but
at least devicemodes can be pulled off the wire sucessfully.
(This used to be commit dd20730a09)
2007-10-10 13:04:50 -05:00
Andrew Tridgell
661a4a3f67 r3286: filled in more missing SV_TYPE_* defines
(This used to be commit 891d87a712)
2007-10-10 13:04:50 -05:00
Andrew Tridgell
c336572710 r3285: fixed another IDL typo
(This used to be commit 4545ac9bfa)
2007-10-10 13:04:50 -05:00
Andrew Tridgell
6a0f26c709 r3284: - don't use a enum for bit-fields. It isn't legal C (as C is limited to
signed integer values for enum), and it is also very confusing to read.

  Also, please align defines nicely. The value of SV_TYPE_DOMAIN_ENUM
  was defined incorrectly, which became obvious when you align the
  defines, but wasn't at all obvious in the original code.

- removed redundent defines in smb.h
(This used to be commit fe042b8e5c)
2007-10-10 13:04:50 -05:00
Andrew Tridgell
2bf6dff983 r3283: converted to quoted uuid() defines in all our IDL. This should help
the build on systems like solaris with the SunPRO compiler
(This used to be commit fe913ad11b)
2007-10-10 13:04:50 -05:00
Andrew Tridgell
1a7a5c66f5 r3282: some C pre-processors don't like expressions like
uuid(1ff70682-0a51-30e8-076d-740be8cee98b) so we now accept
uuid("1ff70682-0a51-30e8-076d-740be8cee98b") in pidl, and
automagically add quotes only if needed
(This used to be commit 4aab2cb210)
2007-10-10 13:04:49 -05:00
Andrew Tridgell
ba450de07c r3281: some compilers can't handle empty structures, so for empty IDL
structures generate a single _empty_ element in the header
(This used to be commit 00ff1ca1d2)
2007-10-10 13:04:49 -05:00
Andrew Tridgell
d3da369f91 r3280: fixed byte order of rhs IP
(This used to be commit 29fab12d0b)
2007-10-10 13:04:49 -05:00
Andrew Tridgell
1f6fd130a3 r3279: Removed MSG_DONTWAIT flags as many platform don't have it.
If a socket is non-blocking then adding MSG_DONTWAIT is pointless (it
does nothing), so all we lose is the ability to set non-blocking on a
packet-by-packet basis, which is not a very useful thing to have
anyway

if the socket is blocking then the code already adds MSG_WAITALL, so
MSG_DONTWAIT is also not needed in that case.
(This used to be commit b8a2afae67)
2007-10-10 13:04:49 -05:00
Andrew Tridgell
9d055846f2 r3278: - rewrote the client side rpc connection code to use lib/socket/
rather than doing everything itself. This greatly simplifies the
  code, although I really don't like the socket_recv() interface (it
  always allocates memory for you, which means an extra memcpy in this
  code)

- fixed several bugs in the socket_ipv4.c code, in particular client
  side code used a non-blocking connect but didn't handle EINPROGRESS,
  so it had no chance of working. Also fixed the error codes, using
  map_nt_error_from_unix()

- cleaned up and expanded map_nt_error_from_unix()

- changed interpret_addr2() to not take a mem_ctx. It makes absolutely
  no sense to allocate a fixed size 4 byte structure like this. Dozens
  of places in the code were also using interpret_addr2() incorrectly
  (precisely because the allocation made no sense)
(This used to be commit 7f2c771b0e)
2007-10-10 13:04:49 -05:00
Andrew Tridgell
5ae4481161 r3277: don't use the non-portable getaddrinfo() function, instead use
interpret_addr() and if someone wants to add support to that function
for ipv6 then they are welcome to.
(This used to be commit 50377db11b)
2007-10-10 13:04:49 -05:00
Andrew Tridgell
b9ddb09f03 r3276: - allow for more than 256 open old style searches (limit currently set at an arbitrary 5000)
- auto-cleanup old searches that the client forgot to close (common with old searches)

- expanded the RAW-SEARCH test to test more than 256 old searches, and
  old search rewind (w2k3 fails this - it appears to not support rewind
  on old style searches)
(This used to be commit bc83d823b2)
2007-10-10 13:04:48 -05:00