ira/wip.git
12 years agolibrpc/ndr Merge ndr_print_sockaddr_storage() into common code
Andrew Bartlett [Mon, 16 May 2011 11:18:25 +0000 (21:18 +1000)]
librpc/ndr Merge ndr_print_sockaddr_storage() into common code

There is no longer a reason to leave this source3 specific, and this
brings it into a library (avoiding duplicate symbols).

Andrew Bartlett

12 years agobuild: Make util_reg subsystem in libcli/registry a library
Andrew Bartlett [Mon, 16 May 2011 11:14:48 +0000 (21:14 +1000)]
build: Make util_reg subsystem in libcli/registry a library

12 years agobuild: Add rpc_client grouping library
Andrew Bartlett [Mon, 16 May 2011 11:08:20 +0000 (21:08 +1000)]
build: Add rpc_client grouping library

12 years agobuild: Add depenencies needed by Samba3 subsystems
Andrew Bartlett [Mon, 16 May 2011 11:08:06 +0000 (21:08 +1000)]
build: Add depenencies needed by Samba3 subsystems

12 years agobuild: Make auth_sam_reply a library
Andrew Bartlett [Mon, 16 May 2011 11:06:22 +0000 (21:06 +1000)]
build: Make auth_sam_reply a library

12 years agobuild: Make msrpc3 a library
Andrew Bartlett [Sat, 14 May 2011 19:54:57 +0000 (21:54 +0200)]
build: Make msrpc3 a library

12 years agobuild: Expand dcerpc-samba grouping library
Andrew Bartlett [Sat, 14 May 2011 17:55:57 +0000 (19:55 +0200)]
build: Expand dcerpc-samba grouping library

This is possible in common now because the generated RPC code does not
rely on a particular dcerpc layer.

Andrew Bartlett

12 years agowaf-build: Add more libraries to avoid duplicate symbols
Andrew Bartlett [Thu, 12 May 2011 18:12:07 +0000 (20:12 +0200)]
waf-build: Add more libraries to avoid duplicate symbols

The new source of duplicates is calling libnetapi from inside smbtorture.

Andrew Bartlett

12 years agos4-selftest: gensec test is finished, don't skip
Andrew Bartlett [Tue, 17 May 2011 09:39:25 +0000 (19:39 +1000)]
s4-selftest: gensec test is finished, don't skip

12 years agoselftest: Don't skip Samba3 tests in the top level build
Andrew Bartlett [Tue, 17 May 2011 09:26:40 +0000 (19:26 +1000)]
selftest: Don't skip Samba3 tests in the top level build

The regular expressions here were not specific enough, they matched
the samba3. names from the source3/selftest/tests.py

Found by Andreas Schneider

Andrew Bartlett

12 years agos3-smbtorture: fix build warning (shadowed NTSTATUS variable).
Günther Deschner [Wed, 18 May 2011 11:15:01 +0000 (13:15 +0200)]
s3-smbtorture: fix build warning (shadowed NTSTATUS variable).

Guenther

Autobuild-User: Günther Deschner <gd@samba.org>
Autobuild-Date: Wed May 18 14:17:13 CEST 2011 on sn-devel-104

12 years agotorture: desactivate the level 4 tests for DFS referral
Matthieu Patou [Wed, 18 May 2011 04:44:05 +0000 (08:44 +0400)]
torture: desactivate the level 4 tests for DFS referral

Autobuild-User: Matthieu Patou <mat@samba.org>
Autobuild-Date: Wed May 18 13:04:00 CEST 2011 on sn-devel-104

12 years agos4-dfs: Add workaround so that XP really works well
Matthieu Patou [Tue, 17 May 2011 21:14:24 +0000 (01:14 +0400)]
s4-dfs: Add workaround so that XP really works well

XP seems to have problems working at a correct speed (or even
working at all if we return referral of level 4).

12 years agos3-modules: Fix the build of gpfs.c on RHEL 6.0 with gpfs 3.4.0-4
Björn Baumbach [Mon, 16 May 2011 12:25:01 +0000 (14:25 +0200)]
s3-modules: Fix the build of gpfs.c on RHEL 6.0 with gpfs 3.4.0-4

Signed-off-by: Stefan Metzmacher <metze@samba.org>
Autobuild-User: Stefan Metzmacher <metze@samba.org>
Autobuild-Date: Wed May 18 11:58:14 CEST 2011 on sn-devel-104

