sfrench/samba-autobuild/.git
12 years agos3: Document "async smb echo handler"
Volker Lendecke [Thu, 26 May 2011 09:40:21 +0000 (11:40 +0200)]
s3: Document "async smb echo handler"

Autobuild-User: Volker Lendecke <vlendec@samba.org>
Autobuild-Date: Thu May 26 12:50:55 CEST 2011 on sn-devel-104
(cherry picked from commit 875e29ba830b269faf8ca7ff7cd7fc95c0c18f28)

Fix bug #7571 (Documentation on new "async smb echo handler" parameter is
missing).
(cherry picked from commit 341694edc159b8b923ce4d5c22bebed6e1e7ad1b)

12 years agoWHATSNEW: Start adding changes since rc1.
Karolin Seeger [Mon, 23 May 2011 19:41:27 +0000 (21:41 +0200)]
WHATSNEW: Start adding changes since rc1.

Karolin
(cherry picked from commit 9a01a1569359ab7d527c2a080fb7861a03a8fe12)

12 years agoFix bug #8157 - std_pcap_cache_reload() fails to parse a cups printcap file correctly.
Jeremy Allison [Fri, 20 May 2011 19:27:02 +0000 (12:27 -0700)]
Fix bug #8157 - std_pcap_cache_reload() fails to parse a cups printcap file correctly.

The parsing code made some strange assumptions about what is a printer
name, and what is a comment.
(cherry picked from commit bc602ad464291380d4dea007668d453439467cc4)

12 years agoPatch for bug #8156 - net ads join fails to use the user's kerberos ticket.
Jeremy Allison [Fri, 20 May 2011 21:43:50 +0000 (14:43 -0700)]
Patch for bug #8156 - net ads join fails to use the user's kerberos ticket.

If kerberos_get_realm_from_hostname() or kerberos_get_default_realm_from_ccache() fails due to
 a misconfigured krb5.conf, try the "realm =" from smb.conf as a fallcback before going back to
 NTLMSSP (which we'll do anyway).
(cherry picked from commit ccab9efb653cfacdd357986f7a8a85c17df7abbb)

12 years agos3: Remove two false references to cli->inbuf (cherry picked from commit b1a7bdb93c7f...
Volker Lendecke [Mon, 23 May 2011 10:21:17 +0000 (12:21 +0200)]
s3: Remove two false references to cli->inbuf (cherry picked from commit b1a7bdb93c7fda54a29284f1691de1dc4f3bbf6b)

Fix bug #8159 (Memory corruption in fetching cli->server_domain from the
server.).
(cherry picked from commit d4c8b92a29aa9dcc976185aeb35ead8e911aab9c)

12 years agos3: Fix a leftover from fstring removal in cli_state
Volker Lendecke [Mon, 23 May 2011 13:36:20 +0000 (15:36 +0200)]
s3: Fix a leftover from fstring removal in cli_state

Jeremy, please check!
(cherry picked from commit 9514f96856ccf822b683b5362fd2eb4a4e9e418a)
(cherry picked from commit 0f574d1a2fbc1b043c96b103bda1b74b1088fd5b)

12 years agoFix bug 8133 - strange behavior for the file (whose filename first character is perio...
Jeremy Allison [Thu, 19 May 2011 23:39:18 +0000 (16:39 -0700)]
Fix bug 8133 - strange behavior for the file (whose filename first character is period ) in SMB2 case.

When doing SMB2 renames, we need to match all filetypes (no attributes field in the SMB2 call).
By default a file starting with a period is returned as FILE_ATTRIBUTE_HIDDEN in Samba.

Autobuild-User: Jeremy Allison <jra@samba.org>
Autobuild-Date: Fri May 20 19:26:04 CEST 2011 on sn-devel-104
(cherry picked from commit 318c77ec46c3769d462bada130956d0081c48be2)

12 years agoOptimization. If the attributes passed to can_rename() include both FILE_ATTRIBUTE_HI...
Jeremy Allison [Thu, 19 May 2011 23:38:11 +0000 (16:38 -0700)]
Optimization. If the attributes passed to can_rename() include both FILE_ATTRIBUTE_HIDDEN and FILE_ATTRIBUTE_SYSTEM then there's no point in reading the source DOS attribute, as we're not going to deny the rename on attribute match.
(cherry picked from commit e66e505db8e3e6c7938eb09dc55e080f7754ddd1)

12 years agoMake protocol version 2 the default protocol, and only run on version 1 if V1 is...
Holger Hetterich [Wed, 18 May 2011 13:24:23 +0000 (15:24 +0200)]
Make protocol version 2 the default protocol, and only run on version 1 if V1 is explcitly given as a module option.

I haven't received a single line of feedback on protocol v1
for at least 1 1/2 years, whereas protocol v2 has an active
userbase and more people developing around it.

This patch includes a manpage update, describing the new
version handling, as well as documenting the recent changes
making the module transfer the IP address of the client machine
as submitted with
464c69609aa7e582f484c1d357b7c6d3eb2bcbe3.

Bug #8148 (Default to protocol version 2 for SMB Traffic Analyzer in Samba
3.6.0).
(cherry picked from commit 9231770df9189701da7020c77ebd672942f25773)

12 years agos3-epmapper: Fixed endpoint registration.
Andreas Schneider [Wed, 18 May 2011 10:10:42 +0000 (12:10 +0200)]
s3-epmapper: Fixed endpoint registration.

Autobuild-User: Andreas Schneider <asn@cryptomilk.org>
Autobuild-Date: Fri May 20 12:03:18 CEST 2011 on sn-devel-104
(cherry picked from commit 7ab9e26b601e4e51736ce6eace46e6588fa1148f)

Fix bug #8155 (Registering only named pipes on EPM for a service doesn't work).
(cherry picked from commit aba30a8d502f0a425672205734bfb91d4286fc14)

12 years agoFix bug 8153 found when building on an IPv6-only system by Kai Blin.
Jeremy Allison [Thu, 19 May 2011 19:32:15 +0000 (12:32 -0700)]
Fix bug 8153 found when building on an IPv6-only system by Kai Blin.

When building on IPv6-only, doing:

hints.ai_family = AF_INET;
getaddrinfo("0.0.0.0", NULL, &hints, &ppres)

fails as AF_INET is unavailable on an IPv6-only system. This
causes us to fallback to our replacement getaddrinfo code
which is IPv4-only.

As we're only trying to detect a specific AIX bug here,
broaden the tests to find that bug, and also test for
working getaddrinfo in an IPv6-only safe way.
(cherry picked from commit 85468960ebdb3d813bd863e57f6dca6bab61bec2)

12 years agoFix Bug 8152 - smbd crash in release_ip()
Christian Ambach [Thu, 19 May 2011 16:13:40 +0000 (18:13 +0200)]
Fix Bug 8152 - smbd crash in release_ip()

release_ip() needs the private_data, but it was never saved away
to feed it into release_ip() later

Autobuild-User: Christian Ambach <ambi@samba.org>
Autobuild-Date: Thu May 19 21:21:14 CEST 2011 on sn-devel-104
(cherry picked from commit 642c6ba2b9c581bacfcb9a6cb4c5c95d446263ce)
(cherry picked from commit 72e50d34eeac4cd72ec2f6b3609b5373f1f1ec15)

12 years agos3:rpc_server: create lp_ncalrpc_dir() with 0755 before lp_ncalrpc_dir()/np with...
Stefan Metzmacher [Tue, 17 May 2011 08:32:38 +0000 (10:32 +0200)]
s3:rpc_server: create lp_ncalrpc_dir() with 0755 before lp_ncalrpc_dir()/np with 0700

metze

Autobuild-User: Stefan Metzmacher <metze@samba.org>
Autobuild-Date: Tue May 17 13:01:14 CEST 2011 on sn-devel-104
(cherry picked from commit cb227d6d1492247d8aff03807cac0b7266202a38)

The last 2 patches address bug #8141 (wrong permissions on lp_ncalrpc_dir()).
(cherry picked from commit ba6f63ca67fc9e0b2bfa54ccf2cf0b78c53db74b)

12 years agoncalrpc: Force ncalrpc dir to be mode 755 in all users
Andrew Bartlett [Sun, 8 May 2011 08:29:27 +0000 (10:29 +0200)]
ncalrpc: Force ncalrpc dir to be mode 755 in all users

This allows this directory to be shared between Samba3 and Samba4 in a
Franky-style setup easily.

Andrew Bartlett
(cherry picked from commit aae9353ecf56323b63da66aa84d8a0a4f219d94d)
(cherry picked from commit 6e89c230046f1b7300ba5f76dfbc81c57af69fe5)

12 years agotalloc: splitout _talloc_free_children_internal()
Stefan Metzmacher [Tue, 17 May 2011 06:50:45 +0000 (08:50 +0200)]
talloc: splitout _talloc_free_children_internal()

metze

Autobuild-User: Stefan Metzmacher <metze@samba.org>
Autobuild-Date: Tue May 17 10:49:13 CEST 2011 on sn-devel-104
(cherry picked from commit df2cb2f672569e5d113fe2e77fdc1ee16c8b646d)

The last 9 patches address bug #8140 (talloc: valgrind false positives and other
backports).
(cherry picked from commit 7304370a2423230120a9ceebd1016966658f713f)

