ira/wip.git
10 years agos3:libsmb: don't reuse the callers stype variable in cli_NetServerEnum()
Stefan Metzmacher [Thu, 4 Feb 2010 13:03:20 +0000 (14:03 +0100)]
s3:libsmb: don't reuse the callers stype variable in cli_NetServerEnum()

When we need to do more than one network operation to get the
browse list we need to use the same 'stype' value each time.

metze

10 years agos4-torture: handle NT_STATUS_CONNECTION_RESET
Andrew Tridgell [Thu, 4 Feb 2010 09:19:05 +0000 (20:19 +1100)]
s4-torture: handle NT_STATUS_CONNECTION_RESET

a CONNECTION_RESET is now the normal "client disconnect" status code

10 years agos4:mark the SYSTEM control always as non-critical
Matthias Dieter Wallnöfer [Thu, 4 Feb 2010 08:22:39 +0000 (09:22 +0100)]
s4:mark the SYSTEM control always as non-critical

It is needed to not break the various LDAP backends. For reference look at
bug #7040.

10 years agos3:nsswitch: also use pthread CFLAGS for the nsswitch modules that might require it
Björn Jacke [Thu, 4 Feb 2010 10:03:55 +0000 (11:03 +0100)]
s3:nsswitch: also use pthread CFLAGS for the nsswitch modules that might require it

10 years agos3: fix build on Tru64 after it broke with deactivating pthread pool support
Björn Jacke [Thu, 4 Feb 2010 09:35:45 +0000 (10:35 +0100)]
s3: fix build on Tru64 after it broke with deactivating pthread pool support

10 years agos3:vfs_scannedonly: fix build on HP-UX
Björn Jacke [Wed, 3 Feb 2010 22:28:38 +0000 (23:28 +0100)]
s3:vfs_scannedonly: fix build on HP-UX

10 years agonet: Fix python 2.4 compatibility.
Jelmer Vernooij [Wed, 3 Feb 2010 22:55:58 +0000 (23:55 +0100)]
net: Fix python 2.4 compatibility.

10 years agos3: Simplify the code a bit: Catch (len==0) early
Volker Lendecke [Wed, 3 Feb 2010 06:37:29 +0000 (07:37 +0100)]
s3: Simplify the code a bit: Catch (len==0) early

10 years agoupdate samba schema for IBM Directory Server
Christian Ambach [Wed, 3 Feb 2010 13:20:16 +0000 (14:20 +0100)]
update samba schema for IBM Directory Server

this increases the sambapasswordhistory field length to 64 and
fixes a warning about a wrong booleanmatch setting

Signed-off-by: Christian Ambach <christian.ambach@de.ibm.com>
10 years agoFix bug 7081 - vfs_expand_msdfs doesn't work correctly (with fix identified)
Jeremy Allison [Wed, 3 Feb 2010 00:43:41 +0000 (16:43 -0800)]
Fix bug 7081 - vfs_expand_msdfs doesn't work correctly (with fix identified)

Fix inspired by idea from Eric Horst <erich@cac.washington.edu>.

Jeremy.

10 years agoFix bug 7063 - Samba 3.4.5 on ubuntu 8.04 64 bit - Core dumps.
Jeremy Allison [Wed, 3 Feb 2010 00:32:51 +0000 (16:32 -0800)]
Fix bug 7063 - Samba 3.4.5 on ubuntu 8.04 64 bit - Core dumps.

Reported and found by Martin Hochreiter <linuxbox@wavenet.at>.
Ensure we copy the right amount of registry data into the outgoing
buffer.

Jeremy.

10 years agos3:configure: check complete set of EA functions only when we found at least one
Björn Jacke [Tue, 2 Feb 2010 17:27:49 +0000 (18:27 +0100)]
s3:configure: check complete set of EA functions only when we found at least one

this saves us some time in configure

10 years agoChange uint_t to unsigned int in source4
Matt Kraai [Tue, 5 Jan 2010 17:42:54 +0000 (09:42 -0800)]
Change uint_t to unsigned int in source4

Signed-off-by: Stefan Metzmacher <metze@samba.org>
10 years agoChange uint_t to unsigned int in source3
Matt Kraai [Tue, 5 Jan 2010 17:42:23 +0000 (09:42 -0800)]
Change uint_t to unsigned int in source3

