kai/samba.git
16 years agor23108: Add defines of RTLD_NOW and RTLD_GLOBAL to replace.h.
Michael Adam [Thu, 24 May 2007 07:15:36 +0000 (07:15 +0000)]
r23108: Add defines of RTLD_NOW and RTLD_GLOBAL to replace.h.
Fixing build of ldb for instance on some systems without dlfcn.h.
(This used to be commit 943acd688d5aa0cd4adc6dc0fd7b92f1f294c219)

16 years agor23104: Add comment explaining the new test.
Jeremy Allison [Wed, 23 May 2007 23:14:48 +0000 (23:14 +0000)]
r23104: Add comment explaining the new test.
Jeremy.
(This used to be commit 7b9b5c59a4ac2afca151ba12eba7c808057a677e)

16 years agor23103: Add a torture test for the insane semantics Steve's cifsfs client
Jeremy Allison [Wed, 23 May 2007 23:11:16 +0000 (23:11 +0000)]
r23103: Add a torture test for the insane semantics Steve's cifsfs client
uses so we don't regress :-).
Jeremy.
(This used to be commit 5ce41ae40c5413bb9f15d1c47a095f63d7f167e0)

16 years agor23099: New interesting delete on close tests :-).
Jeremy Allison [Wed, 23 May 2007 21:14:05 +0000 (21:14 +0000)]
r23099: New interesting delete on close tests :-).
This will break all delete tests on the build farm
until I check in my server patch.
Jeremy.
(This used to be commit c31f775f1c8f6f7e50d038d093898a1f4280be23)

16 years agor23090: a test showing two netlogon pipes open at once, using the LogonEx ops
Andrew Tridgell [Wed, 23 May 2007 07:44:51 +0000 (07:44 +0000)]
r23090: a test showing two netlogon pipes open at once, using the LogonEx ops
(This used to be commit 576dbdc8eece5c2fef743835c7cc255f02050ad3)

16 years agor23089: This is upstream now, so we don't need to add it manually.
Andrew Bartlett [Wed, 23 May 2007 02:41:31 +0000 (02:41 +0000)]
r23089: This is upstream now, so we don't need to add it manually.

Andrew Bartlett
(This used to be commit cddffbf602daff1c5a4770a9a294c0cdf4943384)

16 years agor23071: print the command on failure only
Stefan Metzmacher [Tue, 22 May 2007 12:45:58 +0000 (12:45 +0000)]
r23071: print the command on failure only

metze
(This used to be commit 65ed39172953507610b41273d4a46470725e2012)

16 years agor23069: print out the command, to find out the problem on host 'tridge'
Stefan Metzmacher [Tue, 22 May 2007 11:23:36 +0000 (11:23 +0000)]
r23069: print out the command, to find out the problem on host 'tridge'

metze
(This used to be commit 3f28a19ea1599f7a94faf7d8ee7ea5b3620abe6e)

16 years agor23067: use 'const union smb_search_data *file' also in the server code to get rid
Stefan Metzmacher [Tue, 22 May 2007 09:25:58 +0000 (09:25 +0000)]
r23067: use 'const union smb_search_data *file' also in the server code to get rid
of compiler warnings in the cifs backend

metze
(This used to be commit 34ef07b1f5acdad27edd80de8de4c6de7f879f9b)

16 years agor23066: don't ignore errors
Stefan Metzmacher [Tue, 22 May 2007 09:02:16 +0000 (09:02 +0000)]
r23066: don't ignore errors

metze
(This used to be commit 1a1a339d48af535d60a37b6c646e3e6ca95d41b5)

