Jelmer Vernooij [Mon, 26 Sep 2005 18:16:23 +0000 (18:16 +0000)]
r10516: Add seperator argument to str_list_{make,join}_shell()
Jelmer Vernooij [Mon, 26 Sep 2005 18:15:24 +0000 (18:15 +0000)]
r10515: Handle replacement of "domain logons" and "domain master" by "server role"
Jelmer Vernooij [Mon, 26 Sep 2005 17:42:12 +0000 (17:42 +0000)]
r10514: Add str_list_make_shell() and str_list_join_shell()
Jelmer Vernooij [Mon, 26 Sep 2005 16:57:08 +0000 (16:57 +0000)]
r10513: Reduce some use of pstring. The main reason some parts of the code still
use pstring is next_token() now.
Jelmer Vernooij [Mon, 26 Sep 2005 15:59:43 +0000 (15:59 +0000)]
r10510: Decrease the amount of data included by includes.h a bit
Jelmer Vernooij [Mon, 26 Sep 2005 15:15:50 +0000 (15:15 +0000)]
r10509: Some more sconscript fixes. Now getting to link stage for smbclient
Stefan Metzmacher [Mon, 26 Sep 2005 13:42:42 +0000 (13:42 +0000)]
r10508: - implement WINBINDD_NETBIOS_NAME, WINBINDD_DOMAIN_NAME and WINBINDD_INFO
is there a way to test this calls?
vl: please review this
metze
Jelmer Vernooij [Mon, 26 Sep 2005 13:12:02 +0000 (13:12 +0000)]
r10507: Let lib/replace take care of defining socklen_t for heimdal
Stefan Metzmacher [Mon, 26 Sep 2005 13:02:47 +0000 (13:02 +0000)]
r10506: set return data correctly
metze
Stefan Metzmacher [Mon, 26 Sep 2005 11:47:55 +0000 (11:47 +0000)]
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
Tim Potter [Mon, 26 Sep 2005 07:36:26 +0000 (07:36 +0000)]
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).
Tim Potter [Mon, 26 Sep 2005 07:34:09 +0000 (07:34 +0000)]
r10499: Export cli_ldap library.
Tim Potter [Mon, 26 Sep 2005 07:33:55 +0000 (07:33 +0000)]
r10498: Detect some more networking headers.
Hardcode value of RETSIGTYPE for now.
Diddle with order of including SConscript files to make ldb happier.
Tim Potter [Mon, 26 Sep 2005 07:32:14 +0000 (07:32 +0000)]
r10497: Export the list of dsdb ldb modules.
Andrew Tridgell [Mon, 26 Sep 2005 02:03:06 +0000 (02:03 +0000)]
r10496: - added configure test for sys/time.h
- print length of failed locks
Andrew Tridgell [Mon, 26 Sep 2005 01:46:02 +0000 (01:46 +0000)]
r10495: older redhat boxes need sys/time.h for select()
Andrew Tridgell [Mon, 26 Sep 2005 01:37:46 +0000 (01:37 +0000)]
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
Andrew Tridgell [Mon, 26 Sep 2005 01:28:49 +0000 (01:28 +0000)]
r10493: we need sys/select.h to enable select() in the solaris workaround
Andrew Tridgell [Mon, 26 Sep 2005 01:12:12 +0000 (01:12 +0000)]
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.
Volker Lendecke [Sun, 25 Sep 2005 21:01:56 +0000 (21:01 +0000)]
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
Andrew Tridgell [Sun, 25 Sep 2005 13:17:03 +0000 (13:17 +0000)]
r10490: - allow deferred irpc replies to set the status
- add an example of deferred reply for echodata in LOCAL-IRPC
Andrew Tridgell [Sun, 25 Sep 2005 13:01:26 +0000 (13:01 +0000)]
r10489: added the ability for irpc server to defer replies instead of replying
immediately. They set m->defer_reply = True;
Andrew Bartlett [Sun, 25 Sep 2005 12:38:07 +0000 (12:38 +0000)]
r10488: (Missing file from previous commit, adding a new RPC-JOIN test)
This is a merge of Brad Henry's 'net join' rework, to better perform
an ADS join, particularly as a DC. This represents the bulk of his
Google SOC work, and I'm very pleased to intergrate it into the tree.
(Metze will intergrate the DRSUAPI work later).
Both metze and myself have also put a lot of time into this patch, and
in mentoring Brad in general. In return, Brad has been a very good
student, and has taken the comments well.
Since it's last appearance on samba-technical@, I have made
correctness and valgrind fixups, as well as adding a new 'BINDING'
mode to the libnet_rpc routines. This allows the exact binding string
to be passed down from the torture code, including options and exact
target host.
Jelmer Vernooij [Sun, 25 Sep 2005 12:27:36 +0000 (12:27 +0000)]
r10487: Some small updates to the manpage.
Andrew Bartlett [Sun, 25 Sep 2005 12:26:07 +0000 (12:26 +0000)]
r10486: This is a merge of Brad Henry's 'net join' rework, to better perform
an ADS join, particularly as a DC. This represents the bulk of his
Google SOC work, and I'm very pleased to intergrate it into the tree.
(Metze will intergrate the DRSUAPI work later).
Both metze and myself have also put a lot of time into this patch, and
in mentoring Brad in general. In return, Brad has been a very good
student, and has taken the comments well.
Since it's last appearance on samba-technical@, I have made
correctness and valgrind fixups, as well as adding a new 'BINDING'
mode to the libnet_rpc routines. This allows the exact binding string
to be passed down from the torture code, including options and exact
target host.
Andrew Bartlett
Andrew Tridgell [Sun, 25 Sep 2005 00:14:45 +0000 (00:14 +0000)]
r10485: run autoheader before autoconf
Andrew Tridgell [Sun, 25 Sep 2005 00:13:25 +0000 (00:13 +0000)]
r10484: try to fix the pread/pwrite declaration problems
Andrew Tridgell [Sat, 24 Sep 2005 23:52:30 +0000 (23:52 +0000)]
r10483: fixed some uninitialised variables warnings
Tim Potter [Sat, 24 Sep 2005 23:35:50 +0000 (23:35 +0000)]
r10482: Add files to proto_files enough to build libcli and librpc directories.
Tim Potter [Sat, 24 Sep 2005 22:58:18 +0000 (22:58 +0000)]
r10481: #define _GNU_SOURCE for comparison_fn_t test.
Jelmer Vernooij [Sat, 24 Sep 2005 22:37:54 +0000 (22:37 +0000)]
r10480: Fix build for people that don't have pidl installed
Volker Lendecke [Sat, 24 Sep 2005 17:49:33 +0000 (17:49 +0000)]
r10479: Apply some const
Jelmer Vernooij [Sat, 24 Sep 2005 16:23:41 +0000 (16:23 +0000)]
r10478: More work on proto headers; we now generate a couple of smaller ones
that are then included by include/proto.h
Simo Sorce [Sat, 24 Sep 2005 15:42:15 +0000 (15:42 +0000)]
r10477: expose transactions outside ldb and change the API once more
do not autostart transactions on ldb operations if a transaction is already in place
test transactions on winsdb
all my tests passes so far
tridge please confirm this is ok for you
Jelmer Vernooij [Sat, 24 Sep 2005 14:58:18 +0000 (14:58 +0000)]
r10476: Move some more types to libreplace. Fix missing strndup errors
for heimdal
Andrew Tridgell [Sat, 24 Sep 2005 13:10:19 +0000 (13:10 +0000)]
r10475: make sure we report failures in tdbtorture (ie. get the exit status right)
Volker Lendecke [Sat, 24 Sep 2005 08:24:55 +0000 (08:24 +0000)]
r10472: Check for strndup
Andrew Tridgell [Sat, 24 Sep 2005 07:30:20 +0000 (07:30 +0000)]
r10471: stratos doesn't have getpagesize(), so guess 8k on systems that don't
have it. Overestimating is harmless.
Andrew Tridgell [Sat, 24 Sep 2005 07:07:22 +0000 (07:07 +0000)]
r10470: solaris8 has a problem with tdbtorture with 3 processes. To see if
this is just a solaris issue this patch changes the default to 3, and
I'll see how many build farm boxes break
Andrew Tridgell [Sat, 24 Sep 2005 06:53:24 +0000 (06:53 +0000)]
r10469: use the older style of structure initialisation for tdb to make it
more portable. tdb is used in more than just Samba4, and I think the
portability/readability balance is a bit different
Andrew Tridgell [Sat, 24 Sep 2005 06:49:28 +0000 (06:49 +0000)]
r10468: - terminate tdbtorture quickly when an error is detected
- more workarounds for aix not handling malloc of size 0
Andrew Tridgell [Sat, 24 Sep 2005 05:02:02 +0000 (05:02 +0000)]
r10467: aix doesn't like zero length malloc :(
Andrew Tridgell [Sat, 24 Sep 2005 04:56:51 +0000 (04:56 +0000)]
r10466: work around missing pread/pwrite declaration on openbsd
Andrew Tridgell [Sat, 24 Sep 2005 03:43:02 +0000 (03:43 +0000)]
r10465: separate out a read_only db from a read-only traversal to ensure we
don't end up doing a mmap read only
Andrew Bartlett [Sat, 24 Sep 2005 03:31:01 +0000 (03:31 +0000)]
r10464: Use more consistant names.
Andrew Bartlett
Andrew Tridgell [Sat, 24 Sep 2005 03:29:50 +0000 (03:29 +0000)]
r10463: consider it an error if tdbtorture produces any log messages
Andrew Tridgell [Sat, 24 Sep 2005 03:28:10 +0000 (03:28 +0000)]
r10462: cope better with compilers that don't put the object file in the same directory
as the source
Andrew Tridgell [Sat, 24 Sep 2005 02:39:09 +0000 (02:39 +0000)]
r10461: fixed tdb build on systems without stdint.h
Andrew Tridgell [Sat, 24 Sep 2005 02:37:22 +0000 (02:37 +0000)]
r10460: fixed portability of transaction code to systems with integer
alignment constraints (like sparc)
Andrew Tridgell [Sat, 24 Sep 2005 02:31:43 +0000 (02:31 +0000)]
r10459: fixed some portability problems
Jelmer Vernooij [Fri, 23 Sep 2005 16:32:52 +0000 (16:32 +0000)]
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
Jelmer Vernooij [Fri, 23 Sep 2005 15:08:17 +0000 (15:08 +0000)]
r10453: Fix the build
Jelmer Vernooij [Fri, 23 Sep 2005 14:09:38 +0000 (14:09 +0000)]
r10452: Couple of small scons updates - ignore .sconsign files
Jelmer Vernooij [Fri, 23 Sep 2005 13:06:23 +0000 (13:06 +0000)]
r10450: Use exit code 1 in case of fatal errors
Stefan Metzmacher [Fri, 23 Sep 2005 07:53:58 +0000 (07:53 +0000)]
r10449: remove double copyright header
metze
Tim Potter [Fri, 23 Sep 2005 07:43:43 +0000 (07:43 +0000)]
r10448: Add librpc SConscript file to build.
Tim Potter [Fri, 23 Sep 2005 07:43:06 +0000 (07:43 +0000)]
r10447: Add gensec sources to proto.h
Tim Potter [Fri, 23 Sep 2005 07:42:17 +0000 (07:42 +0000)]
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?)
Tim Potter [Fri, 23 Sep 2005 07:40:15 +0000 (07:40 +0000)]
r10445: Add --header to pidl flags.
Tim Potter [Fri, 23 Sep 2005 07:36:09 +0000 (07:36 +0000)]
r10444: Add LIBBASIC files to proto.h
Tim Potter [Fri, 23 Sep 2005 06:39:34 +0000 (06:39 +0000)]
r10443: Fix emitter for NdrMarshaller tool.
Tim Potter [Fri, 23 Sep 2005 02:28:30 +0000 (02:28 +0000)]
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.
Andrew Bartlett [Fri, 23 Sep 2005 02:05:26 +0000 (02:05 +0000)]
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
Jelmer Vernooij [Fri, 23 Sep 2005 00:38:22 +0000 (00:38 +0000)]
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.
Tim Potter [Thu, 22 Sep 2005 23:30:08 +0000 (23:30 +0000)]
r10436: Some thoughts on getting pidl working in scons.
Stefan Metzmacher [Thu, 22 Sep 2005 19:44:08 +0000 (19:44 +0000)]
r10435: fill in the reference to the generic wbsrv_call in the wbsrv_samba3_call,
so that async function can use it.
metze
Stefan Metzmacher [Thu, 22 Sep 2005 19:36:43 +0000 (19:36 +0000)]
r10434: add a short path to the event context that should be used for async replies
metze
Stefan Metzmacher [Thu, 22 Sep 2005 18:35:08 +0000 (18:35 +0000)]
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
Andrew Tridgell [Thu, 22 Sep 2005 13:20:28 +0000 (13:20 +0000)]
r10424: for caller convenience, automatically turn a tdb_traverse() into a
tdb_traverse_read() for read only databases
Andrew Tridgell [Thu, 22 Sep 2005 13:16:23 +0000 (13:16 +0000)]
r10423: minor changes to the ldb test suite to allow it to work correctly with
a real ldap backend (such as openldap)
Andrew Tridgell [Thu, 22 Sep 2005 13:14:12 +0000 (13:14 +0000)]
r10422: ldb_search() can now use tdb_traverse_read() to ensure it can run in
parallel with any transaction
Andrew Tridgell [Thu, 22 Sep 2005 13:12:46 +0000 (13:12 +0000)]
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
Jelmer Vernooij [Thu, 22 Sep 2005 12:23:44 +0000 (12:23 +0000)]
r10420: Two minor scons fixes
Simo Sorce [Thu, 22 Sep 2005 09:06:37 +0000 (09:06 +0000)]
r10419: Remove unused prototypes of locking functions (thanks Jelmer)
omment about transactions
Tim Potter [Thu, 22 Sep 2005 08:47:32 +0000 (08:47 +0000)]
r10418: Fix comparison_fn_t test I busted. Add $HOME to the environment as some
tools get confused if it isn't there.
Tim Potter [Thu, 22 Sep 2005 07:17:24 +0000 (07:17 +0000)]
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.
Tim Potter [Thu, 22 Sep 2005 06:38:26 +0000 (06:38 +0000)]
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.
Tim Potter [Thu, 22 Sep 2005 06:20:53 +0000 (06:20 +0000)]
r10414: Fix building of proto.h
Andrew Tridgell [Thu, 22 Sep 2005 05:31:16 +0000 (05:31 +0000)]
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
Andrew Tridgell [Thu, 22 Sep 2005 05:03:03 +0000 (05:03 +0000)]
r10410: blindly update the scons file for tdb. I'm not sure how this works,
but it definately needs transaction.c now
Andrew Tridgell [Thu, 22 Sep 2005 04:57:35 +0000 (04:57 +0000)]
r10409: allow smb.conf override of ldb synchronous transactions with "ldb:nosync = yes/no"
Andrew Tridgell [Thu, 22 Sep 2005 04:40:23 +0000 (04:40 +0000)]
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
Andrew Tridgell [Thu, 22 Sep 2005 04:19:57 +0000 (04:19 +0000)]
r10407: the schannel database does not need to be synchronous (and thus crash
safe) as it is removed on smbd restart
Andrew Tridgell [Thu, 22 Sep 2005 04:16:46 +0000 (04:16 +0000)]
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
Andrew Tridgell [Thu, 22 Sep 2005 03:56:41 +0000 (03:56 +0000)]
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.
Andrew Tridgell [Thu, 22 Sep 2005 03:52:32 +0000 (03:52 +0000)]
r10404: make sure we use the right smb.conf in the ldap testing
Andrew Tridgell [Thu, 22 Sep 2005 03:51:50 +0000 (03:51 +0000)]
r10403: fixed the basedn for testing, and add a debug showing the size of the test in ldbtest
Andrew Bartlett [Thu, 22 Sep 2005 01:50:58 +0000 (01:50 +0000)]
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
Andrew Bartlett [Wed, 21 Sep 2005 22:55:39 +0000 (22:55 +0000)]
r10398: Don't do DNS lookups on short names (no .).
Andrew Bartlett
Volker Lendecke [Wed, 21 Sep 2005 16:35:15 +0000 (16:35 +0000)]
r10395: While playing with winbind, I found a segfault because I had given
resolve_name_send a stack-allocated method list. Duplicate it.
Volker
Jelmer Vernooij [Wed, 21 Sep 2005 15:18:11 +0000 (15:18 +0000)]
r10393: More type checking in scons
Remove unused file
Volker Lendecke [Wed, 21 Sep 2005 14:41:29 +0000 (14:41 +0000)]
r10390: Remove fstring, pstring and uint32_t from winbindd_nss.h.
Volker
Jelmer Vernooij [Wed, 21 Sep 2005 13:04:09 +0000 (13:04 +0000)]
r10389: Add Manifest file (required for CPAN)
Jelmer Vernooij [Wed, 21 Sep 2005 12:57:18 +0000 (12:57 +0000)]
r10388: Add version numbers (required for CPAN)
Andrew Bartlett [Wed, 21 Sep 2005 12:38:25 +0000 (12:38 +0000)]
r10387: By exporting KRB5_CONFIG pointing at a file of our choosing, we can
avoid DNS delays in our testsuite. The next step will be to use
kerberos in the tests (awaits application of socketwrapper or hooks
into our socket layer).
Andrew Bartlett
Andrew Bartlett [Wed, 21 Sep 2005 12:24:41 +0000 (12:24 +0000)]
r10386: Merge current lorikeet-heimdal into Samba4.
Andrew Bartlett
Andrew Tridgell [Wed, 21 Sep 2005 10:46:02 +0000 (10:46 +0000)]
r10385: removed obsolete comment
Andrew Tridgell [Wed, 21 Sep 2005 10:45:47 +0000 (10:45 +0000)]
r10384: add _GNU_SOURCE in tdb configure
Andrew Bartlett [Wed, 21 Sep 2005 10:18:40 +0000 (10:18 +0000)]
r10383: This patch is on the road to implementing servers (such as kpasswd) that
use raw krb5, not GSSAPI. I still keep the 'fake GSSAPI' code, but
under the module name 'fake_gssapi_krb5'.
Andrew Bartlett
Andrew Bartlett [Wed, 21 Sep 2005 10:17:56 +0000 (10:17 +0000)]
r10382: In the absence of client support for the full KDC-side
canonicalisation code, I've hacked Heimdal to use the default realm if
no other realm can be determined for a given host.
Andrew Bartlett