1
0
mirror of https://github.com/samba-team/samba.git synced 2025-08-10 21:49:28 +03:00
Commit Graph

82793 Commits

Author SHA1 Message Date
858135920d samba.provision.backend: Fix formatting. 2012-09-16 14:20:11 +02:00
fdb873a203 samba.provision: Fix formatting, NameErrors. 2012-09-16 14:20:11 +02:00
520c9b0b0a replace: add some includes for poll.h
See bug #8107

Autobuild-User(master): Björn Jacke <bj@sernet.de>
Autobuild-Date(master): Sun Sep 16 04:05:08 CEST 2012 on sn-devel-104
2012-09-16 04:05:07 +02:00
b53c5bcf5b quota: also log which fs type we found
Autobuild-User(master): Björn Jacke <bj@sernet.de>
Autobuild-Date(master): Sat Sep 15 02:18:16 CEST 2012 on sn-devel-104
2012-09-15 02:18:16 +02:00
29c5780f8d autoconf: check for dn_expand also in libinet
see bug #7472
2012-09-15 00:38:56 +02:00
39d1a2c2a1 wafbuild: check for dn_expand also in libinet
see bug #7472
2012-09-15 00:38:56 +02:00
8de46eac65 Add 'bool use_privs' to smbd_calculate_access_mask().
Replaces blanket root allow if set. Set to 'false' for
all current callers.

Autobuild-User(master): Jeremy Allison <jra@samba.org>
Autobuild-Date(master): Sat Sep 15 00:37:49 CEST 2012 on sn-devel-104
2012-09-15 00:37:49 +02:00
6d82976597 Fix bad string in debug message (remove it). 2012-09-14 22:54:29 +02:00
aa0a7cf51a Add bool use_privs parameter to smbd_check_access_rights()
If this is set we should use it in preference to blindly assuming
root can do anything. Currently set to 'false' in (most) callers.
2012-09-14 22:54:29 +02:00
1e34d58439 Add "backup_intent" bool. 2012-09-14 22:54:29 +02:00
b66bcab58c Don't call can_write_to_file() if we already have 'fsp->can_write' set. 2012-09-14 22:54:29 +02:00
35a4a1ed1f build: Fix build on systems without ldap development headers
Autobuild-User(master): Andrew Bartlett <abartlet@samba.org>
Autobuild-Date(master): Fri Sep 14 22:53:30 CEST 2012 on sn-devel-104
2012-09-14 22:53:30 +02:00
7ef7ec7be8 docs: update for modern kerberos libs 2012-09-14 11:57:38 -07:00
f84893a54b docs: remove references to security=server 2012-09-14 11:57:05 -07:00
963664eccc docs: Remove distinction between server and domain accounts
Accounts on a server become accounts on the DC when upgraded.  If they do not
then this is simply a bug (in say tdbsam), not a feature to be documented.

Andrew Bartlett
2012-09-14 09:29:51 -07:00
c5151b6267 docs: Update docs to the modern age of Samba 4.0
This removes references to security=share, security=server and other outdated things.

It also updates to a world where encrypted passwords are the norm.

Andrew Bartlett
2012-09-14 09:28:06 -07:00
58e62ae776 s4:torture: fix error reporting in the raw.oplock-brl3 test
Error was assigned to a variable that was not returned.

Autobuild-User(master): Michael Adam <obnox@samba.org>
Autobuild-Date(master): Fri Sep 14 14:05:20 CEST 2012 on sn-devel-104
2012-09-14 14:05:20 +02:00
1aa281ecb0 s3: fix the hpux acl module
This was not adopted to the recent VFS acl structure changes.

Autobuild-User(master): Björn Jacke <bj@sernet.de>
Autobuild-Date(master): Fri Sep 14 12:23:23 CEST 2012 on sn-devel-104
2012-09-14 12:23:23 +02:00
9222f0f928 s3: fix the tru64 acl module
This was not adopted to the recent VFS acl structure changes.
2012-09-14 10:42:17 +02:00
35632eec8e s3: fix the aix acl module
This was not adopted to the recent VFS acl structure changes.
2012-09-14 10:42:17 +02:00
4a8cbe2457 WHATSNEW: Fix some issues in the release notes.
Karolin

Autobuild-User(master): Karolin Seeger <kseeger@samba.org>
Autobuild-Date(master): Fri Sep 14 10:40:02 CEST 2012 on sn-devel-104
2012-09-14 10:40:02 +02:00
5e51f63e86 s3: Fix the vfs_solarisacl module to compile.
This got broken with the recent VFS acl structure changes.