16 years agor23065: revert local includes to prevent security problems (at least
Rafal Szczesniak [Tue, 22 May 2007 06:34:14 +0000 (06:34 +0000)]
r23065: revert local includes to prevent security problems (at least
temporarily...)

rafal
(This used to be commit 0ecb8fd81ebbd7327aa5c6b9347aa4dcb1ba6421)

16 years agor23064: Clarify comment and indent
Andrew Bartlett [Tue, 22 May 2007 05:22:18 +0000 (05:22 +0000)]
r23064: Clarify comment and indent
(This used to be commit 607e8409f86b28c51a058555021cd45c1cb72a26)

16 years agor23063: Make sure to invalidate the ccache when we set a
Andrew Bartlett [Tue, 22 May 2007 05:21:59 +0000 (05:21 +0000)]
r23063: Make sure to invalidate the ccache when we set a
username/password/realm/etc from the command line.

Also make sure it can't 'come back' from a later call to
cli_credentials_guess(), buy setting a threshold.

This should fix the issues with the build farm...

Andrew Bartlett
(This used to be commit 3b1dfb9306beb9f40d85d38cf6786ef161ec63f1)

16 years agor23062: make sure one node doesn't get ahead of the others at the start
Andrew Tridgell [Tue, 22 May 2007 05:16:16 +0000 (05:16 +0000)]
r23062: make sure one node doesn't get ahead of the others at the start
(This used to be commit 6ab736f5308aabec609408cef9e4c3629081dd75)

16 years agor23061: keep the RAW-BENCH-OPEN test balanced
Andrew Tridgell [Tue, 22 May 2007 04:53:05 +0000 (04:53 +0000)]
r23061: keep the RAW-BENCH-OPEN test balanced
(This used to be commit 453d6f5c58ef60599894749a513d45f1bf5f1c4e)

16 years agor23060: use #include <roken.h> consistently. Using "roken.h" in this directory
Andrew Tridgell [Tue, 22 May 2007 04:13:17 +0000 (04:13 +0000)]
r23060: use #include <roken.h> consistently. Using "roken.h" in this directory
breaks Samba builds on some systems as they find the wrong roken.h
(This used to be commit 59cd26b664af5edebc979d2bc746bf9621333130)

16 years agor23059: reject_free needs to be initialised
Andrew Tridgell [Tue, 22 May 2007 01:02:00 +0000 (01:02 +0000)]
r23059: reject_free needs to be initialised
(This used to be commit ffb8b493161f6951dabb94f2e9ee4c2f2c11b4e0)

16 years agor23058: the cldap code was getting too intimate with the internals of struct
Andrew Tridgell [Tue, 22 May 2007 00:43:10 +0000 (00:43 +0000)]
r23058: the cldap code was getting too intimate with the internals of struct
asn1_context. A hangover from when it wasn't a allocated structure
(This used to be commit e4b7968a40e11a96a0b9671f8ef5436f18427818)

16 years agor23057: only call the async recv function for the first pending receive, not
Andrew Tridgell [Mon, 21 May 2007 23:35:14 +0000 (23:35 +0000)]
r23057: only call the async recv function for the first pending receive, not
all pending receives, when the transport dies. This is because the
async callback most commonly shuts down the connection (it's the only
reasonable thing to do when it's dead), and that frees the whole
context. That means that if we loop more than once, we'll end up using
freed memory.
(This used to be commit 75d537d3a5e3fc5258ce48bfec0c0ce6160978f6)

16 years agor23056: added automatic reconnect to RAW-BENCH-OPEN, similar to RAW-BENCH-LOCK
Andrew Tridgell [Mon, 21 May 2007 23:33:26 +0000 (23:33 +0000)]
r23056: added automatic reconnect to RAW-BENCH-OPEN, similar to RAW-BENCH-LOCK
(This used to be commit 30b1733d75a5f309441818be9718c0434b984f42)

16 years agor23047: Allow local inclusion of js files as well as from predefined
Rafal Szczesniak [Mon, 21 May 2007 19:53:57 +0000 (19:53 +0000)]
r23047: Allow local inclusion of js files as well as from predefined
path(s).

rafal
(This used to be commit 278d26576a625d0fa161f492b902074ea82ef1a8)

16 years agor23045: forward SMB2 oplock breaks to the client
Stefan Metzmacher [Mon, 21 May 2007 17:39:05 +0000 (17:39 +0000)]
r23045: forward SMB2 oplock breaks to the client

metze
(This used to be commit 577acc198b096a1e182568b6db93c2da132b647e)

16 years agor23044: - use uint32_t for handle id's
Stefan Metzmacher [Mon, 21 May 2007 17:23:56 +0000 (17:23 +0000)]
r23044: - use uint32_t for handle id's
- include the session vuid in the SMB2 128-Bit wire handles
  as SMB2 oplock breaks doesn't include a TID or VUID in the header
  we need to make sure the handle is unique for the whole TCP connection

metze
(This used to be commit 7c29b8a7e67c48478399788912b22c287fbd3b4e)

16 years agor23043: allow more than UINT16_MAX - 1 handles on smb2 connections
Stefan Metzmacher [Mon, 21 May 2007 17:12:49 +0000 (17:12 +0000)]
r23043: allow more than UINT16_MAX - 1 handles on smb2 connections

metze
(This used to be commit 6d08c4cef22f6620cc11b712d0814772f747f466)

16 years agor23037: actually fix the asn1 memory leak :-)
Stefan Metzmacher [Mon, 21 May 2007 13:33:46 +0000 (13:33 +0000)]
r23037: actually fix the asn1 memory leak :-)