Signed-off-by: Stefan Metzmacher <metze@samba.org>
10 years agoChange uint_t to unsigned int in pidl
Matt Kraai [Tue, 5 Jan 2010 17:41:53 +0000 (09:41 -0800)]
Change uint_t to unsigned int in pidl

Signed-off-by: Stefan Metzmacher <metze@samba.org>
10 years agoChange uint_t to unsigned int in libcli
Matt Kraai [Tue, 5 Jan 2010 17:41:24 +0000 (09:41 -0800)]
Change uint_t to unsigned int in libcli

Signed-off-by: Stefan Metzmacher <metze@samba.org>
10 years agoChange uint_t to unsigned int in lib/util
Matt Kraai [Tue, 5 Jan 2010 17:40:54 +0000 (09:40 -0800)]
Change uint_t to unsigned int in lib/util

Signed-off-by: Stefan Metzmacher <metze@samba.org>
10 years agoChange uint_t to unsigned int in lib/talloc
Matt Kraai [Tue, 5 Jan 2010 17:40:26 +0000 (09:40 -0800)]
Change uint_t to unsigned int in lib/talloc

Signed-off-by: Stefan Metzmacher <metze@samba.org>
10 years agoChange uint_t to unsigned int in lib/crypto
Matt Kraai [Tue, 5 Jan 2010 17:39:56 +0000 (09:39 -0800)]
Change uint_t to unsigned int in lib/crypto

Signed-off-by: Stefan Metzmacher <metze@samba.org>
10 years agoChange uint_t to unsigned int in lib/replace
Matt Kraai [Tue, 5 Jan 2010 17:43:24 +0000 (09:43 -0800)]
Change uint_t to unsigned int in lib/replace

Signed-off-by: Stefan Metzmacher <metze@samba.org>
10 years agos4:NBT-WINSREPLICATION: don't mark a local variable as static
Stefan Metzmacher [Mon, 1 Feb 2010 16:30:30 +0000 (17:30 +0100)]
s4:NBT-WINSREPLICATION: don't mark a local variable as static

This was somehow introduced in commit 8773e743c518578584d07d35ffdafdd598af88b0.

metze

10 years agoAdd debug to make it clear when EA dosmode set is invoked.
Jeremy Allison [Tue, 2 Feb 2010 03:21:35 +0000 (19:21 -0800)]
Add debug to make it clear when EA dosmode set is invoked.

Jeremy.

10 years agoFix bug #7084 - Create time on directories not stored properly in an EA in new create...
Jeremy Allison [Tue, 2 Feb 2010 02:50:43 +0000 (18:50 -0800)]
Fix bug #7084 - Create time on directories not stored properly in an EA in new create time code.

Remove erroneous optimisation that caused no EA to be set
if calculated btime matched st_ex btime, and calculated DOS
attribute matched existing file attribute.

Jeremy.

10 years agoTorture test for bug 7084 - Create time on directories not stored properly in an...
Jeremy Allison [Tue, 2 Feb 2010 02:49:50 +0000 (18:49 -0800)]
Torture test for bug 7084 - Create time on directories not stored properly in an EA in new create time code.

Ensure new files in a directory don't reset the create time.

Jeremy.

10 years agoArg. Got the sense of the test reversed to fix bug #7080 - Quota only shown when...
Jeremy Allison [Mon, 1 Feb 2010 23:57:16 +0000 (15:57 -0800)]
Arg. Got the sense of the test reversed to fix bug #7080 - Quota only shown when logged as root.. Doh !

Jeremy.

10 years agoFix bug #7080 - Quota only shown when logged as root.
Jeremy Allison [Mon, 1 Feb 2010 23:55:55 +0000 (15:55 -0800)]
Fix bug #7080 - Quota only shown when logged as root.

conn->server_info->utok.uid == 0

isn't the correct check to see if we're root anymore. As rpc_samr_nt.c does,
the correct check is :

geteuid() == sec_initial_uid()

Jeremy.

10 years agos4:NBT-WINS: test large scopes
Stefan Metzmacher [Mon, 1 Feb 2010 14:32:37 +0000 (15:32 +0100)]
s4:NBT-WINS: test large scopes