12 years agos3-docs: change eventlog path from lockdir to statedir
Björn Baumbach [Thu, 3 Feb 2011 10:06:57 +0000 (11:06 +0100)]
s3-docs: change eventlog path from lockdir to statedir

See elog_tdbname() in source3/lib/eventlog/eventlog.c.

Signed-off-by: Stefan Metzmacher <metze@samba.org>
12 years agos3-torture/nbio.c: Fix cli_errstr() usage (part of bug #7864)
Björn Baumbach [Mon, 7 Feb 2011 10:27:02 +0000 (11:27 +0100)]
s3-torture/nbio.c: Fix cli_errstr() usage (part of bug #7864)

Convert cli_errstr() to nt_errstr()

Signed-off-by: Stefan Metzmacher <metze@samba.org>
12 years agos3-client/clitar.c: Fix cli_errstr() usage (part of bug #7864)
Björn Baumbach [Mon, 7 Feb 2011 10:27:02 +0000 (11:27 +0100)]
s3-client/clitar.c: Fix cli_errstr() usage (part of bug #7864)

Convert cli_errstr() to nt_errstr()

Signed-off-by: Stefan Metzmacher <metze@samba.org>
12 years agos3-net_rpc_printer.c: Fix cli_errstr() usage (part of bug #7864)
Björn Baumbach [Tue, 1 Feb 2011 15:58:48 +0000 (16:58 +0100)]
s3-net_rpc_printer.c: Fix cli_errstr() usage (part of bug #7864)

Convert cli_errstr() to nt_errstr()

Signed-off-by: Stefan Metzmacher <metze@samba.org>
12 years agos3-libsmb/passchange.c: Fix cli_errstr() usage (part of bug #7864)
Björn Baumbach [Fri, 4 Feb 2011 13:25:52 +0000 (14:25 +0100)]
s3-libsmb/passchange.c: Fix cli_errstr() usage (part of bug #7864)

Convert cli_errstr() to nt_errstr()

Signed-off-by: Stefan Metzmacher <metze@samba.org>
12 years agos3-torture/mangle_test.c: Fix cli_errstr() usage (part of bug #7864)
Björn Baumbach [Tue, 1 Feb 2011 10:27:55 +0000 (11:27 +0100)]
s3-torture/mangle_test.c: Fix cli_errstr() usage (part of bug #7864)

Convert cli_errstr() to nt_errstr()

Signed-off-by: Stefan Metzmacher <metze@samba.org>
12 years agos3-torture: torture.c: Fix cli_errstr() usage (part of bug #7864)
Björn Baumbach [Thu, 20 Jan 2011 13:21:40 +0000 (14:21 +0100)]
s3-torture: torture.c: Fix cli_errstr() usage (part of bug #7864)

Convert cli_errstr() to nt_errstr()

Signed-off-by: Stefan Metzmacher <metze@samba.org>
12 years agos4:ntvfs/cifs: return NT_STATUS_INTERNAL_ERROR if no credentials are available
Stefan Metzmacher [Mon, 2 May 2011 10:51:58 +0000 (12:51 +0200)]
s4:ntvfs/cifs: return NT_STATUS_INTERNAL_ERROR if no credentials are available

This is a configuration problem on the server, no invalid parameter
from the client.

metze

Autobuild-User: Stefan Metzmacher <metze@samba.org>
Autobuild-Date: Wed May 18 08:49:00 CEST 2011 on sn-devel-104

12 years agos4:kdc: split s4u2self and s4u2proxy checks
Stefan Metzmacher [Thu, 7 Apr 2011 09:16:55 +0000 (11:16 +0200)]
s4:kdc: split s4u2self and s4u2proxy checks

metze

12 years agos4:kdc: UF_TRUSTED_TO_AUTHENTICATE_FOR_DELEGATION => flags.trusted_for_delegation
Stefan Metzmacher [Thu, 7 Apr 2011 10:16:16 +0000 (12:16 +0200)]
s4:kdc: UF_TRUSTED_TO_AUTHENTICATE_FOR_DELEGATION => flags.trusted_for_delegation

metze

12 years agos4:auth/credentials: S4U2Self should force CRED_MUST_USE_KERBEROS
Stefan Metzmacher [Thu, 28 Apr 2011 15:10:03 +0000 (17:10 +0200)]
s4:auth/credentials: S4U2Self should force CRED_MUST_USE_KERBEROS

Otherwise we would not impersonate the desired principal.
This still doesn't work for plaintext auth, but should
avoid ntlmssp.

metze

12 years agos4:auth/credentials: pass 'self_service' to cli_credentials_set_impersonate_principal()
Stefan Metzmacher [Fri, 22 Apr 2011 09:22:50 +0000 (11:22 +0200)]
s4:auth/credentials: pass 'self_service' to cli_credentials_set_impersonate_principal()

This also adds a cli_credentials_get_self_service() helper function.

In order to support S4U2Proxy we need to be able to set
the service principal for the S4U2Self step independent of the
target principal.

metze

12 years agos4:gensec_gssapi: avoid delegation if s4u2self/proxy is used
Stefan Metzmacher [Fri, 25 Mar 2011 14:44:50 +0000 (15:44 +0100)]
s4:gensec_gssapi: avoid delegation if s4u2self/proxy is used

metze

12 years agoHEIMDAL:kdc: check and regenerate the PAC in the s4u2proxy case
Stefan Metzmacher [Thu, 7 Apr 2011 12:40:54 +0000 (14:40 +0200)]
HEIMDAL:kdc: check and regenerate the PAC in the s4u2proxy case

TODO: we need to add a S4U_DELEGATION_INFO to the PAC later.

metze

12 years agoHEIMDAL:kdc: pass the correct principal name for the resulting service ticket
Stefan Metzmacher [Fri, 25 Mar 2011 11:36:14 +0000 (12:36 +0100)]
HEIMDAL:kdc: pass the correct principal name for the resulting service ticket

Depending on S4U2Proxy the principal name for the resulting
ticket is not the principal of the client ticket.

metze

12 years agoHEIMDAL:kdc: let check_PAC() to verify the incoming server and krbtgt cheksums
Stefan Metzmacher [Fri, 25 Mar 2011 13:57:42 +0000 (14:57 +0100)]
HEIMDAL:kdc: let check_PAC() to verify the incoming server and krbtgt cheksums

For a normal TGS-REQ they're both signed with krbtgt key.
But for S4U2Proxy requests which ask for contrained delegation,
the keys differ.

metze

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.

Autobuild-User: Jeremy Allison <jra@samba.org>
Autobuild-Date: Wed May 18 02:22:32 CEST 2011 on sn-devel-104

12 years agoFix redefinition of fstrcpy.
Jeremy Allison [Tue, 17 May 2011 23:18:37 +0000 (16:18 -0700)]
Fix redefinition of fstrcpy.

12 years agois_my_ipaddr() should recognise loopback addresses as ours.
Jeremy Allison [Mon, 16 May 2011 23:08:48 +0000 (16:08 -0700)]
is_my_ipaddr() should recognise loopback addresses as ours.

Autobuild-User: Jeremy Allison <jra@samba.org>
Autobuild-Date: Tue May 17 20:05:42 CEST 2011 on sn-devel-104

12 years agoDon't evaluate the src argument to fstrcpy/fstrcat/nstrcpy/unstrcpy twice. Prevents...
Jeremy Allison [Mon, 16 May 2011 22:47:49 +0000 (15:47 -0700)]
Don't evaluate the src argument to fstrcpy/fstrcat/nstrcpy/unstrcpy twice. Prevents side-effects when src is a function call.

12 years agoRemove duplicate definition of SMB_VFS_NEXT_STRICT_UNLOCK. Found by herb@samba.org
Jeremy Allison [Mon, 16 May 2011 22:39:01 +0000 (15:39 -0700)]
Remove duplicate definition of SMB_VFS_NEXT_STRICT_UNLOCK. Found by herb@samba.org

12 years agos3: conn->sconn in smbd_server_connection_read/write_handler
Volker Lendecke [Tue, 17 May 2011 15:23:26 +0000 (17:23 +0200)]
s3: conn->sconn in smbd_server_connection_read/write_handler

"struct smbd_server_connection" is called sconn elsewhere, avoid confusion

Autobuild-User: Volker Lendecke <vlendec@samba.org>
Autobuild-Date: Tue May 17 19:00:20 CEST 2011 on sn-devel-104

12 years agolib/util/charset: fix the toplevel MacOS X build.
Günther Deschner [Tue, 17 May 2011 13:08:40 +0000 (15:08 +0200)]
lib/util/charset: fix the toplevel MacOS X build.

Guenther

Autobuild-User: Günther Deschner <gd@samba.org>
Autobuild-Date: Tue May 17 16:16:59 CEST 2011 on sn-devel-104

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

12 years agoRevert "s3-rpc_server: Force ncalrpc dir to be mode 755."
Stefan Metzmacher [Tue, 17 May 2011 08:31:14 +0000 (10:31 +0200)]
Revert "s3-rpc_server: Force ncalrpc dir to be mode 755."

This reverts commit a032c9c8fe8aff455407485169b9445860f89606.

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

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

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

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

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

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

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

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

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

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

12 years agos4-dfs: Use a workaround for ndr relative pointer bug/limitation
Matthieu Patou [Mon, 16 May 2011 16:51:20 +0000 (20:51 +0400)]
s4-dfs: Use a workaround for ndr relative pointer bug/limitation

Autobuild-User: Matthieu Patou <mat@samba.org>
Autobuild-Date: Tue May 17 01:33:27 CEST 2011 on sn-devel-104

12 years agos4-torture: Add more tests to DFS referral suite
Matthieu Patou [Sun, 15 May 2011 18:17:46 +0000 (22:17 +0400)]
s4-torture: Add more tests to DFS referral suite

12 years agotorture: adapt to idl evolution
root [Sun, 15 May 2011 12:25:15 +0000 (16:25 +0400)]
torture: adapt to idl evolution

12 years agos4-dfs: clean the code
Matthieu Patou [Sun, 15 May 2011 18:18:19 +0000 (22:18 +0400)]
s4-dfs: clean the code

12 years agos4-dfs: fix bugs in idl and adapt code accordingly
Matthieu Patou [Sun, 15 May 2011 15:56:25 +0000 (19:56 +0400)]
s4-dfs: fix bugs in idl and adapt code accordingly

12 years agos4-python: add an option for just fixing gpo folders
Matthieu Patou [Sun, 15 May 2011 12:06:18 +0000 (16:06 +0400)]
s4-python: add an option for just fixing gpo folders

12 years agos4-python: keep wheel_gid as an integer
Matthieu Patou [Sun, 15 May 2011 12:02:54 +0000 (16:02 +0400)]
s4-python: keep wheel_gid as an integer

12 years agos4-python: raise an error if unable to bind remote ldap while joining
Matthieu Patou [Fri, 13 May 2011 12:04:07 +0000 (16:04 +0400)]
s4-python: raise an error if unable to bind remote ldap while joining

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

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.

12 years agos3-rpc_server: Force ncalrpc dir to be mode 755.
Andreas Schneider [Mon, 16 May 2011 14:50:51 +0000 (16:50 +0200)]
s3-rpc_server: Force ncalrpc dir to be mode 755.

This completes aae9353ecf56323b63da66aa84d8a0a4f219d94d.

directory_create_or_exist() is not needed cause create_pipe_sock() takes
care of setting up the directory correctly.

Andrew please check!

Autobuild-User: Andreas Schneider <asn@cryptomilk.org>
Autobuild-Date: Mon May 16 17:54:20 CEST 2011 on sn-devel-104

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

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

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

12 years agowaf: Enable Samba3 torture tests in top level build.
Andreas Schneider [Mon, 16 May 2011 09:56:14 +0000 (11:56 +0200)]
waf: Enable Samba3 torture tests in top level build.

Signed-off-by: Günther Deschner <gd@samba.org>
Autobuild-User: Günther Deschner <gd@samba.org>
Autobuild-Date: Mon May 16 13:57:01 CEST 2011 on sn-devel-104

12 years agos3-selftest: no point in running base.chkpath and base.delaywrite twice.
Günther Deschner [Mon, 16 May 2011 10:48:10 +0000 (12:48 +0200)]
s3-selftest: no point in running base.chkpath and base.delaywrite twice.

Thanks to Bjoern Baumbach for pointing this out!

Guenther

Signed-off-by: Günther Deschner <gd@samba.org>
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>
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>
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>
12 years agos3: Added waf build header locations for clang complete.
Andreas Schneider [Fri, 13 May 2011 08:27:46 +0000 (10:27 +0200)]
s3: Added waf build header locations for clang complete.

Signed-off-by: Günther Deschner <gd@samba.org>
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

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

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

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

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

12 years agos3: Make&use set_socket_addr_v4
Volker Lendecke [Sat, 14 May 2011 16:04:49 +0000 (18:04 +0200)]
s3: Make&use set_socket_addr_v4

Autobuild-User: Volker Lendecke <vlendec@samba.org>
Autobuild-Date: Sat May 14 18:57:57 CEST 2011 on sn-devel-104

12 years agoUse ZERO_STRUCTP in util_net
Volker Lendecke [Sat, 14 May 2011 15:39:40 +0000 (17:39 +0200)]
Use ZERO_STRUCTP in util_net

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

12 years agos3-param Deprecate a number of security parameters for 3.6
Andrew Bartlett [Fri, 13 May 2011 15:55:41 +0000 (17:55 +0200)]
s3-param Deprecate a number of security parameters for 3.6

This follows up on the agreement on the samba-technical list in Jan
2011 to deprecate these options, and to possibly remove these in the
4.0 release after user feedback.

Andrew Bartlett

Autobuild-User: Andrew Bartlett <abartlet@samba.org>
Autobuild-Date: Fri May 13 19:51:41 CEST 2011 on sn-devel-104

12 years agodo an explicit A record search for SRV entries
Luke Howard [Thu, 12 May 2011 18:52:52 +0000 (20:52 +0200)]
do an explicit A record search for SRV entries

Signed-off-by: Andrew Bartlett <abartlet@samba.org>
12 years agos3-build: use ndr-standard in msrpc3
Andrew Bartlett [Fri, 13 May 2011 09:49:49 +0000 (11:49 +0200)]
s3-build: use ndr-standard in msrpc3

This avoids pulling in the symbols from the NDR_ subsystems directly.

Andrew Bartlett

12 years agobuild: Move NDR_DSSETUP and NDR_SPOOLSS into ndr-standard
Andrew Bartlett [Fri, 13 May 2011 09:48:14 +0000 (11:48 +0200)]
build: Move NDR_DSSETUP and NDR_SPOOLSS into ndr-standard

This is to address multiple defintion of symbol issues in msrpc3
linked libraries.

Andrew Bartlett

12 years agolib/util/charset Move built-in charset modules to the top level
Andrew Bartlett [Fri, 13 May 2011 08:26:20 +0000 (10:26 +0200)]
lib/util/charset Move built-in charset modules to the top level

This removes the 'charset' subsystem and allows these modules to be
used across the whole of Samba.

Andrew Bartlett

12 years agos3-netapi Initialise global variables in libnetapi
Andrew Bartlett [Tue, 10 May 2011 20:11:55 +0000 (22:11 +0200)]
s3-netapi Initialise global variables in libnetapi

It is important to initalise the global variables when loading this
configuration for the potentially first time.

Andrew Bartlett

12 years agos3-libnetapi Don't create a talloc_stackframe() in a global variable
Andrew Bartlett [Tue, 10 May 2011 20:08:36 +0000 (22:08 +0200)]
s3-libnetapi Don't create a talloc_stackframe() in a global variable

This also ensures that libnetapi_free() invalidates the global
stat_ctx variable, and changes the API so that the behaviour of the
error string routines is to consistently return a allocated string.

Pair-Programmed-With: Günther Deschner <gd@samba.org>

Andrew Bartlett

12 years agolib/util/ Fix crash bug caused by gfree_debug()
Andrew Bartlett [Mon, 9 May 2011 15:43:45 +0000 (17:43 +0200)]
lib/util/ Fix crash bug caused by gfree_debug()

The issue is that we should reset the debug_num_classes to 0 when we
un-initialise the debug system.

Andrew Bartlett

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

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

Autobuild-User: Michael Adam <obnox@samba.org>
Autobuild-Date: Fri May 13 17:45:01 CEST 2011 on sn-devel-104

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

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

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

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

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

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

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

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

12 years agos3:build: reformat AC_ARG_ENABLE(external_libtalloc...)
Michael Adam [Fri, 6 May 2011 14:38:38 +0000 (16:38 +0200)]
s3:build: reformat AC_ARG_ENABLE(external_libtalloc...)

12 years agos3:build: print the full version number in the showlibs targets
Michael Adam [Fri, 6 May 2011 10:57:03 +0000 (12:57 +0200)]
s3:build: print the full version number in the showlibs targets

12 years agos3:build: add LIBWBCLIENT_FULLVER for consistency with SMB_LIBRARY()
Michael Adam [Fri, 6 May 2011 14:37:58 +0000 (16:37 +0200)]
s3:build: add LIBWBCLIENT_FULLVER for consistency with SMB_LIBRARY()

12 years agos3:build: add an optional full version argument to the SMB_LIBRARY() macro.
Michael Adam [Fri, 6 May 2011 10:44:04 +0000 (12:44 +0200)]
s3:build: add an optional full version argument to the SMB_LIBRARY() macro.

12 years agos3:configure: add --enable-smbtorture4 switch
Michael Adam [Fri, 6 May 2011 16:35:06 +0000 (18:35 +0200)]
s3:configure: add --enable-smbtorture4 switch