1
0
mirror of https://github.com/samba-team/samba.git synced 2025-02-14 01:57:53 +03:00

4768 Commits

Author SHA1 Message Date
Jelmer Vernooij
ba750f50d3 r7311: Use TARGET_CFLAGS for depend list as well
(This used to be commit 1f7a57d8d82fb759ba8997bc91405add9b46e129)
2007-10-10 13:17:40 -05:00
Jelmer Vernooij
16eaadc67c r7310: Support TARGET_CFLAGS thru recursive make
(This used to be commit 2fd997b12aa06983a614bfadca9e5f896a88b2ac)
2007-10-10 13:17:40 -05:00
Andrew Tridgell
b1381947bf r7309: started adding IDL for nbt management calls. This adds a
nbtd_information() call that has just one level for now, a
NBTD_STATISTICS level for packet statistics
(This used to be commit d0772eb5a7a023e08a7fff5ca8f4891630994e34)
2007-10-10 13:17:40 -05:00
Jelmer Vernooij
38e3381b1b r7308: Make dependency lists in the Makefile shorter (see discussion on samba-technical)
(This used to be commit 71d62d4dc7c475d17042ca466e56c51da1a2f32e)
2007-10-10 13:17:40 -05:00
Jelmer Vernooij
524f3c47cd r7307: Add phony rules for OUTPUT_TYPE OBJLIST, e.g. it is now possible
to do things like:

make SUBSYSTEM_NDR_RAW
(This used to be commit 2765b5a78d726ed3df177c92bc3f5efefcc78a9d)
2007-10-10 13:17:40 -05:00
Andrew Bartlett
8107bdec7b r7306: Use a consistant #define for detecting support for the Heimdal krb5
log redirection code.

Andrew Bartlett
(This used to be commit 93335d587d9f48c46d9c3b91237f649693cf3003)
2007-10-10 13:17:39 -05:00
Jelmer Vernooij
7f9f0897eb r7305: Some cleanups, use write out CFLAGS variable
(This used to be commit fcc556188e61c488e3e00d98ee2db823158ea4b4)
2007-10-10 13:17:39 -05:00
Andrew Bartlett
31cd6fd88d r7304: Make the libkdc actually work:
- Remove (some) excess logging
 - use samdb_connect() to hook into the right handling for multiple tdb handles
 - move the connect to the server startup, rather than per-packet.
 - Fix config.mk dependency

Tested with a WinXP domain join.

Andrew Bartlett
(This used to be commit 13cf51612d91385c6df5deadbf126bcc583f797d)
2007-10-10 13:17:39 -05:00
Stefan Metzmacher
2c499fe5aa r7303: autodetect the libkdc and our kdc support
btw: I use this for configuring heimdal

>>>
CONFIG="CFLAGS=\"-g -O -Wall -Wstrict-prototypes -Wpointer-arith -Wcast-align -Wwrite-strings -Wdeclaration-after-statement\" \
	CC=gcc-4.0 \
	./configure -C --prefix=$HOME/prefix/heimdal-test \
	--sysconfdir=/etc \
	--enable-shared=no \
	--with-ldb=$HOME/prefix/ldb \
	--without-openldap \
	--without-openssl $@"

echo $CONFIG
eval $CONFIG
>>>

maybe you also want to use --disable-berkeley-db

metze
(This used to be commit 2aec140e00770df78ba31ef91109634ce0aa3d8a)
2007-10-10 13:17:39 -05:00
Stefan Metzmacher
1723f67291 r7302: remove dublicate includes
metze
(This used to be commit be63496a315e29af5025d87c6f539f8db5e4c7d1)
2007-10-10 13:17:39 -05:00
Stefan Metzmacher
ae66cc5ef7 r7299: move the list of config.mk files to the source/
so nobody needs to look at build/smb_build/ anymore, just to use the build system