metze

10 years agos4:NBT-WINS: pass the expected rcode of the name registration to the test code
Stefan Metzmacher [Mon, 1 Feb 2010 13:55:14 +0000 (14:55 +0100)]
s4:NBT-WINS: pass the expected rcode of the name registration to the test code

metze

10 years agos4:NBT-WINSREPLICATION: test replication with names including scopes
Stefan Metzmacher [Sat, 30 Jan 2010 09:50:33 +0000 (10:50 +0100)]
s4:NBT-WINSREPLICATION: test replication with names including scopes

metze

10 years agos4:NBT-WINSREPLICATION: fix compiler warnings
Stefan Metzmacher [Fri, 29 Jan 2010 15:42:24 +0000 (16:42 +0100)]
s4:NBT-WINSREPLICATION: fix compiler warnings

metze

10 years agos4:NBT-WINSREPLICATION: use an array of nbt_names to loop over different names
Stefan Metzmacher [Fri, 29 Jan 2010 15:33:58 +0000 (16:33 +0100)]
s4:NBT-WINSREPLICATION: use an array of nbt_names to loop over different names

metze

10 years agos4:winsserver: reject name registrations with a scope length > 237
Stefan Metzmacher [Mon, 1 Feb 2010 13:39:13 +0000 (14:39 +0100)]
s4:winsserver: reject name registrations with a scope length > 237

This matches Windows 2008 behavior. Name releases are just ignored.

metze

10 years agos4:wrepl_server: truncate the scope of a netbios name to 237 bytes as Windows 2008...
Stefan Metzmacher [Sun, 31 Jan 2010 17:59:41 +0000 (18:59 +0100)]
s4:wrepl_server: truncate the scope of a netbios name to 237 bytes as Windows 2008 does

metze

10 years agolibcli/nbt: fix ndr_push_nbt_string() string labels with a length of 63 (0x3F) are...
Stefan Metzmacher [Mon, 1 Feb 2010 14:18:15 +0000 (15:18 +0100)]
libcli/nbt: fix ndr_push_nbt_string() string labels with a length of 63 (0x3F) are allowed

metze

10 years agos4/ldif: Handle Schema:prefixMap blobs in W2K3 and W2K8
Kamen Mazdrashki [Wed, 20 Jan 2010 16:10:05 +0000 (18:10 +0200)]
s4/ldif: Handle Schema:prefixMap blobs in W2K3 and W2K8

Signed-off-by: Stefan Metzmacher <metze@samba.org>
10 years agos4/ldif: Better control on ldif_write_NDR() errors processing
Kamen Mazdrashki [Wed, 20 Jan 2010 15:58:39 +0000 (17:58 +0200)]
s4/ldif: Better control on ldif_write_NDR() errors processing

Current implementation mask NDR_ errors implicitly.
Thus the caller has no opportunity handle such an error.

Signed-off-by: Stefan Metzmacher <metze@samba.org>
10 years agos4/idl: drsblobs IDL regeneration
Kamen Mazdrashki [Tue, 19 Jan 2010 14:54:09 +0000 (16:54 +0200)]
s4/idl: drsblobs IDL regeneration

Signed-off-by: Stefan Metzmacher <metze@samba.org>
10 years agos4/drsblobs: Custom ndr_print_ implementation for drsuapi_MSPrefixMap_Entry
Kamen Mazdrashki [Tue, 19 Jan 2010 14:53:32 +0000 (16:53 +0200)]
s4/drsblobs: Custom ndr_print_ implementation for drsuapi_MSPrefixMap_Entry

Signed-off-by: Stefan Metzmacher <metze@samba.org>
10 years agos4/idl: PrefixMap description for W2K3 and W2K8 Schema:prefixMap attribute
Kamen Mazdrashki [Tue, 19 Jan 2010 14:52:10 +0000 (16:52 +0200)]
s4/idl: PrefixMap description for W2K3 and W2K8 Schema:prefixMap attribute

Signed-off-by: Stefan Metzmacher <metze@samba.org>
10 years agotdb: fix an early release of the global lock that can cause data corruption
Volker Lendecke [Fri, 29 Jan 2010 17:21:09 +0000 (18:21 +0100)]
tdb: fix an early release of the global lock that can cause data corruption

