1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-27 03:21:53 +03:00
Commit Graph

6697 Commits

Author SHA1 Message Date
Jelmer Vernooij
4ad69c3dee r10576: Add testprog for named pipes. Also add GNUmakefile's for cross-compilation
using mingw32
(This used to be commit 30ba8fdc3d)
2007-10-10 13:39:06 -05:00
Stefan Metzmacher
f7c5e5a398 r10569: add all info that we have to wrepl_name, as we need it for replication :-)
metze
(This used to be commit bfd548ca10)
2007-10-10 13:39:06 -05:00
Andrew Bartlett
2ca10397af r10566: Clean up error messages to provide more accurate info.
Andrew Bartlett
(This used to be commit 640815008b)
2007-10-10 13:39:06 -05:00
Andrew Bartlett
718dd6dda6 r10565: Try to make Kerberos authentication a bit more friendly.
This disables it for 'localhost' as well as for any host our KDC does
not recognise.

Andrew Bartlett
(This used to be commit 49c6c36763)
2007-10-10 13:39:06 -05:00
Andrew Bartlett
f54b3650d6 r10564: Make the RPC-SCHANNEL test use the libnet_join code via torture_join_domain
Handle error cases in torture_create_testuser, where we can't connect
to the target server (we were segfaulting due to an untested error
path).

Andrew Bartlett
(This used to be commit 7afe14becb)
2007-10-10 13:39:05 -05:00
Andrew Bartlett
9d9e7d8563 r10563: a null 'join' is a no-op.
Andrew Bartlett
(This used to be commit cd70e8baf5)
2007-10-10 13:39:04 -05:00
Andrew Bartlett
81097e20e7 r10562: Ensure we initalise the error table with hdb errors. This ensures we
get good text error strings.

Andrew Bartlett
(This used to be commit 0600202067)
2007-10-10 13:39:04 -05:00
Andrew Bartlett
8407a1a866 r10561: This patch takes over KDC socket routines in Heimdal, and directs them
at the Samba4 socket layer.

The intention here is to ensure that other events may be processed while
heimdal is waiting on the KDC.  The interface is designed to be
sufficiently flexible, so that the plugin may choose how to time
communication with the KDC (ie multiple outstanding requests, looking
for a functional KDC).

I've hacked the socket layer out of cldap.c to handle this very
specific case of one udp packet and reply.  Likewise I also handle
TCP, stolen from the winbind code.

This same plugin system might also be useful for a self-contained
testing mode in Heimdal, in conjunction with libkdc.  I would suggest
using socket-wrapper instead however.

Andrew Bartlett
(This used to be commit 3b09f9e8f9)
2007-10-10 13:39:04 -05:00
Stefan Metzmacher
0b2c6aec92 r10547: - add wrepl_request timeout handling
- when we got an unexpected READ event, we need to do a socket_recv() to find connection errors
  and we need to mark the socket as dead (and remove the fde_event) to prevent,
  endless loops on broken connections

tridge: we should look carefull at other protocol, to handle broken connections without spinning

metze
(This used to be commit ff12723477)
2007-10-10 13:39:04 -05:00
Stefan Metzmacher
5880f79f4f r10545: map ECONNRESET to NT_STATUS_CONNECTION_RESET
metze
(This used to be commit e753114e86)
2007-10-10 13:39:04 -05:00
Stefan Metzmacher
1c701527ff r10542: if the transport is dead we need to return
tridge: I think this is correct, comments?

metze
(This used to be commit e06ca726f3)
2007-10-10 13:39:03 -05:00
Stefan Metzmacher
ad5b64b0aa r10540: fix compiler warning
metze
(This used to be commit 2bcc7747d9)
2007-10-10 13:39:03 -05:00
Stefan Metzmacher
38e43be7b8 r10537: - we now use a much nicer way to handle talloc_free(timed_event)
the events code replaces a destructor to one that returns allways -1
  while it's calling the event handler
- we don't need the composite and winsrepl specific fixes any more
- this also fixes the problem with smbcli, dcerpc, cldap, ldap and nbt
  request timeouts