12 years agotalloc: fixed a use after free error in talloc_free_children()
Stefan Metzmacher [Fri, 8 Apr 2011 10:30:46 +0000 (12:30 +0200)]
talloc: fixed a use after free error in talloc_free_children()

This is similar to commit 6f51a1f45bf4de062cce7a562477e8140630a53d.

metze
(cherry picked from commit 38633c9f0b7f86673f08903999583ad5b62c3548)
(cherry picked from commit e3ff6f5bbe09913b45ea1aef613c8790b25a978c)

12 years agotalloc: use _talloc_free_internal() in talloc_free_children()
Stefan Metzmacher [Fri, 8 Apr 2011 10:27:05 +0000 (12:27 +0200)]
talloc: use _talloc_free_internal() in talloc_free_children()

metze
(cherry picked from commit f3b855d2ff9576715afe50d75678829c6bc0842d)
(cherry picked from commit d54493b4b43cc0d299486e571d813f90a7b22059)

12 years agotalloc: test talloc_steal out of a talloc_pool
Stefan Metzmacher [Mon, 16 May 2011 17:25:47 +0000 (19:25 +0200)]
talloc: test talloc_steal out of a talloc_pool

metze

Autobuild-User: Stefan Metzmacher <metze@samba.org>
Autobuild-Date: Tue May 17 09:43:01 CEST 2011 on sn-devel-104
(cherry picked from commit 37b2130ed9612a7334888ecd2fee26b0b45ac271)
(cherry picked from commit ac6bb22a8c054e5949e07f563bf9fba46d22358d)

12 years agotalloc: add memset() calls to test_pool()
Stefan Metzmacher [Tue, 17 May 2011 06:20:13 +0000 (08:20 +0200)]
talloc: add memset() calls to test_pool()

This way we the pool based valgrind code.

metze
(cherry picked from commit 16cc52cf70a9918843f9761baf483338c80bf1d0)
(cherry picked from commit ade2fe7e8fc299e01ba13a08c95598eefa5b99b5)

12 years agotalloc: setup the new 'tc' before TC_UNDEFINE_GROW_CHUNK() _talloc_realloc()
Stefan Metzmacher [Tue, 17 May 2011 06:19:04 +0000 (08:19 +0200)]
talloc: setup the new 'tc' before TC_UNDEFINE_GROW_CHUNK() _talloc_realloc()

metze
(cherry picked from commit c281f2fc1a359d0d3b91b94438f11bb7c88170b5)
(cherry picked from commit 75ce3de1eb2e7042c7a4ffcb6f0f6aa2a41c19b5)

12 years agotalloc: make really sure only optimize realloc if there's only one pool chunk
Stefan Metzmacher [Mon, 16 May 2011 18:15:59 +0000 (20:15 +0200)]
talloc: make really sure only optimize realloc if there's only one pool chunk

*talloc_pool_objectcount(pool_tc) == 2 doesn't mean the one of the objects
is the pool itself! So we better check for == 1 and calculate the chunk count.

metze
(cherry picked from commit 7102105c8954627dc30a851327cf2642ac0783d5)
(cherry picked from commit 8e95d3201adc546000ca29816c83aba6fab52b1a)

