kai/samba.git
13 years agos4-auth Remove event context from privilage database handling
Andrew Bartlett [Mon, 20 Dec 2010 10:26:35 +0000 (21:26 +1100)]
s4-auth Remove event context from privilage database handling

These local TDB operations can quite safely be handled in a new/nested
event context, rather than using the main event context.

Andrew Bartlett

13 years agos4-auth Remove obsolete comment
Andrew Bartlett [Mon, 20 Dec 2010 05:07:40 +0000 (16:07 +1100)]
s4-auth Remove obsolete comment

The code that this referred to went away in September with
7dbfeb0dc040889244a1110940af2d070f823374

Andrew Bartlett

13 years agos4:dsdb/schema/schema_* - adaptions needed for removed "const" on OIDs
Matthias Dieter Wallnöfer [Sun, 19 Dec 2010 15:37:04 +0000 (16:37 +0100)]
s4:dsdb/schema/schema_* - adaptions needed for removed "const" on OIDs

13 years agos4:lib/ldb-samba/ldif_handlers.c - adaption needed for removed "const" on OIDs
Matthias Dieter Wallnöfer [Sun, 19 Dec 2010 15:36:16 +0000 (16:36 +0100)]
s4:lib/ldb-samba/ldif_handlers.c - adaption needed for removed "const" on OIDs

13 years agos3/s4:auth SPNEGO - adaptions for the removed "const" from OIDs
Matthias Dieter Wallnöfer [Wed, 15 Dec 2010 16:17:09 +0000 (17:17 +0100)]
s3/s4:auth SPNEGO - adaptions for the removed "const" from OIDs

This is needed in order to suppress warnings.

13 years agolibrpc/ndr/ndr_*.c - remove "const" from OIDs
Matthias Dieter Wallnöfer [Wed, 15 Dec 2010 16:21:04 +0000 (17:21 +0100)]
librpc/ndr/ndr_*.c - remove "const" from OIDs

13 years agolib/util/asn1.c - remove the "const" specifier from OID
Matthias Dieter Wallnöfer [Wed, 15 Dec 2010 16:02:49 +0000 (17:02 +0100)]
lib/util/asn1.c - remove the "const" specifier from OID

There is no reason to have it "const" since it's an allocated thing.

13 years agos4:dsdb/common/util.c - remove unused variable "ndr_err"
Matthias Dieter Wallnöfer [Sun, 19 Dec 2010 15:30:10 +0000 (16:30 +0100)]
s4:dsdb/common/util.c - remove unused variable "ndr_err"

13 years agos4:auth/gensec/spnego.c - remove unused variable "principal"
Matthias Dieter Wallnöfer [Wed, 15 Dec 2010 16:43:45 +0000 (17:43 +0100)]
s4:auth/gensec/spnego.c - remove unused variable "principal"

13 years agoKeep track of the sparse status of an open file handle. Allows bypass of
Jeremy Allison [Tue, 21 Dec 2010 01:58:33 +0000 (17:58 -0800)]
Keep track of the sparse status of an open file handle. Allows bypass of
strict allocation on sparse files. Files opened as POSIX opens are always
sparse.

Autobuild-User: Jeremy Allison <jra@samba.org>
Autobuild-Date: Tue Dec 21 04:12:22 CET 2010 on sn-devel-104

13 years agodns: fixed the padding for dnsp_name fields in LDAP
Andrew Tridgell [Tue, 21 Dec 2010 00:59:54 +0000 (11:59 +1100)]
dns: fixed the padding for dnsp_name fields in LDAP

all names are NUL terminated, but may have additional padding as well

Autobuild-User: Andrew Tridgell <tridge@samba.org>
Autobuild-Date: Tue Dec 21 03:26:26 CET 2010 on sn-devel-104

13 years agodns: auto-calculate the wDataLength field in DNS records
Andrew Tridgell [Tue, 21 Dec 2010 00:59:05 +0000 (11:59 +1100)]
dns: auto-calculate the wDataLength field in DNS records