There was a bug in tdb where the

                tdb_brlock(tdb, GLOBAL_LOCK, F_UNLCK, F_SETLKW, 0, 1);

(ending the transaction-"mutex") was done before the

                        /* remove the recovery marker */

This means that when a transaction is committed there is a window where another
opener of the file sees the transaction marker while the transaction committer
is still fully functional and working on it. This led to transaction being
rolled back by that second opener of the file while transaction_commit() gave
no error to the caller.

This patch moves the F_UNLCK to after the recovery marker was removed, closing
this window.

10 years agos4-smbtorture: check for RouterReplyPrinterEx packets inside backchannel in RPC-SPOOL...
Günther Deschner [Sun, 31 Jan 2010 19:39:36 +0000 (20:39 +0100)]
s4-smbtorture: check for RouterReplyPrinterEx packets inside backchannel in RPC-SPOOLSS-NOTIFY.

Guenther

10 years agos4-smbtorture: also test RouterRefreshPrinterChangeNotify call in RPC-SPOOLSS-NOTIFY.
Günther Deschner [Sun, 31 Jan 2010 19:31:00 +0000 (20:31 +0100)]
s4-smbtorture: also test RouterRefreshPrinterChangeNotify call in RPC-SPOOLSS-NOTIFY.

Guenther

10 years agos4-smbtorture: rework spoolss_NotifyOption handling in RPC-SPOOLSS-NOTIFY.
Günther Deschner [Sun, 31 Jan 2010 19:30:09 +0000 (20:30 +0100)]
s4-smbtorture: rework spoolss_NotifyOption handling in RPC-SPOOLSS-NOTIFY.

Guenther

10 years agotestprogs: also print printer info during GetPrinter spoolss test.
Günther Deschner [Sun, 31 Jan 2010 19:23:35 +0000 (20:23 +0100)]
testprogs: also print printer info during GetPrinter spoolss test.

Guenther

10 years agos4:kdc streamline context initialization
Simo Sorce [Sun, 31 Jan 2010 18:28:04 +0000 (13:28 -0500)]
s4:kdc streamline context initialization

Allow other plugins to init the context without having it try to grab sockets
or set samba specific logging.

10 years agos4:kdc Streamline client access verification call
Simo Sorce [Sun, 31 Jan 2010 17:49:07 +0000 (12:49 -0500)]
s4:kdc Streamline client access verification call

Move the core to pac-glue so that other plugins can use it.

10 years agos4:kdc Fix netbios name retrieval
Simo Sorce [Sun, 31 Jan 2010 17:53:50 +0000 (12:53 -0500)]
s4:kdc Fix netbios name retrieval

The code was looping but always checking only the first address.

10 years agos4:ldb quiet down rootdse control registration
Simo Sorce [Sun, 31 Jan 2010 18:24:18 +0000 (13:24 -0500)]
s4:ldb quiet down rootdse control registration

10 years agos3: Fix some DEBUG messages
Volker Lendecke [Sun, 31 Jan 2010 14:38:16 +0000 (15:38 +0100)]
s3: Fix some DEBUG messages

10 years agoFix bug #7079 - cliconnect gets realm wrong with trusted domains.
Jeremy Allison [Sun, 31 Jan 2010 03:24:28 +0000 (19:24 -0800)]
Fix bug #7079 - cliconnect gets realm wrong with trusted domains.

Passing NULL as dest_realm for cli_session_setup_spnego() was
always using our own realm (as for a NetBIOS name). Change this
to look for the mapped realm using krb5_get_host_realm() if
the destination machine name is a DNS name (contains a '.').
Could get fancier with DNS name detection (length, etc.) but
this will do for now.

Jeremy.

10 years agos3/smbd: Fix string buffer overflow causing heap corruption
Steven Danneman [Sat, 30 Jan 2010 21:29:23 +0000 (13:29 -0800)]
s3/smbd: Fix string buffer overflow causing heap corruption

The destname malloc size was not taking into account the 1 extra byte
needed if a string without a leading '/' was passed in and that slash
was added.