12 years agotalloc: make use of _talloc_free_poolmem() in _talloc_realloc()
Stefan Metzmacher [Mon, 16 May 2011 18:23:13 +0000 (20:23 +0200)]
talloc: make use of _talloc_free_poolmem() in _talloc_realloc()

This should follow the same logic...

metze
(cherry picked from commit 14b662ee4f278764b9dfd620851e908d29f29fc4)
(cherry picked from commit dc8b2979168c6688c647cdc39d321eb54bd0aa5b)

12 years agotalloc: split the handling of FLAG_POOL/FLAG_POOLMEM in _talloc_free_internal
Stefan Metzmacher [Mon, 16 May 2011 17:06:07 +0000 (19:06 +0200)]
talloc: split the handling of FLAG_POOL/FLAG_POOLMEM in _talloc_free_internal

The optimization of the object_count == 1 case should only happen
for when we're not destroying the pool itself. And it should only
happen if the pool itself is still valid.

If the pool isn't valid (it has TALLOC_FLAG_FREE),
object_count == 1 does not mean that the pool is the last object,
which can happen if you use talloc_steal/move() on memory
from the pool and then free the pool itself.

Thanks to Volker for noticing this!

metze
(cherry picked from commit 2d514be1ed3b8245157a0a51186ec7f9db828202)
(cherry picked from commit 4cf761bb5a030340625172a51212b11613efea02)

12 years agoFix typos in LDAP schema files
Sumit Bose [Tue, 17 May 2011 06:58:50 +0000 (08:58 +0200)]
Fix typos in LDAP schema files

Reported by: John Danks <john.danks@gmail.com>

Signed-off-by: Günther Deschner <gd@samba.org>
Autobuild-User: Günther Deschner <gd@samba.org>
Autobuild-Date: Tue May 17 11:56:08 CEST 2011 on sn-devel-104

Fix bug #8142 (typo in several LDAP schema files).
(cherry picked from commit eb15457258ad7a54d5a3c4431be8307331e3a6e3)

12 years agoFix bug #8144 - touch /mnt/newfile fails to set timestamp with CIFS client.
Jeremy Allison [Tue, 17 May 2011 23:18:51 +0000 (16:18 -0700)]
Fix bug #8144 - touch /mnt/newfile fails to set timestamp with CIFS client.

The extra checks added for Windows correctness in our metadata changing paths
to ensure the file handle has been opened with the correct access mask to
allow FILE_WRITE_ATTRIBUTES etc. caused problems with the POSIX open code.

The old POSIX open code maped O_RDONLY into FILE_READ, O_WRONLY into FILE_WRITE,
and O_RDWR into FILE_READ|FILE_WRITE. This patch extends the mapping to add
FILE_WRITE_ATTRIBUTES, FILE_READ_ATTRIBUTES and FILE_WRITE_EA, FILE_READ_EA to
allow POSIX opens to set these values.
(cherry picked from commit d68dbed16939a4ba04435f7dad490d0a9fa60bdb)

12 years agoWHATSNEW: Start release notes.
Karolin Seeger [Tue, 17 May 2011 19:13:15 +0000 (21:13 +0200)]
WHATSNEW: Start release notes.

Karolin
(cherry picked from commit 881d39ca03588994c2f9e3e49db23470984d58e5)

12 years agoVERSION: Bump version up to 3.6.0rc2.
Karolin Seeger [Tue, 17 May 2011 19:10:39 +0000 (21:10 +0200)]
VERSION: Bump version up to 3.6.0rc2.

Karolin
(cherry picked from commit 24f54eb90f18cb876cf1c49a56e399a946758363)

12 years agoWHATSNEW: Add further changes since pre3. samba-3.6.0rc1
Karolin Seeger [Tue, 17 May 2011 07:54:34 +0000 (09:54 +0200)]
WHATSNEW: Add further changes since pre3.

And remove double entry.

Karolin
(cherry picked from commit 4024d092f6ef2ea43960bc6cd5c06f3632c3c10e)

12 years agoFix the SMB2 showstopper, found by an extended torture test from Volker.
Jeremy Allison [Mon, 16 May 2011 19:20:14 +0000 (12:20 -0700)]
Fix the SMB2 showstopper, found by an extended torture test from Volker.

In the oplock refactoring, the algorithm underwent an unnoticed change.
In 3.5.x stat_opens were silently (i.e. no explicit code had comments
explaining this) ignored when looking for oplock breaks and share mode
violations. After the refactoring, the function find_oplock_types()
no longer ignored stat_open entries in the share mode table when looking
for batch and exclusive oplocks. This patch adds two changes to find_oplock_types()
to ignore the case where the incoming open request is a stat open being
tested against existing opens, and also when the incoming open request
is a non-stat open being tested against existing stat opens. Neither
of these cause an oplock break or share mode violation. Thanks a *lot*
to Volker, who persevered in reproducing this problem.

Autobuild-User: Jeremy Allison <jra@samba.org>
Autobuild-Date: Mon May 16 22:38:20 CEST 2011 on sn-devel-104
(cherry picked from commit 8cf14c21b3bc55454728bf48b23f696e15c92aea)
(cherry picked from commit a2bc1d37b98a0581960039a5ff3deb55cf0c4f90)

12 years agoEnsure we always write the correct incoming mid into the share mode
Jeremy Allison [Mon, 16 May 2011 17:41:51 +0000 (10:41 -0700)]
Ensure we always write the correct incoming mid into the share mode
table entries.
(cherry picked from commit fe21bdc43c0aeacfc8592998e6a90f6f83c939e0)
(cherry picked from commit 76f6eed7068909c87f103e96e7e94e59647a7736)

12 years agos3-printing: remove cups_pull_comment_location from header file
David Disseldorp [Mon, 16 May 2011 11:26:41 +0000 (13:26 +0200)]
s3-printing: remove cups_pull_comment_location from header file

Signed-off-by: Günther Deschner <gd@samba.org>
Autobuild-User: Günther Deschner <gd@samba.org>
Autobuild-Date: Mon May 16 16:03:57 CEST 2011 on sn-devel-104
(cherry picked from commit 6bfe488f29a9df26f3d6dbc4166200ea286536c1)
(cherry picked from commit 327598652b106e9a09bfab5d35d3534c9093356a)

