11 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.

11 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.

11 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.

11 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

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

11 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.


11 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.

11 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

11 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

11 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 !


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


11 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.

11 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.

11 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.

11 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.


11 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 " 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.


11 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

11 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

11 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.

11 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 <>
11 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 <>
11 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

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


11 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


11 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

11 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.


11 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


11 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


11 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

11 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

11 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

11 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.

11 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.

11 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 <> and
Jeremy. Fix the return codes from smb_download_file() and smb_download_dir().


11 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.


11 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

11 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

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

11 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 <>
11 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

11 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

Signed-off-by: Fernando J V da Silva <>
Signed-off-by: Andrew Tridgell <>
11 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).


11 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 <>. 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 :-).


11 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

11 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

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

11 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.

11 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

11 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

11 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

11 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.

11 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

11 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.

11 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.


11 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.


11 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.)


Signed-off-by: Günther Deschner <>
11 years agos4:torture: create new test_SetDomainInfo_ntstatus()
Michael Adam [Thu, 21 Jan 2010 23:46:19 +0000 (00:46 +0100)]
s4:torture: create new test_SetDomainInfo_ntstatus()

for checking for SetDomainInfo giving a desired return code.


Signed-off-by: Günther Deschner <>
11 years agos4:torture: refactor setting of domain inf out into test_SetDomainInfo()
Michael Adam [Thu, 21 Jan 2010 23:21:29 +0000 (00:21 +0100)]
s4:torture: refactor setting of domain inf out into test_SetDomainInfo()

and use it in several places.


Signed-off-by: Günther Deschner <>
11 years agos4:torture: refactor setting account flags out into test_SetUserInfo_acct_flags()
Michael Adam [Thu, 21 Jan 2010 22:55:51 +0000 (23:55 +0100)]
s4:torture: refactor setting account flags out into test_SetUserInfo_acct_flags()

and use this in four places (enabling/disabling accounts).


Signed-off-by: Günther Deschner <>
11 years agoFix bug #7067 - Linux asynchronous IO (aio) can cause smbd to fail to respond to...
Jeremy Allison [Wed, 27 Jan 2010 00:51:57 +0000 (16:51 -0800)]
Fix bug #7067 - Linux asynchronous IO (aio) can cause smbd to fail to respond to a read or write.

Only works on Linux kernels 2.6.26 and above. Grants CAP_KILL capability
to allow Linux threads under different euids to send signals to each other.


11 years agoAdd dependency of bin/smbfilter to libwbclient.
Lars Müller [Tue, 26 Jan 2010 21:54:15 +0000 (22:54 +0100)]
Add dependency of bin/smbfilter to libwbclient.

11 years agos4-libcli: Fixed a talloc_reference error.
Andreas Schneider [Tue, 26 Jan 2010 13:57:15 +0000 (14:57 +0100)]
s4-libcli: Fixed a talloc_reference error.

Signed-off-by: Andreas Schneider <>
Signed-off-by: Matthias Dieter Wallnöfer <>
11 years agos4:winsrepl.idl: add random interface uuid
Stefan Metzmacher [Tue, 26 Jan 2010 14:22:09 +0000 (15:22 +0100)]
s4:winsrepl.idl: add random interface uuid

This is needed to include the wrepl interface into


11 years agos4:smbtorture: add BASE-BENCH-HOLDOPEN
Stefan Metzmacher [Tue, 26 Jan 2010 14:20:57 +0000 (15:20 +0100)]
s4:smbtorture: add BASE-BENCH-HOLDOPEN

This is useful for manual performance testing with a large
number of share mode entries.


11 years agomount.cifs: don't allow it to be run as setuid root program
Jeff Layton [Tue, 26 Jan 2010 13:15:41 +0000 (08:15 -0500)]
mount.cifs: don't allow it to be run as setuid root program

mount.cifs has been the subject of several "security" fire drills due to
distributions installing it as a setuid root program. This program has
not been properly audited for security and the Samba team highly
recommends that it not be installed as a setuid root program at this

To make that abundantly clear, this patch forcibly disables the ability
for mount.cifs to run as a setuid root program. People are welcome to
trivially patch this out, but they do so at their own peril.

A security audit and redesign of this program is in progress and we hope
that we'll be able to remove this in the near future.

Signed-off-by: Jeff Layton <>
11 years agomount.cifs: check for invalid characters in device name and mountpoint
Jeff Layton [Tue, 26 Jan 2010 13:15:41 +0000 (08:15 -0500)]
mount.cifs: check for invalid characters in device name and mountpoint

It's apparently possible to corrupt the mtab if you pass embedded
newlines to addmntent. Apparently tabs are also a problem with certain
earlier glibc versions. Backslashes are also a minor issue apparently,
but we can't reasonably filter those.

Make sure that neither the devname or mountpoint contain any problematic
characters before allowing the mount to proceed.