we need this for creating new records

13 years agos4-dns: fixed a crash bug in dlz_bind9 code
Andrew Tridgell [Tue, 21 Dec 2010 00:57:50 +0000 (11:57 +1100)]
s4-dns: fixed a crash bug in dlz_bind9 code

we need to keep el_ctx for the next part of the loop

13 years agodnsp: fixed parsing of dns_name structures
Andrew Tridgell [Wed, 15 Dec 2010 12:52:32 +0000 (23:52 +1100)]
dnsp: fixed parsing of dns_name structures

its not a pad byte, its a trailing zero

13 years agoAdded call out to a Linux-compatible fallocate() when we need to extend a file
Jeremy Allison [Tue, 21 Dec 2010 00:53:16 +0000 (16:53 -0800)]
Added call out to a Linux-compatible fallocate() when we need to extend a file
allocation extent without changing end-of-file size.

Autobuild-User: Jeremy Allison <jra@samba.org>
Autobuild-Date: Tue Dec 21 02:41:24 CET 2010 on sn-devel-104

13 years agoCREATE in a compound CREATE/NOTIFY sequence was being passed through set_operation_cr...
Ken Harris [Mon, 20 Dec 2010 18:44:48 +0000 (10:44 -0800)]
CREATE in a compound CREATE/NOTIFY sequence was being passed through set_operation_credits()
twice (ultimately perhaps because of bug 7331 involving this compound sequence and the need
to be ready for any incoming CANCEL of the NOTIFY). This had the server thinking it had
granted more credit than it actually had, which lead to zero-credits being granted in interim
NOTIFY responses.

Autobuild-User: Jeremy Allison <jra@samba.org>
Autobuild-Date: Mon Dec 20 20:59:55 CET 2010 on sn-devel-104

13 years agoFrom metze's work on sparse attributes. FILE_ATTRIBUTE_SPARSE is valid on get but...
Jeremy Allison [Mon, 20 Dec 2010 18:23:27 +0000 (10:23 -0800)]
From metze's work on sparse attributes. FILE_ATTRIBUTE_SPARSE is valid on get but not on set.

Autobuild-User: Jeremy Allison <jra@samba.org>
Autobuild-Date: Mon Dec 20 20:11:22 CET 2010 on sn-devel-104

13 years agos3-printing: fix printer_list_traverse()
David Disseldorp [Mon, 20 Dec 2010 15:08:02 +0000 (16:08 +0100)]
s3-printing: fix printer_list_traverse()

The tdb traverse function returns the number of elements traversed, or
less than zero on error, printer_list_traverse() is incorrectly checking
for non-zero return.

Autobuild-User: Andreas Schneider <asn@samba.org>
Autobuild-Date: Mon Dec 20 18:44:41 CET 2010 on sn-devel-104

13 years agos3: Remove unused "retry" from cli_start_connection
Volker Lendecke [Mon, 20 Dec 2010 15:43:39 +0000 (16:43 +0100)]
s3: Remove unused "retry" from cli_start_connection

Autobuild-User: Volker Lendecke <vlendec@samba.org>
Autobuild-Date: Mon Dec 20 17:58:33 CET 2010 on sn-devel-104

13 years agos3: Remove unused "retry" from cli_full_connection
Volker Lendecke [Mon, 20 Dec 2010 15:37:23 +0000 (16:37 +0100)]
s3: Remove unused "retry" from cli_full_connection

13 years agos3: Always retry the DC connection in auth_domain
Volker Lendecke [Mon, 20 Dec 2010 15:22:02 +0000 (16:22 +0100)]
s3: Always retry the DC connection in auth_domain

The only condition that cli_full_connection marks as non-retryable is the basic
name lookup and TCP connect. To me this is pretty fishy. For example if the
negprot fails, this is supposed to be more retryable than a NetBIOS name lookup
failure? I'd rather think the opposite is true.