12 years agos3-printing: Remove obsolete and unused cups_pull_comment_location().
Andreas Schneider [Fri, 13 May 2011 08:57:33 +0000 (10:57 +0200)]
s3-printing: Remove obsolete and unused cups_pull_comment_location().

Signed-off-by: Günther Deschner <gd@samba.org>
(cherry picked from commit 01bc556d03a592e1f3c848d71b2e72a7cb74706f)
(cherry picked from commit 07652a7c7e55bf1e4acd3e4dd97880b8aba01596)

12 years agos3-spoolss: Get the printer location from cups.
Andreas Schneider [Fri, 13 May 2011 08:28:20 +0000 (10:28 +0200)]
s3-spoolss: Get the printer location from cups.

Signed-off-by: Günther Deschner <gd@samba.org>
(cherry picked from commit da1fa201040b2dab89fdc99663155a1c79ad4de9)
(cherry picked from commit 3006de14fb3b68d2be0bae65023e9ca8e4d11ff6)

12 years agos3-printing: Get the location info from cups.
Günther Deschner [Fri, 13 May 2011 08:02:42 +0000 (10:02 +0200)]
s3-printing: Get the location info from cups.

Signed-off-by: Günther Deschner <gd@samba.org>
(cherry picked from commit 854467851da48e02dcd8f869cb031c8943707017)
(cherry picked from commit 090b5b03d2c52c4fa4eeaecc4b4b815bd1948177)

12 years agos3-includes: no need to globally include libads/ads_status.h.
Günther Deschner [Fri, 6 May 2011 10:54:59 +0000 (12:54 +0200)]
s3-includes: no need to globally include libads/ads_status.h.

Guenther
(cherry picked from commit 1e208a705718adb105d89093041c0ba5d51f2429)
(cherry picked from commit 68936f478dfc0cb9c7ae9e7b208b5e5c22ea2973)

12 years agos3-includes: finally only include client.h when libsmb is used.
Günther Deschner [Fri, 6 May 2011 10:53:38 +0000 (12:53 +0200)]
s3-includes: finally only include client.h when libsmb is used.

Guenther
(cherry picked from commit 675573d54b717ffc24cf3b49301ff649aecc259a)
(cherry picked from commit 58cae168b5f29afda9dc7132f2770c3f58a89772)

12 years agos3-build Remove distinct LOCALEDIR subsystem
Andrew Bartlett [Wed, 13 Apr 2011 05:13:45 +0000 (15:13 +1000)]
s3-build Remove distinct LOCALEDIR subsystem

This is no different to the rest of dynconfig, and so should be dealt
with there.

Andrew Bartlett
(cherry picked from commit d309499b9e268bff5e366a9986528f0accbc02b3)
(cherry picked from commit 66f6359d9106872e226f08a9bbcf0917c987b84a)

12 years agos3-libsmb: move protos to libsmb/proto.h
Günther Deschner [Fri, 6 May 2011 09:47:43 +0000 (11:47 +0200)]
s3-libsmb: move protos to libsmb/proto.h

Guenther
(cherry picked from commit 3b2fe4728d6d916508b677e696ecad88f8b7b9fd)

12 years agos3: only include tdb headers where needed.
Günther Deschner [Thu, 5 May 2011 09:25:29 +0000 (11:25 +0200)]
s3: only include tdb headers where needed.

Guenther
(cherry picked from commit d8cfca3a9bd2b6b6c562fd202377d95a98eb5472)
(cherry picked from commit 138da8f4b1eb4715b7fb259986b9c1e8ffae469e)

12 years agolib/util Move source3 tdb_wrap_open() into the common code.
Andrew Bartlett [Wed, 4 May 2011 00:28:15 +0000 (10:28 +1000)]
lib/util Move source3 tdb_wrap_open() into the common code.

This #if _SAMBA_BUILD == 3 is very unfortunate, as it means that in
the top level build, these options are not available for these
databases.  However, having two different tdb_wrap lists is a worse
fate, so this will do for now.

Andrew Bartlett
(cherry picked from commit 14750139639b3531e57a3ca3f9e481d6e458dc06)
(cherry picked from commit a7f39847ebf29b821aab2570a2f2bd841a28e836)

12 years agos3-includes: remove ipv6 related prototype which is already defined in ../lib/util...
Günther Deschner [Tue, 3 May 2011 14:16:50 +0000 (16:16 +0200)]
s3-includes: remove ipv6 related prototype which is already defined in ../lib/util/util_net.h.

Guenther
(cherry picked from commit a3609457912123037ca9fc51349d89d7921bc4e7)
(cherry picked from commit f407006cd59d5957e4564d96c942b2aa913bcd18)

12 years agolib/util Move more network utility functions from source3 into lib/util
Andrew Bartlett [Mon, 2 May 2011 05:23:08 +0000 (15:23 +1000)]
lib/util Move more network utility functions from source3 into lib/util

This will help with the merge of the interfaces layer.

Andrew Bartlett
(cherry picked from commit fbea52f74a80268446f45936a0cf40400aba8565)
(cherry picked from commit 007b781b39e4bd2ddc25ab6bd2b6f9b88dfdba8b)

12 years agos3-rpc_server: run minimal_includes.pl.
Günther Deschner [Wed, 4 May 2011 22:58:27 +0000 (00:58 +0200)]
s3-rpc_server: run minimal_includes.pl.

Guenther

Autobuild-User: Günther Deschner <gd@samba.org>
Autobuild-Date: Thu May  5 03:04:38 CEST 2011 on sn-devel-104
(cherry picked from commit 8563d5c384f672276d8ea2ab20a1810ff485e37d)
(cherry picked from commit 154637cf36f5a47d3e83fcf2e2ed081cbff3e141)

12 years agos3-printing: run minimal_includes.pl.
Günther Deschner [Wed, 4 May 2011 22:48:26 +0000 (00:48 +0200)]
s3-printing: run minimal_includes.pl.

Guenther
(cherry picked from commit c9f3a2c83e208fcf05576eb2137c893fe4f3fe6d)
(cherry picked from commit d4e6e964ec87cd91a3bfe03efe754454644a3272)

12 years agos3-rpc_server: (re)move last globally included rpc_server prototypes.
Günther Deschner [Mon, 2 May 2011 11:27:45 +0000 (13:27 +0200)]
s3-rpc_server: (re)move last globally included rpc_server prototypes.

Guenther

