1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-13 13:18:06 +03:00
Commit Graph

52167 Commits

Author SHA1 Message Date
Stefan Metzmacher
43a7d48d24 tevent: add tevent_signal_support()
Not every tevent backend supports signal events.

metze
2009-03-12 12:04:31 +01:00
Stefan Metzmacher
7a8b97ec2b talloc: add talloc_set_abort_fn()
metze
2009-03-12 12:04:31 +01:00
Stefan Metzmacher
1e4f78cc41 s4:ldb: setup tevent debug functions on a selfcreated event context
metze
2009-03-12 12:04:30 +01:00
Stefan Metzmacher
2fdbafbf54 Revert "s3:libsmb: add an option to cli_push to let the caller provide the buffers"
This reverts commit 9579a6f193.

It's confusing to have a boolean to alter the behavior of cli_push
and as the new feature isn't used yet I revert it.

We can readd a extra function later.

metze
2009-03-12 11:03:50 +01:00
Volker Lendecke
a0a9c5d170 Fix #6167: winbindd -n should disable the winbind idmap cache 2009-03-12 10:20:08 +01:00
Volker Lendecke
b17f9e15ef Make opt_nocache static to winbindd.c 2009-03-12 10:20:08 +01:00
Andrew Tridgell
483525f73c use a base64 encoded password when changing passwords
This avoids problems with embedded control characters in password
changes
2009-03-12 15:20:25 +11:00
Andrew Tridgell
0770028cbe fixed more embedded spaces in LDIF
This one added 3 spaces to the end of any new passwords
2009-03-12 15:13:23 +11:00
Andrew Tridgell
917905aea0 removed leading spaces from embedded ldif
This fixes the problem with the setpassword command failing like this:
   Error: First line of ldif must be a dn not '    dn'
2009-03-12 13:13:14 +11:00
Jeremy Allison
c260bfa5d7 Add simple POSIX open, mkdir and rmdir test.
Jeremy.
2009-03-11 14:28:47 -07:00
Tim Prouty
2bfd2c58f8 s3 torture: Simple warning fix 2009-03-11 13:09:24 -07:00
Björn Jacke
e6777e5266 fix configure check by avoiding main(main(...))
AC_TRY_LINK automatically wraps a main(). Double main() causes this test to fail
on some compilers.
2009-03-11 12:08:51 -07:00
Stefan Metzmacher
41c5d70c8d LDAP-BENCH-CLDAP: also test CLDAP rootdse searches.
metze
2009-03-11 17:33:30 +01:00
Stefan Metzmacher
b96aa69dff async_sock: fix truncating of the temporary iovec in writev_send/recv()
Volker: please check!

metze
2009-03-11 17:33:30 +01:00
Günther Deschner
793247452e spoolss: fix typo in spoolss_EnumPrintProcessors_info union helper fn.
Guenther
2009-03-11 15:31:09 +01:00
Günther Deschner
2c3d7449b4 spoolss: fix typo in spoolss_EnumJobs_info union helper fn.
Guenther
2009-03-11 15:30:57 +01:00
Stefan Metzmacher
082bea67af lib/replace: make sure we include <sys/uio.h> before socket_wrapper.h
This should fix the build on some hosts.

metze
2009-03-11 08:08:14 +01:00
Volker Lendecke
3d280639c4 Add a vfs_preopen module to hide fs latencies 2009-03-10 18:11:56 +01:00
Brad Hards
66a26a0ac2 Update instructions for checking out pidl. 2009-03-10 17:11:39 +01:00
Volker Lendecke
8c41e0e5a6 Don't log NDR_PRINT_DEBUG at level 0, this always ends up in syslog
I think we eventually need to pass down the debuglevel here.
2009-03-10 17:07:38 +01:00
Stefan Metzmacher
825949b810 tevent: add tevent_req_callback_data_void() macro
Callers can use it instead of tevent_req_callback_data()
if they use a non talloc private pointer.

metze
2009-03-10 16:44:44 +01:00
Stefan Metzmacher
09d1b2324c tevent: add tevent_req_received() function
This function can be called as last action of a _recv()
function, it destroys the data attached to the tevent_req.

metze
2009-03-10 16:44:44 +01:00
Simo Sorce
97cccb2219 Fix extended operation return path.
Extended operations return was not going thorugh the same patch as others
leaving the ctx around. Plus we were neutralizing the spy too early so that it
didn't set the request_terminated flag as it should have.

This should hopefully fix the failures in the build farm.
2009-03-10 11:08:53 -04:00
Stefan Metzmacher
9579a6f193 s3:libsmb: add an option to cli_push to let the caller provide the buffers
metze
2009-03-10 14:07:56 +01:00
Stefan Metzmacher
c2993f74af s3:libsmb: only treat a return 0 as end of file
metze
2009-03-10 12:46:16 +01:00
Stefan Metzmacher
7fc8086e11 s3:libsmb: fix a lot of cli_push() bugs
There were the following problems:
1.) if window_size was a multiple of the chunk_size,
    we silently dropped the last truncated chunk.
2.) if window_size was 0 pushed only the first chunk
    to the server and silently dropped the rest.