metze
(This used to be commit 13bda1152d3b88c0b93610d4698ce24183334276)

16 years agor23036: error checking on asn1_init() failure
Andrew Tridgell [Mon, 21 May 2007 12:47:18 +0000 (12:47 +0000)]
r23036: error checking on asn1_init() failure
(This used to be commit 26cf8494084c0106ef0e1c9b6ef40eeadf945ef2)

16 years agor23035: We don't need to add this entry, and I hope to figure out how to avoid
Andrew Bartlett [Mon, 21 May 2007 12:03:15 +0000 (12:03 +0000)]
r23035: We don't need to add this entry, and I hope to figure out how to avoid
adding the other two manually.

However, to do this we do need to skip the check (with -u) that
slaptest can access the db.

Andrew Bartlett
(This used to be commit ea206dce06d97c60868e44aab9281dcbbb393931)

16 years agor23034: Thanks to metze for providing some vital clues in the 'kerberos ccache
Andrew Bartlett [Mon, 21 May 2007 11:57:56 +0000 (11:57 +0000)]
r23034: Thanks to metze for providing some vital clues in the 'kerberos ccache
on credentials don't do anything' bug.

The problem was simple, we didn't set the ccache as having been
initialised, so we always created a new one.

Andrew Bartlett
(This used to be commit ec2014f08b0845bc8aa0e8e6713bc4b21f430811)

16 years agor23033: regenerate schema.ldif with minischema.js
Stefan Metzmacher [Mon, 21 May 2007 09:15:27 +0000 (09:15 +0000)]
r23033: regenerate schema.ldif with minischema.js

metze
(This used to be commit c9e017c00864d08ad6eb38092abd29810604e207)

16 years agor23032: Remove calls to println(), and ensure we print the ldb errstring().
Andrew Bartlett [Mon, 21 May 2007 08:33:22 +0000 (08:33 +0000)]
r23032: Remove calls to println(), and ensure we print the ldb errstring().

Andrew Bartlett
(This used to be commit 5b6f704b24f7da40ce917fe8ed1a500684d1f3cd)

16 years agor23031: removed bogus event_loop_once() calls in RAW-CONTEXT test - they could
Andrew Tridgell [Mon, 21 May 2007 07:27:24 +0000 (07:27 +0000)]
r23031: removed bogus event_loop_once() calls in RAW-CONTEXT test - they could
hang forever if an ealier one caused two operations to complete at
once

this is why RAW-CONTEXT was taking 5 minutes on the build farm
(This used to be commit eeba37e25cdcaefac4a252fb4305bddaba217826)

16 years agor23030: finally fixed up our asn1 code to use better memory allocation. This
Andrew Tridgell [Mon, 21 May 2007 06:12:06 +0000 (06:12 +0000)]
r23030: finally fixed up our asn1 code to use better memory allocation. This
should allow us to fix some long standing memory leaks.
(This used to be commit 3db49c2ec9968221c1361785b94061046ecd159d)

16 years agor23029: fixed formatting
Andrew Tridgell [Mon, 21 May 2007 05:40:04 +0000 (05:40 +0000)]
r23029: fixed formatting
(This used to be commit 72ee4707725e9bbc9ab564315c7d78bdc564256f)