This would cause the '\0' byte to be written past the end of the
malloced destname string and corrupt whatever heap memory was there.

This problem would be hit if a share name was given in smb.conf without
a leading '/' and if it was the exact size of the allocated STRDUP memory
which in some implementations of malloc is a power of 2.

10 years agos4:ldb Fix check made conditional by mistake
Simo Sorce [Sat, 30 Jan 2010 07:57:33 +0000 (02:57 -0500)]
s4:ldb Fix check made conditional by mistake

10 years agos4:ldb add support for permissive modify control
Simo Sorce [Sat, 30 Jan 2010 05:33:22 +0000 (00:33 -0500)]
s4:ldb add support for permissive modify control

10 years agoFix a really interesting problem found by Volker's conversion of sessionsetup SPNEGO...
Jeremy Allison [Sat, 30 Jan 2010 00:41:53 +0000 (16:41 -0800)]
Fix a really interesting problem found by Volker's conversion of sessionsetup SPNEGO to asynchronous code.

Normally clistr_push_fn() can depend upon cli->outbuf being
initialized by negprot and sessionsetup packets, and cli->outbuf[smb_flgs2] being
correctly set with FLAGS2_UNICODE_STRINGS when cli_setup_packet() is called. When
all the sessionsetups are async, then cli_setup_packet() is never called, the async
code uses cli_setup_packet_buf() - which initializes the allocated async buffer,
not the cli->outbuf one. So the first time clistr_push_fn() is called is from
libsmb/clidfs.c:cli_dfs_get_referral(), just after the connection and tconX.
In this case cli->outbuf has never been initialized, and cli->outbuf[smb_flgs2] = 0
so the DFS query pushes ASCII on the wire, which is not what we want :-).

Remove the dependency on cli->outbuf[smb_flgs2] in clistr_push_fn(), and
fake up a SVAL(cli->outbuf, smb_flg2) value using cli_ucs2(cli) function
instead, which has been initialized. We only care about the FLAGS2_UNICODE_STRINGS
bit anyway.

I don't think this is an issue for 3.5.0 as the sessionsetup is still
synchronous there, but Volker PLEASE CHECK !

Jeremy.

10 years agoFix const warning.
Jeremy Allison [Fri, 29 Jan 2010 22:36:36 +0000 (14:36 -0800)]
Fix const warning.

Jeremy

10 years agoRevert "s4:include/includes.h - Need to include "system/network.h""
Matthias Dieter Wallnöfer [Fri, 29 Jan 2010 20:36:23 +0000 (21:36 +0100)]
Revert "s4:include/includes.h - Need to include "system/network.h""

This reverts commit 97fd03a15a694450e80310fc776a58c6fde58a52.

This obviously broke the build. Revert it for now.

10 years agos4:include/includes.h - Need to include "system/network.h"
Matthias Dieter Wallnöfer [Fri, 29 Jan 2010 19:13:38 +0000 (20:13 +0100)]
s4:include/includes.h - Need to include "system/network.h"

Otherwise I don't get the definition of "struct in_addr" for "lib/util/util.h" on CentOS 4.

10 years agos4:libcli/util/tstream.c - Need to include "system/network.h"
Matthias Dieter Wallnöfer [Fri, 29 Jan 2010 19:01:34 +0000 (20:01 +0100)]
s4:libcli/util/tstream.c - Need to include "system/network.h"

Otherwise I don't get "struct iovec" through "<sys/uio.h>" on CentOS 4.

10 years agolibcli/nbt: fix off-by-one bug in ndr_pull_wrepl_nbt_name()
Stefan Metzmacher [Thu, 28 Jan 2010 17:58:23 +0000 (18:58 +0100)]
libcli/nbt: fix off-by-one bug in ndr_pull_wrepl_nbt_name()

The scope starts at byte 17 with index 16.

metze

10 years agolibcli/nbt: fix ndr_pull/push_wrepl_nbt_name()
Stefan Metzmacher [Thu, 28 Jan 2010 17:52:46 +0000 (18:52 +0100)]
libcli/nbt: fix ndr_pull/push_wrepl_nbt_name()

[MS-WINSRA] — v20091104 was wrong
regarding section "2.2.10.1 Name Record"

