bbaumbach/samba-autobuild/.git
16 years agor18452: add configure test for a getdirentries() based replacement for broken readdir()
Stefan Metzmacher [Wed, 13 Sep 2006 10:00:45 +0000 (10:00 +0000)]
r18452: add configure test for a getdirentries() based replacement for broken readdir()

Tru64 need this, linux also has getdirentries() but the native readdir() works
but it means we can write the code on linux and when it works it may work on Tru64
too.

tridge: can you try to implement this?

metze
(This used to be commit dd791d255ca61159b38a59b89f954a61fc5e9cf6)

16 years agor18451: move repdir/ into the top dir
Stefan Metzmacher [Wed, 13 Sep 2006 09:56:21 +0000 (09:56 +0000)]
r18451: move repdir/ into the top dir

metze
(This used to be commit a564194817d9b78e353abb6bf0548b2dd9eb130b)

16 years agor18450: - autogenerate the OBJ_FILES for LIBREPLACE
Stefan Metzmacher [Wed, 13 Sep 2006 09:47:41 +0000 (09:47 +0000)]
r18450: - autogenerate the OBJ_FILES for LIBREPLACE
- remove samba specific stuff from libreplace
- and include the readdir replacement stuff in the standalone builds

metze
(This used to be commit 3cac61152ef9a32313d7f7e5d38651f03a31f251)

16 years agor18448: this gives nicer output...
Stefan Metzmacher [Wed, 13 Sep 2006 09:27:33 +0000 (09:27 +0000)]
r18448: this gives nicer output...

metze
(This used to be commit 6bdb329da5771b4be792d8889d3ece8f93a495b0)

16 years agor18447: make sure we bail out if the config.h is not generated
Stefan Metzmacher [Wed, 13 Sep 2006 09:23:05 +0000 (09:23 +0000)]
r18447: make sure we bail out if the config.h is not generated
by samba's configure.

this could happen when you have done a standalone build in
lib/replace/, lib/talloc, ...

metze
(This used to be commit d8e88386748d3952c6a82726c9d36cad870992fd)

16 years agor18445: splitout the dlfcn related tests
Stefan Metzmacher [Wed, 13 Sep 2006 08:14:10 +0000 (08:14 +0000)]
r18445: splitout the dlfcn related tests

metze
(This used to be commit 8662e1481504c50a45416ae09ec19b834164e77c)

16 years agor18444: return the correct value on error
Stefan Metzmacher [Wed, 13 Sep 2006 07:35:42 +0000 (07:35 +0000)]
r18444: return the correct value on error

metze
(This used to be commit d65e94fea910ff435b5cb6fe146f81b01df9abf6)

16 years agor18443: add object files only when needed
Stefan Metzmacher [Wed, 13 Sep 2006 06:28:14 +0000 (06:28 +0000)]
r18443: add object files only when needed

metze
(This used to be commit 5fddb66def8dd29a9f8d13b4b679df26aca6cfab)

16 years agor18442: run the os2_delete test in the testsuite too
Stefan Metzmacher [Wed, 13 Sep 2006 06:11:53 +0000 (06:11 +0000)]
r18442: run the os2_delete test in the testsuite too

that shows that Tru64 is broken...

It doesn't have getdirent() and the the replacement
code doesn't work there.

tridge: do you have any idea how to fix this?

metze
(This used to be commit a5ebfd0ab71f4f4288697f6fd3183a440ce7506b)

16 years agor18441: Allow searching for the high bit in these bitfields, when the client
Andrew Bartlett [Wed, 13 Sep 2006 04:03:58 +0000 (04:03 +0000)]
r18441: Allow searching for the high bit in these bitfields, when the client
asks for them as large integers, rather than a negative integer.

Due to an OpenLDAP bug, this only works reliably against OpenLDAP CVS
as of today.  (but mostly works in older versions, depending on a
thread-specific value fo errno in the server).

Andrew Bartlett
(This used to be commit 3b5354aededc619ac6656611eacd43888e74260a)

16 years agor18440: "builtinDomain" is not a child of "domain"
Simo Sorce [Wed, 13 Sep 2006 03:56:31 +0000 (03:56 +0000)]
r18440: "builtinDomain" is not a child of "domain"
(This used to be commit b34646f202d4e8016e627c4bb88842c21d6b2e10)

16 years agor18439: 2nd try at a talloc_move() api. This type with the ** ptr interface
Andrew Tridgell [Wed, 13 Sep 2006 02:33:51 +0000 (02:33 +0000)]
r18439: 2nd try at a talloc_move() api. This type with the ** ptr interface
exposed.