Signed-off-by: Jeff Layton <>
11 years agomount.cifs: take extra care that mountpoint isn't changed during mount
Jeff Layton [Tue, 26 Jan 2010 13:15:41 +0000 (08:15 -0500)]
mount.cifs: take extra care that mountpoint isn't changed during mount

It's possible to trick mount.cifs into mounting onto the wrong directory
by replacing the mountpoint with a symlink to a directory. mount.cifs
attempts to check the validity of the mountpoint, but there's still a
possible race between those checks and the mount(2) syscall.

To guard against this, chdir to the mountpoint very early, and only deal
with it as "." from then on out.

Signed-off-by: Jeff Layton <>
11 years agos4-smbtorture: also test smbc_getOptionUseCCache
Günther Deschner [Tue, 26 Jan 2010 11:10:17 +0000 (12:10 +0100)]
s4-smbtorture: also test smbc_getOptionUseCCache

11 years agos3: Enable use of ccache by default for libsmbclient
Volker Lendecke [Tue, 26 Jan 2010 09:51:32 +0000 (10:51 +0100)]
s3: Enable use of ccache by default for libsmbclient

Disable this by setting the environment variable LIBSMBCLIENT_NO_CCACHE, which
has the advantage over an smb.conf option to be easily settable per

11 years agoCorrect fix for unused variable return from ndr_decode. Use it :-).
Jeremy Allison [Tue, 26 Jan 2010 01:38:55 +0000 (17:38 -0800)]
Correct fix for unused variable return from ndr_decode. Use it :-).

11 years agoRevert "s3: remove unused Variable"
Jeremy Allison [Tue, 26 Jan 2010 01:06:54 +0000 (17:06 -0800)]
Revert "s3: remove unused Variable"

This reverts commit 9536d94d5478b63fc05047964b40d8786a7246c4.

Bjorn, your change removed the ndr_decoding of the dos attribute.
Not a good idea :-).


11 years agoRevert "libreplace: fix unused varibale warning on IRIX"
Björn Jacke [Tue, 26 Jan 2010 00:16:37 +0000 (01:16 +0100)]
Revert "libreplace: fix unused varibale warning on IRIX"

this one was broken

11 years agos3: fix detection and flags for using pthread
Björn Jacke [Mon, 25 Jan 2010 23:17:10 +0000 (00:17 +0100)]
s3: fix detection and flags for using pthread

I hope this fixes the build on Tru64, IRIX and maybe bug #6983

11 years agos3: remove unused variable
Björn Jacke [Mon, 25 Jan 2010 22:24:35 +0000 (23:24 +0100)]
s3: remove unused variable

11 years agos3:async_smb: remove unused variable
Björn Jacke [Mon, 25 Jan 2010 22:23:49 +0000 (23:23 +0100)]
s3:async_smb: remove unused variable

11 years agolibreplace: fix unused varibale warning on IRIX
Björn Jacke [Mon, 25 Jan 2010 22:07:24 +0000 (23:07 +0100)]
libreplace: fix unused varibale warning on IRIX

11 years agos3: remove unused Variable
Björn Jacke [Mon, 25 Jan 2010 22:00:14 +0000 (23:00 +0100)]
s3: remove unused Variable

Jeremy, please check!

11 years agos3:netapi: remove unused variable
Björn Jacke [Mon, 25 Jan 2010 21:57:36 +0000 (22:57 +0100)]
s3:netapi: remove unused variable

11 years agolib/popt: Fix typo in README.
Karolin Seeger [Mon, 25 Jan 2010 18:54:24 +0000 (19:54 +0100)]
lib/popt: Fix typo in README.


11 years agos3/docs: Fix typo.
Karolin Seeger [Mon, 25 Jan 2010 18:53:42 +0000 (19:53 +0100)]
s3/docs: Fix typo.


11 years agos3/registry: Fix typo in comment.
Karolin Seeger [Mon, 25 Jan 2010 18:50:21 +0000 (19:50 +0100)]
s3/registry: Fix typo in comment.


11 years agoRevert "libcli/security: Remove a call to strncasecmp"
Volker Lendecke [Mon, 25 Jan 2010 15:44:38 +0000 (16:44 +0100)]
Revert "libcli/security: Remove a call to strncasecmp"

This reverts commit 7c687665eaf16b0c6f83c130f6d9e5459e0b2a32.

11 years agoRevert "libcli/security: Convert some strtol calls to strtoul"
Volker Lendecke [Mon, 25 Jan 2010 15:44:27 +0000 (16:44 +0100)]
Revert "libcli/security: Convert some strtol calls to strtoul"

This reverts commit 7fe66e06c4df575c410d4d70ff38f120c2f4363b.

11 years agoRevert "libcli/security: Fix a valgrind error in dom_sid_parse"
Volker Lendecke [Mon, 25 Jan 2010 15:42:49 +0000 (16:42 +0100)]
Revert "libcli/security: Fix a valgrind error in dom_sid_parse"

