Michael Adam [Fri, 27 Jun 2008 11:21:42 +0000 (13:21 +0200)]
ntlm_auth: eliminate "cast pointer from integer of different size" warnings on 64bit.
Michael
Michael Adam [Fri, 27 Jun 2008 10:42:07 +0000 (12:42 +0200)]
ntlmssp: get rid of "cast to pointer from integer of different size" warning on 64 bit
Not sure if this check is actually necessary, though:
the second should be sufficient.
Michael
Michael Adam [Fri, 27 Jun 2008 06:23:26 +0000 (08:23 +0200)]
tdb_unpack: Eliminate "cast to pointer from integer of different size" warning on 64bit.
The 'p' type is just a flag to mark the presence of a pointer,
not a real pointer itself.
The code is now the same as in Samba3's tdb_unpack.
Michael
Stefan Metzmacher [Fri, 27 Jun 2008 09:34:05 +0000 (11:34 +0200)]
gsskrb5: just don't force, but allow the flags when GSS_CF_NO_CI_FLAGS is given
metze
Stefan Metzmacher [Fri, 27 Jun 2008 09:33:00 +0000 (11:33 +0200)]
gsskrb5: fix gss_krb5_cred_no_ci_flags_x_oid_desc variable name
metze
Stefan Metzmacher [Fri, 27 Jun 2008 09:31:49 +0000 (11:31 +0200)]
credentials: gss_set_cred_option() doesn't like GSS_C_NO_BUFFER
metze
Julien Kerihuel [Fri, 30 May 2008 22:47:14 +0000 (00:47 +0200)]
Fix if_version for interfaces with a if_version_minor field different from 0
Signed-off-by: Stefan Metzmacher <metze@samba.org>
Volker Lendecke [Fri, 27 Jun 2008 10:14:41 +0000 (12:14 +0200)]
Fix a non-empty line with just spaces
Volker Lendecke [Fri, 27 Jun 2008 10:14:19 +0000 (12:14 +0200)]
Fix the definition of abspath for gnu make < 3.81
Julien Kerihuel [Fri, 27 Jun 2008 07:55:30 +0000 (09:55 +0200)]
Remove events from require line:
The events library is not installed and prevent OpenChange from linking
with ldb. The following patch removes events reference from ldb pc file.
We are currently fixing this bug in openchange upstream using 'sed' in
our installsamba4.sh script, but this hack won't work with a packaged
version of samba4.
Signed-off-by: Stefan Metzmacher <metze@samba.org>
Michael Adam [Fri, 27 Jun 2008 07:12:57 +0000 (09:12 +0200)]
pynbt: eliminate "initialization from incompatible pointer type" warning
by fixing the signature of py_nbt_node_init().
Jelmer - please check!
Michael
Stefan Metzmacher [Fri, 27 Jun 2008 07:40:00 +0000 (09:40 +0200)]
nbt_server/wins: add forward declaration for struct event_context
metze
Stefan Metzmacher [Fri, 27 Jun 2008 07:39:30 +0000 (09:39 +0200)]
lib/ldb: add forward declaration for struct event_context
metze
Michael Adam [Thu, 26 Jun 2008 21:32:37 +0000 (23:32 +0200)]
credentials: gss_set_cred_option() needs gss_cred_id_t * argument, not gss_cred_id_t.
This call was added in
f573c1ff4443f3002c310d3ba29d8c343ad03907.
Metze, please check!
Michael
Stefan Metzmacher [Wed, 25 Jun 2008 17:14:34 +0000 (19:14 +0200)]
mkversion.sh: printf %s is more portable than echo -e
metze
Andrew Bartlett [Fri, 27 Jun 2008 02:56:20 +0000 (12:56 +1000)]
Fix installation of Samba4 into an empty tree.
Jelmer's previous patch failed because sh is very fussy about it's
syntax, but only compaled in this case if you take the 'no existing
binary' path.
Andrew Bartlett
Andrew Bartlett [Fri, 27 Jun 2008 02:03:23 +0000 (12:03 +1000)]
Merge branch 'v4-0-test' of ssh://git.samba.org/data/git/samba into 4-0-local
Jelmer Vernooij [Thu, 26 Jun 2008 09:51:22 +0000 (11:51 +0200)]
Use make magic for installing/uninstalling binaries.
Jelmer Vernooij [Thu, 26 Jun 2008 09:39:59 +0000 (11:39 +0200)]
Use make template for installing binaries.
Jelmer Vernooij [Thu, 26 Jun 2008 08:56:59 +0000 (10:56 +0200)]
Move blackbox tests closer to what they're testing.
Jelmer Vernooij [Thu, 26 Jun 2008 08:11:49 +0000 (10:11 +0200)]
Only try to detect the events lib dir if it wasn't set earlier.
Jelmer Vernooij [Wed, 25 Jun 2008 18:04:35 +0000 (20:04 +0200)]
Use variable for selftest directory.
Jelmer Vernooij [Wed, 25 Jun 2008 17:58:41 +0000 (19:58 +0200)]
Fix another reference to ldbdir.
Jelmer Vernooij [Wed, 25 Jun 2008 17:39:50 +0000 (19:39 +0200)]
Use ldbsrcdir rather than ldbdir.
Jelmer Vernooij [Wed, 25 Jun 2008 17:06:59 +0000 (19:06 +0200)]
Use variable for popt source dir.
Jelmer Vernooij [Wed, 25 Jun 2008 17:04:03 +0000 (19:04 +0200)]
Use ldbsrcdir rather than ldbdir.
Jelmer Vernooij [Wed, 25 Jun 2008 15:24:38 +0000 (17:24 +0200)]
Undefine HAVE_KRB5_ENCRYPT_BLOCK because Heimdal really doesn't have it.
Jelmer Vernooij [Wed, 25 Jun 2008 15:12:19 +0000 (17:12 +0200)]
Use workaround for $(abspath)
Jelmer Vernooij [Wed, 25 Jun 2008 14:51:37 +0000 (16:51 +0200)]
Revert "Remove the dependency on $(abspath) in makefiles"
This reverts commit
c85a3632623184cb97c2e8567ca77834e81070a4.
Kai Blin [Wed, 30 Apr 2008 06:15:34 +0000 (08:15 +0200)]
wbinfo: Output string for sid type in lookupsid.
Andrew Bartlett [Fri, 20 Jun 2008 09:04:14 +0000 (19:04 +1000)]
Merge branch 'v4-0-test' of ssh://git.samba.org/data/git/samba into 4-0-local
Stefan Metzmacher [Fri, 20 Jun 2008 09:03:12 +0000 (11:03 +0200)]
smbd: make sure the parent smbd stays alive forever
The problem was that the parent smbd doesn't have
any event when the process model standard was in use.
Now we always add an fd event for stdin, but may not
ask for any events to trigger.
metze
Andrew Bartlett [Fri, 20 Jun 2008 08:22:15 +0000 (18:22 +1000)]
Depend on NDR_DRSBLOBS explicity.
Something else ensures this links correctly (for the moment) but for
the long-term let's declare our depenency (for the prefixMap stuff)
here.
Andrew Bartlett
Volker Lendecke [Thu, 19 Jun 2008 10:39:25 +0000 (12:39 +0200)]
Include events_util.h in events_aio.c
Without this, linking fails with DLIST_ADD and DLIST_REMOVE being undefined
Signed-off-by: Stefan Metzmacher <metze@samba.org>
Volker Lendecke [Thu, 19 Jun 2008 10:29:50 +0000 (12:29 +0200)]
Remove the dependency on $(abspath) in makefiles
This is not around before GNU make 3.81, for me this fixes the build
on GNU make 3.80
Signed-off-by: Stefan Metzmacher <metze@samba.org>
Stefan Metzmacher [Wed, 11 Jun 2008 05:59:20 +0000 (07:59 +0200)]
credentials: set GSS_KRB5_CRED_NO_CI_FLAGS_X to avoid GSS_C_CONF_FLAG and GSS_C_INTEG_FLAG
metze
Andrew Bartlett [Thu, 19 Jun 2008 08:06:35 +0000 (18:06 +1000)]
Change detection of objectCategory short fomm
To actually validate the DN, we load and call the validation fucntion,
not just check the 'ldb_dn_is_valid()' function.
Andrew Bartlett
Andrew Bartlett [Thu, 19 Jun 2008 07:59:57 +0000 (17:59 +1000)]
Fix segfault caused by talloc_free() being called while still processing
The problem here was that with the packet code set to serialise, we
can have multiple packets 'processing' at once, and previously the
second packet (allowed because we are spining on an event context down
the stack) would clear the flag.
Andrew Bartlett
Andrew Bartlett [Thu, 19 Jun 2008 04:53:14 +0000 (14:53 +1000)]
Remove old ldap.js test, we have replicated it in python now.
This will soon allow the removal of smbscript, once the samba3sam test
conversion is complete.
Andrew Bartlett
Andrew Bartlett [Thu, 19 Jun 2008 01:05:20 +0000 (11:05 +1000)]
Add a blackbox test for the provision-backend script.
This test (as most tests do :-) found a few bugs, also fixed in this
commit.
Andrew Bartlett
Andrew Bartlett [Wed, 18 Jun 2008 23:34:04 +0000 (09:34 +1000)]
Don't sign NTP packets to disabled accounts
(As this would allow an offline attack on their password)
Andrew Bartlett
Jelmer Vernooij [Tue, 17 Jun 2008 12:21:02 +0000 (14:21 +0200)]
Use friendly NTSTATUS message in python code when possible.
Jelmer Vernooij [Tue, 17 Jun 2008 11:48:29 +0000 (13:48 +0200)]
Merge branch 'v4-0-test' of ssh://git.samba.org/data/git/samba into v4-0-fixmodulesdir
Jelmer Vernooij [Tue, 17 Jun 2008 11:42:19 +0000 (13:42 +0200)]
Make sure events pc file gets installed.
Andrew Tridgell [Tue, 17 Jun 2008 03:11:29 +0000 (13:11 +1000)]
Change our module code to not use the special symbol name init_module()
Current glibc libraries include a function called init_module(). If we
use the same name, then a dlsym() can find the glibc function if the
module doesn't have an initialisation function.
In ldb, none of our modules have an init_module(), so we end up calling the libc
functions with bogus arguments.
Jelmer Vernooij [Tue, 17 Jun 2008 00:21:46 +0000 (02:21 +0200)]
Avoid including events_util.h in events_internal.h since the latter is
installed.
Simo Sorce [Mon, 16 Jun 2008 21:51:42 +0000 (17:51 -0400)]
Try to get a bit further with provisioning
Jelmer Vernooij [Mon, 16 Jun 2008 21:25:48 +0000 (23:25 +0200)]
Change order of includes in swig file to avoid warnings.
Jelmer Vernooij [Mon, 16 Jun 2008 21:19:14 +0000 (23:19 +0200)]
Remove support for deprecated JS provisioning.
Jelmer Vernooij [Mon, 16 Jun 2008 13:25:48 +0000 (15:25 +0200)]
Add include in swig file as well.
Simo Sorce [Mon, 16 Jun 2008 13:04:33 +0000 (09:04 -0400)]
Fix build
Simo Sorce [Mon, 16 Jun 2008 13:04:06 +0000 (09:04 -0400)]
Fix ldb_wrap.c
Simo Sorce [Sun, 15 Jun 2008 15:15:12 +0000 (11:15 -0400)]
Fix cleanup.
Simo Sorce [Sun, 15 Jun 2008 15:11:14 +0000 (11:11 -0400)]
Note that making ldb the event context parent seem to lead to races when
freeing up resources. Try to avoid races by making the autofree context
be the parent of the event system
Jelmer Vernooij [Sun, 15 Jun 2008 17:18:48 +0000 (19:18 +0200)]
Merge branch 'v4-0-test' of ssh://git.samba.org/data/git/samba into v4-0-fixmodulesdir
Jelmer Vernooij [Sun, 15 Jun 2008 17:16:35 +0000 (19:16 +0200)]
Fix standalone ldb build.
Jelmer Vernooij [Sun, 15 Jun 2008 17:16:06 +0000 (19:16 +0200)]
Fix ldb python bindings after events changes.
Simo Sorce [Sun, 15 Jun 2008 15:15:12 +0000 (11:15 -0400)]
Cleanup.
Remove trailing spaces and try to fit 80 column where possible.
Simo Sorce [Sun, 15 Jun 2008 15:11:14 +0000 (11:11 -0400)]
Now that we pass down the event context, start removing calls to
event_context_init() where possible
Simo Sorce [Sun, 15 Jun 2008 00:37:40 +0000 (20:37 -0400)]
Cleanup,
Remove trailing spaces and try to fit 80 columns where possible
Simo Sorce [Sun, 15 Jun 2008 00:18:50 +0000 (20:18 -0400)]
Ups fix typo in error type
Simo Sorce [Sat, 14 Jun 2008 21:33:27 +0000 (17:33 -0400)]
Cosmetic fixes.
Remove trailing spaces adn try to fit 80 columns where possible
Simo Sorce [Sat, 14 Jun 2008 19:54:46 +0000 (15:54 -0400)]
Fix events_aio
Jelmer Vernooij [Sat, 14 Jun 2008 19:40:23 +0000 (21:40 +0200)]
Avoid using .DEFAULT_GOAL - it's only available in gmake 3.81 and higher.
Simo Sorce [Sat, 14 Jun 2008 17:00:53 +0000 (13:00 -0400)]
Use a custom init function for samba4 that sets a samba4
specific debug function.
By default do not debug, this is the most appropriate action for a library
as we cannot assume what stderr is use for in the main app.
The main app is responsible to set ev_debug_stderr if they so desire.
Simo Sorce [Sat, 14 Jun 2008 15:24:17 +0000 (11:24 -0400)]
Make up the right dependencies now that ldb depends on libevents
Simo Sorce [Sat, 14 Jun 2008 15:23:31 +0000 (11:23 -0400)]
This patch make it possible to build the events library completely
standalone with no ties to internal samba4 functions
Samba4 itself just uses the plain library, compatibility glue is
in events_s4.c only
Jelmer Vernooij [Sat, 14 Jun 2008 10:20:12 +0000 (12:20 +0200)]
Use proper python errors.
Jelmer Vernooij [Sat, 14 Jun 2008 10:15:24 +0000 (12:15 +0200)]
Merge branch 'v4-0-test' of ssh://git.samba.org/data/git/samba into v4-0-fixmodulesdir
Jelmer Vernooij [Sat, 14 Jun 2008 10:14:27 +0000 (12:14 +0200)]
Fix prototype for pthread process model.
Jim McDonough [Thu, 12 Jun 2008 11:06:07 +0000 (07:06 -0400)]
Missed these on the last commit
Jim McDonough [Thu, 12 Jun 2008 11:02:14 +0000 (07:02 -0400)]
Initial automated wintest.
Added a blackbox test which looks for $WINTEST_CONF_DIR,
gets configuration vars from *.conf in that dir, disables
smbwrapper, and runs RAW-OPEN torture test.
Scripts are coming to startup/shutdown vm's.
Jelmer Vernooij [Wed, 11 Jun 2008 00:52:43 +0000 (02:52 +0200)]
Use variables for source dir of python ldb bindings.
Jelmer Vernooij [Wed, 11 Jun 2008 00:47:09 +0000 (02:47 +0200)]
Use variables for source dir of python tdb bindings.
Jelmer Vernooij [Tue, 10 Jun 2008 22:11:31 +0000 (00:11 +0200)]
Add another reason for skipping a testsuite, remove obsolete comment.
Jelmer Vernooij [Tue, 10 Jun 2008 22:11:11 +0000 (00:11 +0200)]
Clarify error when SWIG can't be found - it's not required unless you
intend to do development.
Jelmer Vernooij [Tue, 10 Jun 2008 22:10:43 +0000 (00:10 +0200)]
Remove unused import, function.
Jelmer Vernooij [Tue, 10 Jun 2008 22:05:58 +0000 (00:05 +0200)]
Add working Python bindings for NBT.
Jelmer Vernooij [Tue, 10 Jun 2008 13:05:41 +0000 (15:05 +0200)]
Merge branch 'v4-0-test' of ssh://git.samba.org/data/git/samba into v4-0-fixmodulesdir
Jelmer Vernooij [Tue, 10 Jun 2008 12:52:17 +0000 (14:52 +0200)]
Fix variables used in configure.
Stefan Metzmacher [Tue, 10 Jun 2008 07:52:04 +0000 (09:52 +0200)]
Revert "Add configure test for vdeplug library."
This reverts commit
89590d7dfe0735093a4a5b66eeed9276df043ac9.
We don't need this yet and currently config.m4 is also used
by samba3 which bail out with the check in it, as it doesn't
know about the SMB_EXT_LIB() macro
metze
Jeremy Allison [Fri, 21 Dec 2007 20:11:23 +0000 (12:11 -0800)]
Fix initialization warnings.
Jeremy.
(cherry picked from commit
832c093830cb3978641be3d87670fa900105da25)
Stefan Metzmacher [Tue, 10 Jun 2008 07:13:08 +0000 (09:13 +0200)]
Some C++ warnings
(partialy cherry picked from commit
5ab82d4f574f2a2e2761e9e414c66a70aeffb05d)
metze
Stefan Metzmacher [Tue, 10 Jun 2008 06:33:24 +0000 (08:33 +0200)]
socket_wrapper: truncate packets to a 1500 byte payload
Truncate sendto(), recvfrom(), send() and recv() to 1500 bytes
so that're getting a correctly formatted pcap file and the result
look more like real network traffic.
metze
Andrew Bartlett [Tue, 10 Jun 2008 03:19:56 +0000 (13:19 +1000)]
Merge branch 'v4-0-test' of ssh://git.samba.org/data/git/samba into 4-0-local
Andrew Bartlett [Tue, 10 Jun 2008 02:54:45 +0000 (12:54 +1000)]
Tone down the warnings in the WHATSNEW.
Also fix some things up for the next release.
Andrew Bartlett
Stefan Metzmacher [Thu, 5 Jun 2008 19:13:23 +0000 (19:13 +0000)]
heimdal_build: rename config.m{k,4} => internal.m{k,4}
metze
Stefan Metzmacher [Mon, 9 Jun 2008 08:42:07 +0000 (10:42 +0200)]
configure: we require autoconf 2.54
I've tested with autoconf from 2.53 to 2.62.
metze
Stefan Metzmacher [Mon, 9 Jun 2008 08:39:48 +0000 (10:39 +0200)]
libreplace: only include AC_USE_SYSTEM_EXTENSIONS fallback if required
This fixes ./autogen.sh with autoconf-2.62
metze
Stefan Metzmacher [Mon, 9 Jun 2008 08:38:09 +0000 (10:38 +0200)]
libreplace: fix warnings with autoconf-2.62 rename ac_ => libreplace_cv_
AC_CACHE_VAL() variables must contain _cv_ to be cached.
metze
Stefan Metzmacher [Mon, 9 Jun 2008 08:37:12 +0000 (10:37 +0200)]
build/m4: fix warnings with autoconf-2.62 rename SMB_BUILD_ => samba_cv_
AC_CACHE_VAL() variables must contain _cv_ to be cached.
metze
Simo Sorce [Sun, 8 Jun 2008 23:16:26 +0000 (19:16 -0400)]
Make it possible to disable gnutls at configure time,
until someone will finally decide to fix it.
Jelmer Vernooij [Sun, 8 Jun 2008 02:20:26 +0000 (04:20 +0200)]
Add more docstrings in tdb.
Andrew Tridgell [Sat, 7 Jun 2008 18:10:23 +0000 (11:10 -0700)]
fixed for per session session_key here too
Andrew Tridgell [Sat, 7 Jun 2008 15:30:51 +0000 (08:30 -0700)]
make signing per session in the SMB2 client library
Thanks to Metze for spotting this
Andrew Tridgell [Sat, 7 Jun 2008 15:14:25 +0000 (08:14 -0700)]
fixed mandatory signing
Metze pointed out that if signing is mandatory in the server then we
need to reject packets without the signed flag if the packet contains
a session id.
Andrew Tridgell [Sat, 7 Jun 2008 05:11:00 +0000 (22:11 -0700)]
Merge branch 'v4-0-test' of ssh://git.samba.org/data/git/samba into v4-0-test
Andrew Tridgell [Sat, 7 Jun 2008 05:10:30 +0000 (22:10 -0700)]
added server side SMB2 signing
Andrew Tridgell [Fri, 6 Jun 2008 17:54:17 +0000 (10:54 -0700)]
handle NULL fields in blob comparison
Andrew Tridgell [Fri, 6 Jun 2008 17:53:00 +0000 (10:53 -0700)]
ensure we don't end up with a partially initialised EA structure