11 years agor19140: allow own authentication handling by jsonrpc apps
Derrell Lipman [Fri, 6 Oct 2006 15:38:43 +0000 (15:38 +0000)]
r19140: allow own authentication handling by jsonrpc apps
(This used to be commit de2eb8df0c1aa361adbf14a5984b1719e17f70cb)

11 years agor19139: typos; consitent ordering of operations
Derrell Lipman [Fri, 6 Oct 2006 15:37:39 +0000 (15:37 +0000)]
r19139: typos; consitent ordering of operations
(This used to be commit aaab47cb910fbbec6913bc5f796f0d6d479f729d)

11 years agor19138: add authentication capability; fix typos
Derrell Lipman [Fri, 6 Oct 2006 15:36:07 +0000 (15:36 +0000)]
r19138: add authentication capability; fix typos
(This used to be commit d8f0701feb85b7ca70edd5e8a9581661eb6c52e2)

11 years agor19136: No conflict, after "svn up" it applied correctly", merge 19126 from 3_0
Volker Lendecke [Fri, 6 Oct 2006 15:16:18 +0000 (15:16 +0000)]
r19136: No conflict, after "svn up" it applied correctly", merge 19126 from 3_0
(This used to be commit 042a22b6dd34bb147cf4f8cc10f98d4cda3ccd55)

11 years agor19134: Merge the second set of C++ warning fixes from Samba3. I'll leave r19132 to
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.

(This used to be commit e946717bf600f4ff922dc55a9a5d259535d0d1c9)

11 years agor19131: merge from samba3:
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

(This used to be commit 5ccc020639b72a75edfc7f29775b298acf27216e)

11 years agor19129: Add comment to clarify behavior
Simo Sorce [Fri, 6 Oct 2006 13:47:52 +0000 (13:47 +0000)]
r19129: Add comment to clarify behavior
(This used to be commit 7180f38e9e436ca7a7c49f2d4b315ec5eb9c7631)

11 years agor19128: - make the gdb_backtrace script more portable
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

(This used to be commit f792a9532d0e263984c37d32bcf059b955e20b2c)

11 years agor19123: - pass LDFLAGS from configure to Makefile
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!

(This used to be commit 165722a16cf9b8e3f352ed44285cdae0fba66536)

11 years agor19122: merge from samba3:
Stefan Metzmacher [Fri, 6 Oct 2006 11:01:05 +0000 (11:01 +0000)]
r19122: merge from samba3:

sync system/iconv.h

(This used to be commit 9c74964b619fd0754d3b72c21fe2cef4d24e7ad5)

11 years agor19120: silence a warning about a test function
Andrew Tridgell [Fri, 6 Oct 2006 10:17:52 +0000 (10:17 +0000)]
r19120: silence a warning about a test function
(This used to be commit 59915150f0e303222a16f9d08d3ab31db4e4c617)

11 years agor19118: get rid of a bunch of bool misuse warnings
Andrew Tridgell [Fri, 6 Oct 2006 09:26:29 +0000 (09:26 +0000)]
r19118: get rid of a bunch of bool misuse warnings
(This used to be commit e620f44643caf93a8bcb203a966c986c14a8dc0e)

11 years agor19117: I've changed the checker wrapper on snab to allow for a
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.
(This used to be commit 8228efdb93be20cc3255fbd55336fac89d1bc2d9)

11 years agor19116: fixed a checker warning
Andrew Tridgell [Fri, 6 Oct 2006 07:44:36 +0000 (07:44 +0000)]
r19116: fixed a checker warning
(This used to be commit 48243721df27fa68b3232d71b411fba1e0ab7010)

11 years agor19115: Add the mapping required between Samba4's AD schema OIDs and what
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
(This used to be commit bdeb10de2e751e7f0b12d5658ad55a4e7827bbd5)