metze
(This used to be commit a94e7740d554a18b5e9ae37bdcabec8ccc5705fc)
2007-10-10 13:17:38 -05:00
Andrew Tridgell
37fdb858b0 r7298: ensure messages are sent in order even when under extreme load. This
fixes a IO_TIMEOUT problem in the messaging benchmarks
(This used to be commit c8b220b65de00418d19347cf298cc80d86e8accb)
2007-10-10 13:17:38 -05:00
Stefan Metzmacher
ba30cbf67b r7297: make the code more readable
metze
(This used to be commit f9b4448ec536ea23699d959bcf44e359d5c4ba23)
2007-10-10 13:17:38 -05:00
Andrew Tridgell
b4a95b949e r7296: avoid two stat() calls per message. This increases the raw message
rate from 20k/sec to 55k/sec. The irpc rate goes from 16k/sec to
34k/sec.

I should have run strace -T on this a long time ago.
(This used to be commit b9281668bb0c971af14df37ec3e979b9d5ef276e)
2007-10-10 13:17:38 -05:00
Andrew Tridgell
d934cb71d0 r7295: added an irpc benchmark. It gets about 16k messages/sec on my laptop,
compared to about 20k messages/sec for the raw messaging layer. I
think that is quite acceptable given the extra functionality.
(This used to be commit a05d38d1d91f1f54d3e3794a596b468992594852)
2007-10-10 13:17:38 -05:00
Andrew Tridgell
bf1ffa283c r7294: implemented the irpc messaging system. This is the core of the
management system I proposed on samba-technical a couple of days
ago. Essentially it is a very lightweight way for any code in Samba to
make IDL based rpc calls to anywhere else in the code, without the
client or server having to go to the trouble of setting up a full rpc
service.

It can be used with any of our existing IDL, but I expect it will
mostly be used for a new set of Samba specific management calls.

The LOCAL-IRPC torture test demonstrates how it can be used by calling
the echo_AddOne() call over this transport.
(This used to be commit 3d589a09954eb8b318f567e1150b0c27412fb942)
2007-10-10 13:17:37 -05:00
Andrew Bartlett
0384065235 r7293: Turn sqlite3 support off by default, use --with-sqlite3 to re-enable.
Andrew Bartlett
(This used to be commit 422579215462c31dd863ab1b7f187003dafd0af2)
2007-10-10 13:17:37 -05:00
Andrew Bartlett
c88d65a862 r7292: Fix up the build system support for derrell's sqlite3 ldb backend.
It is on by default, so I've also fixed a build issue in it.  I'll
show how to make it off be default in the next commit.

Andrew Bartlett
(This used to be commit 5a1ef888100e8ef803100a6341133d96e8a400b0)
2007-10-10 13:17:37 -05:00
Andrew Bartlett
2e787b5b17 r7291: Additional notes on what we require from a kerberos implementation.
Andrew Bartlett
(This used to be commit a8d3493b6f7a0c28465b00bbadf24e152422e4b5)
2007-10-10 13:17:37 -05:00
Andrew Tridgell
cf5d6ef899 r7290: comment out heimdal config for now
(This used to be commit ba565ba5750559828f2971c8cc27510d9bd3b7a7)
2007-10-10 13:17:37 -05:00
Andrew Tridgell
1de1131aa3 r7289: split out the list of *.mk files for the build, so you don't need to modify the perl
code to add a new library
(This used to be commit 71366b09091a147df7f5cb823a05c28f8a18201a)
2007-10-10 13:17:37 -05:00
Jelmer Vernooij
d54c2639f5 r7288: Remove empty wrapper function
(This used to be commit 879f68cef72df708a6ff7a5f5818fa8478c2a6ea)
2007-10-10 13:17:37 -05:00
Derrell Lipman
06cc74a66c r7287: work in progress. no more time to work on this right now. save latest changes.
(This used to be commit 94cbef9211597d8cdd6b5ab7bc9b655026be283a)
2007-10-10 13:17:36 -05:00
Derrell Lipman
1b454c430f r7286: add prototype for public connect function in ldb_sqlite3
(This used to be commit 10d438af06b3ab442c7a98b704d2e0bfe49b739d)
2007-10-10 13:17:36 -05:00
Andrew Bartlett
e168c5fefa r7285: It appears that MIT Kerberos does not have the log redirection
facility that I'm using. This should let us compile the non-KDC
components on MIT again.