Jeremy, this is code from 2002, 389a16d9d533. If you have any comments from
back then, let me know :-)

Volker

13 years agos3: Remove some unused variables
Volker Lendecke [Mon, 20 Dec 2010 14:58:55 +0000 (15:58 +0100)]
s3: Remove some unused variables

13 years agos4-smbtorture: run the winreg tests also against an added driver.
Günther Deschner [Fri, 17 Dec 2010 15:34:47 +0000 (16:34 +0100)]
s4-smbtorture: run the winreg tests also against an added driver.

Guenther

Autobuild-User: Günther Deschner <gd@samba.org>
Autobuild-Date: Mon Dec 20 14:31:43 CET 2010 on sn-devel-104

13 years agos4-pydsdb: Use local memory context in py_dsdb_get_oid_from_attid()
Kamen Mazdrashki [Mon, 20 Dec 2010 09:39:26 +0000 (11:39 +0200)]
s4-pydsdb: Use local memory context in py_dsdb_get_oid_from_attid()

This version reverts changes from commit b974966cc2b4d0b5b0d83206070b5f7c5c6495d1
and is what Matthieu Patou had commited in d784ecec555a3d9737e6f4b3894f27904d2b833c
with added reference to the schema cache.

I think referencing schema here is the right thing to be done
as thus we garantee that schema cache will stay in memory
for the time our function is executed

Autobuild-User: Kamen Mazdrashki <kamenim@samba.org>
Autobuild-Date: Mon Dec 20 12:01:53 CET 2010 on sn-devel-104

13 years agodnspython: Merge in new upstream.
Jelmer Vernooij [Mon, 20 Dec 2010 01:31:40 +0000 (02:31 +0100)]
dnspython: Merge in new upstream.

Autobuild-User: Jelmer Vernooij <jelmer@samba.org>
Autobuild-Date: Mon Dec 20 03:21:52 CET 2010 on sn-devel-104

13 years agotesttools: Merge in new upstream.
Jelmer Vernooij [Mon, 20 Dec 2010 01:31:32 +0000 (02:31 +0100)]
testtools: Merge in new upstream.

13 years agolib: Protect against tevent nterror mismatches
Volker Lendecke [Sun, 19 Dec 2010 13:22:28 +0000 (14:22 +0100)]
lib: Protect against tevent nterror mismatches

Autobuild-User: Volker Lendecke <vlendec@samba.org>
Autobuild-Date: Mon Dec 20 00:12:02 CET 2010 on sn-devel-104

13 years agos3: "make etags" should not grow TAGS infinitely...
Volker Lendecke [Sun, 19 Dec 2010 13:00:05 +0000 (14:00 +0100)]
s3: "make etags" should not grow TAGS infinitely...

13 years agos3: Fix bug 7066 -- wbcAuthenticateEx gives unix times
Volker Lendecke [Sat, 18 Dec 2010 15:02:09 +0000 (16:02 +0100)]
s3: Fix bug 7066 -- wbcAuthenticateEx gives unix times

We might eventually want to change this, but right now we get unix times
out of the winbind pipe struct

13 years agos3: Use the right uid winbindd_raw_kerberos_login()
Volker Lendecke [Sat, 11 Dec 2010 09:29:57 +0000 (10:29 +0100)]
s3: Use the right uid winbindd_raw_kerberos_login()

13 years agowb_reqtrans is not used in libwbclient
Volker Lendecke [Wed, 8 Dec 2010 18:51:14 +0000 (19:51 +0100)]
wb_reqtrans is not used in libwbclient

13 years agoMove wbc_async.[ch] to its only user: smbtorture3
Volker Lendecke [Wed, 8 Dec 2010 19:11:46 +0000 (20:11 +0100)]
Move wbc_async.[ch] to its only user: smbtorture3