If the name buffer is already 4 byte aligned
Windows (at least 2003 SP1 and 2008) add 4 extra
bytes. This can happen when the name has a scope.

metze

10 years agos3: link thread objects in libsmbclient only and adjust linker flags
Björn Jacke [Fri, 29 Jan 2010 14:23:29 +0000 (15:23 +0100)]
s3: link thread objects in libsmbclient only and adjust linker flags

10 years agoAIX doesn't have MSG_DONTWAIT
olivier [Fri, 29 Jan 2010 11:04:35 +0000 (12:04 +0100)]
AIX doesn't have MSG_DONTWAIT

10 years agoFixed a bug caused by a typo. Infrastructure role didn't work.
Nadezhda Ivanova [Fri, 29 Jan 2010 13:42:46 +0000 (15:42 +0200)]
Fixed a bug caused by a typo. Infrastructure role didn't work.

10 years agos4/ldap: Test to expoit ldb_ildap bug in case of nested search requests
Kamen Mazdrashki [Mon, 25 Jan 2010 01:17:29 +0000 (03:17 +0200)]
s4/ldap: Test to expoit ldb_ildap bug in case of nested search requests

Signed-off-by: Stefan Metzmacher <metze@samba.org>
10 years agos4/ldap: Fix nested searches SEGFAULT bug
Kamen Mazdrashki [Mon, 25 Jan 2010 10:22:39 +0000 (12:22 +0200)]
s4/ldap: Fix nested searches SEGFAULT bug

Signed-off-by: Stefan Metzmacher <metze@samba.org>
10 years agos4: Ignore few more auto-generated files
Kamen Mazdrashki [Fri, 22 Jan 2010 13:23:17 +0000 (15:23 +0200)]
s4: Ignore few more auto-generated files

10 years agolibrpc: rerun 'make idl'
Stefan Metzmacher [Fri, 29 Jan 2010 12:07:39 +0000 (13:07 +0100)]
librpc: rerun 'make idl'

metze

10 years agosecurity.idl: add wellknown TrustedInstaller SID
Stefan Metzmacher [Fri, 29 Jan 2010 12:07:00 +0000 (13:07 +0100)]
security.idl: add wellknown TrustedInstaller SID

metze

10 years agos3: by default don't use pthread pool support
Björn Jacke [Fri, 29 Jan 2010 11:42:25 +0000 (12:42 +0100)]
s3: by default don't use pthread pool support

10 years agolib/util: remove data_blob_talloc_reference()
Stefan Metzmacher [Tue, 5 Jan 2010 19:14:04 +0000 (20:14 +0100)]
lib/util: remove data_blob_talloc_reference()

We want to avoid the usage of talloc_reference() in Samba.

metze

10 years agos4:auth_sam: avoid usage of data_blob_talloc_reference() and copy the session keys
Stefan Metzmacher [Tue, 5 Jan 2010 19:11:29 +0000 (20:11 +0100)]
s4:auth_sam: avoid usage of data_blob_talloc_reference() and copy the session keys

metze

10 years agos4:libcli: remove unneeded talloc_reference() usage
Stefan Metzmacher [Wed, 27 Jan 2010 10:01:25 +0000 (11:01 +0100)]
s4:libcli: remove unneeded talloc_reference() usage

metze

10 years agos4:kdc remove dead code and comments
Simo Sorce [Fri, 29 Jan 2010 00:32:38 +0000 (19:32 -0500)]
s4:kdc remove dead code and comments

10 years agos4:kdc Fill in more data fields
Simo Sorce [Thu, 28 Jan 2010 13:58:44 +0000 (08:58 -0500)]
s4:kdc Fill in more data fields

10 years agos4:kdc move db functions in their own file
Simo Sorce [Thu, 28 Jan 2010 06:27:11 +0000 (01:27 -0500)]
s4:kdc move db functions in their own file

Keep all heimdal related plugin code within hdb_samba4.c
Move interfaces needed by multiple plugins in db-glue.c

Move sequence context in main db context so that we do
not depend on db->hdb_dbc in the common code.

Remove unnecessary paremeters from function prototypes

10 years agos4:kdc Use a clearer name for the samba kdc entry
Simo Sorce [Thu, 28 Jan 2010 05:19:59 +0000 (00:19 -0500)]
s4:kdc Use a clearer name for the samba kdc entry

