metze/samba/wip.git
13 years agos3:lib/gencache: fix memory leak in error path
Stefan Metzmacher [Fri, 17 Dec 2010 12:26:16 +0000 (13:26 +0100)]
s3:lib/gencache: fix memory leak in error path

metze

13 years agos3:libsmb/namequery.c: don't leak 'pserver'
Stefan Metzmacher [Fri, 17 Dec 2010 12:06:13 +0000 (13:06 +0100)]
s3:libsmb/namequery.c: don't leak 'pserver'

metze

13 years agodns: fixed dns record format
Andrew Tridgell [Wed, 22 Dec 2010 01:13:44 +0000 (12:13 +1100)]
dns: fixed dns record format

based on new WSPP docs from Bryan Burgin

Autobuild-User: Andrew Tridgell <tridge@samba.org>
Autobuild-Date: Wed Dec 22 04:45:46 CET 2010 on sn-devel-104

13 years agoFix a warning message.
Jeremy Allison [Wed, 22 Dec 2010 02:11:40 +0000 (18:11 -0800)]
Fix a warning message.

Autobuild-User: Jeremy Allison <jra@samba.org>
Autobuild-Date: Wed Dec 22 03:59:18 CET 2010 on sn-devel-104

13 years agoMy algorithm for determining whan an incoming sequence number can be allowed is incor...
Jeremy Allison [Wed, 22 Dec 2010 02:07:52 +0000 (18:07 -0800)]
My algorithm for determining whan an incoming sequence number can be allowed is incorrect.

(I based it on the text in MS-SMB2, silly me :-). Fix it so incoming sequence numbers
can range over the entire allowable bitmap range. This fixes a repeatable
disconnect against Win7.

Jeremy.

13 years agoheimdal_build: Use consistent name for heimbase.
Jelmer Vernooij [Wed, 22 Dec 2010 00:33:50 +0000 (01:33 +0100)]
heimdal_build: Use consistent name for heimbase.

Autobuild-User: Jelmer Vernooij <jelmer@samba.org>
Autobuild-Date: Wed Dec 22 02:24:24 CET 2010 on sn-devel-104

13 years agoheimdal_build: When using system hbase/hcrypto, don't compile our own versions.
Jelmer Vernooij [Wed, 22 Dec 2010 00:25:20 +0000 (01:25 +0100)]
heimdal_build: When using system hbase/hcrypto, don't compile our own versions.

13 years agoheimdal_build: Allow using system hbase and hcrypto.
Jelmer Vernooij [Wed, 22 Dec 2010 00:01:04 +0000 (01:01 +0100)]
heimdal_build: Allow using system hbase and hcrypto.

13 years agos4-devel/pfm_verify: Move schemaInfo getter into separate function
Kamen Mazdrashki [Tue, 21 Dec 2010 23:09:59 +0000 (01:09 +0200)]
s4-devel/pfm_verify: Move schemaInfo getter into separate function

so it can be used against Windows DC without fetching prefixMap
Fetching prefixMap doesn't work against WinDCs for some reason at the moment

Autobuild-User: Kamen Mazdrashki <kamenim@samba.org>
Autobuild-Date: Wed Dec 22 01:28:49 CET 2010 on sn-devel-104

13 years agowafsamba: Allow newer or the same python module versions to be installed,
Jelmer Vernooij [Tue, 21 Dec 2010 22:52:15 +0000 (23:52 +0100)]
wafsamba: Allow newer or the same python module versions to be installed,
not older.

Autobuild-User: Jelmer Vernooij <jelmer@samba.org>
Autobuild-Date: Wed Dec 22 00:42:23 CET 2010 on sn-devel-104

13 years agotevent: Remove reference to nonexistant configure.developer from autogen.sh.
Jelmer Vernooij [Tue, 21 Dec 2010 18:31:40 +0000 (19:31 +0100)]
tevent: Remove reference to nonexistant configure.developer from autogen.sh.

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

13 years agotalloc: Remove reference to nonexistant configure.developer in autogen.sh.
Jelmer Vernooij [Tue, 21 Dec 2010 18:24:51 +0000 (19:24 +0100)]
talloc: Remove reference to nonexistant configure.developer in autogen.sh.

13 years agotevent: Bump version number after symbol versioning changes.
Jelmer Vernooij [Tue, 21 Dec 2010 17:57:49 +0000 (18:57 +0100)]
tevent: Bump version number after symbol versioning changes.

13 years agotdb: Bump version number after symbol versioning changes.
Jelmer Vernooij [Tue, 21 Dec 2010 17:56:18 +0000 (18:56 +0100)]
tdb: Bump version number after symbol versioning changes.

13 years agopytdb: Make PyTdb variable static.
Jelmer Vernooij [Tue, 21 Dec 2010 17:48:49 +0000 (18:48 +0100)]
pytdb: Make PyTdb variable static.