13 years agolibwbclient: Put the wb_reqtrans definitions into wb_reqtrans.h
Volker Lendecke [Wed, 8 Dec 2010 19:06:03 +0000 (20:06 +0100)]
libwbclient: Put the wb_reqtrans definitions into wb_reqtrans.h

13 years agos3: wcache_invalidate_samlogon only needs the SID
Volker Lendecke [Sat, 11 Dec 2010 13:27:54 +0000 (14:27 +0100)]
s3: wcache_invalidate_samlogon only needs the SID

13 years agos3: netsamlogon_clear_cached_user only needs the SID
Volker Lendecke [Sat, 11 Dec 2010 13:19:50 +0000 (14:19 +0100)]
s3: netsamlogon_clear_cached_user only needs the SID

13 years agos3: Remove two pointless slprintf calls
Volker Lendecke [Sat, 11 Dec 2010 13:16:51 +0000 (14:16 +0100)]
s3: Remove two pointless slprintf calls

13 years agos3: FreeBSD has getpeereid(), use it
Volker Lendecke [Fri, 10 Dec 2010 22:02:19 +0000 (23:02 +0100)]
s3: FreeBSD has getpeereid(), use it

13 years agos3: Reply correctly to FSCTL_IS_VOLUME_DIRTY
Volker Lendecke [Fri, 10 Dec 2010 15:48:19 +0000 (08:48 -0700)]
s3: Reply correctly to FSCTL_IS_VOLUME_DIRTY

13 years agos3: Fix some nonempty blank lines
Volker Lendecke [Fri, 10 Dec 2010 18:59:06 +0000 (19:59 +0100)]
s3: Fix some nonempty blank lines

13 years agos3: Did I say this module is from hell?
Volker Lendecke [Tue, 7 Dec 2010 13:40:13 +0000 (14:40 +0100)]
s3: Did I say this module is from hell?

13 years agos3: re-add some debugs to check_reduced_name
Volker Lendecke [Tue, 30 Nov 2010 17:21:46 +0000 (18:21 +0100)]
s3: re-add some debugs to check_reduced_name

13 years agos3: Fix some typos
Volker Lendecke [Mon, 6 Dec 2010 13:05:49 +0000 (14:05 +0100)]
s3: Fix some typos

13 years agos3: Document wbinfo -P/--ping-dc
Volker Lendecke [Sat, 4 Dec 2010 17:47:56 +0000 (18:47 +0100)]
s3: Document wbinfo -P/--ping-dc

13 years agos3: Add -P as an alias for --ping-dc
Volker Lendecke [Sat, 4 Dec 2010 17:43:27 +0000 (18:43 +0100)]
s3: Add -P as an alias for --ping-dc

This is a much less intrusive version of the DC connectivity check
than wbinfo -t is. Make it simple to use.

13 years agos3: Fix serverid_exists
Volker Lendecke [Fri, 3 Dec 2010 08:34:02 +0000 (01:34 -0700)]
s3: Fix serverid_exists

In the cluster case it can happen that a node just died and we did not yet have
the time to clean up serverid.tdb. If the corresponding serverid.tdb record
that represented a process was migrated away from the dead record, it
represents existence of a process where it is already dead.

13 years agoheimdal: Fix build if using system roken.
Jelmer Vernooij [Sun, 19 Dec 2010 17:34:22 +0000 (18:34 +0100)]
heimdal: Fix build if using system roken.

Autobuild-User: Jelmer Vernooij <jelmer@samba.org>
Autobuild-Date: Sun Dec 19 22:29:41 CET 2010 on sn-devel-104

13 years agoldb: Bump version after renaming some public symbols which didn't have a
Jelmer Vernooij [Sun, 19 Dec 2010 17:29:12 +0000 (18:29 +0100)]
ldb: Bump version after renaming some public symbols which didn't have a
ldb_ prefix.

13 years agodcesrv_srvsvc: Use constants.
Jelmer Vernooij [Sun, 19 Dec 2010 17:10:29 +0000 (18:10 +0100)]
dcesrv_srvsvc: Use constants.

