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

829 Commits

Author SHA1 Message Date
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
Andrew Tridgell
1936c20939 r9048: added a new DOS error code (thanks to EMC) 2007-10-10 13:31:11 -05:00
Simo Sorce
d844d45d87 r8917: Better support for extended ldap search operations
Try to follow the RFC where possible and adapt to
  openLdap and AD way of handling this structure
2007-10-10 13:30:57 -05:00
Jelmer Vernooij
604422b1f9 r8825: Move list of object files to .mk file 2007-10-10 13:30:09 -05:00
Jelmer Vernooij
fac77f5fa2 r8811: Fix the build.. 2007-10-10 13:30:07 -05:00
Rafal Szczesniak
40061d7bd6 r8788: New monitor messages.
rafal
2007-10-10 13:30:05 -05:00
Andrew Tridgell
86fe5817b1 r8777: make sure that the tree connect is a child of the return cli state structure.
This fixes the BASE-DISCONNECT test
2007-10-10 13:30:04 -05:00
Andrew Tridgell
77a1e3076a r8776: fixed SMB connections for IP addresses, even when name resolve order
doesn't include 'host'
2007-10-10 13:30:04 -05:00
Rafal Szczesniak
4a6ab58133 r8760: Rework monitor messaging code a bit, as Metze once suggested.
enum type has now been replaced with unsigned 32-bit field and
message data is passed as void pointer.

This allows various extension implementers to plug their monitor
messages in more easily.

rafal
2007-10-10 13:30:03 -05:00
Andrew Bartlett
f5910ceef5 r8699: removed invalid comment 2007-10-10 13:29:55 -05:00
Andrew Tridgell
0f8f1cd18e r8628: add retries to the normal paths of nbt name resolution. UDP broadcasts are not 100% reliable :) 2007-10-10 13:29:46 -05:00
Simo Sorce
a9e8cd0bad r8585: add to ldb and ldap comparison functionality
better pares filters
Approx is currently only a stub need to dig more info to
understand what it really means and how it works exactly
2007-10-10 13:29:41 -05:00
Simo Sorce
a910671bd8 r8530: Now our ldap server is able to fullfill present and substring searches 2007-10-10 13:29:35 -05:00
Andrew Tridgell
6e81e866dc r8523: match a zero message id in ldap replies to the last request sent. Thanks to simo
for noticing that this is needed to catch the server sending a "can't decode request"
error reply
2007-10-10 13:29:35 -05:00
Andrew Tridgell
a58ea6b385 r8520: fixed a pile of warnings from the build farm gcc -Wall output on
S390. This is an attempt to avoid the panic we're seeing in the
automatic builds.

The main fixes are:

 - assumptions that sizeof(size_t) == sizeof(int), mostly in printf formats

 - use of NULL format statements to perform dn searches.

 - assumption that sizeof() returns an int
2007-10-10 13:29:34 -05:00
Tim Potter
bcfb3a45e4 r8414: Some C++ friendlyness fixes - 'not' is apparently a keyword in C++. 2007-10-10 13:23:00 -05:00
Andrew Tridgell
4e66f682e4 r8407: fixed a bug left over from our old socket code.
Thanks to lha for giving me a login on a netbsd machine to see this
2007-10-10 13:22:58 -05:00
Love Hörnquist Åstrand
56fd21c806 r8394: Make sure the argument to ctype is*(3) macros are unsigned char as
required by ISO C99.
2007-10-10 13:20:14 -05:00
Andrew Tridgell
6a4e8cc991 r8247: remove the free of fullname in nbtname.c for now.
Metze, the ndr_token_store() code is storing temporary pointers into
this string in the token list, which means we are referring to freed
memory when we scan the token list. A better key might be a pointer
into the ndr buffer?
2007-10-10 13:19:25 -05:00
Stefan Metzmacher
d18303a0e2 r8212: fix pushing of nbt_string's:
- we now use an ndr_token_list, for the nbt string label pointer offsets
  this avoids to scan the whole buffer

- we need to check for already send string on a per component basis
  not only for the fullname

e.g.
w2k3 response this in the CLDAP netlogon replies

forest: w2k3.vmnet1.vm.base
dns_name: sub1.
pdc_dns_name: w2k3-104.

and this will be interpreted like

forest: w2k3.vmnet1.vm.base
dns_name: sub1.w2k3.vmnet1.vm.base
pdc_dns_name: w2k3-104.w2k3.vmnet1.vm.base

metze
2007-10-10 13:19:20 -05:00
Jeremy Allison
ff58ecad04 r8174: Check DOS error codes in torture chkpath test.
Jeremy.
2007-10-10 13:19:17 -05:00
Stefan Metzmacher
f308b72b19 r8134: remove unused var
metze
2007-10-10 13:19:12 -05:00
Andrew Tridgell
a3b8a00d7f r8125: fixed an error code mapping based on the updated torture tests 2007-10-10 13:19:11 -05:00