Andrew Bartlett
(This used to be commit ae9c2d2b54a979ab8467c847b62dd2c2a0fa059f)
2007-10-10 13:17:36 -05:00
Derrell Lipman
d93e15f1d4 r7284: more build issues for sqlite3
(This used to be commit 45f88f0f81e96fc122d39e70d518a65f00e03817)
2007-10-10 13:17:36 -05:00
Derrell Lipman
f725863f75 r7283: add sqlite3.m4
(This used to be commit 10a828a442b516551762bff81782072d9807d626)
2007-10-10 13:17:36 -05:00
Derrell Lipman
217a8cfe66 r7282: ldb_sqlite3 work in progress.
(This used to be commit d934c42b00b68e8f4ac9d0583ac307818aeb494f)
2007-10-10 13:17:36 -05:00
Derrell Lipman
150f127aa3 r7281: removing document
(This used to be commit 6867d56796ce4dd85c69107c6a0a5cf4bf93f585)
2007-10-10 13:17:36 -05:00
Derrell Lipman
ec9bdca186 r7280: taking advantage of previous research. this is documentation on which latest schema is based
(This used to be commit 603faa9cabd6d83c2e0fcfea476c5bda3f76b741)
2007-10-10 13:17:35 -05:00
Jelmer Vernooij
efa7da47d4 r7278: Oops, don't compile librpc as library..
(This used to be commit e9f83bece0b09c689ef09916a70b5e0d2bd733f8)
2007-10-10 13:17:35 -05:00
Derrell Lipman
a1ba224107 r7276: - moved static tdb function ltdb_dn_fold() into common/ so that it can be
called from multiple backends.  (ldb_sqlite3 needs it too.)  Added parameter
  for a callback function that determines whether an attribute needs case
  folding.
- begin to prepare for sqlite3 in build process
- work-in-progress updates, on ldb_sqlite3
(This used to be commit a80bced0b96ffb655559a43cf7f4d7a34deb5a7d)
2007-10-10 13:17:35 -05:00
Jelmer Vernooij
5296bd1b51 r7274: Move m4 files to seperate dir
(This used to be commit 0dda66f0e8e6ad37d731937af184a132bf3407b1)
2007-10-10 13:17:35 -05:00
Jelmer Vernooij
03cdfbe8ac r7273: Update a bit
(This used to be commit aa0b6372d5a7fbd03627edfec8a372cd5a138fef)
2007-10-10 13:17:35 -05:00
Andrew Tridgell
68908f1712 r7272: this is a sample mk file for building a heimdal library using the
samba4 build system. It assumes we have source/heimdal/ with a current
lorikeet heimdal tree.

I haven't enabled this, its just an example of one possible approach
to heimdal integration.
(This used to be commit 0835d6a0d9490b79caabdda39b6fa0404bb2225f)
2007-10-10 13:17:35 -05:00
Andrew Tridgell
86bcccfba5 r7271: added the ability to specify a target specific set of CFLAGS for
binaries and libraries. This makes it possible to build heimdal with
our build system, which means users don't have to suffer two build
systems.
(This used to be commit a31ec2a750d1e668e8ccdbbcb01762bfbc08cce5)
2007-10-10 13:17:34 -05:00
Andrew Bartlett
d26f46f72c r7270: A big revamp to the way we handle kerberos errors in Samba4. We now
fill in the function pointers to handle the logging, and catch all the
kerberos warnings. (Currently at level 3).

To avoid a memory leak, this requries a new function: krb5_freelog(),
which I've added to lorikeet/heimdal.

This also required a revamp to how we handle the krb5_context, so as
to make it easier to handle with talloc destructors.