Unfortunately this generates a large number of type punning
warnings. We'll have to find some magic to hide those.
(This used to be commit 254cbf09dee5a1e20c47e47a298f1a8d172b41b9)

16 years agor18438: I should have examined these uses of talloc_move() more
Andrew Tridgell [Wed, 13 Sep 2006 02:03:20 +0000 (02:03 +0000)]
r18438: I should have examined these uses of talloc_move() more
carefully. Most of them are OK, but a couple were not.
(This used to be commit b0de2838829d9750817c31f28c11c6b2be6e7b64)

16 years agor18437: added a 'make valgrindtest' target for ldb
Andrew Tridgell [Wed, 13 Sep 2006 00:11:07 +0000 (00:11 +0000)]
r18437: added a 'make valgrindtest' target for ldb
(This used to be commit 4c33c6bb97f3b25b611c476be4c914031e55e4dc)

16 years agor18436: converted ldb to use talloc_move() instead of talloc_steal() when
Andrew Tridgell [Wed, 13 Sep 2006 00:10:38 +0000 (00:10 +0000)]
r18436: converted ldb to use talloc_move() instead of talloc_steal() when
appropriate.

Note that I also removed the error checks that were being done on the
result of talloc_steal(). They are pointless as talloc_steal() doesn't
have any failure modes that wouldn't cause a segv anyway, and they
tend to clutter the code
(This used to be commit c0d9e7d473b8e3eb2524a9fc29cf88680f994b36)

16 years agor18435: added a function talloc_move() which is like talloc_steal(), but is
Andrew Tridgell [Wed, 13 Sep 2006 00:05:07 +0000 (00:05 +0000)]
r18435: added a function talloc_move() which is like talloc_steal(), but is
meant for moving pointers between structures. The difference is that
talloc_move() will zero the source pointer, thus ensuring you don't
reference the pointer in the old context.

talloc_move() is appropriate in some, but not all cases where we use
talloc_steal() now. The interface came out of a discussion with
Jeremy.
(This used to be commit 200756017e1867faa207703eddc00a75ae4527df)

16 years agor18434: Fix typo...
Andrew Bartlett [Tue, 12 Sep 2006 22:26:19 +0000 (22:26 +0000)]
r18434: Fix typo...
(This used to be commit 4f235b88aa0ce6c684bf203ea3cbc81e91a3cd3e)

16 years agor18433: Make sure to search below the partitions baseDN for the netbios name.
Andrew Bartlett [Tue, 12 Sep 2006 22:03:24 +0000 (22:03 +0000)]
r18433: Make sure to search below the partitions baseDN for the netbios name.

I think we should have a helper function for this search, we do it too
often...

Andrew Bartlett
(This used to be commit 09327baa0ded3a98398b266c960f827b29021d91)

16 years agor18432: ensure roken doesn't try to include both inttypes.h and stdint.h. The
Andrew Tridgell [Tue, 12 Sep 2006 18:45:05 +0000 (18:45 +0000)]
r18432: ensure roken doesn't try to include both inttypes.h and stdint.h. The
two conflict on irix.
(This used to be commit 4dd949c80d4400c3a80571cc28f599c37c1fcf7b)

16 years agor18431: use this to suppress things on fort in the build farm
Andrew Tridgell [Tue, 12 Sep 2006 18:38:12 +0000 (18:38 +0000)]
r18431: use this to suppress things on fort in the build farm
(This used to be commit 13ed504a1b42acdb5aec68734ec0dc14c9bd39cd)

16 years agor18428: add my copyright
Stefan Metzmacher [Tue, 12 Sep 2006 16:33:24 +0000 (16:33 +0000)]
r18428: add my copyright

metze
(This used to be commit d222fab2b5fcd44ad7825e605a9febbe9d211e7a)

16 years agor18427: set sin_port correctly on autobound socket
Stefan Metzmacher [Tue, 12 Sep 2006 16:25:50 +0000 (16:25 +0000)]
r18427: set sin_port correctly on autobound socket

metze
(This used to be commit d373890fb26f3a593bacdb374f10d4279822b97d)

16 years agor18426: use 'family' consistantly instead of mixing 'domain' and 'family'
Stefan Metzmacher [Tue, 12 Sep 2006 14:59:08 +0000 (14:59 +0000)]
r18426: use 'family' consistantly instead of mixing 'domain' and 'family'

metze
(This used to be commit 224f26602ac78dbdabd4602bce42e31141102f6c)

16 years agor18424: there's no need to allocate a wrapped socket for unix sockets,
Stefan Metzmacher [Tue, 12 Sep 2006 14:44:44 +0000 (14:44 +0000)]
r18424: there's no need to allocate a wrapped socket for unix sockets,
also this makes sure the socket file isn't unlinked if using socket
wrapper.

