1
0
mirror of https://github.com/samba-team/samba.git synced 2025-11-19 04:23:48 +03:00
Commit Graph

851 Commits

Author SHA1 Message Date
Tim Potter
09d4abecb0 r10646: Hey Jelmer what do you think of this? The SConscript for the libcli
directory now looks like the config.mk file but with different
punctuation.

The only weird bit is that it creates a proto.h file for each subsystem.
2007-10-10 13:39:14 -05:00
Stefan Metzmacher
131e5dfe69 r10638: - add wrepl_socket_merge() function that creates a wrepl_socket on top
of an existing socket, that is needed to handle WREPL_REPL_UPDATE
  in the server, because we need to flig the connection and act as client on it

metze
2007-10-10 13:39:14 -05:00
Rafal Szczesniak
ef29863d99 r10636: Formatting for better readability.
rafal
2007-10-10 13:39:13 -05:00
Rafal Szczesniak
7b3a4096b5 r10635: Formatting for better readability.
rafal
2007-10-10 13:39:13 -05:00
Stefan Metzmacher
ba3685c41d r10627: - use a wrepl specific enum for the node type
- the unknown flag 0x10 seems to mean that this name was localy registered on this
  currently asked server, that flag is not present in replica records

metze
2007-10-10 13:39:13 -05:00
Stefan Metzmacher
b98efc2905 r10608: - fix hierachical memory handling in ndr_pull_nbt_name
- add wrepl_nbt_name scalar type and do the pull/push in the ndr layer
  instead of the caller
- give the flags and group_flag in the wrepl_name a meaning

metze
2007-10-10 13:39:12 -05:00
Andrew Bartlett
0d757b169a r10598: Factor out common code, in preperation for a move elsewhere.
Andrew Bartlett
2007-10-10 13:39:10 -05:00
Jelmer Vernooij
b53313dc51 r10586: Add MergedObject() builder. Default to Library() rather
then StaticLibrary()
2007-10-10 13:39:08 -05:00
Stefan Metzmacher
bfd548ca10 r10569: add all info that we have to wrepl_name, as we need it for replication :-)
metze
2007-10-10 13:39:06 -05:00
Stefan Metzmacher
ff12723477 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
2007-10-10 13:39:04 -05:00
Stefan Metzmacher
e753114e86 r10545: map ECONNRESET to NT_STATUS_CONNECTION_RESET
metze
2007-10-10 13:39:04 -05:00
Stefan Metzmacher
e06ca726f3 r10542: if the transport is dead we need to return
tridge: I think this is correct, comments?

metze
2007-10-10 13:39:03 -05:00
Stefan Metzmacher
495996cfc4 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
2007-10-10 13:39:03 -05:00
Stefan Metzmacher
0983452bf8 r10530: - fix some crash bugs when we lost the connection...
metze
2007-10-10 13:39:02 -05:00
Stefan Metzmacher
dc5d5953b6 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
2007-10-10 13:39:02 -05:00
Jelmer Vernooij
a5b88bcd42 r10513: Reduce some use of pstring. The main reason some parts of the code still
use pstring is next_token() now.
2007-10-10 13:38:58 -05:00
Stefan Metzmacher
4527815a0a 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
2007-10-10 13:38:57 -05:00
Tim Potter
3c9c3a52e3 r10499: Export cli_ldap library. 2007-10-10 13:38:56 -05:00
Volker Lendecke
4637964b19 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
2007-10-10 13:38:54 -05:00
Tim Potter
4a03773c99 r10482: Add files to proto_files enough to build libcli and librpc directories. 2007-10-10 13:38:53 -05:00
Jelmer Vernooij
703ffbaaac r10478: More work on proto headers; we now generate a couple of smaller ones
that are then included by include/proto.h
2007-10-10 13:38:52 -05:00
Jelmer Vernooij
29919a7105 r10438: Move portability functions to lib/replace/; replace now simply ensures
that a given set of (working) POSIX functions are available (without
prefixes to their names, etc). See lib/replace/README for a list.

Functions that behave different from their POSIX specification
(such as sys_select, sys_read, etc) have kept the sys_ prefix.
2007-10-10 13:38:45 -05:00
Andrew Bartlett
194e8f07c0 r10402: Make the RPC-SAMLOGON test pass against Win2k3 SP0 again.
I still have issues with Win2k3 SP1, and Samba4 doesn't pass it's own
test for the moment, but I'm working on these issues :-)

This required a change to the credentials API, so that the special
case for NTLM logins using a principal was indeed handled as a
special, not general case.

Also don't set the realm from a ccache, as then it overrides --option=realm=.

Andrew Bartlett
2007-10-10 13:38:39 -05:00
Volker Lendecke
17dbbf965b r10395: While playing with winbind, I found a segfault because I had given
resolve_name_send a stack-allocated method list. Duplicate it.