11 years agor19114: fixed another checker warning and a possible error on allocation
Andrew Tridgell [Fri, 6 Oct 2006 06:52:30 +0000 (06:52 +0000)]
r19114: fixed another checker warning and a possible error on allocation
(This used to be commit bc02f7ef96e164a59441e3fd9429221be83fc7e4)

11 years agor19113: fixed another checker warning.
Andrew Tridgell [Fri, 6 Oct 2006 06:42:05 +0000 (06:42 +0000)]
r19113: fixed another checker warning.
(This used to be commit d12550af01f8d4c135fbf6f429852c31570ec92b)

11 years agor19112: fixed a 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'
(This used to be commit b39a79f17c9d8729264436bb774e8bd2b88e12f9)

11 years agor19111: fixed basic web server operation
Andrew Tridgell [Fri, 6 Oct 2006 05:36:29 +0000 (05:36 +0000)]
r19111: fixed basic web server operation
(This used to be commit 290468ede533044ae2ea4dcdbb551fb776406c3e)

11 years agor19098: with
Stefan Metzmacher [Thu, 5 Oct 2006 11:46:31 +0000 (11:46 +0000)]
r19098: with

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

(This used to be commit 5095783cdf01db9d28392ba0d88186c1a4df654b)

11 years agor19097: add support for SUCKET_WRAPPER_PCAP_FILE
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.

(This used to be commit 990dfc98e42a1c2369e77aa5cc2139680f4b16af)

11 years agor19092: active replica records cannot expire!
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...

(This used to be commit 7fb8dd3ab7a50b6fd77c74cb9078c62013b04a54)

11 years agor19091: merge from samba3:
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

(This used to be commit 66c6aab37ea24ae3f867b34f3b8039921fa2f718)

11 years agor19084: make socket_wrapper more portable (standalone) and not use uintX_t
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

(This used to be commit 7e89a0a28263e36ef7410122f987edf369154651)

11 years agor19082: add the source vs. destination address and tcp logic
Stefan Metzmacher [Thu, 5 Oct 2006 06:27:41 +0000 (06:27 +0000)]
r19082: add the source vs. destination address and tcp logic

(This used to be commit 20945409b89be094c958f5f43c8c158f223f7911)

11 years agor19079: talloc_array can fail
Volker Lendecke [Wed, 4 Oct 2006 20:59:06 +0000 (20:59 +0000)]
r19079: talloc_array can fail
(This used to be commit 441ad8a45c390f807a6ec5f27d585aad54f3b210)

11 years agor19076: ldb_dn_copy_partial can fail
Volker Lendecke [Wed, 4 Oct 2006 20:22:08 +0000 (20:22 +0000)]
r19076: ldb_dn_copy_partial can fail
(This used to be commit 78aa689a74941cd6873a91c429889a4c1d1a6432)

11 years agor19075: Fix a potential NULL dereference
Volker Lendecke [Wed, 4 Oct 2006 20:15:23 +0000 (20:15 +0000)]
r19075: Fix a potential NULL dereference
(This used to be commit 84ae80b39bfa49fe7f9fa801d45a79bf04df8aff)

11 years agor19074: Merge from 3_0: 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.

(This used to be commit af72af684bca68c1759be1357f817db7be699eed)

11 years agor19069: The sequence number is a 64 bit unsigned integer
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
(This used to be commit f4239ef5983cfc06fd5cab42448564faed676944)

11 years agor19068: Fix a potential NULL dereference
Volker Lendecke [Wed, 4 Oct 2006 19:03:29 +0000 (19:03 +0000)]
r19068: Fix a potential NULL dereference
(This used to be commit 2dff8ee8cc8b9faf3fbec46d458d6de214622afc)

11 years agor19063: merge from samba3
Stefan Metzmacher [Wed, 4 Oct 2006 12:33:36 +0000 (12:33 +0000)]
r19063: merge from samba3

needed for dl* errors in iconv_open()

(This used to be commit 91c29e425a015d2ee8e1eff61aa2c0d4083c4e89)