16 years agor23028: I've now got a patch to Fedora DS to make it only install the very base schema.
Andrew Bartlett [Mon, 21 May 2007 04:10:13 +0000 (04:10 +0000)]
r23028: I've now got a patch to Fedora DS to make it only install the very base schema.

I'll post that patch into lorikeet and submit upstram.

Andrew Bartlett
(This used to be commit 90f2412152c4ef5781adca77fa570aed2f5ce5c1)

16 years agor23027: Make sure the parent object always exists.
Andrew Bartlett [Mon, 21 May 2007 04:06:42 +0000 (04:06 +0000)]
r23027: Make sure the parent object always exists.

Andrew Bartlett
(This used to be commit 55c7c0906ccb741ab002f460164ccbbe56b55a98)

16 years agor23026: Add groupPolicyContainer, as we now require this schema element.
Andrew Bartlett [Mon, 21 May 2007 04:01:26 +0000 (04:01 +0000)]
r23026: Add groupPolicyContainer, as we now require this schema element.

Andrew Bartlett
(This used to be commit 1c4d376d547df46cb036f088918562bd2493e087)

16 years agor23021: test some boundary conditions for idtree, after I saw some suspicious
Andrew Tridgell [Sun, 20 May 2007 10:21:14 +0000 (10:21 +0000)]
r23021: test some boundary conditions for idtree, after I saw some suspicious
behaviour
(This used to be commit e862cf17b891885f3a733819869a06895c1fb324)

16 years agor23020: a better fix for the memory leak - this one doesn't stuff up spnego :)
Andrew Tridgell [Sun, 20 May 2007 09:44:03 +0000 (09:44 +0000)]
r23020: a better fix for the memory leak - this one doesn't stuff up spnego :)
(This used to be commit 9a8da730a725fc9fc1a3e407273e688f44eadfe1)

16 years agor23019: revert r23018 - this will require more thought.
Andrew Tridgell [Sun, 20 May 2007 08:57:01 +0000 (08:57 +0000)]
r23019: revert r23018 - this will require more thought.
(This used to be commit df60df9678e5c45fad6c7f7cb53ba8d0ce6b7cf0)

16 years agor23018: fixed a memory leak in our server side session setup code for failed
Andrew Tridgell [Sun, 20 May 2007 08:43:03 +0000 (08:43 +0000)]
r23018: fixed a memory leak in our server side session setup code for failed
session setups
(This used to be commit a4e043e1f8f3cf1ab86e6dde501722b8050bbde4)

16 years agor23017: fixed the warning we have been getting for a long time:
Andrew Tridgell [Sun, 20 May 2007 08:01:02 +0000 (08:01 +0000)]
r23017: fixed the warning we have been getting for a long time:
   pvfs_close: failed to delete XXX
during the BASE-DELETE test. It was a real bug, and could result in a
delete on close triggering for a handle that had never fully opened.
(This used to be commit 398c3724b4cd8c8073c8a77f8b0568d6b3ce1e7d)

16 years agor23013: fixed a bug in the string_replace_w() test that caused OpenBSD to die
Andrew Tridgell [Sat, 19 May 2007 07:05:14 +0000 (07:05 +0000)]
r23013: fixed a bug in the string_replace_w() test that caused OpenBSD to die
(This used to be commit 1fe20a4555aac6f011eca98f138e125de0de4321)

16 years agor23012: we need a POLICYGUID in provision
Andrew Tridgell [Sat, 19 May 2007 06:51:34 +0000 (06:51 +0000)]
r23012: we need a POLICYGUID in provision
(This used to be commit b9f8650b20e5132410153f5b61a68dca5df548ff)

16 years agor23011: initialisation functions must return NTSTATUS, otherwise we get bus
Andrew Tridgell [Sat, 19 May 2007 06:49:01 +0000 (06:49 +0000)]
r23011: initialisation functions must return NTSTATUS, otherwise we get bus
errors on platforms like sparc. This is why sun1 died during
provision.
(This used to be commit ad6a672ec3cf077d419458e2f07ebe6d9a2b94b2)

16 years agor22997: only if the output of which has a leading '/' the output is useful...
Stefan Metzmacher [Fri, 18 May 2007 09:47:53 +0000 (09:47 +0000)]
r22997: only if the output of which has a leading '/' the output is useful...

