1
0
mirror of https://github.com/samba-team/samba.git synced 2025-02-28 01:58:17 +03:00

6526 Commits

Author SHA1 Message Date
Andrew Tridgell
d98b913aa9 r10466: work around missing pread/pwrite declaration on openbsd
(This used to be commit e615f36733966f9992670e3650fbe9b20d7d218c)
2007-10-10 13:38:49 -05:00
Andrew Tridgell
5860aef9cd r10465: separate out a read_only db from a read-only traversal to ensure we
don't end up doing a mmap read only
(This used to be commit 294ccfd46a0c4e1af9365d028acdabec03c41ad3)
2007-10-10 13:38:49 -05:00
Andrew Bartlett
5a770bf720 r10464: Use more consistant names.
Andrew Bartlett
(This used to be commit 1f726906c488355733dc1a3a89c53e194c192e68)
2007-10-10 13:38:49 -05:00
Andrew Tridgell
fbc2dbbb41 r10463: consider it an error if tdbtorture produces any log messages
(This used to be commit d9ee0e8b59ee52ed1e41865cffe97e32b504e7e7)
2007-10-10 13:38:49 -05:00
Andrew Tridgell
36cfc9c4ac r10462: cope better with compilers that don't put the object file in the same directory
as the source
(This used to be commit 312491b2511039f3d6308e70c849810c35a3259c)
2007-10-10 13:38:49 -05:00
Andrew Tridgell
5540712156 r10461: fixed tdb build on systems without stdint.h
(This used to be commit 83168c7e76c7e3adcdb0eec1611827d4db09f858)
2007-10-10 13:38:48 -05:00
Andrew Tridgell
c0e6586405 r10460: fixed portability of transaction code to systems with integer
alignment constraints (like sparc)
(This used to be commit bce35ad237a55376b6af98416eec92a7c4b422a6)
2007-10-10 13:38:48 -05:00
Andrew Tridgell
036b27c8e4 r10459: fixed some portability problems
(This used to be commit 03942dd54b31e7a4cf9c6270b26ccf68a3234b40)
2007-10-10 13:38:48 -05:00
Jelmer Vernooij
4be0ae794e r10456: More SCons fixes:
- Add framework for fallback generating code
 - Move pread / pwrite replacement functions to libreplace
 - Support pidl builds correctly
 - Support asn1 builds correctly
 - Move OS-specific checks to lib/replace/SConscript
