Volker Lendecke [Fri, 6 Oct 2006 15:03:41 +0000 (15:03 +0000)]
r19134: Merge the second set of C++ warning fixes from Samba3. I'll leave r19132 to
metze to merge until the questions have been answered.
Volker
Stefan Metzmacher [Fri, 6 Oct 2006 14:04:05 +0000 (14:04 +0000)]
r19131: merge from samba3:
fix the logic for the AC_PROG_CC_C99 test
metze
Simo Sorce [Fri, 6 Oct 2006 13:47:52 +0000 (13:47 +0000)]
r19129: Add comment to clarify behavior
Stefan Metzmacher [Fri, 6 Oct 2006 13:23:42 +0000 (13:23 +0000)]
r19128: - make the gdb_backtrace script more portable
- try /proc/${PID}/exe first
- fallback to the binary given on the commandline
- fallback searching the binary with 'which' from the
commandline argument
- use 'ladebug' debugger on Tru64
metze
Stefan Metzmacher [Fri, 6 Oct 2006 11:02:59 +0000 (11:02 +0000)]
r19123: - pass LDFLAGS from configure to Makefile
which should fix the build on Tru64 in the build farm.
Thanks to Bjoern Jacke for finding this!
metze
Stefan Metzmacher [Fri, 6 Oct 2006 11:01:05 +0000 (11:01 +0000)]
r19122: merge from samba3:
sync system/iconv.h
metze
Andrew Tridgell [Fri, 6 Oct 2006 10:17:52 +0000 (10:17 +0000)]
r19120: silence a warning about a test function
Andrew Tridgell [Fri, 6 Oct 2006 09:26:29 +0000 (09:26 +0000)]
r19118: get rid of a bunch of bool misuse warnings
Andrew Tridgell [Fri, 6 Oct 2006 07:45:31 +0000 (07:45 +0000)]
r19117: I've changed the checker wrapper on snab to allow for a
.checker_innocent file, similar to our .valgrind_suppressions file.
Andrew Tridgell [Fri, 6 Oct 2006 07:44:36 +0000 (07:44 +0000)]
r19116: fixed a checker warning
Andrew Bartlett [Fri, 6 Oct 2006 07:09:22 +0000 (07:09 +0000)]
r19115: Add the mapping required between Samba4's AD schema OIDs and what
Fedora DS can support.
Andrew Bartlett
Andrew Tridgell [Fri, 6 Oct 2006 06:52:30 +0000 (06:52 +0000)]
r19114: fixed another checker warning and a possible error on allocation
failure
Andrew Tridgell [Fri, 6 Oct 2006 06:42:05 +0000 (06:42 +0000)]
r19113: fixed another checker warning.
Andrew Tridgell [Fri, 6 Oct 2006 06:38:26 +0000 (06:38 +0000)]
r19112: fixed a checker warning.
In case you haven't noticed, lots of our packages now run the IBM
checker in the build farm on 'snab'
Andrew Tridgell [Fri, 6 Oct 2006 05:36:29 +0000 (05:36 +0000)]
r19111: fixed basic web server operation
Stefan Metzmacher [Thu, 5 Oct 2006 11:46:31 +0000 (11:46 +0000)]
r19098: with
export MAKE_TEST_ENABLE_PCAP=yes
make test will use SOCKET_WRAPPER_PCAP_FILE support
and will run each test with a different file
the capture will be removed unless the test fails.
the TEST PCAP: line will show the location of the file
metze
Stefan Metzmacher [Thu, 5 Oct 2006 11:39:59 +0000 (11:39 +0000)]
r19097: add support for SUCKET_WRAPPER_PCAP_FILE
we may need to rework the code to use something like PUSH_U32()
into a data blob instead of the structs for the header layout.
metze
Stefan Metzmacher [Thu, 5 Oct 2006 07:51:51 +0000 (07:51 +0000)]
r19092: active replica records cannot expire!
we handle that in the scavenging code, but were missing that
in the wins server name query code...
metze
Stefan Metzmacher [Thu, 5 Oct 2006 07:47:56 +0000 (07:47 +0000)]
r19091: merge from samba3:
remove some -Wl,-rpath combinations with /usr/lib
metze
Stefan Metzmacher [Thu, 5 Oct 2006 07:03:41 +0000 (07:03 +0000)]
r19084: make socket_wrapper more portable (standalone) and not use uintX_t
metze
Stefan Metzmacher [Thu, 5 Oct 2006 06:27:41 +0000 (06:27 +0000)]
r19082: add the source vs. destination address and tcp logic
for SOCKET_WRAPPER_PCAP_FILE support.
metze
Volker Lendecke [Wed, 4 Oct 2006 20:59:06 +0000 (20:59 +0000)]
r19079: talloc_array can fail
Volker Lendecke [Wed, 4 Oct 2006 20:22:08 +0000 (20:22 +0000)]
r19076: ldb_dn_copy_partial can fail
Volker Lendecke [Wed, 4 Oct 2006 20:15:23 +0000 (20:15 +0000)]
r19075: Fix a potential NULL dereference
Volker Lendecke [Wed, 4 Oct 2006 19:45:34 +0000 (19:45 +0000)]
r19074: Merge from 3_0: Fix a potential NULL dereference.
Volker
Simo Sorce [Wed, 4 Oct 2006 19:08:36 +0000 (19:08 +0000)]
r19069: The sequence number is a 64 bit unsigned integer
Well spotted Volker
Volker Lendecke [Wed, 4 Oct 2006 19:03:29 +0000 (19:03 +0000)]
r19068: Fix a potential NULL dereference
Stefan Metzmacher [Wed, 4 Oct 2006 12:33:36 +0000 (12:33 +0000)]
r19063: merge from samba3
needed for dl* errors in iconv_open()
metze
Derrell Lipman [Tue, 3 Oct 2006 18:07:46 +0000 (18:07 +0000)]
r19059: allow dash in URLs
Derrell Lipman [Tue, 3 Oct 2006 02:38:08 +0000 (02:38 +0000)]
r19055: JSON-RPC is working! It passes the small qooxdoo JSON-RPC test suite
perfectly.
This check in covers the remaining fixes and enhancements to complete the
server. In a subsequent check-in, I need to learn about the new qooxdoo
packaging mechanism. Although it'd be nice to have the whole source tree,
that's huge and needn't be in samba svn. It's now supposed to be very easy to
package qooxdoo, so I'll figure out how that's done and then check in the
relevant small number of files.
Steps after that involve generating the stubs to allow various ejs functions
to be called via JSON-RPC.
Derrell
Rafal Szczesniak [Mon, 2 Oct 2006 22:18:36 +0000 (22:18 +0000)]
r19053: match the flag values with the actual equivalents in samr.idl
rafal
Derrell Lipman [Mon, 2 Oct 2006 20:44:19 +0000 (20:44 +0000)]
r19052: clarify what actually does what
Derrell Lipman [Mon, 2 Oct 2006 20:39:31 +0000 (20:39 +0000)]
r19051: JSON-RPC server work-in-progress. It's almost working.
Gerald Carter [Mon, 2 Oct 2006 16:19:05 +0000 (16:19 +0000)]
r19049: Samba 3 client fixes
* Make sure to check for NULL pointers when dealing with
[out,unique] before assigning valoues
* Detect RPC faults and return immediately
Derrell Lipman [Mon, 2 Oct 2006 15:23:03 +0000 (15:23 +0000)]
r19048: ensure our memory gets cleaned up even upon exception
Stefan Metzmacher [Mon, 2 Oct 2006 10:45:00 +0000 (10:45 +0000)]
r19036: add LOCAL-REPLACE and reorder the testlist
metze
Stefan Metzmacher [Mon, 2 Oct 2006 10:38:24 +0000 (10:38 +0000)]
r19035: add LOCAL-REPLACE test
metze
Stefan Metzmacher [Mon, 2 Oct 2006 10:35:40 +0000 (10:35 +0000)]
r19033: prepare to use the libreplace testsuite as LOCAL-REPLACE in smbtorture
metze
Stefan Metzmacher [Mon, 2 Oct 2006 09:26:05 +0000 (09:26 +0000)]
r19032: let the getdents replacement fail and see what the build-farm says.
metze
Stefan Metzmacher [Mon, 2 Oct 2006 08:56:35 +0000 (08:56 +0000)]
r19029: test if opendir() on a file sets errno = ENOTDIR
metze
Volker Lendecke [Mon, 2 Oct 2006 08:35:19 +0000 (08:35 +0000)]
r19027: Modify RPC-SAMBA3-SPOOLSS so that it can be activated in the build farm
Rafal Szczesniak [Mon, 2 Oct 2006 06:00:14 +0000 (06:00 +0000)]
r19025: - remove read-only and policy dependent fields and flags
- do not stop NET-API-USERMODIFY test when a single field fails
- add account flags to the fields tested
- separate "cleanup" step from closing domain at the end
rafal
Rafal Szczesniak [Mon, 2 Oct 2006 05:53:45 +0000 (05:53 +0000)]
r19024: remove read-only and policy dependent fields and flags
from user modify routines.
rafal
Stefan Metzmacher [Mon, 2 Oct 2006 05:52:42 +0000 (05:52 +0000)]
r19023: lets see what the build-farm says about trying the
getdirentries() based readdir() replacement first.
metze
Derrell Lipman [Mon, 2 Oct 2006 02:39:05 +0000 (02:39 +0000)]
r19022: eliminate a warning
Derrell Lipman [Mon, 2 Oct 2006 02:38:43 +0000 (02:38 +0000)]
r19021: match the prototype for a trigger function
Derrell Lipman [Mon, 2 Oct 2006 02:38:02 +0000 (02:38 +0000)]
r19020: move jsonrpc_include to a more appropriate location in the file, and call the setup function for parsing literals.
Derrell Lipman [Mon, 2 Oct 2006 02:36:27 +0000 (02:36 +0000)]
r19019: Add a parser for javascript literals. This is implemented for parsing JSON
strings, but is generally useful for creating ejs variables from object or
array literals, which aren't supported in the old version of ejs that we're
using.
This parser is implemented in C, but is callable from an ejs script via
literal_to_var().
Volker Lendecke [Sun, 1 Oct 2006 20:45:46 +0000 (20:45 +0000)]
r19017: Merge from Samba3:
Attempt to fix the BSD RAW-CHKPATH failures: In Samba3 we rely on opendir
returning ENOTDIR when the file opened is not a directory. Can we merge this
back into Samba4?
This includes the tabs->spaces fix requested by Stefan.
Volker
Andrew Tridgell [Sat, 30 Sep 2006 07:54:20 +0000 (07:54 +0000)]
r19009: ensure that data values from ldap libs are null terminated, to allow
ldb_msg_find_attr_as_string() to work correctly.
Thanks to Jim Myers for spotting this!
Stefan Metzmacher [Fri, 29 Sep 2006 12:38:51 +0000 (12:38 +0000)]
r18999: merge from samba3:
- make more usage of PRINTF_ATTRIBUTE()
- vsyslog takes a 'const char *format'
metze
Stefan Metzmacher [Fri, 29 Sep 2006 12:24:23 +0000 (12:24 +0000)]
r18997: we have a replacement for vsyslog in libreplace so libroken doesn't need to care about it
metze
Stefan Metzmacher [Fri, 29 Sep 2006 10:50:12 +0000 (10:50 +0000)]
r18995: - fix bug 4078
- talloc_free(talloc_autofree_context()); should not result
in a SIGABORT on exit
- add a test for this, but this test can also pass in the standalone build
and samba3, as samba4 uses talloc_autofree_context()
metze
Stefan Metzmacher [Fri, 29 Sep 2006 10:20:51 +0000 (10:20 +0000)]
r18994: - torture_register_suite should be public
- some whitespace cleanups
metze
Stefan Metzmacher [Fri, 29 Sep 2006 09:31:20 +0000 (09:31 +0000)]
r18992: prepare SOCKET_WRAPPER_PCAP_FILE support
metze
Volker Lendecke [Fri, 29 Sep 2006 09:12:55 +0000 (09:12 +0000)]
r18991: Fix bug 4133 -- Thanks to Olaf Flebbe
Andrew Bartlett [Fri, 29 Sep 2006 04:45:15 +0000 (04:45 +0000)]
r18989: Fixes found by these two LDAP testsuites:
- http://www.ee.oulu.fi/research/ouspg/protos/testing/c06/ldapv3/
- http://gleg.net/protover_ldap_sample.shtml
Also fixes found by a subsequent audit of the code for similar issues.
Andrew Bartlett [Thu, 28 Sep 2006 17:08:17 +0000 (17:08 +0000)]
r18979: With these extra indexes (also added for the normal case) and a
DB_CONFIG file, we now get reasonable enought performance to pass
'make test' against OpenLDAP.
We do have to double the maximum runtime for the torture client however.
Andrew Bartlett
Andrew Bartlett [Thu, 28 Sep 2006 17:06:38 +0000 (17:06 +0000)]
r18978: Fix bug found by:
http://www.ee.oulu.fi/research/ouspg/protos/testing/c06/ldapv3/
The issue here is that if the UTF8 conversion fails, because this
isn't actually UTF8 data, then we need to do a binary compare instead.
Andrew Bartlett
Andrew Bartlett [Thu, 28 Sep 2006 16:58:28 +0000 (16:58 +0000)]
r18977: Seperate these asserts, so we know which fired.
Andrew Bartlett
Stefan Metzmacher [Thu, 28 Sep 2006 15:12:44 +0000 (15:12 +0000)]
r18975: follow the advice from "William Jojo" <jojowil@hvcc.edu>
and pass -bbigtoc also to the linker when building shared libs
metze
Stefan Metzmacher [Thu, 28 Sep 2006 15:10:11 +0000 (15:10 +0000)]
r18974: we don't have the configure check that sets
ac_cv_gnu_ld_no_default_allow_shlib_undefined
and as -Wl,--allow-shlib-undefined is supported on SuSE 7.3
I don't see a problem is always pass it explicit
metze
Andrew Tridgell [Thu, 28 Sep 2006 06:49:14 +0000 (06:49 +0000)]
r18972: we don't need this now all builds in the build farm are limited to 150
file descriptors. We'll pretty quickly find leaks :)
Andrew Tridgell [Thu, 28 Sep 2006 06:44:47 +0000 (06:44 +0000)]
r18971: avoid strndup is a few places. Fixes a minor memory leak, and should
fix RPC-LSA on AIX.
Andrew Tridgell [Thu, 28 Sep 2006 06:43:27 +0000 (06:43 +0000)]
r18970: avoid strndup and strnlen on AIX. They are quite broken. See
http://lists.samba.org/archive/samba-technical/2004-August/036915.html
Andrew Tridgell [Thu, 28 Sep 2006 01:17:16 +0000 (01:17 +0000)]
r18968: EWOULDBLOCK should also be mapped to STATUS_MORE_ENTRIES
Andrew Tridgell [Wed, 27 Sep 2006 23:24:36 +0000 (23:24 +0000)]
r18965: fixed the bug with RPC-NETLOGON and solaris sparc machines. This bug
took a _LONG_ time to find.
The problem was that when encoding/decoding password buffers we use
the pull/push string functions, which by default align unicode
strings. But on solaris sparc the buffer is not aligned always (its a
stack variable, an array of uint8_t). That perfectly OK in C, so we
just tell the pull/push functions not to auto-align.
Stefan Metzmacher [Wed, 27 Sep 2006 14:47:00 +0000 (14:47 +0000)]
r18960: fix caching of some configure tests AC_CACHE_CHECK()
*needs* '_cv_' in the shell var to do caching...
metze
Stefan Metzmacher [Wed, 27 Sep 2006 14:16:32 +0000 (14:16 +0000)]
r18957: we need to include unistd.h in system/network.h because
it contains the ioctl() prototype on some systems
and we need to make sure it gets included before socket_wrapper
defines ioctl swrap_ioctl
metze
Stefan Metzmacher [Wed, 27 Sep 2006 11:15:03 +0000 (11:15 +0000)]
r18948: fix the build on solaris, the ioctl() prototype
in unistd.h was included after libreplace defined ioctl swrap_ioctl
metze
Stefan Metzmacher [Wed, 27 Sep 2006 10:13:45 +0000 (10:13 +0000)]
r18947: overload listen() and ioctl() in socket_wrapper
metze
Stefan Metzmacher [Wed, 27 Sep 2006 06:48:24 +0000 (06:48 +0000)]
r18946: fix compiler warning
metze
Stefan Metzmacher [Wed, 27 Sep 2006 06:42:19 +0000 (06:42 +0000)]
r18945: fix compiler warnings and end-of-non-void function bugs
metze
Stefan Metzmacher [Wed, 27 Sep 2006 06:39:56 +0000 (06:39 +0000)]
r18944: talloc_reference() can fail...
(remove compiler warning)
metze
Andrew Tridgell [Wed, 27 Sep 2006 06:02:07 +0000 (06:02 +0000)]
r18943: Samba4 wants its databases private to root. I know some of them could
potentially be public, but we'd need to think about them
carefully.
Andrew Tridgell [Wed, 27 Sep 2006 05:57:41 +0000 (05:57 +0000)]
r18942: add a ldb_set_create_perms() function in ldb. I didn't call it
ldb_set_umask() (which is what we had discussed) as it doesn't
actually set the umask (in effect it sets the inverse of the umask -
the perms to be used for the file)
Andrew Tridgell [Wed, 27 Sep 2006 03:34:50 +0000 (03:34 +0000)]
r18939: don't rely on the umask being right in ldb creation. Both Samba3 and
Samba4 smbd force the umask to 0, which meant we ended up with ldb
being world writable.
This isn't really an ideal fix, as it means ldb no longer honors umask
(as it should do, like all good libraries).
Unfortunately the 'proper' fix is too complex for now
this also merges a tiny code style fix from s4 to s3
Andrew Tridgell [Wed, 27 Sep 2006 02:00:13 +0000 (02:00 +0000)]
r18936: hopefully fix the test for negative enum values. When a compiler
truncates the enums, the test was passing.
Andrew Bartlett [Tue, 26 Sep 2006 22:14:15 +0000 (22:14 +0000)]
r18933: Add helpful emacs marker
Derrell Lipman [Tue, 26 Sep 2006 16:58:27 +0000 (16:58 +0000)]
r18925: Add current snapshot of the ejs-2.0 code. Tridge, will you be incorporating this?
Stefan Metzmacher [Tue, 26 Sep 2006 13:15:31 +0000 (13:15 +0000)]
r18918: - bail out with unsupported option to socket()
- don't reuse portnumbers in the autobind code
- use if (!...) return; logic instead of if (...) { do everything } return
for swrap_close
metze
Andrew Tridgell [Tue, 26 Sep 2006 11:31:14 +0000 (11:31 +0000)]
r18917: having 255 virtual interfaces available in socket wrapper means we
stat() 240 files that don't exist on every broadcast. That's a bit
excessive!
reduce max virtual interfaces to 16
Andrew Tridgell [Tue, 26 Sep 2006 11:27:09 +0000 (11:27 +0000)]
r18916: fixed the messaging layer on *BSD systems. When a socket was full we
were getting ENOBUFS, which mapped to NT_STATUS_NO_MEMORY, which in
turn caused the messaging code to loop trying until it gave up.
Now it correctly falls back to select. Messaging speed goes from 3
messages per second to over 7000 on my test vmware box. Not bad for a
one line change :)
Stefan Metzmacher [Tue, 26 Sep 2006 10:34:40 +0000 (10:34 +0000)]
r18915: fix usage of popt, do make -W setting the recursive flag on SuSE 10.1
metze
Andrew Tridgell [Tue, 26 Sep 2006 05:40:57 +0000 (05:40 +0000)]
r18914: this bug fix needs to be for just hpux 11.11
Andrew Tridgell [Tue, 26 Sep 2006 03:11:31 +0000 (03:11 +0000)]
r18913: an attempt to get tdb/ldb working on the HPUX box 'gwen'. This idea
come from Don McCall. Don may well be able to provide us with a
configure test in the future which does this in a nicer way, I just
want to see if it works now.
Derrell Lipman [Tue, 26 Sep 2006 02:26:36 +0000 (02:26 +0000)]
r18911: add a JSON encoder
Andrew Tridgell [Tue, 26 Sep 2006 01:21:34 +0000 (01:21 +0000)]
r18910: Change ldb_msg_add_string() to not actually add an attribute if the
string is zero length. This allows callers to not have to worry about
creating an invalid ldap attribute.
See extensive discussion on samba-technical list :-)
Simo Sorce [Mon, 25 Sep 2006 22:55:56 +0000 (22:55 +0000)]
r18909: use newer functions that were introduced after this code was made
Simo Sorce [Mon, 25 Sep 2006 22:53:03 +0000 (22:53 +0000)]
r18908: Store the schema structure into an opaque pointer so that it can be reused by multiple connections
Stefan Metzmacher [Mon, 25 Sep 2006 16:59:00 +0000 (16:59 +0000)]
r18903: merge from samba3:
define HAVE_LDB_LDAP and HAVE_LDB_SQLITE3
metze
Volker Lendecke [Mon, 25 Sep 2006 05:59:38 +0000 (05:59 +0000)]
r18894: Merge const fixes from 3_0
Rafal Szczesniak [Mon, 25 Sep 2006 05:03:08 +0000 (05:03 +0000)]
r18890: sort the flags out and remove unknown as there's still
quite a few of them (not sure if these are used actually).
rafal
Rafal Szczesniak [Mon, 25 Sep 2006 04:43:23 +0000 (04:43 +0000)]
r18887: add flags found while on the plane.
rafal
Simo Sorce [Mon, 25 Sep 2006 04:04:40 +0000 (04:04 +0000)]
r18885: Fix bug in our IDL pointed out by Ronnie
Brad Henry [Mon, 25 Sep 2006 03:54:46 +0000 (03:54 +0000)]
r18884: client_test.exp getting changed to client_tests.exp was an intentional error that I inserted for testing earlier and forgot to take out before commiting.
The other error was a real bug. :)
Brad Henry [Mon, 25 Sep 2006 03:29:59 +0000 (03:29 +0000)]
r18883: Start including test_functions.sh.
test_win.sh has been rewritten to use the testit() function from test_functions.sh.
Simo Sorce [Mon, 25 Sep 2006 02:56:41 +0000 (02:56 +0000)]
r18882: make style consistent
Simo Sorce [Mon, 25 Sep 2006 02:56:20 +0000 (02:56 +0000)]
r18881: remove wrong check and statement.
to manipulate rootDSE we use ldb_dn_new() as base and that has 0 elements.
Derrell Lipman [Mon, 25 Sep 2006 02:49:56 +0000 (02:49 +0000)]
r18880: JSON-RPC work in progress