Autobuild-User: Günther Deschner <gd@samba.org>
Autobuild-Date: Mon May  2 16:05:31 CEST 2011 on sn-devel-104
(cherry picked from commit 56cd3b3bbbb595cb0c98fa2dfa397c915fbf37d2)
(cherry picked from commit 7a4cc69ac8d2b6f53735a2f2cea8d40b7e965235)

12 years agos3: include ntdomain.h before including generated srv_ headers.
Günther Deschner [Mon, 2 May 2011 11:21:53 +0000 (13:21 +0200)]
s3: include ntdomain.h before including generated srv_ headers.

Guenther
(cherry picked from commit 0e76eddcc8a4e7e98167b8f92387fae015fae095)
(cherry picked from commit ce063fde45bfe649f8f50dd72e42db10b3d94f30)

12 years agos3-rpc_server: add pipes_struct forward declaration.
Günther Deschner [Mon, 2 May 2011 11:19:51 +0000 (13:19 +0200)]
s3-rpc_server: add pipes_struct forward declaration.

Guenther
(cherry picked from commit 911cdc56c146014058063b872372ff8096c06065)
(cherry picked from commit 9a6a1a5b934247c3d8c81934788231e331c2b020)

12 years agos3-printing: avoid using pipes_struct when only session_info is needed.
Günther Deschner [Fri, 29 Apr 2011 22:09:09 +0000 (00:09 +0200)]
s3-printing: avoid using pipes_struct when only session_info is needed.

Guenther
(cherry picked from commit cd5b2b242b39437081592d41d297bce0668b40ab)
(cherry picked from commit 44c6ed73b6f27484014cde771715c94475cac53f)

12 years agos3-proto: move remaining srvsvc protos to own header file.
Günther Deschner [Fri, 29 Apr 2011 21:57:49 +0000 (23:57 +0200)]
s3-proto: move remaining srvsvc protos to own header file.

Guenther
(cherry picked from commit daa02f34b181a3ec7224e920f787cc677bc3cdf2)
(cherry picked from commit 54559a55bd90f18330759b88fc9b2457951ccfdb)

12 years agos3-proto: move remaining spoolss protos to own header file.
Günther Deschner [Fri, 29 Apr 2011 21:47:25 +0000 (23:47 +0200)]
s3-proto: move remaining spoolss protos to own header file.

Guenther
(cherry picked from commit c233c21425a183dd1124329fdbca13ab92cc6d6a)
(cherry picked from commit 8143106d7290aa4ae713bc04603b8b589bc86346)

12 years agos3-proto: move more rpc_server prototypes out of proto.h
Günther Deschner [Fri, 29 Apr 2011 21:32:28 +0000 (23:32 +0200)]
s3-proto: move more rpc_server prototypes out of proto.h

Guenther
(cherry picked from commit 047d8c073b57bc12648a251deaceedb65f4f59cf)
(cherry picked from commit e3c65e2b7da2f7fbee4e6211bbe4f01c0873edec)

12 years agos3-proto: move rpc_srv_register protos and structs to town headerfile.
Günther Deschner [Fri, 29 Apr 2011 20:32:12 +0000 (22:32 +0200)]
s3-proto: move rpc_srv_register protos and structs to town headerfile.

Guenther
(cherry picked from commit 49d5f62b42d821bb8a11b595efb53eb88ec3c570)
(cherry picked from commit 6c07214f6a851f5fef573c8e7ffd9c1959e3702b)

12 years agos3-proto: move more headers to rpc_server/rpc_ncacn_np.h where they origin from.
Günther Deschner [Fri, 29 Apr 2011 14:40:24 +0000 (16:40 +0200)]
s3-proto: move more headers to rpc_server/rpc_ncacn_np.h where they origin from.

Guenther

Autobuild-User: Günther Deschner <gd@samba.org>
Autobuild-Date: Fri Apr 29 22:05:07 CEST 2011 on sn-devel-104
(cherry picked from commit bbacaec4e9365b128eb11467c95412de7473c1ec)
(cherry picked from commit 2cc2f7fe76e501c95206f91f4170d7e3829d89a0)

12 years agos3-proto: remove duplicate prototypes.
Günther Deschner [Fri, 29 Apr 2011 14:20:27 +0000 (16:20 +0200)]
s3-proto: remove duplicate prototypes.

Guenther
(cherry picked from commit bc781bf7d98baca57c8043bf7dc0a95f8ffd1345)
(cherry picked from commit 0b0dc24c82a6dd383cbffebae366fbf8e60ed66e)

12 years agos3-rpc_server: remove some unneeded headers.
Günther Deschner [Fri, 29 Apr 2011 14:19:54 +0000 (16:19 +0200)]
s3-rpc_server: remove some unneeded headers.

Guenther
(cherry picked from commit 487cb0c96ef8ca05fcef35d0d7c49bc067f6cff7)
(cherry picked from commit 944dceb45b384c68a581b3f27a914c9e1d9d10cf)

12 years agos3-proto: move rpc_server/rpc_handles.c protos to ntdomain.h
Günther Deschner [Fri, 29 Apr 2011 13:22:29 +0000 (15:22 +0200)]
s3-proto: move rpc_server/rpc_handles.c protos to ntdomain.h

Guenther
(cherry picked from commit dfdc021e75fa4168b01ab77bfa1cb8c2539393db)

12 years agos3-proto: move more librpc prototypes to librpc/rpc/dcerpc.h
Günther Deschner [Fri, 29 Apr 2011 13:13:55 +0000 (15:13 +0200)]
s3-proto: move more librpc prototypes to librpc/rpc/dcerpc.h

Guenther
(cherry picked from commit faf11751255202274505d72848c54ee6e5dce7b6)
(cherry picked from commit f92793f3f728c05f47671dc2697bf3ea3ace705d)

12 years agos3-proto: move more rpc client prototypes to cli_pipe.h.
Günther Deschner [Thu, 21 Apr 2011 16:24:35 +0000 (18:24 +0200)]
s3-proto: move more rpc client prototypes to cli_pipe.h.

Guenther
(cherry picked from commit 7daafe4d9e3620d8de2796a08924ff780528ac4f)

12 years agos4-smbtorture: add test_netremotetod.
Günther Deschner [Wed, 11 May 2011 21:50:23 +0000 (23:50 +0200)]
s4-smbtorture: add test_netremotetod.

