1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-05 09:18:06 +03:00
Commit Graph

70690 Commits

Author SHA1 Message Date
Andrew Bartlett
15d0166340 s4-python Don't force "bin" into the python sys.path
This patch uses the fact that dyn_PYTHONDIR and dyn_PYTHONARCHDIR is
now set properly at all times, incluidng for installed and
build-directory binaries.  So we don't need to make assumptions about
bin being magic any more.

Andrew Bartlett
2011-02-07 13:22:02 +11:00
Andrew Bartlett
19c3546872 s4-waf Add PYTHONDIR and PYTHONARCHDIR to the 'different on install' list
This allows the C code to rely on PYTHONDIR and PYTHONARCHDIR to
always be correct, and so not to cause problems when forcing these
into sys.path.

Andrew Bartlett
2011-02-07 13:22:01 +11:00
Andrew Bartlett
d1e5a73806 s4-provision Remove setup_path, setup_dir and find_setup_dir
We now have a reliable way to know the current location of the
templates: dyn_SETUPDIR, which is updated for both the in-build and
installed binaries.

This replaces the function arguments and the distributed resolution of
the setup directory with one 'global' function (imported as required).

This also removes the ability to specify an alternate setup directory
on the command line, as this was rarely if ever used and never tested.

Andrew Bartlett
2011-02-07 13:22:01 +11:00
Andrew Bartlett
4ae013c01b s4-waf Don't include ../librpc in paths
The paths here are relative to the librpc directory the wscript_build
file is in, and so these don't actually change anything.

Andrew Bartlett
2011-02-07 13:22:01 +11:00
Andrew Tridgell
5364548e44 s4-build: fixed install of version.h from source4 build 2011-02-07 13:22:01 +11:00
Andrew Tridgell
5d15f28fc1 s4-upgradeprovision: renames need a relax to avoid subtree_rename checks 2011-02-07 13:22:01 +11:00
Andrew Tridgell
f4a1b71b2b s4-dsdb: make subtree_rename errors clearer 2011-02-07 13:22:01 +11:00
Andrew Tridgell
9ccb868591 build: fixed make install for top level build 2011-02-07 13:22:01 +11:00
Andrew Tridgell
9eaca88a35 s4-provision: removed spurious os.chdir() from upgradehelpers.py
this breaks make test with a top level build, and is not needed

Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
2011-02-07 13:22:01 +11:00
Andrew Tridgell
7f8b40f012 build: fixed top level etags and ctags target
Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
2011-02-07 13:22:01 +11:00
Andrew Tridgell
ceb4b06c43 s4-test: fixed samba4.policy.python test for top level build
Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
2011-02-07 13:22:01 +11:00
Andrew Tridgell
b84c0a9ed6 s4-test: fixed ndrdump test for top level build
Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
2011-02-07 13:22:01 +11:00
Andrew Tridgell
bee64c545f build: added placeholder to ensure include/ is available in build dir 2011-02-07 13:22:01 +11:00
Andrew Tridgell
205dcd81c8 build: added configure.developer for top level build 2011-02-07 13:22:01 +11:00
Andrew Tridgell
be5a709341 s4-test: fixed hard coded test paths for top level build
this fixes the various test plans that hard coded incorrect paths for
a top level build

Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
2011-02-07 13:22:01 +11:00
Andrew Tridgell
677f28d8b2 s4-test: fixed setup/ assumption for top level build
Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
2011-02-07 13:22:01 +11:00
Andrew Tridgell
3bcb693e27 s4-test: fixed test_samba4.pl for top level build
Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
2011-02-07 13:22:00 +11:00
Andrew Tridgell
479a4235e3 s4-dynconfig: fixed dyn_SETUPDIR to point to the right directory
this make dyn_SETUPDIR correct for both source4/ build and a top level
build

Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
2011-02-07 13:22:00 +11:00
Andrew Tridgell
b038aca5c8 s4-loadparm: removed "setup directory" option
the correct setup directory is known at both build time and install
time using dyn_SETUPDIR, so we no longer have any need to override it

Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
2011-02-07 13:22:00 +11:00
Andrew Tridgell
b2a080fb1d s4-test: fixed more assumptions of ./setup for setup directory
Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
2011-02-07 13:22:00 +11:00
Andrew Tridgell
b49973404c blackbox: removed assumption of build directory
this fixes the blackbox tests for a top level build

Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
2011-02-07 13:22:00 +11:00
Andrew Tridgell
6484da4859 s4-test: allow make test to work from top level directory
this fixes the path assumptions in Samba4 make test to allow it to
work from the top level directory.

Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
2011-02-07 13:22:00 +11:00
Andrew Tridgell
e7b2e06130 s4-provision: cope with top level directory for provision
to allow for top level 'make test' we need to cope with two in-tree
directory layouts

Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
2011-02-07 13:22:00 +11:00
Andrew Tridgell
72e1a39eff waf: added top level build rules
This adds build rules for the top level directory based on the ones
from source4.