3.) we had only transferred state->num_reqs writes,
    even if there would be more data to send.

metze
2009-03-10 11:03:15 +01:00
Stefan Metzmacher
143b222546 socket_wrapper: wrap readv() and writev()
metze
2009-03-10 08:15:48 +01:00
Andrew Tridgell
6f1f9f6d8d fixed a bug in message handling for code the change notify code
The change notify code registered a separate message handler for each
tree connect. This registration uses the global messaging context.

The messaging code would consider a 2nd registration for the same
messaging type as being an 'update' of the handler, rather than a new
handler. It also would only call the first handler in the linked list
for a given message type when dispatching messages.

This patch changes the messaging code to allow for multiple
registrations of the same message type, and allow for multiple calls
to different messaging handler for one incoming message.

This fixes the problem with the test_notify_tcon() test that I
recently committed to the S4 smbtorture
2009-03-10 16:45:45 +11:00
Andrew Tridgell
a67bc41d6b added a test that triggers a bug in the Samba3 notify code
The Samba3 internal notify code doesn't work correctly when there is
more than one tree connect to the same smbd process. This change to
the RAW-NOTIFY test triggers the bug.
2009-03-10 15:12:48 +11:00
Simo Sorce
f088353d37 Fix potential segfaults using freed memory.
In some code paths ltdb_context was still referenced even after we were returned
an error by one of the callbacks. Because the interface assumes that once an
error is returned the ldb_request may be freed, and because the ltdb_context was
allocated as a child of the request, this might cause access to freed memory.
Allocate the ltdb_context on ldb, and keep track of what's going on with the
request by adding a spy children on it. This way even if the request is freed
before the ltdb_callback is called, we will safely free the ctx and just quietly
return.
2009-03-09 20:12:11 -04:00
Jelmer Vernooij
218ce0e805 Fix prototype mismatch. 2009-03-09 21:49:44 +01:00
Jelmer Vernooij
3b181564c5 Merge branch 'master' of ssh://git.samba.org/data/git/samba 2009-03-09 21:42:13 +01:00
Björn Jacke
0d2de5380d use LIB_PATH_VAR in selftest.sh if we have it
if we have LIB_PATH_VAR we should use it, otherwise we'll unobtrusively
complain about not having it and use the most likely LD_LIBRARY_PATH.

Signed-off-by: Jelmer Vernooij <jelmer@samba.org>
2009-03-09 18:31:11 +01:00
Karolin Seeger
c666aef471 s3/packaging: Fix typo in comment.
Karolin
2009-03-09 16:16:55 +01:00
Karolin Seeger
a60aaf214c s3/packaging: Package new files properly.
That is part of the fix for bug #6144.
Thanks to Diego Remolina dijuremo [at] gatech [dot] edu for reporting!

Karolin
2009-03-09 16:16:55 +01:00
Volker Lendecke
6b1170c9d6 Fix a typo 2009-03-09 16:13:31 +01:00
Stefan Metzmacher
1410490fe7 s3:lib: interfaces.c isn't used in the configure tests anymore
libreplace always provides the getifaddr() function.

This fixes the build on sles8.

metze
2009-03-09 12:49:13 +01:00
Björn Jacke
c3691b839c fix "dubious escape" warning of Studio compiler 2009-03-09 10:47:30 +01:00
Stefan Metzmacher
5ff4cb580f socket_wrapper: try to make ipv6 support more portable
The internal structure of in6_addr isn't always the same.

metze
2009-03-09 10:21:30 +01:00
Stefan Metzmacher
3679e82434 socket_wrapper: downgrade ipv6 sockets to ipv4 is in connect() if the dest is ipv4
We only do this if the socket isn't explicit bound yet.

metze
2009-03-08 17:22:26 +01:00
Stefan Metzmacher
f9156f6c77 socket_wrapper: correctly handle connected dgram sockets
metze
2009-03-08 17:22:25 +01:00
Stefan Metzmacher
81e2633e41 socket_wrapper: make it possible to bind to '::'
metze
2009-03-08 15:18:05 +01:00
Volker Lendecke
dea9621680 Don't copy the winbindd_request in wb_trans 2009-03-08 12:52:58 +01:00
Volker Lendecke
e503148225 Convert wb_open_pipe to tevent_req 2009-03-08 12:52:58 +01:00
Volker Lendecke
33db1e07a7 Convert wb_connect to tevent_req 2009-03-08 12:52:58 +01:00
Volker Lendecke
549c30e9fe Convert wb_int_trans to tevent_req 2009-03-08 12:52:58 +01:00
Volker Lendecke
eb177592b5 Add parameter "queue" to wb_int_trans_send 2009-03-08 12:52:58 +01:00
Volker Lendecke
c7df046339 Move "struct req_read_state" where it belongs 2009-03-08 11:21:00 +01:00
Volker Lendecke
1611e63ae5 Convert wb_resp_write to tevent_req 2009-03-08 11:21:00 +01:00
Volker Lendecke
80fcd76421 Convert wb_resp_read to tevent_req 2009-03-08 11:21:00 +01:00