Renames hdb_samba4_private to samba_kdc_entry
Streamlines members of the entry and the kdc db contextto avoid
unnecessary duplication.

10 years agos4:kdc Use better db context structure
Simo Sorce [Thu, 28 Jan 2010 05:08:36 +0000 (00:08 -0500)]
s4:kdc Use better db context structure

This allows to use a common structure not tied to hdb_samba4
Also allows to avoid many casts within hdb_samba4 functions

This is the first step to abstract samba kdc databse functions
so they can be used by the MIT forthcoming plugin.

10 years agoFix bug #7069 - smbget does not return an error status after some errors
Jeremy Allison [Thu, 28 Jan 2010 18:38:24 +0000 (10:38 -0800)]
Fix bug #7069 - smbget does not return an error status after some errors

A combination patch from Johannes Poehlmann <johannes@lst.de> and
Jeremy. Fix the return codes from smb_download_file() and smb_download_dir().

Jeremy.

10 years agos3/winbind_ccache: Fix typo in debug message.
Karolin Seeger [Thu, 28 Jan 2010 14:10:54 +0000 (15:10 +0100)]
s3/winbind_ccache: Fix typo in debug message.

Karolin

10 years agotsocket: Fix the description of tstream_writev_queue_send/recv
Kai Blin [Thu, 28 Jan 2010 10:16:24 +0000 (11:16 +0100)]
tsocket: Fix the description of tstream_writev_queue_send/recv

10 years agotsocket: Fix description for tstream_readv_pdu_queue_send/recv
Kai Blin [Thu, 28 Jan 2010 10:11:33 +0000 (11:11 +0100)]
tsocket: Fix description for tstream_readv_pdu_queue_send/recv

10 years agos4-ldbtest: fixed python import
Andrew Tridgell [Thu, 28 Jan 2010 07:02:39 +0000 (18:02 +1100)]
s4-ldbtest: fixed python import

10 years agos4-drs: implementation of some delete test cases
Eduardo Lima [Mon, 18 Jan 2010 17:03:48 +0000 (15:03 -0200)]
s4-drs: implementation of some delete test cases

Signed-off-by: Andrew Tridgell <tridge@samba.org>
10 years agocleanup: remove trailing spaces and tabs
Simo Sorce [Thu, 28 Jan 2010 07:05:05 +0000 (02:05 -0500)]
cleanup: remove trailing spaces and tabs

10 years agos4-drs: Reads uSNUrgent and sets Urgent Replication Bit for DS_ReplicaSync when necessary
Fernando J V da Silva [Thu, 21 Jan 2010 11:20:44 +0000 (09:20 -0200)]
s4-drs: Reads uSNUrgent and sets Urgent Replication Bit for DS_ReplicaSync when necessary

If an urgent replication is necessary, so the uSNUrgent stored is equal to the
uSNHighest stored, then when sending the DS_ReplicaSync message it sets the
DRSUAPI_DRS_SYNC_URGENT bit on DRS_OPTIONS.

Signed-off-by: Fernando J V da Silva <fernandojvsilva@yahoo.com.br>
Signed-off-by: Andrew Tridgell <tridge@samba.org>
10 years agoSecond part of fix for bug #7072 - Accounts can't be unlocked from ldap.
Jeremy Allison [Thu, 28 Jan 2010 00:52:40 +0000 (16:52 -0800)]
Second part of fix for bug #7072 - Accounts can't be unlocked from ldap.

Missed read of entry_timestamp (was entry->entry_timestamp).

Jeremy.

10 years agoFix bug #7072 - Accounts can't be unlocked from ldap.
Jeremy Allison [Thu, 28 Jan 2010 00:42:06 +0000 (16:42 -0800)]
Fix bug #7072 - Accounts can't be unlocked from ldap.

Fix suggested by Andy Hanton <andyhanton@gmail.com>. The LOGIN_CACHE
struct contains two time_t entries, but was being written to and
read from via tdb_pack/tdb_unpack functions using explicit 32-bit int specifiers.
This would break on machines with a 64-bit time_t. Use correct int
sizes for tdb_pack/tdb_unpack.

