1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-15 23:24:37 +03:00

847 Commits

Author SHA1 Message Date
Andrew Tridgell
7282ddda0a r6561: re-did the internal message system based on DGRAM unix domain
sockets. This gains us about 40% in messaging speed.
(This used to be commit f244a64ed537447e44229172427b5b6a5c64800c)
2007-10-10 13:16:25 -05:00
Andrew Tridgell
425350bb61 r6560: added a tdb_chainlock_read() call in ldb_search(). This guarantees
that ldb_search() sees a single consistent view of the database (by
blocking writes during a ldb_search)
(This used to be commit 917f2a8a073fd501f0626bea4f9deb91b95fdc90)
2007-10-10 13:16:25 -05:00
Jelmer Vernooij
dfaa7a3bae r6546: Fix ldb standalone build
Add autoconf to tdb
(This used to be commit 95fed657f458a856feec2fb256edd642e4179979)
2007-10-10 13:16:25 -05:00
Andrew Tridgell
98549af7bf r6528: - in tdb_fetch() we effectively disallowed zero length records by
returning NULL/0, which is the same as we used for a failure. Having
  to look at tdb->ecode (which we never do) is too error prone.

  Instead, tdb_fetch() should behave like malloc() and talloc(), where
  zero length is not special and malloc(0) returns a valid pointer.

- similarly in data_blob(), asking for data_blob(NULL, 0) should
  return a zero blob, but asking for data_blob(ptr, 0) should return a
  zero length blob with a valid pointer, just like talloc() and malloc()

This change fixes the SummaryInformation stream stored in the tdb
backend when manipulated from w2k. The w2k client was using
SET_EOF_INFORMATION to create a zero-length stream, which we return
STATUS_NOT_FOUND on, as the tdb_fetch() gave us back a NULL/0 blob,
which we returned as not-found
(This used to be commit 162bbe4402b9de6ac06103df904b9fc204fbff29)
2007-10-10 13:16:23 -05:00
Tim Potter
1403bb7e62 r6520: Fix unused variable warning.
(This used to be commit 36de31a63189dcc6126dd0c10b1af8d183d8c235)
2007-10-10 13:16:21 -05:00
Volker Lendecke
a53548d074 r6513: Commit talloc_free_children.
Volker
(This used to be commit 9fa26d2c971a7baee64d8938e31909cac80f0e5a)
2007-10-10 13:16:21 -05:00
Jelmer Vernooij
90be367a18 r6487: Use autoconf for standalone build of tdb
(This used to be commit 78bf8026bde34b7accc78f07c940ef1dcfc0dea7)
2007-10-10 13:16:19 -05:00
Jelmer Vernooij
5d794389a0 r6486: Add 'make install' and pkg-config file.
(This used to be commit e3be094fb7b0c0fec50abcb4b242414e84a9a32d)
2007-10-10 13:16:19 -05:00
Jelmer Vernooij
d4bcee3d27 r6485: Move LDAP detection M4 file and use it for the standalone ldb build
Remove a couple of unused M4 macros.