This reverts commit f1c889a4e61d6d751cbabd8014b4345b8051b97c.

11 years agos4-python: Fix formatting.
Jelmer Vernooij [Mon, 25 Jan 2010 14:17:56 +0000 (15:17 +0100)]
s4-python: Fix formatting.

11 years agoupgrade_from_s3: Remove unused imports.
Jelmer Vernooij [Thu, 21 Jan 2010 23:05:18 +0000 (12:05 +1300)]
upgrade_from_s3: Remove unused imports.

11 years agopyxattr: Move to the same directory as the xattr code.
Jelmer Vernooij [Thu, 21 Jan 2010 23:02:51 +0000 (12:02 +1300)]
pyxattr: Move to the same directory as the xattr code.

11 years agos4 includes: Include system/locale.h to get access to <ctype.h>
Kai Blin [Mon, 25 Jan 2010 11:51:35 +0000 (12:51 +0100)]
s4 includes: Include system/locale.h to get access to <ctype.h>

11 years agoRevert "s3: Make string_to_sid a wrapper around dom_sid_parse"
Volker Lendecke [Mon, 25 Jan 2010 11:41:48 +0000 (12:41 +0100)]
Revert "s3: Make string_to_sid a wrapper around dom_sid_parse"

This reverts commit dff03b61fd5d923562711b38cc7dbe996dc07283.

11 years agoRevert "libcli/security: Prohibit SID formats like S-1-5-32-+545"
Volker Lendecke [Mon, 25 Jan 2010 11:39:47 +0000 (12:39 +0100)]
Revert "libcli/security: Prohibit SID formats like S-1-5-32-+545"

This reverts commit 1fbeae41655b8305834f2149b1268077eba8633d.

Apparently this breaks the build of Samba4

11 years agos4-smbtorture: test wbcResolveWinsByName/wbcResolveWinsByIP in WINBIND-WBCLIENT tests...
Günther Deschner [Fri, 22 Jan 2010 15:27:39 +0000 (16:27 +0100)]
s4-smbtorture: test wbcResolveWinsByName/wbcResolveWinsByIP in WINBIND-WBCLIENT testsuite.


11 years agos4-smbtorture: add test for wbcPingDc to WINBIND-WBCLIENT testsuite.
Günther Deschner [Fri, 22 Jan 2010 14:06:50 +0000 (15:06 +0100)]
s4-smbtorture: add test for wbcPingDc to WINBIND-WBCLIENT testsuite.

Volker, please check, you know best how this interface is designed :-)


11 years agos4-smbtorture: split spoolss_RemoteFindFirstPrinterChangeNotifyEx test into smaller...
Günther Deschner [Tue, 19 Jan 2010 21:18:24 +0000 (22:18 +0100)]
s4-smbtorture: split spoolss_RemoteFindFirstPrinterChangeNotifyEx test into smaller parts.


11 years agotestprogs: print all driver info levels in spoolss testsuite.
Günther Deschner [Tue, 19 Jan 2010 23:44:16 +0000 (00:44 +0100)]
testprogs: print all driver info levels in spoolss testsuite.


11 years agos3-libsmbclient: Add smbc_setOptionUseCCache()
Volker Lendecke [Sun, 24 Jan 2010 18:24:10 +0000 (19:24 +0100)]
s3-libsmbclient: Add smbc_setOptionUseCCache()

Can we enable this by default? This would be a change in behaviour, but this
feature is just too cool for everyone to catch up in the apps.

The patch would be

11 years agos3: Add --use-ccache to net
Volker Lendecke [Sun, 24 Jan 2010 17:50:48 +0000 (18:50 +0100)]
s3: Add --use-ccache to net

11 years agos3: add libnetapi_set_use_ccache()
Volker Lendecke [Sun, 24 Jan 2010 17:50:31 +0000 (18:50 +0100)]
s3: add libnetapi_set_use_ccache()

11 years agos3: Fix a bug in net's use of popt
Volker Lendecke [Sun, 24 Jan 2010 17:51:58 +0000 (18:51 +0100)]
s3: Fix a bug in net's use of popt

In order to add --use-ccache to net, I added another "bool opt_ccache;" to
struct net_context. popt did not like this, it took a while to figure out why.
Popt has the lines

    /* XXX Check alignment, may fail on funky platforms. */
    if (arg == NULL || (((unsigned long)arg) & (sizeof(*arg)-1)))
        return POPT_ERROR_NULLARG;

The "bool opt_ccache;" was not aligned anymore...

11 years agos3: Enable -C in rpcclient
Volker Lendecke [Sun, 24 Jan 2010 16:35:04 +0000 (17:35 +0100)]
s3: Enable -C in rpcclient

Volker Lendecke [Sun, 24 Jan 2010 16:34:13 +0000 (17:34 +0100)]