metze
(This used to be commit 495996cfc4)
2007-10-10 13:39:03 -05:00
Andrew Tridgell
82ae72a0cf r10535: fixed the pidfile code (it didn't survive the recent pstring changes)
(This used to be commit 1b9e657993)
2007-10-10 13:39:03 -05:00
Jelmer Vernooij
04b7fb64e1 r10533: Eliminate another use of next_token()
(This used to be commit cff17c6ac7)
2007-10-10 13:39:03 -05:00
Jelmer Vernooij
3f41ddd882 r10532: Replace next_token() with str_list_make()
(This used to be commit 87bb382445)
2007-10-10 13:39:02 -05:00
Jelmer Vernooij
d345bab9c0 r10531: (hopefully) improve detection of socket-related functions in external libraries
(This used to be commit 20a1aba500)
2007-10-10 13:39:02 -05:00
Stefan Metzmacher
4d024ddfb5 r10530: - fix some crash bugs when we lost the connection...
metze
(This used to be commit 0983452bf8)
2007-10-10 13:39:02 -05:00
Stefan Metzmacher
fa70d1d0c2 r10529: fix a crash bug in full async code the uses the composite_trigger_done() code
the event subsystem wants to free timed_events!

metze
(This used to be commit dc5d5953b6)
2007-10-10 13:39:02 -05:00
Jelmer Vernooij
42b81d7c3e r10528: Add credentials.h back into includes.h as some compilers don't
seem to be able to handle incomplete enum types.
(This used to be commit 540155fad3)
2007-10-10 13:39:02 -05:00
Andrew Tridgell
190683f3e8 r10527: don't attempt self gdb attach if running under valgrind. This was
causing fort to get rather unhappy
(This used to be commit cc3e15e19c)
2007-10-10 13:39:01 -05:00
Andrew Tridgell
255808b665 r10526: BASEDIR must be set or we end up installing most of the binaries into lib/
(This used to be commit 8ec69f8ddf)
2007-10-10 13:39:01 -05:00
Andrew Tridgell
675f81eed3 r10525: change from AC_CHECK_TYPES() to AC_CHECK_TYPE() for intptr_t, so the
type is always available, which means we need less #ifdefs
(This used to be commit d4af4b11ae)
2007-10-10 13:39:01 -05:00
Andrew Tridgell
f895df9772 r10524: SAFE_FREE() in tdb does not need the discard_const_p()
the discard_const_p() was causing problems on openbsd where intptr_t is not defined
(This used to be commit f02a92787b)
2007-10-10 13:39:01 -05:00
Andrew Tridgell
a2dffe109b r10523: fixed timegm() to not depend on get_time_zone(), so it works in lib/replace/
the old timegm() replacement was also broken (it returned the wrong value)
(This used to be commit 342489a1d4)
2007-10-10 13:39:00 -05:00
Andrew Tridgell
251aaafe3a r10522: finally got the locking working on solaris10. This adds a read lock on
the transaction lock in tdb_traverse_read(). This prevents a pattern
of locks which triggers the deadlock detection code in solaris10. I
suspect solaris10 is trying to prevent lock starvation by granting
locks in the order they were requested, which makes it much easier to
produce deadlocks.
(This used to be commit 54203aacd1)
2007-10-10 13:39:00 -05:00
Jelmer Vernooij
691aff270b r10521: Also check sys/socket.h for definition of socklen_t (needed for AIX)
(This used to be commit 42eb14060d)
2007-10-10 13:39:00 -05:00
Andrew Bartlett
187fdaa91f r10520: The join is a nice quick RPC test.
Andrew Bartlett
(This used to be commit d50b543096)
2007-10-10 13:38:59 -05:00
Jelmer Vernooij
7f7a2d133d r10517: Get rid of use of next_token() in lib/samba3/
(This used to be commit 811a6e28cc)
2007-10-10 13:38:59 -05:00
Jelmer Vernooij
01319b8462 r10516: Add seperator argument to str_list_{make,join}_shell()
(This used to be commit 0a5c9197f2)
2007-10-10 13:38:59 -05:00
Jelmer Vernooij
bb9c9ec69c r10515: Handle replacement of "domain logons" and "domain master" by "server role"
(This used to be commit c5e3a1c55d)
2007-10-10 13:38:59 -05:00
Jelmer Vernooij
85abc86b21 r10514: Add str_list_make_shell() and str_list_join_shell()
(This used to be commit 8b86a5da73)
2007-10-10 13:38:59 -05:00
Jelmer Vernooij
49839f356f r10513: Reduce some use of pstring. The main reason some parts of the code still
use pstring is next_token() now.
(This used to be commit a5b88bcd42)
2007-10-10 13:38:58 -05:00
Jelmer Vernooij
f801ad3592 r10510: Decrease the amount of data included by includes.h a bit
(This used to be commit 03647e1321)
2007-10-10 13:38:58 -05:00
Jelmer Vernooij
e337caeed1 r10509: Some more sconscript fixes. Now getting to link stage for smbclient
(This used to be commit 6df956edba)
2007-10-10 13:38:58 -05:00
Stefan Metzmacher
98a7da2348 r10508: - implement WINBINDD_NETBIOS_NAME, WINBINDD_DOMAIN_NAME and WINBINDD_INFO
is there a way to test this calls?

vl: please review this

metze
(This used to be commit 85d4565fce)
2007-10-10 13:38:58 -05:00
Jelmer Vernooij
eb5af8841a r10507: Let lib/replace take care of defining socklen_t for heimdal
(This used to be commit fe4ff2d241)
2007-10-10 13:38:57 -05:00
Stefan Metzmacher
4b30e2bff7 r10506: set return data correctly
metze
(This used to be commit 37b5f6b417)
2007-10-10 13:38:57 -05:00
Stefan Metzmacher
ab4d635b92 r10504: - seperate implementation specific stuff, from the generic composite
stuff.
- don't use SMBCLI_REQUEST_* state's in the genreic composite stuff
- move monitor_fn to libnet.

NOTE: I have maybe found some bugs, in code that is dirrectly in DONE or ERROR
      state in the _send() function. I haven't fixed this bugs in this
      commit! We may need some composite_trigger_*() functions or so.
      And maybe some other generic helper functions...

metze
(This used to be commit 4527815a0a)
2007-10-10 13:38:57 -05:00
Tim Potter
0d46be147a r10500: More progress to getting ldb tools building. Create a list of ldb modules
to link in.  There's still a whole lot of random other junk (dcerpc, gensec,
ndr stuff, lp_foo - what a mess).
(This used to be commit b78cf1270b)
2007-10-10 13:38:57 -05:00
Tim Potter
f51e98212f r10499: Export cli_ldap library.
(This used to be commit 3c9c3a52e3)
2007-10-10 13:38:56 -05:00
Tim Potter
230e60c204 r10498: Detect some more networking headers.
Hardcode value of RETSIGTYPE for now.