metze
(This used to be commit 7670e9ae6e8e64ddb3c7d99b3d44048519629225)

16 years agor18423: record accept, connect and close events in socket wrapper
Stefan Metzmacher [Tue, 12 Sep 2006 09:08:55 +0000 (09:08 +0000)]
r18423: record accept, connect and close events in socket wrapper

metze
(This used to be commit 7f29471f0b6b9158da52522984a6ab3f8ace4f42)

16 years agor18421: support --target=samba3, I thought that was already supported
Stefan Metzmacher [Tue, 12 Sep 2006 07:35:04 +0000 (07:35 +0000)]
r18421: support --target=samba3, I thought that was already supported

metze
(This used to be commit 47ccea11f31be878c5bdff4f6f4e5b7685a1c796)

16 years agor18420: fix the build...
Stefan Metzmacher [Tue, 12 Sep 2006 07:25:16 +0000 (07:25 +0000)]
r18420: fix the build...

metze
(This used to be commit a7ce2c6c53f1bbb2320fd8afe44ec12e504d95c9)

16 years agor18419: fix include paths of the configure tests
Stefan Metzmacher [Tue, 12 Sep 2006 07:05:41 +0000 (07:05 +0000)]
r18419: fix include paths of the configure tests

metze
(This used to be commit 8774eeb0dc8a72a9871d42bf1652ce4f7d4a29b7)

16 years agor18418: Tru64 has a different prototype for seekdir() returning int
Stefan Metzmacher [Tue, 12 Sep 2006 07:04:12 +0000 (07:04 +0000)]
r18418: Tru64 has a different prototype for seekdir() returning int
when _OSF_SOURCE is defined

metze
(This used to be commit 5279656a15e42e6dd96ddfa181597c71fc993ff3)

16 years agor18417: overload send() and recv() by socket wrapper
Stefan Metzmacher [Tue, 12 Sep 2006 06:19:11 +0000 (06:19 +0000)]
r18417: overload send() and recv() by socket wrapper
and add a dummy swrap_dump_packet() function
which can later dump the packet content,
so that a script can then generate a capture file
for wireshark

metze
(This used to be commit d05cab5c626b5960448f206e8c17b89edbf78733)

16 years agor18416: We need to look for both builtinDomain and domain, in the OpenDomain call.
Andrew Bartlett [Tue, 12 Sep 2006 04:03:43 +0000 (04:03 +0000)]
r18416: We need to look for both builtinDomain and domain, in the OpenDomain call.

Andrew Bartlett
(This used to be commit 5525baf5217417308ffcebe2be3b4df445fddf75)

16 years agor18415: Make the samba-windows test scripts executable so they run a little easier...
Brad Henry [Tue, 12 Sep 2006 02:59:10 +0000 (02:59 +0000)]
r18415: Make the samba-windows test scripts executable so they run a little easier in the build farm.
(This used to be commit b2d3f8f7aae5b2bb9baf4e45fbc4632576e6fea8)

16 years agor18414: This README file should help to explain what is needed to setup a Windows...
Brad Henry [Tue, 12 Sep 2006 02:53:02 +0000 (02:53 +0000)]
r18414: This README file should help to explain what is needed to setup a Windows VM for testing using this framework.
Let me know if there's anything that looks strange or could use clarification.

vm_setup.tar.gz is currently located at the root of my SVN branch, svn://svnanon.samba.org/samba/branches/SOC/bnh.
(This used to be commit 849fe757bb908842844ab482b8669694157550cd)

16 years agor18412: Implement NetiNameValidate but just for share name right now (type 9)
Simo Sorce [Tue, 12 Sep 2006 02:24:21 +0000 (02:24 +0000)]
r18412: Implement NetiNameValidate but just for share name right now (type 9)

Simo.
(This used to be commit 906429834a102349582017ef73a69e211ef5c500)

16 years agor18410: Reduce noise in the ldb_ildap backend. We regularly search for things
Andrew Bartlett [Tue, 12 Sep 2006 00:41:49 +0000 (00:41 +0000)]
r18410: Reduce noise in the ldb_ildap backend.  We regularly search for things
that don't exist, and this is not a cause for panic.

Andrew Bartlett
(This used to be commit c89e416d288d16de43ae93102ecfec588900e6c0)

16 years agor18409: Make sure to print a DEBUG message if this LDB search fails.
Andrew Bartlett [Tue, 12 Sep 2006 00:41:12 +0000 (00:41 +0000)]
r18409: Make sure to print a DEBUG message if this LDB search fails.

Andrew Bartlett
(This used to be commit 6419ef09b18b1105956211ae8774963f9cb30d2e)