metze
(This used to be commit 34968bef6dc673374c6d017df87a99a60905d3b7)

16 years agor22996: merge HPUX compiler flag fixes from SAMBA_3_0
Stefan Metzmacher [Fri, 18 May 2007 09:20:11 +0000 (09:20 +0000)]
r22996: merge HPUX compiler flag fixes from SAMBA_3_0

metze
(This used to be commit 9a9376d902bd946e6613ff9d3c37b344dfd207cf)

16 years agor22995: don't run LOCAL-ICONV twice...
Stefan Metzmacher [Fri, 18 May 2007 09:13:07 +0000 (09:13 +0000)]
r22995: don't run LOCAL-ICONV twice...

metze
(This used to be commit 9aa328fbf6f78c02a1bdeeb125cdb27414c892c0)

16 years agor22993: - make it possible to load a dsdb_schema from ldif via the ejs bindings
Stefan Metzmacher [Fri, 18 May 2007 08:16:50 +0000 (08:16 +0000)]
r22993: - make it possible to load a dsdb_schema from ldif via the ejs bindings
- make it possible to set ntds_objectGUID and ntds_invocationId via the ejy bindings

metze
(This used to be commit df7863ea1c964ec58feedd0bf72ef64456e3a3d1)

16 years agor22992: add a function to attach the dsdb_schema to a ldb_context
Stefan Metzmacher [Fri, 18 May 2007 08:13:06 +0000 (08:13 +0000)]
r22992: add a function to attach the dsdb_schema to a ldb_context
loaded from ldif files. The first file should contain
the info's about the 'prefixMap' attribute in the first ldif chunk.
The 2nd file should contain all attributes and classes.

metze
(This used to be commit 587f70e153f17bcb6695bed831d9cadf93522690)

16 years agor22991: ignore '@foo' attributes in the repl_meta_data module
Stefan Metzmacher [Fri, 18 May 2007 08:09:51 +0000 (08:09 +0000)]
r22991: ignore '@foo' attributes in the repl_meta_data module

metze
(This used to be commit b592ac1c2c91a72a8aae8ed11d74cba3ce0778c5)

16 years agor22990: free temporary memory also on success...
Stefan Metzmacher [Fri, 18 May 2007 07:58:37 +0000 (07:58 +0000)]
r22990: free temporary memory also on success...

metze
(This used to be commit 876a6ef4857a73987d1eba127161993cf07a613b)

16 years agor22989: allow '@foo' attributes searchable as we allow '@foo' attributes
Stefan Metzmacher [Fri, 18 May 2007 07:41:43 +0000 (07:41 +0000)]
r22989: allow '@foo' attributes searchable as we allow '@foo' attributes
in all other places too...

metze
(This used to be commit 4e32aafb9ebdcc70966aaa2e3891ec9a0959535d)

16 years agor22988: fixed 2 bugs in our unsetenv() replacement code
Andrew Tridgell [Fri, 18 May 2007 06:53:57 +0000 (06:53 +0000)]
r22988: fixed 2 bugs in our unsetenv() replacement code

 1) you must not free the memory, as it is possible the memory did not
 come from malloc (try it under valgrind to test)

 2) the old code didn't cope with duplicate environment variables

I hope this will fix some of the build farm errors on irix, and maybe solaris
(This used to be commit ec6900171d066e927f004b621fb39cc7b8dcfd90)

16 years agor22987: Clarify how the events are handled in the kerberos code, and
Andrew Bartlett [Fri, 18 May 2007 05:47:33 +0000 (05:47 +0000)]
r22987: Clarify how the events are handled in the kerberos code, and
standardise with the rest of the code.

Andrew Bartlett
(This used to be commit 3aa9d70723d4377d29e33281b640499193b06c69)

16 years agor22986: error 2312 is returned when NetSessDel() fails because a matching session...
Ronnie Sahlberg [Fri, 18 May 2007 05:21:25 +0000 (05:21 +0000)]
r22986: error 2312 is returned when NetSessDel() fails because a matching session (username/clientname)
could not be found
(This used to be commit e2b46d280db114656e18f023a9efa939b5c893d5)