(This used to be commit fbbfad0a1f7dedbf48e835a864f8285f283d72f3)
2007-10-10 13:38:48 -05:00
Jelmer Vernooij
da46c9252e r10453: Fix the build
(This used to be commit 7be3ec4dbb919752477e1d995df9f7d295b67687)
2007-10-10 13:38:48 -05:00
Jelmer Vernooij
b85f7857dc r10452: Couple of small scons updates - ignore .sconsign files
(This used to be commit b2d2b4f23393c727ae3feeaf4b4b65bc03a673f7)
2007-10-10 13:38:47 -05:00
Jelmer Vernooij
1e744a5108 r10450: Use exit code 1 in case of fatal errors
(This used to be commit 88ece24a4400cabef95fd1eb4ca14b7df085b529)
2007-10-10 13:38:47 -05:00
Stefan Metzmacher
aba4d018b4 r10449: remove double copyright header
metze
(This used to be commit f6bd76fa154de6ed7f7ef3257be9572f13f3ec48)
2007-10-10 13:38:47 -05:00
Tim Potter
41c393e5f4 r10448: Add librpc SConscript file to build.
(This used to be commit cc45b27034c72c20a7a17d957cf0615041d59308)
2007-10-10 13:38:47 -05:00
Tim Potter
52bf6f52a1 r10447: Add gensec sources to proto.h
(This used to be commit 1b675a1bdfa7e50e1b418ae41479f1bebc445064)
2007-10-10 13:38:47 -05:00
Tim Potter
88b74af1d8 r10446: Add ndr_base and rpc_base sources to proto.h
Generate NDR mashalling code for all idl files (why isn't this automatically by the scanner when it finds librpc/gen_ndr/{misc,dcerpc,orpc}.h in includes.h?)
(This used to be commit 01eb22b9dac4f7d06c7e760ce5f1f4b4049e41c9)
2007-10-10 13:38:46 -05:00
Tim Potter
dc56baecfb r10445: Add --header to pidl flags.
(This used to be commit 435c5bce00c069751aa59a09d7cae9c1cfbd724b)
2007-10-10 13:38:46 -05:00
Tim Potter
7906d768cc r10444: Add LIBBASIC files to proto.h
(This used to be commit 1c3748421f53f4a4e61865e1de95c53dc75d5cee)
2007-10-10 13:38:46 -05:00
Tim Potter
96f308481f r10443: Fix emitter for NdrMarshaller tool.
(This used to be commit 76341196b59fe6084dd7c4e1c5d9ef8f2a7e362d)
2007-10-10 13:38:46 -05:00
Tim Potter
c715f7256a r10442: Build librpc/libndr_misc.a from librpc/idl/misc.idl. Doesn't quite work
yet as scons somehow thinks it needs to put a directory called ndr_idl
in the command line.
(This used to be commit e4a54a4c49b958b56dc7822c800a3f5ff7eb0b60)
2007-10-10 13:38:46 -05:00
Andrew Bartlett
7cf1f5768c r10440: Start passing against Win2k3 SP1 again, with the NTLMv2 changes
described on the list.  I probably need to write more specific NTLMv2
sucess and failure mode tests.

Andrew Bartlett
(This used to be commit c4d608734a98277b1f761142eb3f89086b539847)
2007-10-10 13:38:46 -05:00
Jelmer Vernooij
f3b412fbd6 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.
(This used to be commit 29919a71059b29fa27a49b1f5b84bb8881de65fc)
2007-10-10 13:38:45 -05:00
Tim Potter
92d74c3408 r10436: Some thoughts on getting pidl working in scons.
(This used to be commit f1688a8066cd787aa630714ffc161eb0f30414f1)
2007-10-10 13:38:45 -05:00
Stefan Metzmacher
f59d435127 r10435: fill in the reference to the generic wbsrv_call in the wbsrv_samba3_call,
so that async function can use it.

metze
(This used to be commit 72302b5d3dc3657caf885d40696495b6c8aabefb)
2007-10-10 13:38:45 -05:00
Stefan Metzmacher
fdeff0fa50 r10434: add a short path to the event context that should be used for async replies
metze
(This used to be commit cc9579d08567ec38adf0617901669fb3bb91e489)
2007-10-10 13:38:45 -05:00
Stefan Metzmacher
bcf0615be5 r10426: - restructure the winbind server code a bit
- remove the echo test stuff
- abstract out the used protocol
- we have a seperate handler for the samba3 protocol now
- the backend can easy do async replies
  by setting WBSRV_CALL_FLAGS_REPLY_ASYNC in wbsrv_call
  and then call wbsrv_queue_reply() later

metze
(This used to be commit 32f3e68a569e9273b8d34fbd797c0a28494e5b6d)
2007-10-10 13:38:44 -05:00
Andrew Tridgell
86df9ca15a r10424: for caller convenience, automatically turn a tdb_traverse() into a
tdb_traverse_read() for read only databases
(This used to be commit 9b53e04377d2ff652c4a9496798d2e3aa0dccab3)
2007-10-10 13:38:44 -05:00
Andrew Tridgell
fcb41c3bbd r10423: minor changes to the ldb test suite to allow it to work correctly with
a real ldap backend (such as openldap)
(This used to be commit d267f8c6231664ec86edb2ae21e8585b1b51f7a1)
2007-10-10 13:38:44 -05:00
Andrew Tridgell
1828b783cf r10422: ldb_search() can now use tdb_traverse_read() to ensure it can run in
parallel with any transaction
(This used to be commit ddff66298f1a668c5220e24fc47f98d7dfc3068a)
2007-10-10 13:38:44 -05:00
Andrew Tridgell
bd310b7925 r10421: following on discussions with simo, I have worked out a way of
allowing searches to proceed while another process is in a
transaction, then only upgrading the transaction lock to a write lock
on commit.

The solution is:

 - split tdb_traverse() into two calls, called tdb_traverse() and
   tdb_traverse_read(). The _read() version only gets read locks, and
   will fail any write operations made in the callback from the
   traverse.

 - the normal tdb_traverse() call allows for read or write operations
   in the callback, but gets the transaction lock, preventing
   transastions from starting inside the traverse

In addition we enforce the following rule that you may not start a
transaction within a traverse callback, although you can start a
traverse within a transaction

With these rules in place I believe all the deadlock possibilities are
removed, and we can now allow for searches to happen in parallel with
transactions
(This used to be commit 7dd31288a701d772e45b1960ac4ce4cc1be782ed)
2007-10-10 13:38:44 -05:00
Jelmer Vernooij
05bd880626 r10420: Two minor scons fixes
(This used to be commit 749b19d34f6105c696a07cc2cd39d5acecfc735b)
2007-10-10 13:38:43 -05:00
Simo Sorce
2ce3b5a003 r10419: Remove unused prototypes of locking functions (thanks Jelmer)
omment about transactions
(This used to be commit 33352507593875a147276841fdb70de8edd668f5)
2007-10-10 13:38:43 -05:00
Tim Potter
53de9b5be0 r10418: Fix comparison_fn_t test I busted. Add $HOME to the environment as some
tools get confused if it isn't there.
(This used to be commit b2f15b5c79970b7f0be752ccf5bb8a6b3c0e5d70)
2007-10-10 13:38:43 -05:00
Tim Potter
217fac8601 r10416: Detect some more types to get rid of spurious warnings in the
lib/replace/replace.h header.

Running 'scons lib/tdb' now (mostly) builds tdb.
(This used to be commit 324bfd5d25212a0b0a3a7e30be62d1b72b10b98f)
2007-10-10 13:38:43 -05:00
Tim Potter
7e8372f253 r10415: The ldb and tdb libraries are bad examples to test out the make proto
code as they are marked as NOPROTO in the config.mk files.
(This used to be commit 5f530eacbae073e9df6adde316404f70ecfe9122)
2007-10-10 13:38:43 -05:00
Tim Potter
e42a619b8a r10414: Fix building of proto.h
(This used to be commit 4a137e4e6eca0c5718835a92d93f8a16f0504db9)
2007-10-10 13:38:42 -05:00
Andrew Tridgell
37cefc8b41 r10411: we don't need the 10 times retry on rid allocation now, as
transactions ensure two account creations can't interfere with each
other
(This used to be commit 91c27bc97662c8d8b764c76bd2d98a1b04f47337)
2007-10-10 13:38:42 -05:00
Andrew Tridgell
f08cdba2c5 r10410: blindly update the scons file for tdb. I'm not sure how this works,
but it definately needs transaction.c now
(This used to be commit fa353a5bc562fa1ace0daf6586c42d1d5698c6e4)
2007-10-10 13:38:42 -05:00
Andrew Tridgell
07f123b6c8 r10409: allow smb.conf override of ldb synchronous transactions with "ldb:nosync = yes/no"
(This used to be commit 435cbcf78b70a82c2ec89fab21e4ff8af538f2f1)
2007-10-10 13:38:42 -05:00
Andrew Tridgell
af352b4664 r10408: now that we are using tdb transactions we don't need any additional
locking code in the ldb_tdb backend, except for a single read lock
during searches to ensure searches don't cross transaction boundaries

The tdb transactions code would map these extra locks to noops anyway
(as locking makes no sense inside a transaction), but the work in
setting up the locking keys still costs something, and it makes the
code needlessly complex
(This used to be commit 1b8d368a6771360fb0626127c02b3eb95f3eae59)
2007-10-10 13:38:42 -05:00
Andrew Tridgell
6fe9eee3c4 r10407: the schannel database does not need to be synchronous (and thus crash
safe) as it is removed on smbd restart
(This used to be commit 0951db6a89d15792ee1ea6b9f37c45486958ad57)
2007-10-10 13:38:41 -05:00
Andrew Tridgell
d78ea3e34a r10406: added --nosync option to all ldb tools, so that you can control if
transactions are synchronous or not on the command line.

add LDB_FLG_NOSYNC flag to ldb_connect() so we can make our temporary
ldb databases non-synchronous
(This used to be commit dba41164e0c52f1e4351bd9057b16661cee3a822)
2007-10-10 13:38:41 -05:00
Andrew Tridgell
ede8415d61 r10405: added transactions into tdb, and hook them into ldb. See my
samba-technical posting for more details on the transactions design.

This also adds a number of command line arguments to tdbtorture,
making it more flexible, and fixes some lock deadlock conditions in
the tdbtorture code.
(This used to be commit 06bd8abba942ec9f1e23f5c5d546cbb71ca3a701)
2007-10-10 13:38:41 -05:00
Andrew Tridgell
d6de10b409 r10404: make sure we use the right smb.conf in the ldap testing
(This used to be commit aa30f8faa5924c29c81193646205b08922cdd43d)
2007-10-10 13:38:41 -05:00
Andrew Tridgell
cd67aa92a5 r10403: fixed the basedn for testing, and add a debug showing the size of the test in ldbtest
(This used to be commit 740b9f7537d60c7dbd48fe592587b12b304c52d1)
2007-10-10 13:38:40 -05:00
Andrew Bartlett
51cbc188df 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
(This used to be commit 194e8f07c0cb4685797c5a7a074577c62dfdebe3)
2007-10-10 13:38:39 -05:00
Andrew Bartlett
3b7f8ddd9a r10398: Don't do DNS lookups on short names (no .).
Andrew Bartlett
(This used to be commit 77aca9619d24a8e118f53bcd1a1e54b8437812a8)
2007-10-10 13:38:39 -05:00
Volker Lendecke
e0febb258a r10395: While playing with winbind, I found a segfault because I had given
resolve_name_send a stack-allocated method list. Duplicate it.

Volker
(This used to be commit 17dbbf965bcf038be7450781e28acb5e061eb295)
2007-10-10 13:38:39 -05:00
Jelmer Vernooij
90678b76d6 r10393: More type checking in scons
Remove unused file
(This used to be commit a9e71ab5d1ed8b34f158ff0e89dd67ec785b9829)
2007-10-10 13:38:39 -05:00
Volker Lendecke
b1ad4a27cb r10390: Remove fstring, pstring and uint32_t from winbindd_nss.h.
Volker
(This used to be commit 3dc7e67dc5e5844523e9768081123c622e61c7e9)
2007-10-10 13:38:39 -05:00