16 years agor18408: Only output a message if the async request fails.
Andrew Bartlett [Tue, 12 Sep 2006 00:40:45 +0000 (00:40 +0000)]
r18408: Only output a message if the async request fails.

Andrew Bartlett
(This used to be commit 1ea6b600f42d3ccfb75da98f2013928fda524450)

16 years agor18407: test for epoll.h and select.h
Andrew Tridgell [Mon, 11 Sep 2006 22:25:50 +0000 (22:25 +0000)]
r18407: test for epoll.h and select.h
(This used to be commit 3ddb77c1e3dce5e05771b3fcaf86f8ae9ff21a52)

16 years agor18406: disable local iconv test as well when iconv:native=false
Andrew Tridgell [Mon, 11 Sep 2006 22:16:47 +0000 (22:16 +0000)]
r18406: disable local iconv test as well when iconv:native=false
(This used to be commit 77e6a09e6b1a313db2bf289ac954fe4393b569fe)

16 years agor18401: some of our code also relies on fprintf() handling C99
Andrew Tridgell [Mon, 11 Sep 2006 21:32:08 +0000 (21:32 +0000)]
r18401: some of our code also relies on fprintf() handling C99
semantics. Easiest to just replace it if it doesn't.
(This used to be commit 5fc756a770b6f457bf103e2a8a240ca020fd1a02)

16 years agor18400: move MAP_FAILED define to lib/replace/system/shmem.h
Andrew Tridgell [Mon, 11 Sep 2006 21:25:06 +0000 (21:25 +0000)]
r18400: move MAP_FAILED define to lib/replace/system/shmem.h
(This used to be commit 025b142ff268498cfb36fc0e7e9e25a2c5963d38)

16 years agor18392: add sidtouid and sidtogid tests to RPC-UNIXINFO
Stefan Metzmacher [Mon, 11 Sep 2006 16:54:54 +0000 (16:54 +0000)]
r18392: add sidtouid and sidtogid tests to RPC-UNIXINFO

metze
(This used to be commit f1708fd9434ee2a9ae25e9d912f0c350d8e1a256)

16 years agor18391: - match the samba3 protocol for UNIXINFO
Stefan Metzmacher [Mon, 11 Sep 2006 16:45:34 +0000 (16:45 +0000)]
r18391: - match the samba3 protocol for UNIXINFO
- add a test for GidToSid

metze
(This used to be commit fb92643a8b64428e8259bc21fe04f876b24bfd84)

16 years agor18389: test RPC-UNIXINFO in samba4
Stefan Metzmacher [Mon, 11 Sep 2006 16:05:27 +0000 (16:05 +0000)]
r18389: test RPC-UNIXINFO in samba4

metze
(This used to be commit 928beac95d534a7a9f5182b64ec905f0ad094192)

16 years agor18388: remove _XOPEN_SOURCE it causes trouble on BSD and IRIX
Stefan Metzmacher [Mon, 11 Sep 2006 16:02:36 +0000 (16:02 +0000)]
r18388: remove _XOPEN_SOURCE it causes trouble on BSD and IRIX

I need to find a way to define it only on Tru64 maybe.

metze
(This used to be commit aca8a3f8c0bb3cce0ef8c5fd945011581d19586d)

16 years agor18386: start the unixinfo pipe by default
Stefan Metzmacher [Mon, 11 Sep 2006 15:44:54 +0000 (15:44 +0000)]
r18386: start the unixinfo pipe by default

metze
(This used to be commit ea44cdfc6f67583bd86d273b4c119e29ce690ca9)

16 years agor18385: fix crashes in the RPC-UNIXINFO test
Stefan Metzmacher [Mon, 11 Sep 2006 15:43:31 +0000 (15:43 +0000)]
r18385: fix crashes in the RPC-UNIXINFO test

jelmer: I think there're a few ref pointer related bugs in pidl
        we need to discuss them the next days

metze
(This used to be commit 8c4241ecbbd9686d990073cec53dc1fde0fdde9b)

16 years agor18384: this is a ref pointer like in samba3 and for the Gid version
Stefan Metzmacher [Mon, 11 Sep 2006 15:42:31 +0000 (15:42 +0000)]
r18384: this is a ref pointer like in samba3 and for the Gid version

metze
(This used to be commit 5d2100a6daa645e54df30986e1c4e0e8c0d4158d)

16 years agor18383: ok we need _XOPEN_SOURCE 500 and include standards.h on Tru64
Stefan Metzmacher [Mon, 11 Sep 2006 14:08:51 +0000 (14:08 +0000)]
r18383: ok we need _XOPEN_SOURCE 500 and include standards.h on Tru64
to get MAP_FAILED