11 years agor19059: allow dash in URLs
Derrell Lipman [Tue, 3 Oct 2006 18:07:46 +0000 (18:07 +0000)]
r19059: allow dash in URLs
(This used to be commit 3dade8d761c4a342cf5ee9dba8d10812eb22b877)

11 years agor19055: JSON-RPC is working! It passes the small qooxdoo JSON-RPC test suite
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

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.

(This used to be commit 5bfebbda7a5d28d4deb31c54a8feb24c4416cbf6)

11 years agor19053: match the flag values with the actual equivalents in samr.idl
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

(This used to be commit 07aee708118070f99d42e8a25e28680e79c8f49c)

11 years agor19052: clarify what actually does what
Derrell Lipman [Mon, 2 Oct 2006 20:44:19 +0000 (20:44 +0000)]
r19052: clarify what actually does what
(This used to be commit 0218a1798978f92491fbf88eaffbc3226b640b5e)

11 years agor19051: JSON-RPC server work-in-progress. It's almost working.
Derrell Lipman [Mon, 2 Oct 2006 20:39:31 +0000 (20:39 +0000)]
r19051: JSON-RPC server work-in-progress.  It's almost working.
(This used to be commit 6e9cb2ed1cf87aed322fd7821237d088c2fef340)

11 years agor19049: Samba 3 client fixes
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
(This used to be commit c96dae478c2fee2fede9c853a71c8079bbb8ba47)

11 years agor19048: ensure our memory gets cleaned up even upon exception
Derrell Lipman [Mon, 2 Oct 2006 15:23:03 +0000 (15:23 +0000)]
r19048: ensure our memory gets cleaned up even upon exception
(This used to be commit bcf5e98a8c83791db93a9024b3433f9d5ee3cc7e)

11 years agor19036: add LOCAL-REPLACE and reorder the testlist
Stefan Metzmacher [Mon, 2 Oct 2006 10:45:00 +0000 (10:45 +0000)]
r19036: add LOCAL-REPLACE and reorder the testlist

(This used to be commit c8070c38f2915e8f56fef62242d3ab9a202e4c34)

11 years agor19035: add LOCAL-REPLACE test
Stefan Metzmacher [Mon, 2 Oct 2006 10:38:24 +0000 (10:38 +0000)]
r19035: add LOCAL-REPLACE test

(This used to be commit e95a1ab2cd568ef5492dfae130cb2e937ac15194)

11 years agor19033: prepare to use the libreplace testsuite as LOCAL-REPLACE in smbtorture
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

(This used to be commit 71fc73e11cee89f1b52cda5a32468a74a38cecc3)

11 years agor19032: let the getdents replacement fail and see what the build-farm says.
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.

(This used to be commit 4ed53dfafcbafbad8f2cde65e84dc0fe32fa62f8)

11 years agor19029: test if opendir() on a file sets errno = ENOTDIR
Stefan Metzmacher [Mon, 2 Oct 2006 08:56:35 +0000 (08:56 +0000)]
r19029: test if opendir() on a file sets errno = ENOTDIR

(This used to be commit 6b5f06b059583f9d685d71d48299ab334581c179)

11 years agor19027: Modify RPC-SAMBA3-SPOOLSS so that it can be activated in the build farm
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
(This used to be commit 7304abe5958fde1940439f7d95da96e16ea4bc57)

11 years agor19025: - remove read-only and policy dependent fields and flags
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

(This used to be commit 16fde3b8e2c93ec10e43bb09334bf460db8ac70b)

11 years agor19024: remove read-only and policy dependent fields and flags
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.

(This used to be commit 7ca0d3dbcb9193c0f023e7c43764c7557925bb0e)

11 years agor19023: lets see what the build-farm says about trying the
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.

(This used to be commit 268c8bc7ef63ca7fd7900bd0aec345b895512c68)