13 years agos3:cli_np_tstream: if SMBtrans is desired, the readv needs to wait for the last write...
Stefan Metzmacher [Tue, 21 Dec 2010 14:43:44 +0000 (15:43 +0100)]
s3:cli_np_tstream: if SMBtrans is desired, the readv needs to wait for the last writev chunk.

metze

Autobuild-User: Stefan Metzmacher <metze@samba.org>
Autobuild-Date: Tue Dec 21 17:43:06 CET 2010 on sn-devel-104

13 years agoldb: Add ldb.Message.add and ldb.Message.elements.
Jelmer Vernooij [Tue, 21 Dec 2010 13:05:18 +0000 (14:05 +0100)]
ldb: Add ldb.Message.add and ldb.Message.elements.

Autobuild-User: Jelmer Vernooij <jelmer@samba.org>
Autobuild-Date: Tue Dec 21 15:03:17 CET 2010 on sn-devel-104

13 years agoldb:tools/ldbdel.c - "replace.h" should be the first include
Matthias Dieter Wallnöfer [Tue, 21 Dec 2010 10:46:29 +0000 (11:46 +0100)]
ldb:tools/ldbdel.c - "replace.h" should be the first include

Autobuild-User: Matthias Dieter Wallnöfer <mdw@samba.org>
Autobuild-Date: Tue Dec 21 12:50:54 CET 2010 on sn-devel-104

13 years agos4-dns: set dwSerial and dwFlags
Andrew Tridgell [Tue, 21 Dec 2010 09:53:58 +0000 (20:53 +1100)]
s4-dns: set dwSerial and dwFlags

we are waiting on full docs on these, but this is better than zero

Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>

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

13 years agos4-dns: fixed name comparison in bind9 module
Andrew Tridgell [Tue, 21 Dec 2010 09:53:11 +0000 (20:53 +1100)]
s4-dns: fixed name comparison in bind9 module

we need to compare without the trailing '.'

Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>

13 years agodns: cope with trailing '.' in dns_name
Andrew Tridgell [Tue, 21 Dec 2010 09:52:24 +0000 (20:52 +1100)]
dns: cope with trailing '.' in dns_name

13 years agos4-dns: return the local hostname as the SOA authority
Andrew Tridgell [Tue, 21 Dec 2010 02:26:15 +0000 (13:26 +1100)]
s4-dns: return the local hostname as the SOA authority

this is done by all DCs in the domain to ensure that updates go to the
right place

13 years agos4-provision: removed an incorrect debug message
Andrew Tridgell [Tue, 21 Dec 2010 01:42:49 +0000 (12:42 +1100)]
s4-provision: removed an incorrect debug message

this is now used as part of the main join

13 years agos4-dns: disable segfault handling in dlz_bind9
Andrew Tridgell [Tue, 21 Dec 2010 01:42:23 +0000 (12:42 +1100)]
s4-dns: disable segfault handling in dlz_bind9

we don't want bind9 calling the Samba segv handler

13 years agos4:auth/session.h - use a forward declaration for type "struct ldb_context"
Matthias Dieter Wallnöfer [Tue, 21 Dec 2010 09:13:41 +0000 (10:13 +0100)]
s4:auth/session.h - use a forward declaration for type "struct ldb_context"

And remove the now obsolete one for "struct tevent_context"

Autobuild-User: Matthias Dieter Wallnöfer <mdw@samba.org>
Autobuild-Date: Tue Dec 21 11:17:34 CET 2010 on sn-devel-104

13 years agos4-auth Ensure that we always copy across domain groups
Andrew Bartlett [Tue, 21 Dec 2010 03:08:34 +0000 (14:08 +1100)]
s4-auth Ensure that we always copy across domain groups

Even if we can't calculate the local groups (because we don't have a
local SAM to do it with) we still need to include the domain groups in
the session_info token.

Andrew Bartlett

Autobuild-User: Andrew Bartlett <abartlet@samba.org>
Autobuild-Date: Tue Dec 21 05:56:22 CET 2010 on sn-devel-104

13 years agos4-auth Remove duplicate copies of session_info creation code
Andrew Bartlett [Tue, 21 Dec 2010 00:43:04 +0000 (11:43 +1100)]
s4-auth Remove duplicate copies of session_info creation code

We now just do or do not call into LDB based on some flags.

This means there may be some more link time dependencies, but we seem
to deal with those better now.

Andrew Bartlett

13 years agos4-auth rework session_info handling not to require an auth context
Andrew Bartlett [Mon, 20 Dec 2010 23:19:53 +0000 (10:19 +1100)]
s4-auth rework session_info handling not to require an auth context

This reverts a previous move to have this based around the auth
subsystem, which just spread auth deps all over unrelated code.

Andrew Bartlett

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.