metze
(This used to be commit 0f48c8ad7c066ba33cb8d4491083e15b24c5046e)

16 years agor18382: define _XOPEN_SOURCE to hopefully bring in MAP_FAILED in
Stefan Metzmacher [Mon, 11 Sep 2006 13:47:29 +0000 (13:47 +0000)]
r18382: define _XOPEN_SOURCE to hopefully bring in MAP_FAILED in
sys/mman.h on Tru64

metze
(This used to be commit 8109eb9d28c9043c359d48319efe91aed2714431)

16 years agor18381: make sure autoconf doesn't add '-O2' to CFLAGS
Stefan Metzmacher [Mon, 11 Sep 2006 12:47:40 +0000 (12:47 +0000)]
r18381: make sure autoconf doesn't add '-O2' to CFLAGS

metze
(This used to be commit ec6365b5f18eea7035b6963c8005e75b9f4e3437)

16 years agor18378: try enabling _OSF_SOURCE to see if it fixes the tru64 build problems -
Andrew Tridgell [Mon, 11 Sep 2006 10:32:39 +0000 (10:32 +0000)]
r18378: try enabling _OSF_SOURCE to see if it fixes the tru64 build problems -
thanks to volker for the suggestion
(This used to be commit 03ed41515b2228d130f669a2c0cf916a21182f30)

16 years agor18377: disable native iconv with valgrind
Andrew Tridgell [Mon, 11 Sep 2006 09:21:58 +0000 (09:21 +0000)]
r18377: disable native iconv with valgrind
(This used to be commit d1ceb79d9d10a3fd7bdba935ef2d12db346051f4)

16 years agor18376: added iconv:native=false option to turn off native iconv. Needed under
Andrew Tridgell [Mon, 11 Sep 2006 09:19:58 +0000 (09:19 +0000)]
r18376: added iconv:native=false option to turn off native iconv. Needed under
valgrind as native iconv is so full of overflows
(This used to be commit d1de0202efc6e6ca4bbc1997f3e493da18cd35f4)

16 years agor18375: Volker noticed that this is in fact an 8bit number - well spotted!
Andrew Tridgell [Mon, 11 Sep 2006 09:04:51 +0000 (09:04 +0000)]
r18375: Volker noticed that this is in fact an 8bit number - well spotted!
(This used to be commit 3f80b6b87bf4a3ae3a2fce51764ed70bcf0ea497)

16 years agor18374: don't go past the end of this array
Andrew Tridgell [Mon, 11 Sep 2006 08:28:25 +0000 (08:28 +0000)]
r18374: don't go past the end of this array

should fix the intermittend failure of the HMACSHA1 test
(This used to be commit 09014e1102ca5ada1e6f0f82506dc3cf81fc037d)

16 years agor18372: don't use the system inotify until in the build farm until we work out
Andrew Tridgell [Mon, 11 Sep 2006 07:59:02 +0000 (07:59 +0000)]
r18372: don't use the system inotify until in the build farm until we work out
how to work around a problem with it giving unpredictable orderings in
renames (sometimes target is first event, sometimes source)
(This used to be commit 066e3b51b1ca038023e53a978e1d2e706cd3d8a6)

16 years agor18371: made the directory depth notify test independent of timing
Andrew Tridgell [Mon, 11 Sep 2006 07:58:08 +0000 (07:58 +0000)]
r18371: made the directory depth notify test independent of timing
(This used to be commit 39458e62f576c551df016a7be4d35175dc21696e)

16 years agor18370: allow system inotify to be disabled
Andrew Tridgell [Mon, 11 Sep 2006 07:56:23 +0000 (07:56 +0000)]
r18370: allow system inotify to be disabled
(This used to be commit 31bbf865a069f902dc979f469aec896d3d34422c)

16 years agor18368: Don't list GENSEC mechs that only have client implementations in our
Andrew Bartlett [Mon, 11 Sep 2006 07:51:30 +0000 (07:51 +0000)]
r18368: Don't list GENSEC mechs that only have client implementations in our
supportedSASLMechanism list.

Andrew Bartlett
(This used to be commit 3e69637b5f79e4132026ebaf9d57cf67ef3826c1)

16 years agor18367: When converting to entryUUID, ensure we don't double-convert a
Andrew Bartlett [Mon, 11 Sep 2006 07:50:49 +0000 (07:50 +0000)]
r18367: When converting to entryUUID, ensure we don't double-convert a
string-format GUID.

Andrew Bartlett
(This used to be commit 11cc6408c93f46f4d9ae7ae0ee18dac836fe270d)

16 years agor18366: check if we can link using the selected flags
Stefan Metzmacher [Mon, 11 Sep 2006 07:15:49 +0000 (07:15 +0000)]
r18366: check if we can link using the selected flags