11 years agor19022: eliminate a warning
Derrell Lipman [Mon, 2 Oct 2006 02:39:05 +0000 (02:39 +0000)]
r19022: eliminate a warning
(This used to be commit d48b2d83057b8e78e3ed31f56578e18ef9b9aed6)

11 years agor19021: match the prototype for a trigger function
Derrell Lipman [Mon, 2 Oct 2006 02:38:43 +0000 (02:38 +0000)]
r19021: match the prototype for a trigger function
(This used to be commit f2f191891582af7dcb6d38c14e4ef7afc361299a)

11 years agor19020: move jsonrpc_include to a more appropriate location in the file, and call...
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.
(This used to be commit bb07f606dedde5c63f190229b8dbb85f3d1342f7)

11 years agor19019: Add a parser for javascript literals. This is implemented for parsing JSON
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

This parser is implemented in C, but is callable from an ejs script via
(This used to be commit 82fdcd9339a8ffb1016b96c06f7d6580aa759174)

11 years agor19017: Merge from Samba3:
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.

(This used to be commit 7b9ee1171ddc89537ba3b286f20c722fb70c980b)

11 years agor19009: ensure that data values from ldap libs are null terminated, to allow
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!
(This used to be commit b2076c1a7e4b70644b59689ce46952ef940be6b0)

11 years agor18999: merge from samba3:
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'

(This used to be commit cdcd4232d2f383f4d2f9ca1d049b7b3cc7b58359)

11 years agor18997: we have a replacement for vsyslog in libreplace so libroken doesn't need...
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

(This used to be commit e8c2f53746307a0ae078b07f4a80546d8fb7430f)

11 years agor18995: - fix bug 4078
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()

(This used to be commit 2be48c1b033dceb9517826054b8ea97df2c94472)

11 years agor18994: - torture_register_suite should be public
Stefan Metzmacher [Fri, 29 Sep 2006 10:20:51 +0000 (10:20 +0000)]
r18994: - torture_register_suite should be public
- some whitespace cleanups

(This used to be commit 49755f2224df7e4448853bbe493b6aeeac365cb2)

11 years agor18992: prepare SOCKET_WRAPPER_PCAP_FILE support
Stefan Metzmacher [Fri, 29 Sep 2006 09:31:20 +0000 (09:31 +0000)]
r18992: prepare SOCKET_WRAPPER_PCAP_FILE support

(This used to be commit 400098416c1a4d7ae51b86eced51bffd6134296a)

11 years agor18991: Fix bug 4133 -- Thanks to Olaf Flebbe
Volker Lendecke [Fri, 29 Sep 2006 09:12:55 +0000 (09:12 +0000)]
r18991: Fix bug 4133 -- Thanks to Olaf Flebbe
(This used to be commit d8bea42bb78619ae35a9680b24fe9eee5f25997d)

11 years agor18989: Fixes found by these two LDAP testsuites:
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.
(This used to be commit 441a4f6262459dabfefd9bb12622ada9c007a60c)

11 years agor18979: With these extra indexes (also added for the normal case) and a
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
(This used to be commit 5b3c8cc036c1180c9e96d9aaacd3f2e0a83460e5)

11 years agor18978: Fix bug found by:
Andrew Bartlett [Thu, 28 Sep 2006 17:06:38 +0000 (17:06 +0000)]
r18978: Fix bug found by:

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
(This used to be commit a113e47784157ec6086b014c1fc998e8a23e7382)

11 years agor18977: Seperate these asserts, so we know which fired.
Andrew Bartlett [Thu, 28 Sep 2006 16:58:28 +0000 (16:58 +0000)]
r18977: Seperate these asserts, so we know which fired.

Andrew Bartlett
(This used to be commit 9b2003618b28cb045e74937803e9aad773781803)

11 years agor18975: follow the advice from "William Jojo" <jojowil@hvcc.edu>
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

(This used to be commit 9c77de282107d28362497aff60fed81e77620a87)