Andrew Bartlett
(This used to be commit 63272794c41231b335b73e7ccf349282f295c4d2)
2007-10-10 13:17:34 -05:00
Andrew Bartlett
8cd92242b9 r7269: talloc_steal() is preferred where possible, as it can't fail and does
not have some of the issues of talloc_reference().

Andrew Bartlett
(This used to be commit 2fb413355a7cd7b5cee02237d2fbff91381435e5)
2007-10-10 13:17:34 -05:00
Simo Sorce
791db4bf72 r7268: allocate the strings to avoid them disappearing under our feet
(This used to be commit ddd7454cb3e2445fd32682b380be89c70f8a22cb)
2007-10-10 13:17:34 -05:00
Simo Sorce
b7bc13209f r7267: REMOTE_HOST is a better choice
(This used to be commit 41bae267e29614d300ec2505c927ab17ccbbe64f)
2007-10-10 13:17:34 -05:00
Tim Potter
f84d007c43 r7266: Split the different types of js function defines into separate files,
as there are going to be a lot more of them.
(This used to be commit b086768589ee27de6616945bbea42b18b40d25d5)
2007-10-10 13:17:34 -05:00
Andrew Tridgell
89bcaa79c9 r7265: fixed d_printf() so it works again.
Jelmer, can you give me a hint as to why you changed this? It
completely broke smbclient, and the change now makes d_printf() almost
equivalent to printf() as you removed the language translation
code. See your commit 7166.

Did you intend to reenable language handling by some other method? Or
do you just mean to remove it completely?
(This used to be commit 2e293ab06f8b84ef8cf5aafde1715fa21b2bbef0)
2007-10-10 13:17:33 -05:00
Andrew Tridgell
b7b7c46eb4 r7264: fix up the socket handling for abartlet. Still only udp, but it won't
be hard to do tcp as well.
(This used to be commit 7cbb95d3f55dbaf9ca606655377682841e4c534d)
2007-10-10 13:17:33 -05:00
Tim Potter
32f2e9806b r7263: Exit smbscript with the intepreter return value (defaults to 0).
Change the exit value for an exception, usage error and other non-js
errors to 127 which is kinda like the return value for the system(3)
function.
(This used to be commit c77a232b1152a27e2d8ffb719aefba6c6b2ba6df)
2007-10-10 13:17:33 -05:00
Tim Potter
d6555cadb7 r7262: Add a length property to ARGV array.
(This used to be commit 4b775c619b7abed52d158ab70505320753a0c9cb)
2007-10-10 13:17:33 -05:00
Tim Potter
b124351079 r7261: Pass by reference is done in js via MPR_TYPE_OBJECT. Update argument
parsing and example for resolveName().
(This used to be commit 1a4a54931733ebfa743401a184fe460c044427b4)
2007-10-10 13:17:33 -05:00
Derrell Lipman
6ade5fc245 r7260: save current schema before I blow it away to try something different
(This used to be commit 676a9824934576056208d30ce34716cfb734ce58)
2007-10-10 13:17:33 -05:00
Andrew Bartlett
6113066fa5 r7259: Move the recv handler out into a seperate function (suggestion from
tridge)

Andrew Bartlett
(This used to be commit 6329f2ee369533839d209a1c86fe7949a4037fbe)
2007-10-10 13:17:32 -05:00
Andrew Bartlett
5112e38393 r7258: Fix the final linking error with libkdc - we need to link libhdb as well.
With this fix, I can request tickets from our built-in KDC!

Andrew Bartlett
(This used to be commit d7cd76013bdf000831790b29b9d0b401151bf5c2)
2007-10-10 13:17:32 -05:00
Andrew Bartlett
7ea6543ce5 r7257: Ensure the error message can never be uninitialised.
Andrew Bartlett
(This used to be commit fdd964582a4b102978fbc29dbf71de52bd30a155)
2007-10-10 13:17:32 -05:00