Autobuild-User(master): Ira Cooper <ira@samba.org>
Autobuild-Date(master): Fri Sep 14 05:21:29 CEST 2012 on sn-devel-104
2012-09-14 05:21:29 +02:00
88a5bff889 packaging: apply some solaris packaging fixes
Actually this might be outdated already. See bug #5670.
Thanks to Michal Ludvig.

Autobuild-User(master): Björn Jacke <bj@sernet.de>
Autobuild-Date(master): Fri Sep 14 02:42:53 CEST 2012 on sn-devel-104
2012-09-14 02:42:53 +02:00
70bc93650f autoconf: fix --with(out)-sendfile-support option handling
this fixes bug #8344
2012-09-14 01:04:03 +02:00
86a4ca2864 s3: make smbldaphelper subsystem an internal library
Break pdb_ldap -> smbldaphelper -> pdb -> pdb_ldap loop by
making smbldaphelp intentionally underlinked internal library.

It means that libsmbldaphelp is not usable unless its user is
also linked to libpdb (that is the case for both its users,
idmap_ldap and pdb_ldap, already) but gives us a break of
the circular dependency in case pdb_ldap statically linked
into pdb (default).

This should solve case when idmap_ldap and pdb_ldap are dynamically
loaded modules

Autobuild-User(master): Alexander Bokovoy <ab@samba.org>
Autobuild-Date(master): Fri Sep 14 01:02:21 CEST 2012 on sn-devel-104
2012-09-14 01:02:21 +02:00
56b7525125 Sigh :-(. Removing optimization prematurely is the root of all evil :-(.
Sorry for the mistake, but the LastDir singleton cache in vfs_ChDir()
actually plays an important role. When we're processing a stream of
SMB1/SMB2/SMB3 requests we don't want to add a chdir()/getcwd()
system call pair on every request if they're all on the same connection
and dealing with the same base path.

I did some testing with a program that times 1,000,000 chdir()
requests vs. 1,000,000 strcmp requests and it's a penalty of 10x
doing the system calls.

Just because it's old code, doesn't mean it's bad :-(.

Autobuild-User(master): Jeremy Allison <jra@samba.org>
Autobuild-Date(master): Thu Sep 13 21:31:42 CEST 2012 on sn-devel-104
2012-09-13 21:31:42 +02:00
23158d72c8 docs: Fix generating idmap manpages.
Autobuild-User(master): Andreas Schneider <asn@cryptomilk.org>
Autobuild-Date(master): Thu Sep 13 19:52:53 CEST 2012 on sn-devel-104
2012-09-13 19:52:53 +02:00
be7a856f5b s3: make ldapsam-related functions a smbldaphelper subsystem
Since these functions are used in pdb_ldap and idmap_ldap, and
pdb_ldap might be statically linked to libpdb (default), it is
better to keep them as separate subsystem to avoid polluting libpdb
namespace.

This is first step in refactoring libpdb. Right now I cannot move
these functions into proper libsmbldaphelper as it uses more of
libpdb-included functions and linking pdb_ldap against libsmbldaphelper
library would have created a loop if pdb_ldap is included into libpdb.

Autobuild-User(master): Alexander Bokovoy <ab@samba.org>
Autobuild-Date(master): Thu Sep 13 17:36:07 CEST 2012 on sn-devel-104
2012-09-13 17:36:07 +02:00
915842333e VERSION: Bump version up to 4.1.0pre1
Pair-Programmed-With: Stefan Metzmacher <metze@samba.org>

Autobuild-User(master): Stefan Metzmacher <metze@samba.org>
Autobuild-Date(master): Thu Sep 13 01:35:33 CEST 2012 on sn-devel-104
2012-09-13 01:35:33 +02:00
2050b48dd4 VERSION: Release Samba 4.0.0rc1
Pair-Programmed-With: Stefan Metzmacher <metze@samba.org>
samba-4.0.0rc1
2012-09-12 23:53:31 +02:00
e75e768f98 WHATSNEW: prepare release notes for 4.0.0rc1
Pair-Programmed-With: Stefan Metzmacher <metze@samba.org>
2012-09-12 23:53:25 +02:00
e2accc4ef8 build:dist: call source3/autogen.sh and packaged generated files
Signed-off-by: Stefan Metzmacher <metze@samba.org>
2012-09-12 23:53:22 +02:00
6895875bf8 build:dist: call build-manpages-nogit for make dist and package generated files
so that we always have generated manpages under docs/manpages in the release
tarball

Signed-off-by: Stefan Metzmacher <metze@samba.org>
2012-09-12 23:53:18 +02:00
d28f36d16e build:dist: extend meaning of DIST_FILES to also recurse into directories
Pair-Programmed-With: Stefan Metzmacher <metze@samba.org>
2012-09-12 23:53:12 +02:00
36b2732426 build:dist: make use of file / distfile more obvious in handling of DIST_FILES in "make dist"
Signed-off-by: Stefan Metzmacher <metze@samba.org>
2012-09-12 23:53:09 +02:00
3821defe2a build:dist: for snapshot builds, call DIST_DIRS with extend=True
to allow the distversion file to be an addition to the list

Signed-off-by: Stefan Metzmacher <metze@samba.org>
2012-09-12 23:53:06 +02:00
8ea2a468c3 build:dist: extend samba_dist.DIST_FILES() to take optional parameter extend(=False)
This allows to do multpile DIST_FILES() calls that will extend the list
rather than only setting it initially.

Signed-off-by: Stefan Metzmacher <metze@samba.org>
2012-09-12 23:53:02 +02:00
4989a9dd7c build:waf dist: factor out function to add list of files to the tarball
Pair-Programmed-With: Stefan Metzmacher <metze@samba.org>
2012-09-12 23:52:56 +02:00
c33643ebb3 s3:build: rewrite autogen.sh to be called from any directory
Signed-off-by: Stefan Metzmacher <metze@samba.org>
2012-09-12 23:52:51 +02:00
b938979831 release-scripts: run build-manpages-nogit with bash
On debian/ubuntu, the "dash" which is sh, does not
provide pushd/popd...

Signed-off-by: Stefan Metzmacher <metze@samba.org>
2012-09-12 23:52:48 +02:00
3c5d2d5bcf release-scripts: run build-manpages-git with bash
On debian/ubuntu, the "dash" which is sh, does not
provide pushd/popd...

Signed-off-by: Stefan Metzmacher <metze@samba.org>
2012-09-12 23:52:45 +02:00
cfdab79729 release-scripts: let build-manpages-nogit store generated docs under ./bin/docs
not under ./docs

Signed-off-by: Stefan Metzmacher <metze@samba.org>
2012-09-12 23:52:38 +02:00
068ae4824a release-scripts: let build-manpages-git store generated docs under bin/docs/
Signed-off-by: Stefan Metzmacher <metze@samba.org>
2012-09-12 23:52:32 +02:00
f5a2379794 In vfs modules, don't use 'conn->origpath' when we really mean 'conn->cwd'.
This allows VFS modules to work even when we've changed directory
under the connect path in order to do root-safe calls.

Autobuild-User(master): Jeremy Allison <jra@samba.org>
Autobuild-Date(master): Wed Sep 12 23:45:23 CEST 2012 on sn-devel-104
2012-09-12 23:45:22 +02:00
b6636affaf Move cached cwd onto conn struct.
This enables us to make VFS modules safe for use in root called
code when we've changed directory under conn->connectpath.
2012-09-12 22:06:06 +02:00
a8676e69a6 Remove ancient "optimization" global LastDir. 2012-09-12 22:06:06 +02:00
893b213876 Avoid overriding default ccache for ads operations.
Avoid overriding default ccache for ads operations.

Nowadays various samba components may need to use GSSAPI and a default cred
cache to perform their tasks.
This code was completely overriding the whole process default ccache name, thus
altering the current credentials and sometimes hijacking them (or getting
preemptively hijaked).

By using gss_krb5_import_cred we can instead use a private ccache (necessary
sometimes to use a different set of credentials fromt he default
cifs/fqdn@realm one, for example when contacting foreign DCs using trust
credentials) that does not affect the rest of the process.

For the kerberos versions which don't have gss_krb5_import_cred
we fallback to temp override of KRB5CCNAME and gss_acquire_cred.

Signed-off-by: Alexander Bokovoy <ab@samba.org>
Signed-off-by: Günther Deschner <gd@samba.org>

Autobuild-User(master): Alexander Bokovoy <ab@samba.org>
Autobuild-Date(master): Wed Sep 12 21:18:09 CEST 2012 on sn-devel-104
2012-09-12 21:18:09 +02:00
a11e45f1c5 selftest: let provision_plugin_s4_dc use SMB3
metze

Autobuild-User(master): Stefan Metzmacher <metze@samba.org>
Autobuild-Date(master): Wed Sep 12 18:30:48 CEST 2012 on sn-devel-104
2012-09-12 18:30:48 +02:00
72720d6ea0 wintest: Fix --use-ntvfs handling
Signed-off-by: Stefan Metzmacher <metze@samba.org>
2012-09-12 16:51:29 +02:00
ee4d1c4062 wintest: Rework support for the internal DNS server
We still have to run BIND, the change is if BIND is run to support our own
zone, or if we forward to as well as to windows.

This also adapts to the new defaults.

Andrew Bartlett

Signed-off-by: Stefan Metzmacher <metze@samba.org>
2012-09-12 16:51:29 +02:00