16 years agor22985: don't do checkins late at night ....
Andrew Tridgell [Fri, 18 May 2007 01:23:35 +0000 (01:23 +0000)]
r22985: don't do checkins late at night ....

thanks to Volker for spotting this!
(This used to be commit d28fc5f87fd4d9a9843d1295fe2a181922a476fc)

16 years agor22984: not everyone uses tridgell.net (fortunately)
Andrew Tridgell [Fri, 18 May 2007 01:22:27 +0000 (01:22 +0000)]
r22984: not everyone uses tridgell.net (fortunately)
(This used to be commit f60817d7970ab449ac327f4da312f10350b9636f)

16 years agor22983: This should ensure that torture_create_testuser() can be called,
Andrew Bartlett [Fri, 18 May 2007 01:15:50 +0000 (01:15 +0000)]
r22983: This should ensure that torture_create_testuser() can be called,
without needing to change the user's password afterwoulds.

(Accounts were being created with 'must change at next login' set).

Andrew Bartlett
(This used to be commit 7b94f2f6dbb7780fb12c8fad5e2ea6e07e72b24e)

16 years agor22972: added the basic ldif needed to support group policies in Samba4. WinXP
Andrew Tridgell [Thu, 17 May 2007 10:33:40 +0000 (10:33 +0000)]
r22972: added the basic ldif needed to support group policies in Samba4. WinXP
clients do correctly see our group policies, but the gpmc admin tool
doesn't yet work to allow you to edit the policies
(This used to be commit 4c6e01a585f59caf7d2d87833f5eedc018ed8acc)

16 years agor22971: fix build on systems without epoll
Andrew Tridgell [Thu, 17 May 2007 09:48:17 +0000 (09:48 +0000)]
r22971: fix build on systems without epoll
(This used to be commit 146303d91b4c64c87c356c3ed44ccb5774297a71)

16 years agor22970: the events code calls close(), which needs to use socket_wrapper.h in
Andrew Tridgell [Thu, 17 May 2007 09:44:58 +0000 (09:44 +0000)]
r22970: the events code calls close(), which needs to use socket_wrapper.h in
the build farm
(This used to be commit 603d8b6f1702d10234b81ccde0649d8be63ae616)

16 years agor22969: fix some more places where we could end up with more than one event
Andrew Tridgell [Thu, 17 May 2007 08:47:04 +0000 (08:47 +0000)]
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)

16 years agor22968: andrew bartlett pointed out that the parent process could add a fd to
Andrew Tridgell [Thu, 17 May 2007 07:52:33 +0000 (07:52 +0000)]
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)

16 years agor22967: Move to the TCP packet interface for the krb5_send_to_kdc plugin.
Andrew Bartlett [Thu, 17 May 2007 05:46:45 +0000 (05:46 +0000)]
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)

16 years agor22966: Make sure to return LOGON_FAILURE if the user's kerberos password is
Andrew Bartlett [Thu, 17 May 2007 05:44:51 +0000 (05:44 +0000)]
r22966: Make sure to return LOGON_FAILURE if the user's kerberos password is
incorrect.

Andrew Bartlett
(This used to be commit 9dc6f36e43170bc5bf4f94d893b5a3689460d237)

16 years agor22965: changed RAW-LOCK-BENCH to remove the scheduling uncertainty. We should
Andrew Tridgell [Thu, 17 May 2007 03:42:28 +0000 (03:42 +0000)]
r22965: changed RAW-LOCK-BENCH to remove the scheduling uncertainty. We should
always get balanced locking now
(This used to be commit 4e6df7b9b1938b91a904ab061c36d65b169f93a8)

16 years agor22964: log an error on epoll_create failing on reopen
Andrew Tridgell [Thu, 17 May 2007 02:42:14 +0000 (02:42 +0000)]
r22964: log an error on epoll_create failing on reopen
(This used to be commit a69f28599845d3ea3868a574c6b0ba8db8486ef5)

16 years agor22963: fixed the epoll/fork interaction in the epoll and aio backends
Andrew Tridgell [Thu, 17 May 2007 02:38:07 +0000 (02:38 +0000)]
r22963: fixed the epoll/fork interaction in the epoll and aio backends
(This used to be commit aeca07659aa612bee0c4dd6bdbb24c799e912909)