The standalone LDB build will not work until I've figured out what
AC_CHECK_LIB_EXT() does exactly (it's Samba-specific)
(This used to be commit cc20d6bb7f06e077ebe4c366e545e187a0c79472)
2007-10-10 13:16:19 -05:00
Stefan Metzmacher
39b2178fc9 r6483: fix anonymous connections, '-U %' or '-U ""%""' can be used for this
metze
(This used to be commit d31b4d7df375c0d4ea962a0df1693778d56f03ec)
2007-10-10 13:16:19 -05:00
Andrew Tridgell
62a9924781 r6481: change download instructions to include tdb and talloc
(This used to be commit ebe7071b2e93db93d7963211fce6ef02bc9e978e)
2007-10-10 13:16:19 -05:00
Andrew Tridgell
35a2368b5a r6480: fixed whitespace typo
(This used to be commit 1265c9b8a89177db94de5a8e188b666914c1d33c)
2007-10-10 13:16:18 -05:00
Andrew Tridgell
c878d4659b r6479: - added a simple web page
- fixed configure.in ordering
(This used to be commit 5a727d74d74ec23f4c33695bf5665db1ce1bc49f)
2007-10-10 13:16:18 -05:00
Jelmer Vernooij
9ced235dab r6478: Add 'make install' and a pkg-config file
(This used to be commit c8e1b7542736bd674b8407872dbbe3a9941fce59)
2007-10-10 13:16:18 -05:00
Jelmer Vernooij
26a625e857 r6477: Remove call to autoheader as autogenerated header files are not used
by talloc
(This used to be commit 5ca8a852067c34fed86f70be7f157714ecdd5501)
2007-10-10 13:16:18 -05:00
Andrew Tridgell
acb6110d5d r6474: - added a simple talloc web page at http://talloc.samba.org/
- make it easier to seperataly build talloc for other projects
(This used to be commit 27b987d267603977be8798e7e5412b91e18a316b)
2007-10-10 13:11:40 -05:00
Simo Sorce
fe4d985b6f r6470: Remove ldb_search_free() it is not needed anymore.
Just use talloc_free() to release the memory after an ldb_search().
(This used to be commit 4f0948dab0aa5e8b6a4ce486f3668ca8dfae23db)
2007-10-10 13:11:40 -05:00
Andrew Bartlett
0501a440be r6462: Move the arcfour sbox state into it's own structure, and allocate it
with talloc() for the NTLMSSP system.

Andrew Bartlett
(This used to be commit 7a93ac49c28d433ccf0f077294f473fe728b9995)
2007-10-10 13:11:39 -05:00
Andrew Bartlett
96700ef79d r6452: This particular credentials feature needs to be NULL by default.
Andrew Bartlett
(This used to be commit e4e221705306c63986f384938bbab5006caeec2e)
2007-10-10 13:11:38 -05:00
Jelmer Vernooij
499f00b4d9 r6442: Add mechanism for configuring ldb independantly of the rest of
Samba using the autoconf tools.
(This used to be commit a8de35ca27e307d1be6ebad517b7012a5de30567)
2007-10-10 13:11:37 -05:00
Tim Potter
b9456e9d67 r6360: Quieten unused variable warning.
(This used to be commit 5a598f5da17b60ad52b2ae9d8e4484286e492a1f)
2007-10-10 13:11:34 -05:00
Andrew Tridgell
9bf2c69401 r6340: - added an easy to use function to initialise a temporary ldb with some ldif
- init the schannel.ldb with some CASE_INSENSITIVE attributes
(This used to be commit e6376b24303dc513e15c7e640c8c1c8d8ca11091)
2007-10-10 13:11:33 -05:00
Andrew Bartlett
6d1ae6d35a r6271: Don't zero the cli_credentials structure - instead allow valgrind to
track the use of un-initialised values.

This change will require a recompile from clean, as the enum
describing the status of each element now has a default of
CRED_UNINITIALISED.

Andrew Bartlett
(This used to be commit 83c2eb806d43f588bd06336aa7e2dbdc00dc2c67)
2007-10-10 13:11:29 -05:00
Jeremy Allison
e3775ee850 r6238: Ensure if realloc fails on an internal
tdb we fail gracefully.
Jeremy.
(This used to be commit d69f7c05468ae54e0474b188fedabe14e7297d53)
2007-10-10 13:11:28 -05:00
Andrew Tridgell
567a74690c r6222: fixed the socket wrapper code for getsockname()
(This used to be commit 11e245a3f0e1523eba3a042db140dec8732aa985)
2007-10-10 13:11:27 -05:00
Andrew Tridgell
4b96d83147 r6150: fixed a few socket_wrapper bugs.
- now works properly with UDP, so the NBT tests work
  - fixed byte order in a few places
  - connect() now fails to non-localhost
  - fixed some places that tested for < 0, which should be == -1 (most syscalls
    return -1 on error, not "negative")
(This used to be commit 61e1eea0fdb13577de2506472c5443ee92656263)
2007-10-10 13:11:22 -05:00
Andrew Tridgell
c363874466 r6147: The maxfd was being recalculated on every event loop, which made us
less scalable. It only needs to be recalculated when we the highest fd
is destroyed.
(This used to be commit 568b9175f329f594404c9091ee5946670c40697e)
2007-10-10 13:11:22 -05:00
Jelmer Vernooij
07e3fa2146 r6144: Apparently there are more systems that have AF_UNIX then
AF_LOCAL (we already use AF_UNIX in other places).
(This used to be commit 88d93b9782766ab1159a233307ef508881caa615)
2007-10-10 13:11:22 -05:00
Jelmer Vernooij
848329b9a0 r6140: - Add configure option for enabling the socket-wrapper library, so it
can be enabled on the buildfarm without requiring --enable-developer
- Support tcp and udp being used on the same port
- FIx some portability issues (should fix the build on
							   some hosts on the buildfarm)
- Ignore setting TCP_NODELAY on (semi-)TCP sockets rather then complain about
  it not being supported (saves us from a couple of error messages for each
						  connection that is opened)
(This used to be commit 443fb7853b8d3cb516c442fdc595038544b75738)
2007-10-10 13:11:21 -05:00
Jelmer Vernooij
44d7f4f238 r6139: Move socket_wrapper to a seperate directory
(This used to be commit a2ef9225f15e369af7b884262b997ab321fd24d6)
2007-10-10 13:11:21 -05:00
Stefan Metzmacher
0403e2032b r6129: - add our own MSZIP decompression implementation
(taken from cabextract.c from KDE)
  this code maybe need to be rewritten and the
  compression side needs to be done,
  but for now it seems to works

- remove the dependency to zlib

metze
(This used to be commit 5e8558c5b4365a494aa054c3e08d4084b319e6e5)
2007-10-10 13:11:20 -05:00
Richard Sharpe
da38166904 r6118: Make it so that we can do --with-zlib=no in configure and also a couple
of small typos.
(This used to be commit 9b4069e84573f85ce4341ceacd35737a18726a0b)
2007-10-10 13:11:20 -05:00
Jeremy Allison
8c270fcedb r6093: Patch to fix sys_select so it can't drop signals if another fd
is ready to read. Patch from Mark Weaver <mark-clist@npsl.co.uk>.
Jeremy.
(This used to be commit 857e98e8ea842bb94c93b81d7b69e3d304f100f5)
2007-10-10 13:11:18 -05:00
Jelmer Vernooij
e91fb065fa r6088: Add the socket_wrapper library. This is a very simple library that
redirects traffic (currently just IP traffic) over unix domain sockets
if the SOCKET_WRAPPER_DIR environment variable has been set.
Aim is to use this for the Samba4 torture suite on the buildfarm.

The socket_wrapper library can only be used if Samba was compiled with
--enable-developer.

test_rpc.sh passes against a local smbd with SOCKET_WRAPPER_DIR set.
(and ethereal showed no traffic whatsoever)

Stuff that still needs to be fixed in socketwrapper:
 - Give ENETUNREACH if target is not localhost
 - A given port number can only be used for UDP /or/ TCP, not both.
 - Perhaps allow some calls to circumvent socketwrapper (do we need DNS?)
(This used to be commit f8a63a843ccca092d9756b64e09175d37c08550a)
2007-10-10 13:11:18 -05:00
Andrew Tridgell
a5ee5aae69 r6087: - remove the dlopen code for now (before it goes back, it needs to be
made into something that isn't a maze of #ifdefs)

- when a module is not found, make it a non-fatal error. Otherwise the standalone ldb
  tools just bail out. The previous code meant that if you had a
  module listed and it wasn't present then you could _never_ fix it,
  as you coudln't open the ldb to remove that module from @MODULES !
(This used to be commit c4728625c093d91e522b80c049e0d42d2b5f143b)
2007-10-10 13:11:18 -05:00
Andrew Tridgell
be6285adad r6086: default to stderr for error messages in ldb, so we get errors in ldb_connect()
(This used to be commit a6e492f95c6f31ed37ee32a13a34fa2847d8352d)
2007-10-10 13:11:18 -05:00
Andrew Bartlett
6ed40eda29 r6079: Add inline documentation on the credentials context API.
Andrew Bartlett
(This used to be commit 258c04e3678b936bb564ecef10f14128c0a54510)
2007-10-10 13:11:17 -05:00
Andrew Tridgell
0d36266cd4 r6075: added talloc_enable_null_tracking() (asked for by lifeless)
(This used to be commit 40b8ee186af3e7f771c680dbbb03fdcf559bf103)
2007-10-10 13:11:17 -05:00
Jelmer Vernooij
5ae38fb963 r6070: Fix typo's and fallback to "" as default user name if no
other username could be guessed.
(This used to be commit 7fe77cd65901776b5a78e8398547f364379259d3)
2007-10-10 13:11:17 -05:00
Jelmer Vernooij
2fa732c625 r6045: Couple of small GTK+ fixes
Use uint32_t and uint16_t rather then DWORD and WORD in
the NT4 backend. Add some more unknown fields..
(This used to be commit 6c3b1ec3296c7ab1ddfdcee86162f2eb0d73f5a8)
2007-10-10 13:11:16 -05:00
Andrew Bartlett
ae1ea5619b r6033: Patch from 'lifeless' to clarify behaviour with NULL pointers.
Andrew Bartlett
(This used to be commit 48c518796797f021c9c7f319ca8cd0a0c185f64c)
2007-10-10 13:11:16 -05:00
Andrew Bartlett
038c4c4c6a r6024: Some of the ordering constraints on the popt callbacks were getting
painful, so don't call lp_*() functions until the post stage (rather
than in the cli_credentails_init(), which is called in the pre stage),
and don't open the secrets.ldb looking for the machine account details
until we actually need them (well after popt is done, and we know we have the other things right).

Set the domain and realm, as well as the account and password for -P
(fetch machine password) operation.

Allow NETLOGON credentials to be stored in this structure - will allow
SCHANNEL to be made more generic.

Clarify why we don't do special checks for NULL pointers, particularly
in the anonymous check (it indicates a programmer error, not a
run-time condition).

Also make lib/credentials.c a little more consistant.

Andrew Bartlett
(This used to be commit 730e6056b730c15008772c30cd6f7c03fb6b7e5f)
2007-10-10 13:11:15 -05:00
Jelmer Vernooij
4a095be541 r5989: Display authentication information (list of available auth protocols
+ principal names per endpoint) to gepdump. Still need to fix memory management
in the GTK+ utilities...
(This used to be commit b48a0af0b0fbf1234627ec785699896a44b23e75)
2007-10-10 13:11:13 -05:00
Andrew Bartlett
79f6bcd5ae r5988: Fix the -P option (use machine account credentials) to use the Samba4
secrets system, and not the old system from Samba3.

This allowed the code from auth_domain to be shared - we now only
lookup the secrets.ldb in lib/credentials.c.

In order to link the resultant binary, samdb_search() has been moved
from deep inside rpc_server into lib/gendb.c, along with the existing
gendb_search_v().  The vast majority of this patch is the simple
rename that followed,

(Depending on the whole SAMDB for just this function seemed pointless,
and brought in futher dependencies, such as smbencrypt.c).

Andrew Bartlett
(This used to be commit e13c671619bd290a8b3cae8555cb281a9a185ee0)
2007-10-10 13:11:12 -05:00
Jelmer Vernooij
7c55d0ffa5 r5976: SIDs can't have more then 5 subauths (caught by [validate] and
range())
(This used to be commit ec1eaa274b997197ca6996457229c802f1b76d56)
2007-10-10 13:11:11 -05:00
Andrew Bartlett
e25cff1c11 r5942: A couple of small changes to fix things up with the new credentials
infrustructure.