Guenther

Autobuild-User: Günther Deschner <gd@samba.org>
Autobuild-Date: Mon May 16 12:45:52 CEST 2011 on sn-devel-104
(cherry picked from commit 74d82faa78e64bdaed68efb9331a7af1c3016c34)
(cherry picked from commit fce32d92de313862fc9d34fff28d1d10d2f4e5b4)

12 years agos4-libcli/rap: add smbcli_rap_netremotetod().
Günther Deschner [Wed, 11 May 2011 21:37:08 +0000 (23:37 +0200)]
s4-libcli/rap: add smbcli_rap_netremotetod().

Guenther
(cherry picked from commit b1948659ad987ce50d048dabc34f03031a243ee5)
(cherry picked from commit 1ace9011db167b96cb60fef713d69d8d502e9222)

12 years agos3-rap: add rap_NetRemoteTOD to IDL.
Günther Deschner [Wed, 11 May 2011 21:35:21 +0000 (23:35 +0200)]
s3-rap: add rap_NetRemoteTOD to IDL.

Guenther
(cherry picked from commit b82caab5c9d8821cd125654e3233da40eb4c61d1)
(cherry picked from commit e4765bf9f800f565b355d6821459d87658698174)

12 years agos3-rpc_client: run minimal_includes.pl.
Günther Deschner [Wed, 4 May 2011 22:54:56 +0000 (00:54 +0200)]
s3-rpc_client: run minimal_includes.pl.

Guenther
(cherry picked from commit bd92826aa837f56119153b93cfce7f843e567896)
(cherry picked from commit a68a7dfedd72cb97e98069ed0cc9d53dedb0b4ac)

12 years agos3-rpcclient: run minimal_includes.pl.
Günther Deschner [Wed, 4 May 2011 22:51:12 +0000 (00:51 +0200)]
s3-rpcclient: run minimal_includes.pl.

Guenther
(cherry picked from commit c11d52c7f6b560fe66a2f197e30602d57370fd5c)
(cherry picked from commit 79294deb58ea85f5d0d688b56df47a6c3bbb82fb)

12 years agos3-param: run minimal_includes.pl.
Günther Deschner [Wed, 4 May 2011 22:36:51 +0000 (00:36 +0200)]
s3-param: run minimal_includes.pl.

Guenther
(cherry picked from commit 62314da8059ae888c0d1b299c486156664611e06)
(cherry picked from commit aba946b91dd4dc32e3b5dbf2b19e01a4181b4f4e)

12 years agos3-libsmb: run minimal_includes.pl.
Günther Deschner [Wed, 4 May 2011 22:31:42 +0000 (00:31 +0200)]
s3-libsmb: run minimal_includes.pl.

Guenther
(cherry picked from commit ea8960448d0a40067382a8d14ae19351d20acbdd)
(cherry picked from commit 0241e64238249c730acbf3d18d36532a14c74570)

12 years agos3-libnet: run minimal_includes.pl.
Günther Deschner [Wed, 4 May 2011 22:25:31 +0000 (00:25 +0200)]
s3-libnet: run minimal_includes.pl.

Guenther
(cherry picked from commit a05a59e8e2a421f22978e6eedbb1a7501a603aff)
(cherry picked from commit 7987f1555648051ef4a5a00b42062d4fb149c0e2)

12 years agos3-libads: run minimal_includes.pl.
Günther Deschner [Wed, 4 May 2011 22:22:05 +0000 (00:22 +0200)]
s3-libads: run minimal_includes.pl.

Guenther
(cherry picked from commit 653b84d2d6ed7387f93e5a126b5f2114b831044e)
(cherry picked from commit af98bc24e3f8708f6382611538afa2df2d5a68c5)

12 years agos3-lib: run minimal_includes.pl.
Günther Deschner [Wed, 4 May 2011 22:10:23 +0000 (00:10 +0200)]
s3-lib: run minimal_includes.pl.

Guenther
(cherry picked from commit 63ebc918e4514f0006b94856d9b089255fca9718)
(cherry picked from commit 274f3fea50cd3ae5bb5bdedc75402a11cfcbb114)

12 years agos3-auth: run minimal_includes.pl
Günther Deschner [Wed, 4 May 2011 22:03:48 +0000 (00:03 +0200)]
s3-auth: run minimal_includes.pl

Guenther
(cherry picked from commit 58db720e27d4b0c580fb4d3e036d823bc5d3a141)
(cherry picked from commit 2a0c2636c40ef35a46f3ae33a4f28f0c87174d13)

12 years agolibcli/named_pipe_auth: add forward declaration in npa_tstream.h.
Günther Deschner [Fri, 29 Apr 2011 21:58:18 +0000 (23:58 +0200)]
libcli/named_pipe_auth: add forward declaration in npa_tstream.h.

Guenther
(cherry picked from commit 89ceb489784358f9476bb6be0ad3ab9ea4d1b9c2)
(cherry picked from commit 1fff2580d791a92137f9d5ab27dcb4a82188f020)

12 years agos3-waf: check for pthread support.
Günther Deschner [Wed, 27 Apr 2011 14:07:35 +0000 (16:07 +0200)]
s3-waf: check for pthread support.

Guenther
(cherry picked from commit cad8fafa0391e9f13c2958c45ca5ec57f93f1e7b)
(cherry picked from commit 00e5d087ca0ce1c5258d89aec44d59adeb681b50)

12 years agos3-proto: move remaining krb5 protos to krb5_protos.h
Günther Deschner [Tue, 3 May 2011 10:05:47 +0000 (12:05 +0200)]
s3-proto: move remaining krb5 protos to krb5_protos.h

Guenther

Autobuild-User: Günther Deschner <gd@samba.org>
Autobuild-Date: Tue May  3 15:38:40 CEST 2011 on sn-devel-104
(cherry picked from commit 9c48345e32c9aebd93c67103ea6984d74f2061b4)
(cherry picked from commit f7411daa8cb1bb8222a09d112031a259cbd69ac8)

12 years agos3: remove various references to server side dcerpc structs (which are not needed).
Günther Deschner [Mon, 2 May 2011 10:36:55 +0000 (12:36 +0200)]
s3: remove various references to server side dcerpc structs (which are not needed).