13 years agoRename vfs operation posix_fallocate to just fallocate and add the vfs_fallocate_mode...
Jeremy Allison [Sat, 18 Dec 2010 07:08:01 +0000 (23:08 -0800)]
Rename vfs operation posix_fallocate to just fallocate and add the vfs_fallocate_mode parameter.

It turns out we need the fallocate operations to be able to both
allocate and extend filesize, and to allocate and not extend
filesize, and posix_fallocate can only do the former. So by defining
the vfs op as posix_fallocate we lose the opportunity to use any
underlying syscalls (like Linux fallocate) that can do the latter
as well.

We don't currently use the non-extending filesize call, but now
I've changed the vfs op definition we can in the future. For the
moment simply map the fallocate op onto posix_fallocate for the
VFS_FALLOCATE_EXTEND_SIZE case and return ENOSYS for the
VFS_FALLOCATE_KEEP_SIZE case.

Jeremy.

Autobuild-User: Jeremy Allison <jra@samba.org>
Autobuild-Date: Sat Dec 18 08:59:27 CET 2010 on sn-devel-104

13 years agos4-drepl: During Schema replication, we need to save updated prefixMap if everything...
Kamen Mazdrashki [Sat, 18 Dec 2010 03:30:08 +0000 (05:30 +0200)]
s4-drepl: During Schema replication, we need to save updated prefixMap if everything is OK

Autobuild-User: Kamen Mazdrashki <kamenim@samba.org>
Autobuild-Date: Sat Dec 18 05:53:48 CET 2010 on sn-devel-104

13 years agos4-dsdb_schema: Copy info needed for Schema refresh in dsdb_schema_copy_shallow
Kamen Mazdrashki [Sat, 18 Dec 2010 03:29:20 +0000 (05:29 +0200)]
s4-dsdb_schema: Copy info needed for Schema refresh in dsdb_schema_copy_shallow

Just 'refresh_fn' and 'loaded_from_module' are copied.
I left 'reload_seq_number' set to 0 intentionally, so that
this Schema cache will looks like a very old one to ,refresh_fn'.
This way, if this shallow copy is attached to LDB, it will be
refreshed as soon as possible by 'refresh_fn'.

13 years agos4-devel/pfm_verify: Extend the tool to verify schemaInfo attribute value
Kamen Mazdrashki [Sat, 18 Dec 2010 03:21:09 +0000 (05:21 +0200)]
s4-devel/pfm_verify: Extend the tool to verify schemaInfo attribute value

13 years agos4-drepl: Make refreshed schema a global one
Kamen Mazdrashki [Thu, 16 Dec 2010 20:31:28 +0000 (22:31 +0200)]
s4-drepl: Make refreshed schema a global one

We need to do this as dsdb_reference_schema() function
clears "use_global_schema" ldb flag.

Basically what is going to happen is that after dsdb_reference_schema()
global_schema pointer will continue to point at old schema cache,
while "dsdb_schema" for LDB will point at the working_schema.

After replication is done, we reset "dsdb_schema" for the ldb
with an updated Schema cache, but this leaves global_schema pointer
with its old value, which is not up to date.
So we need to call dsdb_make_schema_global() again so that global_schema
points to a valid Schema cache.

13 years agopyrpc: Add prototype for init function.
Jelmer Vernooij [Fri, 17 Dec 2010 21:17:33 +0000 (22:17 +0100)]
pyrpc: Add prototype for init function.

Autobuild-User: Jelmer Vernooij <jelmer@samba.org>
Autobuild-Date: Sat Dec 18 03:04:23 CET 2010 on sn-devel-104

13 years agopyglue: Add prototype for init function.
Jelmer Vernooij [Fri, 17 Dec 2010 21:17:25 +0000 (22:17 +0100)]
pyglue: Add prototype for init function.