11 years agor18974: we don't have the configure check that sets
Stefan Metzmacher [Thu, 28 Sep 2006 15:10:11 +0000 (15:10 +0000)]
r18974: we don't have the configure check that sets
and as -Wl,--allow-shlib-undefined is supported on SuSE 7.3
I don't see a problem is always pass it explicit

(This used to be commit 79db6bddc5fc1b97f0165348f72b6a2489b62be0)

11 years agor18972: we don't need this now all builds in the build farm are limited to 150
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 :)
(This used to be commit be70992d71d7b8db64702f9be2b29aac3e463590)

11 years agor18971: avoid strndup is a few places. Fixes a minor memory leak, and should
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.
(This used to be commit 6cce709d08579f4e00b44b692332a557b0ea3b86)

11 years agor18970: avoid strndup and strnlen on AIX. They are quite broken. See
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
(This used to be commit c178c84f01166609e6bd3393d39fb0034130167b)

11 years agor18968: EWOULDBLOCK should also be mapped to STATUS_MORE_ENTRIES
Andrew Tridgell [Thu, 28 Sep 2006 01:17:16 +0000 (01:17 +0000)]
r18968: EWOULDBLOCK should also be mapped to STATUS_MORE_ENTRIES
(This used to be commit 27114fe1752f20c58948b34264e38db263f7a0ea)

11 years agor18965: fixed the bug with RPC-NETLOGON and solaris sparc machines. This bug
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.
(This used to be commit bb7835eced00607eb6b1725be6d96a6dcb842049)

11 years agor18960: fix caching of some configure tests AC_CACHE_CHECK()
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...

(This used to be commit cb334632fae28bff107200a7b5643289f383eaad)

11 years agor18957: we need to include unistd.h in system/network.h because
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

(This used to be commit f37b13cbe65404f27d31b8020afb2f542313f4d3)

11 years agor18948: fix the build on solaris, the ioctl() prototype
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

(This used to be commit 55b25a9fcfa5ddf290e371c2bcad8ad07969f19a)

11 years agor18947: overload listen() and ioctl() in socket_wrapper
Stefan Metzmacher [Wed, 27 Sep 2006 10:13:45 +0000 (10:13 +0000)]
r18947: overload listen() and ioctl() in socket_wrapper

(This used to be commit dfaccdca1b6954cd61828749d7b000f804f3b066)

11 years agor18946: fix compiler warning
Stefan Metzmacher [Wed, 27 Sep 2006 06:48:24 +0000 (06:48 +0000)]
r18946: fix compiler warning

(This used to be commit 450595822441ebaa199d6b10d568274940b1a91b)

11 years agor18945: fix compiler warnings and end-of-non-void function bugs
Stefan Metzmacher [Wed, 27 Sep 2006 06:42:19 +0000 (06:42 +0000)]
r18945: fix compiler warnings and end-of-non-void function bugs

(This used to be commit ed195999c0c7d89cdc61e980576d191fc05d65d7)

11 years agor18944: talloc_reference() can fail...
Stefan Metzmacher [Wed, 27 Sep 2006 06:39:56 +0000 (06:39 +0000)]
r18944: talloc_reference() can fail...
(remove compiler warning)

(This used to be commit 515f4eb1cef11d8f942aeffc72c9da1bbd4d78cd)

11 years agor18943: Samba4 wants its databases private to root. I know some of them could
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
(This used to be commit 142a235f663f707eee3f16d0c1265b01fe1ecf32)

11 years agor18942: add a ldb_set_create_perms() function in ldb. I didn't call it
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)
(This used to be commit 7e2ec875908c112d5c3b0f6d18f9a8bbacf33539)

11 years agor18939: don't rely on the umask being right in ldb creation. Both Samba3 and
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
(This used to be commit 1a42f38dfdc55d7429a1f8d3e811f3d857195a58)

11 years agor18936: hopefully fix the test for negative enum values. When a compiler
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.
(This used to be commit c6216f7dbf68012fa8351dcae17fe4c7ab165b58)