Volker
2007-10-10 13:38:39 -05:00
Jelmer Vernooij
4f0d7f75b9 r10348: Add scons scripts for remaining subsystems. Most subsystems build now,
but final linking still fails (as does generating files asn1, et, idl and proto
files)
2007-10-10 13:38:30 -05:00
Jelmer Vernooij
59d4450453 r10336: Add sconscript for a couple more subsystems. 2007-10-10 13:38:29 -05:00
Andrew Tridgell
09948a5933 r10213: fixed a memory leak in the ldap client and server code spotted by Karl
Melcher. ldap_encode() now takes a memory context to use for the data
blob
2007-10-10 13:38:09 -05:00
Andrew Tridgell
9cc000d868 r10200: added a composite_trigger_done() call that allows a composite function
to cause an event to happen immediately. This allows metzes patch for
recognising IPs in resolve_name() to work, and also allows us to
remove some of the other code where we currently do specific checks
for is_ipaddress().
2007-10-10 13:38:08 -05:00
Tim Potter
2f24fc7a7a r10185: Fix another two sets of unhandled enumeration warnings, plus correct some awful indentation. (-: 2007-10-10 13:38:06 -05:00
Stefan Metzmacher
7492afa48d r10129: fix sinple ip's in wins replication, packets
metze
2007-10-10 13:38:01 -05:00
Stefan Metzmacher
e44aca0a8e r10115: bind client connection to the best interface, to the partner
metze
2007-10-10 13:38:00 -05:00
Stefan Metzmacher
d8b84112bb r10113: rename libcli/wins to libcli/wrepl
metze
2007-10-10 13:38:00 -05:00
Tim Potter
cc24af6545 r10103: Put an #ifdef guard around ENOTSUP to fix systems that don't have it
(OpenBSD 3.7).
2007-10-10 13:37:59 -05:00
Stefan Metzmacher
7dd931ee5a r10081: - create a seperate WINSDB subsystem
- use LIBCLI_WREPL for the winsreplication client code
- fix some dependencies

metze
2007-10-10 13:37:51 -05:00
Derrell Lipman
c1a9ea47a3 r9824: r9495@cabra: derrell | 2005-08-31 09:33:55 -0400
add a readme file to indicate what the smbc directory is for
2007-10-10 13:36:15 -05:00
Andrew Bartlett
6202267f6e r9728: A *major* update to the credentials system, to incorporate the
Kerberos CCACHE into the system.

This again allows the use of the system ccache when no username is
specified, and brings more code in common between gensec_krb5 and
gensec_gssapi.

It also has a side-effect that may (or may not) be expected: If there
is a ccache, even if it is not used (perhaps the remote server didn't
want kerberos), it will change the default username.

Andrew Bartlett
2007-10-10 13:34:54 -05:00
Andrew Tridgell
b3d491b210 r9702: r9680@blu: tridge | 2005-08-27 18:45:08 +1000
- fixed ncacn_ip_tcp to use the generic async name resolution methods,
   so NBT names now work (as requested several times by abartlet!)

 - changed resolve_name() to take an event_context, so it doesn't cause
   the whole process to block

 - cleaned up the talloc_find_parent_bytype() calls to go via a cleaner
   event_context_find() call
2007-10-10 13:34:51 -05:00
Stefan Metzmacher
e4424d2a6d r9638: add error code that you get when you call DsGetNCChanges() with a tmp_highest_usn which is
higher than the real highest of the source dsa

metze
2007-10-10 13:34:36 -05:00
Andrew Tridgell
d151a9459d r9573: fixed a comment 2007-10-10 13:34:30 -05:00
Stefan Metzmacher
2cbbb8ace2 r9514: add some new error codes I was getting with DsGetNCChanges() and DsAddEntry()
metze
2007-10-10 13:34:25 -05:00
Stefan Metzmacher
550e3030f0 r9511: - fix the memory trees
- add a note about a possible talloc_free()

metze
2007-10-10 13:34:24 -05:00
Stefan Metzmacher
6d412cf0a4 r9510: fix the memory tree
metze
2007-10-10 13:34:24 -05:00
Andrew Bartlett
134550cf75 r9505: Work on GENSEC and the code that calls it, for tighter interface
requirements, and for better error reporting.

In particular, the composite session setup (extended security/SPNEGO)
code now returns errors, rather than NT_STATUS_NO_MEMORY.  This is
seen particularly when GENSEC fails to start.

The tighter interface rules apply to NTLMSSP, which must be called
exactly the right number of times.  This is to match some of our other
less-tested modules, where adding flexablity is harder.  (and this is
security code, so let's just get it right).  As such, the DCE/RPC and
LDAP clients have been updated.

Andrew Bartlett
2007-10-10 13:34:24 -05:00
Alexander Bokovoy
4f9f4312e9 r9479: More fixes for explicit ignoring of returned result to fix Coverity warnings 2007-10-10 13:34:20 -05:00
Alexander Bokovoy
d1b7a4a24c r9476: Make intention to ignore result of receiving excplicit. Fixes warning found by Coverity 2007-10-10 13:34:20 -05:00
Andrew Bartlett
ca6cf46270 r9421: Move arcfour code into it's own file, in lib/crypto.
Andrew Bartlett
2007-10-10 13:33:37 -05:00
Tim Potter
9e5ce3a288 r9291: Add a stub for smb_raw_lpq() which is in smb_interfaces.h but doesn't
seem to be used anywhere yet.
2007-10-10 13:33:21 -05:00
Stefan Metzmacher
83d65d0d7e r9240: - move struct security_token to the idl file, with this we can
the ndr_pull/push/print functions for it in the ntacl-lsm module

- fix compiler warnings in the ldap_encode_ndr_* code

metze
2007-10-10 13:31:37 -05:00
Tim Potter
5e6d330e73 r9223: Rename smb_raw_session_setup() to smb_raw_sesssetup(). 2007-10-10 13:31:33 -05:00
Tim Potter
26b191b3c9 r9222: Rename smb_tree_connect() to smb_raw_tcon() to match other raw function
names.
2007-10-10 13:31:33 -05:00