This is an intermediate step towards a combined top level build which
will build both the Samba3 (bin/smbd, bin/nmbd etc) and Samba4
(bin/samba) binaries from a single build

Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
2011-02-07 13:22:00 +11:00
Andrew Tridgell
9f9b363447 s4-idl: make the source4 idl build independent of build directory
this allows the source4 idl to be built from any top level directory

Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
2011-02-07 13:22:00 +11:00
Andrew Tridgell
baf629d98f s4-heimdal: allow heimdal build scripts to work from top level
the version_script handling relied on the directory layout. This makes
it independent of the directory structure

Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
2011-02-07 13:22:00 +11:00
Andrew Tridgell
431b25e895 pidl: support using pidl from top level directory
pidl needs to know if it is being used within the samba tree or not,
to get the names of some include files right. This adds support for
using pidl in the top level directory of a Samba build

This change also makes it clear that is_intree() is a boolean
function. Previously it returned different values for Samba3 and
Samba4, but there is nothing that depends on that

Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
2011-02-07 13:22:00 +11:00
Andrew Tridgell
3f3696ce07 waf: samba deps generation depends on EXTRA_INCLUDES 2011-02-07 13:22:00 +11:00
Volker Lendecke
a61b17ce56 s3: Make "endpoint_table" static
Andreas, this is only used in srv_epmapper right now. Make public again when
this will be used somewhere else.

Autobuild-User: Volker Lendecke <vlendec@samba.org>
Autobuild-Date: Sun Feb  6 21:33:04 CET 2011 on sn-devel-104
2011-02-06 21:33:04 +01:00
Volker Lendecke
40a46a9cca s3: Use the right credentials in check_netlogond_security
Autobuild-User: Volker Lendecke <vlendec@samba.org>
Autobuild-Date: Sun Feb  6 20:43:03 CET 2011 on sn-devel-104
2011-02-06 20:43:03 +01:00
Volker Lendecke
007dc95b14 s3: Only build auth_netlogond for the developer build
Autobuild-User: Volker Lendecke <vlendec@samba.org>
Autobuild-Date: Sun Feb  6 19:55:49 CET 2011 on sn-devel-104
2011-02-06 19:55:48 +01:00
Volker Lendecke
0539ca51ab s3: Add primary group in pdb_ads_enum_group_memberships
Autobuild-User: Volker Lendecke <vlendec@samba.org>
Autobuild-Date: Sun Feb  6 18:41:08 CET 2011 on sn-devel-104
2011-02-06 18:41:08 +01:00
Volker Lendecke
d515c6cd5c s3: Fix auth_netlogond to cope with netlogon_creds_CredentialState
Autobuild-User: Volker Lendecke <vlendec@samba.org>
Autobuild-Date: Sun Feb  6 17:30:48 CET 2011 on sn-devel-104
2011-02-06 17:30:48 +01:00
Volker Lendecke
47d07df37f s3: Fix a potential memleak in secrets_fetch_trusted_domain_password 2011-02-06 16:44:56 +01:00
Volker Lendecke
843825f567 s3: Fetch the machinepw via ldapi in pdb_ads 2011-02-06 16:44:56 +01:00
Volker Lendecke
8c367162f0 s3: In pdb_ads, cope with artificial samu structs 2011-02-06 16:44:56 +01:00
Volker Lendecke
08f2a8562f s3: Use strlcpy in pdb_ads_connect 2011-02-06 16:44:56 +01:00
Volker Lendecke
8af7400d55 s3: Fix some nonempty blank lines 2011-02-06 16:44:56 +01:00
Matthieu Patou
56b1cff70e s4 torture: add new rpc torture tests for backup key remote protocol
Signed-off-by: Stefan Metzmacher <metze@samba.org>