Guenther
(cherry picked from commit 0bb4701a747599042242b0612bc392a6e6d777af)
(cherry picked from commit 8deb28c63b324771815513858b89f1a0c58472f8)

12 years agos3: move pipe_auth_data to dcerpc.h
Günther Deschner [Mon, 2 May 2011 10:36:25 +0000 (12:36 +0200)]
s3: move pipe_auth_data to dcerpc.h

Guenther
(cherry picked from commit 80fa624861e6f45c4b6837969253d5fbac2f3b1e)
(cherry picked from commit e74b7405586a50349be236a81e71fd432855663d)

12 years agos3-smbd: avoid using pipes_struct when only session_info is needed.
Günther Deschner [Fri, 29 Apr 2011 22:37:05 +0000 (00:37 +0200)]
s3-smbd: avoid using pipes_struct when only session_info is needed.

Guenther
(cherry picked from commit 61cd1067efacd91e22b4acbdf0d1d92dc2efc162)
(cherry picked from commit 3fe82d0152f9760326e905516c6959fb4b9973e5)

12 years agos3-printing: include ../librpc/ndr/libndr.h in ads printing.
Günther Deschner [Fri, 29 Apr 2011 22:40:28 +0000 (00:40 +0200)]
s3-printing: include ../librpc/ndr/libndr.h  in ads printing.

Guenther
(cherry picked from commit f7d6a0a1121c355a87dd113d2cb2a4985cdc06ce)
(cherry picked from commit 87cd7c5fe13d8a1a2e7c251feed75900a338ad34)

12 years agos3-winbindd: remove unused headers.
Günther Deschner [Mon, 2 May 2011 11:18:39 +0000 (13:18 +0200)]
s3-winbindd: remove unused headers.

Guenther
(cherry picked from commit 233779cce4f47799d5912f362faadcd564bbf096)
(cherry picked from commit a68a2b0cd3192da5450d3de64211f390aa96ef59)

12 years agos3-system: move LOCK_ defines to lib/system.c
Günther Deschner [Tue, 3 May 2011 12:45:47 +0000 (14:45 +0200)]
s3-system: move LOCK_ defines to lib/system.c

Guenther
(cherry picked from commit 4fa2bac6e7ebe11447b535d9c8ec4348a2bbd39e)
(cherry picked from commit a99d25b3d2af71c0ec05484469a0943b74eb89c4)

12 years agos3-spoolss: remove another unused header.
Günther Deschner [Mon, 2 May 2011 11:25:19 +0000 (13:25 +0200)]
s3-spoolss: remove another unused header.

Guenther
(cherry picked from commit 1a561dedb9995f52411d2fed2c6e0cc1e37a85d1)
(cherry picked from commit 3bcdab23d9e1304e9a0b306c673107907f2e8307)

12 years agos3-util: move valid_share_pathname() to lib/util.c
Günther Deschner [Fri, 29 Apr 2011 20:34:56 +0000 (22:34 +0200)]
s3-util: move valid_share_pathname() to lib/util.c

Guenther
(cherry picked from commit c1f3ff734043082a9488c787324e76a37702f94d)
(cherry picked from commit bbe4e6d975e7b47179572f103d41d95d1cab6edf)

12 years agos3-rpc_server: remove proto of nonexisting function
Günther Deschner [Fri, 29 Apr 2011 20:43:59 +0000 (22:43 +0200)]
s3-rpc_server: remove proto of nonexisting function
(rpc_pipe_register_commands).

Guenther
(cherry picked from commit c6fe379a4637dd1d5db34cbe4f566d3913b21fd2)
(cherry picked from commit c6e4a26d7b7732130d3b0300e0a84d676d6a81de)

12 years agos3-proto: remove remaining nss_info prototypes to nss_info.h
Günther Deschner [Fri, 29 Apr 2011 13:02:49 +0000 (15:02 +0200)]
s3-proto: remove remaining nss_info prototypes to nss_info.h

Guenther
(cherry picked from commit d6289641f5d421d188c37819f5fe8ceeb5a86aba)
(cherry picked from commit fb85cf65b0cc36a568df03dd0fbc6a605fa17b08)

12 years agos3: Document gpfs:syncio
Volker Lendecke [Mon, 16 May 2011 11:30:26 +0000 (13:30 +0200)]
s3: Document gpfs:syncio

Autobuild-User: Volker Lendecke <vlendec@samba.org>
Autobuild-Date: Mon May 16 15:00:40 CEST 2011 on sn-devel-104
(cherry picked from commit 3358d5a7cae1c2a99495c38069531fc87fe22b24)
(cherry picked from commit 40d20d13e78868e312201ba4345730fd6ab36b41)

12 years agogpfs.so: Add gpfs:syncio option
Gregor Beck [Thu, 5 May 2011 14:28:58 +0000 (16:28 +0200)]
gpfs.so: Add gpfs:syncio option

This enables optimizations for shared file access on gpfs
(cherry picked from commit 2ddfbbbdba0003fda85f2d1c0be87ceca2586e5d)
(cherry picked from commit 88c14b4a14a7713861443244bac9ff95774e38ed)

12 years agos3:libsmb convert user-specified domain to uppercase
Christian Ambach [Fri, 6 May 2011 11:16:26 +0000 (13:16 +0200)]
s3:libsmb convert user-specified domain to uppercase

with client ntlmv2 auth = yes, there is a small difference between
using smbclient -U user\domain and smbclient -U user -W domain
if domain is provided in lowercase

using -W will uppercase the given parameter, while picking the
domain name from -U will not convert it to uppercase and this
leads to failing NTLMv2 authentication

with this patch, there is no difference between
smbclient -U domain\user and smbclient -U user -W domain any more

Autobuild-User: Christian Ambach <ambi@samba.org>
Autobuild-Date: Mon May 16 11:42:55 CEST 2011 on sn-devel-104
(cherry picked from commit dae276b5abde77df24f297149267622e7a6dcddb)