metze
(This used to be commit d905bb499d81ac4e2f00277ae77ce0a51bdc7474)

16 years agor18365: When adding a new structure member, always remember to fragment it.
Andrew Bartlett [Mon, 11 Sep 2006 06:49:24 +0000 (06:49 +0000)]
r18365: When adding a new structure member, always remember to fragment it.

Andrew Bartlett
(This used to be commit 27259f3632a3fe21cfc5d1375aa630ec0f9f4734)

16 years agor18364: Get us closer to schema compliance. The corrent names for "secret"
Andrew Bartlett [Mon, 11 Sep 2006 06:29:58 +0000 (06:29 +0000)]
r18364: Get us closer to schema compliance.  The corrent names for "secret"
and "priorSecret" are "currentValue" and "priorValue".

With this, we pass RPC-LSA against OpenLDAP.

Andrew Bartlett
(This used to be commit 4380bcaaee74a0aa1a83540bf39793c4aeab4068)

16 years agor18363: Found a rather nasty bug in our fragment handling.
Andrew Bartlett [Mon, 11 Sep 2006 06:17:12 +0000 (06:17 +0000)]
r18363: Found a rather nasty bug in our fragment handling.

We were adding packet fragments onto the *reply* queue, not the
recieve queue.  This worked, as long as we got a whole packet before
we did any reply work, but failed once the backend called a remote
LDAP server (and I presume something invoked the event loop).

Andrew Bartlett
(This used to be commit a0162e0ace48104d94f7b7dd3d2f62a7f42e10c6)

16 years agor18362: Make LookupSids map onto LookupSids2, as they both take a policy
Andrew Bartlett [Mon, 11 Sep 2006 06:15:39 +0000 (06:15 +0000)]
r18362: Make LookupSids map onto LookupSids2, as they both take a policy
handle.  Avoids a lookup for the basic domain information for every
request.

Andrew Bartlett
(This used to be commit 35b69bc5f4bda7f4f2480997cc32188154a175ce)

16 years agor18361: Invert the way we handle LookupSids2/LookupSids3 and LookupNames3/LookupNames4
Andrew Bartlett [Mon, 11 Sep 2006 05:11:10 +0000 (05:11 +0000)]
r18361: Invert the way we handle LookupSids2/LookupSids3 and LookupNames3/LookupNames4

The latter calls don't supply a policy handle

The latter calls now acquire a policy handle, then call the earlier
calls.  This means we still share the codepaths, but don't need to
fetch policy state when it is already provided.

Andrew Bartlett
(This used to be commit 5fa9e96bd0d1f75e208be9a8a04dfc90a854bee9)

16 years agor18360: better handling of child process killing in standard mode
Andrew Tridgell [Mon, 11 Sep 2006 04:47:56 +0000 (04:47 +0000)]
r18360: better handling of child process killing in standard mode
(This used to be commit 6a2144caab60073b40577dc1f66f663f817d6cbd)

16 years agor18359: better handling of child process killing in standard mode
Andrew Tridgell [Mon, 11 Sep 2006 04:47:48 +0000 (04:47 +0000)]
r18359: better handling of child process killing in standard mode
(This used to be commit 3752cc2b5767950b26b57e79fa87a70f8d93173d)

16 years agor18358: handle errors in the RPC-LSA async test
Andrew Tridgell [Mon, 11 Sep 2006 04:28:34 +0000 (04:28 +0000)]
r18358: handle errors in the RPC-LSA async test
(This used to be commit d46c3be9f9db6666be52b5584b0210da925106d1)

16 years agor18357: Convert more crypto tests from using function results as initialisers.
Andrew Bartlett [Mon, 11 Sep 2006 04:18:16 +0000 (04:18 +0000)]
r18357: Convert more crypto tests from using function results as initialisers.
(Fails on older Unix C compilers)

Andrew Bartlett
(This used to be commit a4cc13a93fc2f18bfb266603617e14d1cc7ceecf)

16 years agor18356: doing 1000 of these requests can take over an hour under
Andrew Tridgell [Mon, 11 Sep 2006 02:58:45 +0000 (02:58 +0000)]
r18356: doing 1000 of these requests can take over an hour under
valgrind. Reduce to 50, which is plenty for testing the code
(This used to be commit 911c8e1c73bf3953591755ecb4c50f5644fc9c18)

16 years agor18355: increase the delays waiting for all events to propogate in the
Andrew Tridgell [Mon, 11 Sep 2006 02:09:03 +0000 (02:09 +0000)]
r18355: increase the delays waiting for all events to propogate in the
RAW-NOTIFY test.
(This used to be commit 81fd19ba3f38ac19d8bcac56210a83fdfc8237de)