13 years agopidl: Add prototype for init function in pidl-generated Python bindings.
Jelmer Vernooij [Fri, 17 Dec 2010 20:58:16 +0000 (21:58 +0100)]
pidl: Add prototype for init function in pidl-generated Python bindings.

13 years agoRevert "s4-dsdb Don't talloc_free() ares on failure, as LDB might free it later"
Andrew Bartlett [Thu, 16 Dec 2010 21:43:33 +0000 (08:43 +1100)]
Revert "s4-dsdb Don't talloc_free() ares on failure, as LDB might free it later"

This reverts commit 25163380239abbad28f1656c42e6fab1b92473d9 because
further analyis showed the real problem was introduced in 0941099a
(which changed the caller behaviour, but only for indexed searches).

Andrew Bartlett

Autobuild-User: Andrew Bartlett <abartlet@samba.org>
Autobuild-Date: Sat Dec 18 02:19:59 CET 2010 on sn-devel-104

13 years agolib/ldb Remove talloc_free() that causes double-free in callbacks.
Andrew Bartlett [Thu, 16 Dec 2010 11:28:45 +0000 (22:28 +1100)]
lib/ldb Remove talloc_free() that causes double-free in callbacks.

This partially reverts 0941099a, which was a little over-eager in
fixing what were presumed to be memory leaks.

It is always the callbacks responsiblity to free the ares, but if they
don't then the end of the request should handle the cleanup.
Attempting to talloc_free() here will result (as it did in the
descriptor module) in a double-free error if the callback does free
it, and no other caller of ldb_module_send_entry() has this behaviour.

Andrew Bartlett

13 years agoldb: Rename controls_except_specified -> ldb_controls_except_specified.
Jelmer Vernooij [Fri, 17 Dec 2010 23:43:24 +0000 (00:43 +0100)]
ldb: Rename controls_except_specified -> ldb_controls_except_specified.

Autobuild-User: Jelmer Vernooij <jelmer@samba.org>
Autobuild-Date: Sat Dec 18 01:33:24 CET 2010 on sn-devel-104

13 years agoldb_map: Fix prefix for map functions.
Jelmer Vernooij [Fri, 17 Dec 2010 23:30:22 +0000 (00:30 +0100)]
ldb_map: Fix prefix for map functions.

13 years agoldb: Rename last instance of save_controls -> ldb_save_controls.
Jelmer Vernooij [Fri, 17 Dec 2010 23:12:17 +0000 (00:12 +0100)]
ldb: Rename last instance of save_controls -> ldb_save_controls.

13 years agoldb: Add prototype for ldb_init_module.
Jelmer Vernooij [Fri, 17 Dec 2010 23:11:36 +0000 (00:11 +0100)]
ldb: Add prototype for ldb_init_module.

13 years agoldb: Rename two exported functions so they match abi_match.
Jelmer Vernooij [Fri, 17 Dec 2010 22:00:46 +0000 (23:00 +0100)]
ldb: Rename two exported functions so they match abi_match.

13 years agopidl: Use system pytalloc if possible.
Jelmer Vernooij [Fri, 17 Dec 2010 22:00:31 +0000 (23:00 +0100)]
pidl: Use system pytalloc if possible.

13 years agoAdd bzrignore symlink.
Jelmer Vernooij [Fri, 17 Dec 2010 21:37:04 +0000 (22:37 +0100)]
Add bzrignore symlink.

13 years agowafsamba: Use abi_match in version script files.
Jelmer Vernooij [Fri, 17 Dec 2010 21:23:52 +0000 (22:23 +0100)]
wafsamba: Use abi_match in version script files.

13 years agoheimdal_build: Simplify HEIMDAL_LIBRARY - version_script files are now taken from...
Jelmer Vernooij [Fri, 17 Dec 2010 20:53:42 +0000 (21:53 +0100)]
heimdal_build: Simplify HEIMDAL_LIBRARY - version_script files are now taken from upstream rather than generated.