Autobuild-User: Stefan Metzmacher <metze@samba.org>
Autobuild-Date: Sat Feb  5 13:01:42 CET 2011 on sn-devel-104
2011-02-05 13:01:42 +01:00
Stefan Metzmacher
f464955534 s4:selftest: skip samba4.rpc.backupkey for now
metze
2011-02-05 12:16:46 +01:00
Stefan Metzmacher
49cfb2ebdf s3:Makefile.in: use waf directly to build smbtorture4 and ndrdump4
metze

Autobuild-User: Stefan Metzmacher <metze@samba.org>
Autobuild-Date: Sat Feb  5 11:53:05 CET 2011 on sn-devel-104
2011-02-05 11:53:05 +01:00
Jeremy Allison
df34e804fc Fix try_chown code. Use new vfs_chown_fsp() which always trys fd first.
Autobuild-User: Jeremy Allison <jra@samba.org>
Autobuild-Date: Sat Feb  5 03:33:59 CET 2011 on sn-devel-104
2011-02-05 03:33:58 +01:00
Jeremy Allison
ece94989b8 Move the "oplock file with byte range locks" check to the correct place, where we're making oplock decisions.
Autobuild-User: Jeremy Allison <jra@samba.org>
Autobuild-Date: Sat Feb  5 01:18:14 CET 2011 on sn-devel-104
2011-02-05 01:18:14 +01:00
Günther Deschner
f60398d7b2 s3-winbindd: let winbind try to use samlogon validation level 6. (bug #7945)
The benefit of this that it makes us more robust to secure channel resets
triggered from tools outside the winbind process. Long term we need to have a
shared tdb secure channel store though as well.

Guenther

Signed-off-by: Stefan Metzmacher <metze@samba.org>

Autobuild-User: Stefan Metzmacher <metze@samba.org>
Autobuild-Date: Fri Feb  4 18:11:04 CET 2011 on sn-devel-104
2011-02-04 18:11:04 +01:00
Günther Deschner
ac4127a9f4 s3-auth: add copy_netr_SamBaseInfo().
Guenther

Signed-off-by: Stefan Metzmacher <metze@samba.org>
2011-02-04 16:57:32 +01:00
Stefan Metzmacher
e9c45a3973 s3:lib/addrchange: set ctx->sock to -1 after close
The makes the code more consistent with similar destructors.

metze

Autobuild-User: Stefan Metzmacher <metze@samba.org>
Autobuild-Date: Fri Feb  4 15:52:55 CET 2011 on sn-devel-104
2011-02-04 15:52:55 +01:00
Stefan Metzmacher
d8d5a3fb3a s3:lib/addrchange: remove unused pointer
metze
2011-02-04 15:04:58 +01:00
Stefan Metzmacher
ff935ddf8b s3:lib/addrchange: let addrchange_done() retry and ignore unknown message types
Messages like RTM_NEWLINK should be just ignored.

metze
2011-02-04 15:04:58 +01:00
Stefan Metzmacher
902fbd91a1 s3:winbindd: fix segfaults on addrchange errors and make DEBUG() statements more usefull
metze
2011-02-04 15:04:57 +01:00
Stefan Metzmacher
17c01a5e90 s3:rpc_server/netlogon: reject validation level 6 without ads support
metze

Autobuild-User: Stefan Metzmacher <metze@samba.org>
Autobuild-Date: Fri Feb  4 10:06:26 CET 2011 on sn-devel-104
2011-02-04 10:06:26 +01:00