16 years agor18354: It seems safe to enable the DIGEST-MD5 module now.
Andrew Bartlett [Mon, 11 Sep 2006 01:42:13 +0000 (01:42 +0000)]
r18354: It seems safe to enable the DIGEST-MD5 module now.

Andrew Bartlett
(This used to be commit 8357f8be45ef93bd1b648350c951bbe3b1bb5682)

16 years agor18353: try to fix the assumption of NULL being handled in printf()
Andrew Tridgell [Mon, 11 Sep 2006 01:38:50 +0000 (01:38 +0000)]
r18353: try to fix the assumption of NULL being handled in printf()
permanently by replacing printf() on systems that don't have a C99
printf lib
(This used to be commit eacb5357c347255817a0a47abe7dadfaf24301fa)

16 years agor18352: printf("%s") is not safe for NULL strings on all platforms, but
Andrew Tridgell [Mon, 11 Sep 2006 01:22:28 +0000 (01:22 +0000)]
r18352: printf("%s") is not safe for NULL strings on all platforms, but
d_printf() is. This fixes a crash on solaris
(This used to be commit 52d156671158fa25d3a84a46c98ca1d81e4a18d1)

16 years agor18351: functions as initialisers in structures doesn't work on some compilers
Andrew Tridgell [Mon, 11 Sep 2006 00:59:31 +0000 (00:59 +0000)]
r18351: functions as initialisers in structures doesn't work on some compilers
(This used to be commit db694a7c82e4b5071aa7f609de6ecde90a8d42dd)

16 years agor18350: we have to check for lstat() to keep roken happen on hpux
Andrew Tridgell [Mon, 11 Sep 2006 00:50:57 +0000 (00:50 +0000)]
r18350: we have to check for lstat() to keep roken happen on hpux
(This used to be commit e251c211f7fa67e2e32d684f10a742b496913284)