Andrew Bartlett
(This used to be commit d51718ab8a3771ada4e342a384b744edb803db40)
2007-10-10 13:11:11 -05:00
Andrew Bartlett
645711c602 r5941: Commit this patch much earlier than I would normally prefer, but metze needs a working tree...
The main volume of this patch was what I started working on today:
 - Cleans up memory handling around DCE/RPC pipes, to have a parent talloc context.
 - Uses sepereate inner loops for some of the DCE/RPC tests

The other and more important part of this patch fixes issues
surrounding the new credentials framwork:

This makes the struct cli_credentials always a talloc() structure,
rather than on the stack.  Parts of the cli_credentials code already
assumed this.

There were other issues, particularly in the DCERPC over SMB handling,
as well as little things that had to be tidied up before test_w2k3.sh
would start to pass.

Andrew Bartlett
(This used to be commit 0453f9d05d2e336fba1f85dbf2718d01fa2bf778)
2007-10-10 13:11:11 -05:00
Andrew Tridgell
da5349dede r5939: improve talloc_realloc() docs after feedback from lifeless
(This used to be commit 301cbb0d12919f83d6b735c2e23b49fb49d5394d)
2007-10-10 13:11:10 -05:00
Andrew Tridgell
689a803ac7 r5938: - allow NULL string argument to talloc_vasprintf_append()
- default to using va_copy(), thus assuming a modern libc
(This used to be commit 3060b26c9e745330682f6209d97e723113b65b56)
2007-10-10 13:11:10 -05:00
Andrew Tridgell
340d35be2d r5937: - performance improvement to talloc_asprintf_append()
- allow standalone talloc to use gcc printf attributes
(This used to be commit e25aa54e962796e6e7385afed57aa287ef6f869d)
2007-10-10 13:11:10 -05:00