16 years agor22962: show progress separately for each client in RAW-BENCH-LOCK, this is
Andrew Tridgell [Thu, 17 May 2007 02:22:29 +0000 (02:22 +0000)]
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)

16 years agor22961: use EVENT_FD_AUTOCLOSE and SOCKET_FLAG_NOCLOSE to fix up some hairy
Andrew Tridgell [Thu, 17 May 2007 02:21:07 +0000 (02:21 +0000)]
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)

16 years agor22960: added a SOCKET_FLAG_NOCLOSE to allow us to tell the socket layer that
Andrew Tridgell [Thu, 17 May 2007 02:19:28 +0000 (02:19 +0000)]
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)

16 years agor22959: cope with a rather interesting interaction between epoll() and
Andrew Tridgell [Thu, 17 May 2007 02:18:29 +0000 (02:18 +0000)]
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)

16 years agor22958: For SRVSVC/NetFileClose only Administrator is allowed to close open files.
Ronnie Sahlberg [Thu, 17 May 2007 01:17:43 +0000 (01:17 +0000)]
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)

16 years agor22952: Make sure we look at extra_cflags when building custom targets.
James Peach [Wed, 16 May 2007 19:23:08 +0000 (19:23 +0000)]
r22952: Make sure we look at extra_cflags when building custom targets.
(This used to be commit 2d990cd37410cec03fa96767b0cf84d7c17ca9c4)

16 years agor22944: fix bug #4618:
Stefan Metzmacher [Wed, 16 May 2007 14:52:54 +0000 (14:52 +0000)]
r22944: fix bug #4618:

rename private -> private_data

metze
(This used to be commit 58551f2f28fce8f1fcd04736c47ecd7458f32ea2)

16 years agor22931: Fix logic in detection of the need to replace dlopen and friends.
Michael Adam [Wed, 16 May 2007 11:15:16 +0000 (11:15 +0000)]
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)

16 years agor22921: This index saves another 7 seconds off a 'make quicktest', and is a common...
Andrew Bartlett [Wed, 16 May 2007 00:17:45 +0000 (00:17 +0000)]
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)

16 years agor22913: try to work arround the unaligned memory access bug on Tru64
Stefan Metzmacher [Tue, 15 May 2007 18:23:58 +0000 (18:23 +0000)]
r22913: try to work arround the unaligned memory access bug on Tru64

metze
(This used to be commit 3a7a30ab1cf724ad2420ae2a1011479fffd826fe)

16 years agor22896: we pass SMB2-LOCK now
Stefan Metzmacher [Tue, 15 May 2007 11:00:20 +0000 (11:00 +0000)]
r22896: we pass SMB2-LOCK now

metze
(This used to be commit b8994c3d1c798a1ebca64312e4d7f019229cbff2)

16 years agor22894: don't send a 2nd request before the last one returned (at least with
Stefan Metzmacher [Tue, 15 May 2007 10:50:25 +0000 (10:50 +0000)]
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)

16 years agor22887: and servicePrincipalName ....
Andrew Tridgell [Tue, 15 May 2007 08:01:37 +0000 (08:01 +0000)]
r22887: and servicePrincipalName ....
(This used to be commit 45d668d19f661cbaff257b91ed2525577e3cf0d2)

16 years agor22886: Workaround to make RAW-NOTIFY a bit more reliable against Samba3. It
Volker Lendecke [Tue, 15 May 2007 08:01:30 +0000 (08:01 +0000)]
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)

16 years agor22885: now we use kernberos more, we need to index on userPrincipalName
Andrew Tridgell [Tue, 15 May 2007 08:00:49 +0000 (08:00 +0000)]
r22885: now we use kernberos more, we need to index on userPrincipalName
(This used to be commit 600d39e0bacfd669bdee0ea3aec6bdc02113993b)

16 years agor22884: Be consistant with the case of these constants.
Andrew Bartlett [Tue, 15 May 2007 07:16:04 +0000 (07:16 +0000)]
r22884: Be consistant with the case of these constants.

Andrew Bartlett
(This used to be commit 7b086eebd6af21674ca18c7d9b35cb2c6b57514a)