Diddle with order of including SConscript files to make ldb happier.
(This used to be commit 256f8f7a38)
2007-10-10 13:38:56 -05:00
Tim Potter
6b73c29bb7 r10497: Export the list of dsdb ldb modules.
(This used to be commit e88f5f423f)
2007-10-10 13:38:56 -05:00
Andrew Tridgell
3545e513f5 r10496: - added configure test for sys/time.h
- print length of failed locks
(This used to be commit 11739ad31d)
2007-10-10 13:38:56 -05:00
Andrew Tridgell
f2e9db908a r10495: older redhat boxes need sys/time.h for select()
(This used to be commit a11762e7bc)
2007-10-10 13:38:56 -05:00
Andrew Tridgell
10de5cc72d r10494: - don't generate a tdb log message for any type of failed lock probe
- if the lock upgrade loop ever fails then log a warning
(This used to be commit 1b03c4e6c7)
2007-10-10 13:38:55 -05:00
Andrew Tridgell
66ad3ab652 r10493: we need sys/select.h to enable select() in the solaris workaround
(This used to be commit 144cc3da5e)
2007-10-10 13:38:55 -05:00
Andrew Tridgell
be27946d84 r10492: work around a bug in solaris which cases lock upgrades to fail with
EDEADLK even when progress can be made. This is not a good solution,
but I can't find anything better.
(This used to be commit 980dd17f7d)
2007-10-10 13:38:55 -05:00
Volker Lendecke
9593101ec1 r10491: First step towards wbinfo -t: This issues a name request for the primary
domain and gets the DC's name via a mailslot call.

Metze, I renamed wbsrv_queue_reply to wbsrv_send_reply in accordance with
irpc_send_reply. Having _queue_ here and _send_ there is a bit confusing. And
as everything is async anyway, the semantics should not be too much of a
problem.

Volker
(This used to be commit 4637964b19)
2007-10-10 13:38:54 -05:00
Andrew Tridgell
06085e7bc0 r10490: - allow deferred irpc replies to set the status
- add an example of deferred reply for echodata in LOCAL-IRPC
(This used to be commit 858a757a6d)
2007-10-10 13:38:54 -05:00