13 years agoheimdal_build: Add version-script for heimdal_base, hx509 and hcrypto. Convert hbase...
Jelmer Vernooij [Fri, 17 Dec 2010 20:51:21 +0000 (21:51 +0100)]
heimdal_build: Add version-script for heimdal_base, hx509 and hcrypto. Convert hbase and hcrypto to libraries.

13 years agos4-drepl: Reference current Schema cache into working_schema context
Kamen Mazdrashki [Fri, 17 Dec 2010 20:26:03 +0000 (22:26 +0200)]
s4-drepl: Reference current Schema cache into working_schema context

working_schema is a shallow copy of current schema and thus
depends on part of it. So we want it to be around as long as
working_schema is used.

Autobuild-User: Kamen Mazdrashki <kamenim@samba.org>
Autobuild-Date: Fri Dec 17 23:34:29 CET 2010 on sn-devel-104

13 years agos4-drepl: Fix log message to be shown on its own line
Kamen Mazdrashki [Fri, 17 Dec 2010 20:12:30 +0000 (22:12 +0200)]
s4-drepl: Fix log message to be shown on its own line

13 years agoMove checks inside file_set_sparse() to allow it to be called from anywhere.
Jeremy Allison [Fri, 17 Dec 2010 00:50:31 +0000 (16:50 -0800)]
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

13 years agofile_set_sparse needs to be a handle based call.
Jeremy Allison [Fri, 17 Dec 2010 00:42:33 +0000 (16:42 -0800)]
file_set_sparse needs to be a handle based call.

13 years agos3:smbd: implement FSCTL_SET_SPARSE more correctly
Björn Jacke [Thu, 18 Nov 2010 16:24:00 +0000 (17:24 +0100)]
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.

13 years agoUpdate our attribute flags.
Jeremy Allison [Fri, 17 Dec 2010 18:22:58 +0000 (10:22 -0800)]
Update our attribute flags.

13 years agos3:smbd: add file_set_sparse() function
Björn Jacke [Tue, 14 Dec 2010 09:03:07 +0000 (10:03 +0100)]
s3:smbd: add file_set_sparse() function

this is based on a patch for 3.3 from metze

13 years agos3/vfs_gpfs: map SPARSE attribute to/from WINATTRs, too
Björn Jacke [Thu, 18 Nov 2010 16:22:31 +0000 (17:22 +0100)]
s3/vfs_gpfs: map SPARSE attribute to/from WINATTRs, too

13 years agos3: remove set_sparse_flag
Björn Jacke [Thu, 18 Nov 2010 16:03:01 +0000 (17:03 +0100)]
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>
13 years agos3: add FILE_ATTRIBUTE_SPARSE to get_stat_dos_flags
Björn Jacke [Thu, 18 Nov 2010 15:04:03 +0000 (16:04 +0100)]
s3: add FILE_ATTRIBUTE_SPARSE to get_stat_dos_flags

13 years agoheimdal_build: Add version-script for krb5.
Jelmer Vernooij [Fri, 17 Dec 2010 19:11:15 +0000 (20:11 +0100)]
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

13 years agoheimdal_build: Add version-script for gssapi.
Jelmer Vernooij [Fri, 17 Dec 2010 19:08:11 +0000 (20:08 +0100)]
heimdal_build: Add version-script for gssapi.

13 years agoheimdal_build: Add version-script for asn1.
Jelmer Vernooij [Fri, 17 Dec 2010 19:06:15 +0000 (20:06 +0100)]
heimdal_build: Add version-script for asn1.

13 years agoheimdal_build: Add version-script for hdb.
Jelmer Vernooij [Fri, 17 Dec 2010 19:01:21 +0000 (20:01 +0100)]
heimdal_build: Add version-script for hdb.

13 years agoheimdal_build: Add version-script for kdc.
Jelmer Vernooij [Fri, 17 Dec 2010 19:00:58 +0000 (20:00 +0100)]
heimdal_build: Add version-script for kdc.