16 years agor22883: Indentation.
Andrew Bartlett [Tue, 15 May 2007 07:15:23 +0000 (07:15 +0000)]
r22883: Indentation.
(This used to be commit 7548da913d56e3420c686a7d3a924c5f987a3eb1)

16 years agor22882: It seems entirly reasonable to follow metze's suggestion and check for
Andrew Bartlett [Tue, 15 May 2007 06:51:18 +0000 (06:51 +0000)]
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)

16 years agor22881: show number of connected clients
Andrew Tridgell [Tue, 15 May 2007 05:42:16 +0000 (05:42 +0000)]
r22881: show number of connected clients
(This used to be commit 42f6c5106ea4d0e35f88e0c9523cbd13206fecb5)

16 years agor22877: Remove stray 'l'
Andrew Bartlett [Tue, 15 May 2007 03:49:21 +0000 (03:49 +0000)]
r22877: Remove stray 'l'
(This used to be commit 97960421a17ea0f48b8b355e55d796f0837c73cd)

16 years agor22876: - try to reconnect once per second, not continously
Andrew Tridgell [Tue, 15 May 2007 03:00:58 +0000 (03:00 +0000)]
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)

16 years agor22875: We want to skip this test, it will fail unless run against IPC$ (which the...
Andrew Bartlett [Tue, 15 May 2007 01:57:21 +0000 (01:57 +0000)]
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)

16 years agor22874: Expand the RPC-QFILEINFO-IPC test, and add a server implementation to match.
Andrew Bartlett [Tue, 15 May 2007 01:21:20 +0000 (01:21 +0000)]
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)

16 years agor22873: Make the RAW-QFILEINFO-IPC test pass against Win2k3.
Andrew Bartlett [Tue, 15 May 2007 00:10:18 +0000 (00:10 +0000)]
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)

16 years agor22871: restore testing against host name instead of ip address
Rafal Szczesniak [Mon, 14 May 2007 23:24:50 +0000 (23:24 +0000)]
r22871: restore testing against host name instead of ip address

rafal
(This used to be commit 5638210f2de88db5c4a769078f738b11ded5a61f)

16 years agor22866: handle incoming chained smb2 requests in our server code to let
Stefan Metzmacher [Mon, 14 May 2007 18:02:49 +0000 (18:02 +0000)]
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)

16 years agor22865: handle pending locks in smb2
Stefan Metzmacher [Mon, 14 May 2007 17:58:28 +0000 (17:58 +0000)]
r22865: handle pending locks in smb2

metze
(This used to be commit 8329fa689521b12e4ce2ac094b3e322fa4ed4bb8)

16 years agor22864: in SMB2 mode we need to cancel an existing lock with a conflicting lock
Stefan Metzmacher [Mon, 14 May 2007 17:56:00 +0000 (17:56 +0000)]
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)

16 years agor22863: in SMB2 mode we always need to return NT_STATUS_LOCK_NOT_GRANTED
Stefan Metzmacher [Mon, 14 May 2007 17:51:19 +0000 (17:51 +0000)]
r22863: in SMB2 mode we always need to return NT_STATUS_LOCK_NOT_GRANTED

metze
(This used to be commit 83a61a2892539b2bcfbdaac7ca169c99f2b4503a)

16 years agor22858: - let SMB2-LOCK-VALID-REQUEST pass against longhorn beta3
Stefan Metzmacher [Mon, 14 May 2007 17:08:18 +0000 (17:08 +0000)]
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)

16 years agor22849: map smb2 lock to the generic level
Stefan Metzmacher [Mon, 14 May 2007 13:47:03 +0000 (13:47 +0000)]
r22849: map smb2 lock to the generic level

metze
(This used to be commit fbbb144f8e5271a543c0b47b0105eccd357477ba)

16 years agor22843: pass smb2 lock requests to the ntvfs layer
Stefan Metzmacher [Mon, 14 May 2007 11:50:51 +0000 (11:50 +0000)]
r22843: pass smb2 lock requests to the ntvfs layer

metze
(This used to be commit 7fa00381ef4981ddb8f8816c924b7bb81628f4e6)