1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-29 11:21:54 +03:00
Commit Graph

69721 Commits

Author SHA1 Message Date
Jeremy Allison
16d6da8a9b Move checks inside file_set_sparse() to allow it to be called from anywhere.
Autobuild-User: Jeremy Allison <jra@samba.org>
Autobuild-Date: Fri Dec 17 21:56:38 CET 2010 on sn-devel-104
2010-12-17 21:56:38 +01:00
Jeremy Allison
fe50632d54 file_set_sparse needs to be a handle based call. 2010-12-17 21:11:04 +01:00
Björn Jacke
192c4a145f s3:smbd: implement FSCTL_SET_SPARSE more correctly
this is a port of a patch from metze for 3.3:

We don't do the "strict allocation" when the sparse bit isn't
set, but that shouldn't matter.

We now allow windows applications to set and unset the sparse
bit.

Note that in order to implement this 100% like described
in [MS-FSA], we'd have to change our data model and support
the sparse flag per stream.
2010-12-17 21:11:04 +01:00
Jeremy Allison
2c10c34968 Update our attribute flags. 2010-12-17 21:11:04 +01:00
Björn Jacke
5c27dd67c8 s3:smbd: add file_set_sparse() function
this is based on a patch for 3.3 from metze
2010-12-17 21:11:04 +01:00
Björn Jacke
9634d03339 s3/vfs_gpfs: map SPARSE attribute to/from WINATTRs, too 2010-12-17 21:11:04 +01:00
Björn Jacke
480042ddf9 s3: remove set_sparse_flag
we need to determine sparseness from the sparse flag we store not from the
allocation size on the POSIX filesystem. This is how Windows works - in the
first place sparseness is a file flag, not the allocation state of the file

Signed-off-by: Stefan Metzmacher <metze@samba.org>
2010-12-17 21:11:04 +01:00
Björn Jacke
ebe5600615 s3: add FILE_ATTRIBUTE_SPARSE to get_stat_dos_flags 2010-12-17 21:11:04 +01:00
Jelmer Vernooij
c4a887538d heimdal_build: Add version-script for krb5.
Autobuild-User: Jelmer Vernooij <jelmer@samba.org>
Autobuild-Date: Fri Dec 17 21:09:25 CET 2010 on sn-devel-104
2010-12-17 21:09:25 +01:00
Jelmer Vernooij
6dc807703d heimdal_build: Add version-script for gssapi. 2010-12-17 20:08:11 +01:00
Jelmer Vernooij
02ff0852e8 heimdal_build: Add version-script for asn1. 2010-12-17 20:06:15 +01:00
Jelmer Vernooij
555d334cf7 heimdal_build: Add version-script for hdb. 2010-12-17 20:01:21 +01:00
Jelmer Vernooij
2ded4668ea heimdal_build: Add version-script for kdc. 2010-12-17 20:00:58 +01:00
Jelmer Vernooij
55192fb3a8 heimdal_build: Add version-script for wind. 2010-12-17 19:55:54 +01:00
Jelmer Vernooij
de8133e3bb heimdal_build: Add version-script for ntlm. 2010-12-17 19:54:09 +01:00
Jelmer Vernooij
b4875d4dba heimdal: Add version script file for hcrypto (unused so far, as hcrypto still needs to be made a proper library). 2010-12-17 19:52:42 +01:00
Jelmer Vernooij
d4cc0d4f47 heimdal_build: Add version-script for roken. 2010-12-17 19:51:37 +01:00
Jelmer Vernooij
dd102a2c4a heimdal_build: Add version-script for com_err. 2010-12-17 19:50:52 +01:00
Jelmer Vernooij
c09d4b85b5 wafsamba: Specify full vscript path so non-autogenerated files are possible, too. 2010-12-17 19:38:12 +01:00
Jelmer Vernooij
402d622c0c heimdal_build: Simplify version_script handling. 2010-12-17 19:21:58 +01:00
Jelmer Vernooij
48f91ebc5a wafsamba: Don't build vscript for modules. 2010-12-17 19:21:47 +01:00
Jelmer Vernooij
13b4e6e8c7 wafsamba: Move version script handling out of SAMBA_LIBRARY. 2010-12-17 19:16:33 +01:00
Jelmer Vernooij
5bccb32643 Simplify link installation. 2010-12-17 18:47:05 +01:00
Jelmer Vernooij
85299bea65 heimdal_build: Simplify library handling. 2010-12-17 18:42:34 +01:00
Günther Deschner
4e9d67b7c0 s4-smbtorture: allow to call test_GetDriverInfo_winreg without printer handle.
Guenther