16 years agor18349: don't do validation when using valgrind. It's way too slow (can be
Andrew Tridgell [Mon, 11 Sep 2006 00:43:48 +0000 (00:43 +0000)]
r18349: don't do validation when using valgrind. It's way too slow (can be
hours for a single test)
(This used to be commit febaf6af4cafed7bc57276186a35099959b2ce62)

16 years agor18348: fixed a valgrind error in RPC-SRVSVC
Andrew Tridgell [Mon, 11 Sep 2006 00:24:21 +0000 (00:24 +0000)]
r18348: fixed a valgrind error in RPC-SRVSVC
(This used to be commit cc89ef3e1fd2f1d550ab65d32dfa894dc7963868)

16 years agor18347: run slapd in the foreground so timelimit can kill it
Andrew Tridgell [Sun, 10 Sep 2006 22:53:21 +0000 (22:53 +0000)]
r18347: run slapd in the foreground so timelimit can kill it
(This used to be commit 8cc456e6dcb348375dbded0de1a0c07ea6bf8ff9)

16 years agor18346: make sure we kill off the slapd process
Andrew Tridgell [Sun, 10 Sep 2006 22:45:45 +0000 (22:45 +0000)]
r18346: make sure we kill off the slapd process
(This used to be commit 0e1d4be23ab807b17959e09dffbaf9c8c8dd048e)

16 years agor18345: test also flags
Simo Sorce [Sun, 10 Sep 2006 22:06:49 +0000 (22:06 +0000)]
r18345: test also flags
(This used to be commit 06469a6ba0ee1cc8701214bcefa1d6c696b0150b)

16 years agor18344: add a test to show hoe NetNameValidate behaves.
Simo Sorce [Sun, 10 Sep 2006 21:51:46 +0000 (21:51 +0000)]
r18344: add a test to show hoe NetNameValidate behaves.
fix the misleading idl names
(This used to be commit 8367b3bcee9338fa3e268b7342ae8db928008b55)

16 years agor18343: fixed setlinebuf() prototype, added test for it, and use it in two
Andrew Tridgell [Sun, 10 Sep 2006 14:19:38 +0000 (14:19 +0000)]
r18343: fixed setlinebuf() prototype, added test for it, and use it in two
places to avoid a #ifdef
(This used to be commit 095b8057740a4bb207e24e4c63a2dcb53521a72f)

16 years agor18342: a bit more explanation of these strange values
Andrew Tridgell [Sun, 10 Sep 2006 13:51:57 +0000 (13:51 +0000)]
r18342: a bit more explanation of these strange values
(This used to be commit e191f84f24e017d90c49d779a04a5306d96848a5)

16 years agor18341: ooh this gets subtle - this needed for xfs on linux
Andrew Tridgell [Sun, 10 Sep 2006 13:48:42 +0000 (13:48 +0000)]
r18341: ooh this gets subtle - this needed for xfs on linux
(This used to be commit 9d688eb9cbaed484ccb75d601c2331760bd59fab)

16 years agor18340: some HPUX boxes don't have ptrdiff_t
Andrew Tridgell [Sun, 10 Sep 2006 13:16:27 +0000 (13:16 +0000)]
r18340: some HPUX boxes don't have ptrdiff_t
(This used to be commit f3b24ea48a70268be5a3af601b5bb923d446c5d5)

16 years agor18339: need these checks for roken.h on hpux
Andrew Tridgell [Sun, 10 Sep 2006 13:02:54 +0000 (13:02 +0000)]
r18339: need these checks for roken.h on hpux
(This used to be commit e98e0a28a0cb79e272c0caa0bcb3b5fb6bf3a17b)

16 years agor18338: this isn't needed anymore
Stefan Metzmacher [Sun, 10 Sep 2006 12:51:30 +0000 (12:51 +0000)]
r18338: this isn't needed anymore

metze
(This used to be commit 91800fd80c1763157f9bfded8f10e2d8c9a04cd2)

16 years agor18337: more -Ae tests in check_cc.m4
Andrew Tridgell [Sun, 10 Sep 2006 12:45:37 +0000 (12:45 +0000)]
r18337: more -Ae tests in check_cc.m4

honor the MMAP_BLACKLIST
(This used to be commit c2f2dbb5d1c082ee1391908073336a9dfc10f712)

16 years agor18336: autoconf tries to force on C89 mode on HP-UX, using the -Ae
Andrew Tridgell [Sun, 10 Sep 2006 12:38:32 +0000 (12:38 +0000)]
r18336: autoconf tries to force on C89 mode on HP-UX, using the -Ae
flag. Unfortunately that flag conflicts with the -AC99 flag, and we
get lots of breakage.

This is a trick to force off the -Ae option
(This used to be commit eb93fb8e54c46df35904e03870063c4532599442)

16 years agor18335: more portable bool tests
Andrew Tridgell [Sun, 10 Sep 2006 12:23:47 +0000 (12:23 +0000)]
r18335: more portable bool tests
(This used to be commit 45a3a6a566de020578c24feb5788367efd685f29)

16 years agor18334: AIX 5.1 doesn't have any of 'users', 'guest', 'other' or 'unknown'
Andrew Tridgell [Sun, 10 Sep 2006 12:12:24 +0000 (12:12 +0000)]
r18334: AIX 5.1 doesn't have any of 'users', 'guest', 'other' or 'unknown'

it does have 'usr'
(This used to be commit 96db975024a744f42a0418e379df1da6c4079fe6)

16 years agor18333: $< is broken in older BSD version:
Stefan Metzmacher [Sun, 10 Sep 2006 11:53:44 +0000 (11:53 +0000)]
r18333: $< is broken in older BSD version:
when $@ is foo/bar.o, $< could be torture/foo/bar.c
if it also exists. So better use $* which is foo/bar
to get foo/bar.c

metze
(This used to be commit 7aad9f81d927778bd3da6a37afc0489f1fefdc58)

16 years agor18332: added back in our shared mmap test code
Andrew Tridgell [Sun, 10 Sep 2006 11:47:21 +0000 (11:47 +0000)]
r18332: added back in our shared mmap test code
(This used to be commit 6ff100b26698a50ba79b587a687cc0d440f73b55)

16 years agor18331: fixed a warning
Andrew Tridgell [Sun, 10 Sep 2006 11:32:42 +0000 (11:32 +0000)]
r18331: fixed a warning
(This used to be commit 997ed10bf540cc99da1bab5e53634beb3b239253)

16 years agor18330: don't mix pointer types in RPC replies
Andrew Tridgell [Sun, 10 Sep 2006 11:32:31 +0000 (11:32 +0000)]
r18330: don't mix pointer types in RPC replies
(This used to be commit cc86719f53a47e3ca25b19d7a765314ce967ab01)

16 years agor18329: print out special make variables when failing, to track down the
Stefan Metzmacher [Sun, 10 Sep 2006 11:23:29 +0000 (11:23 +0000)]
r18329: print out special make variables when failing, to track down the
build failures on older BSD systems with broken make

metze
(This used to be commit 7edb40569a5b5c971894a5e753638eeccef15dea)

16 years agor18328: when we bail out early, set *offset to 0
Andrew Tridgell [Sun, 10 Sep 2006 11:16:26 +0000 (11:16 +0000)]
r18328: when we bail out early, set *offset to 0
(This used to be commit 81230464600bd3a2bb283303b2b9c71f6409675b)