We have to fix this properly before 2037 :-).

Jeremy.

10 years agotestsuite/libsmbclient use source3 in the path of the C and LFLAGS
Lars Müller [Wed, 27 Jan 2010 23:40:39 +0000 (00:40 +0100)]
testsuite/libsmbclient use source3 in the path of the C and LFLAGS

10 years agoLink testsuite/libsmbclient against required libtdb and libwbclient
Lars Müller [Wed, 27 Jan 2010 23:38:04 +0000 (00:38 +0100)]
Link testsuite/libsmbclient against required libtdb and libwbclient

10 years agos3: syntax fix
Björn Jacke [Wed, 27 Jan 2010 22:43:23 +0000 (23:43 +0100)]
s3: syntax fix

10 years agos3: Install and uninstall the static version of libwbclient
Lars Müller [Wed, 27 Jan 2010 21:40:19 +0000 (22:40 +0100)]
s3: Install and uninstall the static version of libwbclient

This requires to call configure with --enable-static which isn't the case
by default.

10 years agos4:windc move windc plugin in its own file
Simo Sorce [Tue, 26 Jan 2010 16:56:16 +0000 (11:56 -0500)]
s4:windc move windc plugin in its own file

Keep all heimdal related plugin code within wdc-samba4.c
Leave only interfaces common to multiple plugins in pac-glue.c

10 years agos4:PAC make common functions public
Simo Sorce [Tue, 26 Jan 2010 16:43:54 +0000 (11:43 -0500)]
s4:PAC make common functions public

10 years agos4:PAC Streamline pac-glue step 2
Simo Sorce [Tue, 26 Jan 2010 16:09:32 +0000 (11:09 -0500)]
s4:PAC Streamline pac-glue step 2

Split functions so that no assumption is made about which plugin
is using them

10 years agos4:PAC Streamline pac-glue
Simo Sorce [Tue, 26 Jan 2010 16:06:00 +0000 (11:06 -0500)]
s4:PAC Streamline pac-glue

First step, preparing to share the code between multiple plugins.

10 years agos3: get pthread detection also on HP-UX right
Björn Jacke [Wed, 27 Jan 2010 17:54:55 +0000 (18:54 +0100)]
s3: get pthread detection also on HP-UX right

10 years agoImplemented net fsmo command for transferring fsmo roles
Nadezhda Ivanova [Wed, 27 Jan 2010 15:57:37 +0000 (17:57 +0200)]
Implemented net fsmo command for transferring fsmo roles

The command allows the user to transfer a fsmo role to the server to which
the connection is established. Roles can be transferred or seized. By default a
transfer is attempted even if seize option is chosen, as it is dangerous to
seize a role if the current owner is still running.
example use:
net fsmo show --host=hostnameoraddress --username=username --password=password
net fsmo transfer --role=role --host=hostnameoraddress --username=username --password=password
net fsmo seize --role=role --host=hostnameoraddress --username=username --password=password [--force]

Tested against Win2008. Does not work for samba 4 yet as we are missing the GetNCChanges extensions.

10 years agos4-smbtorture: pick correct last packet while checking backchannel replies in RPC...
Günther Deschner [Wed, 27 Jan 2010 14:04:00 +0000 (15:04 +0100)]
s4-smbtorture: pick correct last packet while checking backchannel replies in RPC-SPOOLSS-NOTIFY.

Guenther

10 years agos3-selftest: try to get RPC-SPOOLSS-NOTIFY running during make test on the buildfarm.
Günther Deschner [Wed, 27 Jan 2010 12:39:24 +0000 (13:39 +0100)]
s3-selftest: try to get RPC-SPOOLSS-NOTIFY running during make test on the buildfarm.

Guenther

10 years agos4:torture: refactor querying of domain info out into test_QueryDomainInfo2_level()
Michael Adam [Thu, 21 Jan 2010 23:47:42 +0000 (00:47 +0100)]
s4:torture: refactor querying of domain info out into test_QueryDomainInfo2_level()

Used in several places.

(Note: The _level suffix in the function name is just because
test_QueryDomainInfo2() already exists as an overall test for all levels.)

Michael

Signed-off-by: Günther Deschner <gd@samba.org>