Autobuild-User: Günther Deschner <gd@samba.org>
Autobuild-Date: Fri Dec 17 17:35:21 CET 2010 on sn-devel-104
2010-12-17 17:35:21 +01:00
Günther Deschner
92f1029e87 s4-smbtorture: check if returned driver paths match requested architecture.
Guenther
2010-12-17 16:50:19 +01:00
Stefan Metzmacher
1dc2fa7616 s3:net ads dns register: use "cluster addresses" option if configured (bug #7871)
metze

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

Autobuild-User: Stefan Metzmacher <metze@samba.org>
Autobuild-Date: Fri Dec 17 16:49:14 CET 2010 on sn-devel-104
2010-12-17 16:49:14 +01:00
Michael Adam
5e83a05009 s3:net ads dns register: add support for specifying addresse on the commandline (bug #7871)
In the clustering case, this is also made the only possiblity to do dns updates,
since the list addresses on the local interfaces is not suitable in that case.

This fixes the "net ads dns register" part of bug #7871.
It might be extended by a parsing of the "cluster addresses" setting.

Signed-off-by: Stefan Metzmacher <metze@samba.org>
2010-12-17 15:59:47 +01:00
Michael Adam
4d91f98b43 s3:net: add net_update_dns_ext() that accepts a list of addresses as parameter (bug# 7871)
This generalized form of net_update_dns() will be used to
add support for specifying a list of addresses on the commandline
of "net ads dns register".

This prepares the "net ads dns register" part of the fix for bug #7871.

Signed-off-by: Stefan Metzmacher <metze@samba.org>
2010-12-17 15:59:44 +01:00
Michael Adam
b8f19df53e s3:net: disable dynamic dns updates at the end of "net ads join" in a cluster (bug #7871)
In a clustered environment, registering the set of ip addresses that are
assigned to the interfaces of the node that performs the join does usually
not have the desired effect, since the local interfaces do not carry
complete set of the cluster's public IP addresses.  And it can also contain
internal addresses that should not be visible to the outside at all.
In order to do dns updates in a clustererd setup, use net ads dns register.

This fixes the net ads join part of bug #7871.

Signed-off-by: Stefan Metzmacher <metze@samba.org>
2010-12-17 15:59:44 +01:00
Michael Adam
b3d4b20525 util_net: fix a comment typo in interpret_string_addr_internal()
Signed-off-by: Stefan Metzmacher <metze@samba.org>
2010-12-17 15:59:43 +01:00
Günther Deschner
10eaad2977 libcli/security: remove unused variable.
Guenther

Autobuild-User: Günther Deschner <gd@samba.org>
Autobuild-Date: Fri Dec 17 13:56:27 CET 2010 on sn-devel-104
2010-12-17 13:56:27 +01:00
Günther Deschner
545d3a013c s4-smbtorture: pass down driverosversion to test_DriverInfo_winreg.
Guenther
2010-12-17 13:10:08 +01:00
Günther Deschner
4f4ac6462a s4-smbtorture: skip level 8 checks in test_GetDriverInfo_winreg for w2k3.
Guenther

Autobuild-User: Günther Deschner <gd@samba.org>
Autobuild-Date: Fri Dec 17 12:20:38 CET 2010 on sn-devel-104
2010-12-17 12:20:38 +01:00
Günther Deschner
5083be506e s4-smbtorture: skipping level 8 driveradds against w2k3.
Guenther
2010-12-17 11:33:05 +01:00
Günther Deschner
28d618ddf0 s4-smbtorture: add torture_assert_strn_equal macro.
Guenther
2010-12-17 11:33:05 +01:00
Günther Deschner
f08fdfae27 s3-net: fix net sid type build warning.
Guenther
2010-12-17 11:33:05 +01:00
Björn Jacke
7f572dfe52 s3/net: tz argument should be NULL of course
Autobuild-User: Björn Jacke <bj@sernet.de>
Autobuild-Date: Fri Dec 17 01:48:40 CET 2010 on sn-devel-104
2010-12-17 01:48:39 +01:00
Jeremy Allison
34c0d016d7 Do more vfs_stat_fsp calls instead of FSTAT - ensures fsp->fsp_name->st is kept up to date.
Autobuild-User: Jeremy Allison <jra@samba.org>
Autobuild-Date: Thu Dec 16 23:41:06 CET 2010 on sn-devel-104
2010-12-16 23:41:06 +01:00
Günther Deschner
ba21b6e3d4 s4-waf: nsstest only needs replace.
Guenther

Autobuild-User: Günther Deschner <gd@samba.org>
Autobuild-Date: Thu Dec 16 11:40:52 CET 2010 on sn-devel-104
2010-12-16 11:40:52 +01:00
Günther Deschner
1b293c90be spoolss: fill in PerMachineConnections add and delete IDL.
Guenther
2010-12-16 10:52:50 +01:00
Andrew Bartlett
2516338023 s4-dsdb Don't talloc_free() ares on failure, as LDB might free it later
We need to make LDB consistent here (indexed vs unindexed behaviour
differs here!), but for the moment this is the easiest way out of a
segfault.

Andrew Bartlett

Autobuild-User: Andrew Bartlett <abartlet@samba.org>
Autobuild-Date: Thu Dec 16 06:42:56 CET 2010 on sn-devel-104
2010-12-16 06:42:56 +01:00
Andrew Bartlett
eda1972b68 s4-dsdb Use sid_blob_parse() 2010-12-16 15:54:36 +11:00
Andrew Bartlett
4a4d8e4b0f libcli/security Add sid_blob_parse() to directly parse a binary SID blob 2010-12-16 15:54:30 +11:00
Zahari Zahariev
94b149f3cb Typos in wintest 2010-12-16 15:54:29 +11:00
Jeremy Allison
a06519a579 Fix old bug in openX code, exposed when "strict allocate" is set to true.
We need to return the file size here, not the allocation size, but
we were not updating the stat struct after the vfs_set_filesize()
call. Ensure we always use fresh data in openX replies.

Jeremy.

Autobuild-User: Jeremy Allison <jra@samba.org>
Autobuild-Date: Thu Dec 16 02:37:58 CET 2010 on sn-devel-104
2010-12-16 02:37:57 +01:00
Jeremy Allison
ecf48af135 Change strict allocate to default to true. (cherry picked from commit 820ea22a07b062b1717d35de8fa7051fc1067c3f) 2010-12-15 14:09:48 -08:00
Nadezhda Ivanova
6bb89aaa0d s4-tests: Added a speedtest for LDAP search operations with different accounts.
Autobuild-User: Nadezhda Ivanova <nivanova@samba.org>
Autobuild-Date: Wed Dec 15 21:32:09 CET 2010 on sn-devel-104
2010-12-15 21:32:09 +01:00
Nadezhda Ivanova
aab37c3146 s4-tests: Added tests for LDAP add/delete/modify using anonymous login. 2010-12-15 20:46:17 +01:00
Nadezhda Ivanova
a53f09b931 s4-dsdb: Fixed incorrect LDAP return code when anonymous login is used. 2010-12-15 20:46:17 +01:00