11 years agor18933: Add helpful emacs marker
Andrew Bartlett [Tue, 26 Sep 2006 22:14:15 +0000 (22:14 +0000)]
r18933: Add helpful emacs marker
(This used to be commit 5fd53ea6a3a6d7638a9f542f46623a19143ff81d)

11 years agor18925: Add current snapshot of the ejs-2.0 code. Tridge, will you be incorporating...
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?
(This used to be commit 917af234a8d517f82bd42256a940608a16b988f4)

11 years agor18918: - bail out with unsupported option to socket()
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

(This used to be commit 68a65aa4490c12ca70db335f928f3ac507902337)

11 years agor18917: having 255 virtual interfaces available in socket wrapper means we
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

reduce max virtual interfaces to 16
(This used to be commit 3c4100027c7d3806a2021cb4d70ec6adf9dd2dc6)

11 years agor18916: fixed the messaging layer on *BSD systems. When a socket was full we
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 :)
(This used to be commit 6568f30adf980c572f9ffd6ff884336ebe652f90)

11 years agor18915: fix usage of popt, do make -W setting the recursive flag on SuSE 10.1
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

(This used to be commit 0fef3f807dd3e156970e315d83f5cb4a45e20d12)

11 years agor18914: this bug fix needs to be for just hpux 11.11
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
(This used to be commit 2cccede13d34011767159c3345bb6da24ed09bd3)

11 years agor18913: an attempt to get tdb/ldb working on the HPUX box 'gwen'. This idea
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.
(This used to be commit f7f548a1c79a78a1b15e96732994135cba94aa3d)

11 years agor18911: add a JSON encoder
Derrell Lipman [Tue, 26 Sep 2006 02:26:36 +0000 (02:26 +0000)]
r18911: add a JSON encoder
(This used to be commit 774e87974951a03663a1efd15dfde3d012bcf526)

11 years agor18910: Change ldb_msg_add_string() to not actually add an attribute if the
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 :-)
(This used to be commit 7a1db8c2a432b9ab59b29ee1bfce6c8fe8e981a2)

11 years agor18909: use newer functions that were introduced after this code was made
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
(This used to be commit 3ce1796eb4cca7fd78366ee540a998a1ca377866)

11 years agor18908: Store the schema structure into an opaque pointer so that it can be reused...
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
(This used to be commit ca8827d8f9a9f6ec60afed29b0b85f491d725d1c)

11 years agor18903: merge from samba3:
Stefan Metzmacher [Mon, 25 Sep 2006 16:59:00 +0000 (16:59 +0000)]
r18903: merge from samba3:


(This used to be commit 4e2f5ba490d717283ab089d90ebd5c108a8c53b0)

11 years agor18894: Merge const fixes from 3_0
Volker Lendecke [Mon, 25 Sep 2006 05:59:38 +0000 (05:59 +0000)]
r18894: Merge const fixes from 3_0
(This used to be commit 4ce447223cc71b8b2a31c2da3b0afd8e3fcf0c01)

11 years agor18890: sort the flags out and remove unknown as there's still
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).

(This used to be commit 1622d4608bc738b73d6f51c758828f96602b3e59)

11 years agor18887: add flags found while on the plane.
Rafal Szczesniak [Mon, 25 Sep 2006 04:43:23 +0000 (04:43 +0000)]
r18887: add flags found while on the plane.

(This used to be commit ec59441977205af9a38926b3d432ec0de6379573)

11 years agor18885: Fix bug in our IDL pointed out by Ronnie
Simo Sorce [Mon, 25 Sep 2006 04:04:40 +0000 (04:04 +0000)]
r18885: Fix bug in our IDL pointed out by Ronnie
(This used to be commit 77e8d96bc488a574b0b728d5b8facd51e69822d5)

11 years agor18884: client_test.exp getting changed to client_tests.exp was an intentional error...
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. :)
(This used to be commit 0269f3101555daaa4b2c4080ab24c1ca75cdc2f6)