13 years agoheimdal_build: Add version-script for wind.
Jelmer Vernooij [Fri, 17 Dec 2010 18:55:54 +0000 (19:55 +0100)]
heimdal_build: Add version-script for wind.

13 years agoheimdal_build: Add version-script for ntlm.
Jelmer Vernooij [Fri, 17 Dec 2010 18:54:09 +0000 (19:54 +0100)]
heimdal_build: Add version-script for ntlm.

13 years agoheimdal: Add version script file for hcrypto (unused so far, as hcrypto still needs...
Jelmer Vernooij [Fri, 17 Dec 2010 18:52:42 +0000 (19:52 +0100)]
heimdal: Add version script file for hcrypto (unused so far, as hcrypto still needs to be made a proper library).

13 years agoheimdal_build: Add version-script for roken.
Jelmer Vernooij [Fri, 17 Dec 2010 18:51:37 +0000 (19:51 +0100)]
heimdal_build: Add version-script for roken.

13 years agoheimdal_build: Add version-script for com_err.
Jelmer Vernooij [Fri, 17 Dec 2010 18:50:52 +0000 (19:50 +0100)]
heimdal_build: Add version-script for com_err.

13 years agowafsamba: Specify full vscript path so non-autogenerated files are possible, too.
Jelmer Vernooij [Fri, 17 Dec 2010 18:38:12 +0000 (19:38 +0100)]
wafsamba: Specify full vscript path so non-autogenerated files are possible, too.

13 years agoheimdal_build: Simplify version_script handling.
Jelmer Vernooij [Fri, 17 Dec 2010 18:21:58 +0000 (19:21 +0100)]
heimdal_build: Simplify version_script handling.

13 years agowafsamba: Don't build vscript for modules.
Jelmer Vernooij [Fri, 17 Dec 2010 18:21:47 +0000 (19:21 +0100)]
wafsamba: Don't build vscript for modules.

13 years agowafsamba: Move version script handling out of SAMBA_LIBRARY.
Jelmer Vernooij [Fri, 17 Dec 2010 18:16:33 +0000 (19:16 +0100)]
wafsamba: Move version script handling out of SAMBA_LIBRARY.

13 years agoSimplify link installation.
Jelmer Vernooij [Fri, 17 Dec 2010 17:47:05 +0000 (18:47 +0100)]
Simplify link installation.

13 years agoheimdal_build: Simplify library handling.
Jelmer Vernooij [Fri, 17 Dec 2010 17:42:34 +0000 (18:42 +0100)]
heimdal_build: Simplify library handling.

13 years agos4-smbtorture: allow to call test_GetDriverInfo_winreg without printer handle.
Günther Deschner [Thu, 16 Dec 2010 15:06:02 +0000 (16:06 +0100)]
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

13 years agos4-smbtorture: check if returned driver paths match requested architecture.
Günther Deschner [Wed, 15 Dec 2010 16:44:56 +0000 (17:44 +0100)]
s4-smbtorture: check if returned driver paths match requested architecture.

Guenther

13 years agos3:net ads dns register: use "cluster addresses" option if configured (bug #7871)
Stefan Metzmacher [Thu, 16 Dec 2010 11:07:24 +0000 (12:07 +0100)]
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

13 years agos3:net ads dns register: add support for specifying addresse on the commandline ...
Michael Adam [Thu, 16 Dec 2010 00:49:14 +0000 (01:49 +0100)]
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>
13 years agos3:net: add net_update_dns_ext() that accepts a list of addresses as parameter (bug...
Michael Adam [Wed, 15 Dec 2010 23:52:41 +0000 (00:52 +0100)]
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>
13 years agos3:net: disable dynamic dns updates at the end of "net ads join" in a cluster (bug...
Michael Adam [Wed, 1 Dec 2010 23:42:21 +0000 (00:42 +0100)]
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>