12 years agolibcli/: Fix prototypes for all functions.(cherry picked from commit fa387825e2a4563f...
Jelmer Vernooij [Fri, 18 Mar 2011 23:45:56 +0000 (00:45 +0100)]
libcli/: Fix prototypes for all functions.(cherry picked from commit fa387825e2a4563ff85267848d8e9d206bf6db96)
(cherry picked from commit 28cba271e61245b166d002745737c5fedae80c0c)

12 years agoMore const compiler warning fixes.
Jeremy Allison [Thu, 5 May 2011 18:29:01 +0000 (11:29 -0700)]
More const compiler warning fixes.
(cherry picked from commit 9efea96d16a9f9526669e7d9288902a15d0ee549)
(cherry picked from commit 62a6ded441247daeb61a36fddc3d7eac8114df9f)

12 years agos3-net: fix potential crash bug in display_print_driver3().
Günther Deschner [Fri, 13 May 2011 13:03:59 +0000 (15:03 +0200)]
s3-net: fix potential crash bug in display_print_driver3().

Guenther

Autobuild-User: Günther Deschner <gd@samba.org>
Autobuild-Date: Fri May 13 18:49:06 CEST 2011 on sn-devel-104
(cherry picked from commit 3d100216b84f4f25c3e761741eda2cc134957e96)
(cherry picked from commit 37a05cbd6d00690542a08556ffc55bf5a3afe7d5)

12 years agos3: Fix return check in nss_wins
Volker Lendecke [Sun, 15 May 2011 21:26:10 +0000 (23:26 +0200)]
s3: Fix return check in nss_wins

Autobuild-User: Volker Lendecke <vlendec@samba.org>
Autobuild-Date: Mon May 16 00:30:42 CEST 2011 on sn-devel-104
(cherry picked from commit 068f847fe2682ab6e356db7b9ae6151f82605f0e)
(cherry picked from commit 5ad20f61f87618386f343c2aa8c3f3ffe2fefb03)

12 years agoWHATSNEW: Add changes since pre3.
Karolin Seeger [Sun, 15 May 2011 18:13:36 +0000 (20:13 +0200)]
WHATSNEW: Add changes since pre3.

Karolin
(cherry picked from commit 2163261c29e3d0afd7ca9fa4ee4f0befffb83172)

12 years agos3: Paranoia in smbsock_connect_state_destructor
Volker Lendecke [Sat, 14 May 2011 11:15:19 +0000 (13:15 +0200)]
s3: Paranoia in smbsock_connect_state_destructor

Autobuild-User: Volker Lendecke <vlendec@samba.org>
Autobuild-Date: Sat May 14 14:19:01 CEST 2011 on sn-devel-104
(cherry picked from commit f1cdce6c135574bd0552f1e368c9b47daf633c73)
(cherry picked from commit affe06f513b94b414b7a8ae5e6ffe6f98fc7706c)

12 years agos3:build: install libtdb with full version number instead of only SO version
Michael Adam [Fri, 6 May 2011 15:10:13 +0000 (17:10 +0200)]
s3:build: install libtdb with full version number instead of only SO version

(cherry picked from commit 5bcc0b2138b60fcecea94093ca43aaca4bc4d4ec)
(cherry picked from commit 087d32cf48018572f7c2f0c355db294bf9792f88)

12 years agos3:build: install libtalloc with full version number instead of only SO version
Michael Adam [Fri, 6 May 2011 15:10:13 +0000 (17:10 +0200)]
s3:build: install libtalloc with full version number instead of only SO version
(cherry picked from commit 4acb8c3f5976c5496aa666a52cd96739836ced2a)
(cherry picked from commit 15502f3206a059a2fe7ced52e0450a57e375bd73)

12 years agos3:build: build libtalloc.so.$VERSION with full version number instead only SO version
Michael Adam [Fri, 6 May 2011 15:00:32 +0000 (17:00 +0200)]
s3:build: build libtalloc.so.$VERSION with full version number instead only SO version
(cherry picked from commit d04efc703ba0f195fcef832a30b27a160a787413)
(cherry picked from commit 8cc2dc490a27deda5fdae8aaac00c07ea12a58ec)

12 years agos3:build: build libtdb.so.$VERSION with full version number instead only SO version
Michael Adam [Fri, 6 May 2011 15:00:32 +0000 (17:00 +0200)]
s3:build: build libtdb.so.$VERSION with full version number instead only SO version
(cherry picked from commit 9c76fdd80c93ec23099987b1559f3a3f0f7b6ca5)
(cherry picked from commit d1682e2d62bc320a419bf768c1d76a29666e7f75)

12 years agos3:build: link libtdb as shared lib if using shared libs at all
Michael Adam [Fri, 6 May 2011 14:43:31 +0000 (16:43 +0200)]
s3:build: link libtdb as shared lib if using shared libs at all
(cherry picked from commit 3f222513cc99b7ce048bcdaa8cc10f7b91616904)
(cherry picked from commit 43b29fe6affe3dde1cbf191cc9c46d52f83df3db)

12 years agos3:build: determine full version of libtdb for the samba build
Michael Adam [Fri, 6 May 2011 14:42:53 +0000 (16:42 +0200)]
s3:build: determine full version of libtdb for the samba build
(cherry picked from commit 23637b5789a43fe75bb4eadabd33fb321272b42b)
(cherry picked from commit 095a83d7fbb23c5df5cadf2d9e5136a7fc396a1f)

12 years agos3:build: link libtalloc as shared lib if using shared libs at all
Michael Adam [Fri, 6 May 2011 14:42:07 +0000 (16:42 +0200)]
s3:build: link libtalloc as shared lib if using shared libs at all
(cherry picked from commit 6c300ec4b51bfd57837d193f0b17b60cb152fc27)
(cherry picked from commit a3b058206e3c2f7670083f370d7d4540a0a7e29f)

12 years agos3:build: determine full version of libtalloc for the samba build
Michael Adam [Fri, 6 May 2011 14:40:59 +0000 (16:40 +0200)]
s3:build: determine full version of libtalloc for the samba build
(cherry picked from commit 472cabbdea3d5def7e7a36b19c5851a0cf0d8d83)
(cherry picked from commit d579ae8a2a3cad5f953a3587024a398add7ccfea)

12 years agos3:build: fix typo in definition of --enable-external-libtdb
Michael Adam [Fri, 6 May 2011 14:39:03 +0000 (16:39 +0200)]
s3:build: fix typo in definition of --enable-external-libtdb
(cherry picked from commit b731b6e032d9ba1469c349d6c46bd7bb52b18c28)
(cherry picked from commit c01873ebd9e90572c8e4fab28568328871a12be2)