samba.git
13 years agos3-waf: cope with both toplevel and source3 build
Andrew Tridgell [Mon, 21 Feb 2011 00:16:43 +0000 (11:16 +1100)]
s3-waf: cope with both toplevel and source3 build

this fixes the remaining subsystem differences for the two builds

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

13 years agos3-waf: find swat files for both toplevel and source3 build
Andrew Tridgell [Mon, 21 Feb 2011 00:14:49 +0000 (11:14 +1100)]
s3-waf: find swat files for both toplevel and source3 build

this finds the right swat files in both cases

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

13 years agos3-waf: rename CHARSET to CHARSET3
Andrew Tridgell [Mon, 21 Feb 2011 00:14:13 +0000 (11:14 +1100)]
s3-waf: rename CHARSET to CHARSET3

and add an alias CHARSET when not using a toplevel build

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

13 years agos3-waf: use bld.env.suffix3 for differentiating toplevel build
Andrew Tridgell [Mon, 21 Feb 2011 00:12:22 +0000 (11:12 +1100)]
s3-waf: use bld.env.suffix3 for differentiating toplevel build

this uses bld.env.suffix3 to mean "3" for a toplevel build, and blank
otherwise. This allows us to change the overlapping binaries to have a
'3' suffix

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

13 years agos3-waf: LIBADS depends on krb5
Andrew Tridgell [Mon, 21 Feb 2011 00:11:44 +0000 (11:11 +1100)]
s3-waf: LIBADS depends on krb5

needed for krb5.h when using an in-tree heimdal

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

13 years agos3-waf: make version and build directory conditional
Andrew Tridgell [Mon, 21 Feb 2011 00:10:35 +0000 (11:10 +1100)]
s3-waf: make version and build directory conditional

we don't need these when doing a toplevel build

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

13 years agos3-waf: cope with location of include.h for toplevel build
Andrew Tridgell [Mon, 21 Feb 2011 00:09:56 +0000 (11:09 +1100)]
s3-waf: cope with location of include.h for toplevel build

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

13 years agos3-waf: added some more krb5 dependencies
Andrew Tridgell [Sun, 20 Feb 2011 23:40:35 +0000 (10:40 +1100)]
s3-waf: added some more krb5 dependencies

this is needed when not using a system krb5, for finding krb5.h

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

13 years agos3-waf: renamed samba-util to samba-util3
Andrew Tridgell [Sun, 20 Feb 2011 23:36:11 +0000 (10:36 +1100)]
s3-waf: renamed samba-util to samba-util3

also added alias samba-util when not using a toplevel build

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

13 years agos3-waf: use common libcli/nbt build rules
Andrew Tridgell [Sun, 20 Feb 2011 23:14:54 +0000 (10:14 +1100)]
s3-waf: use common libcli/nbt build rules

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

13 years agos3-waf: rename 'errors' to 'errors3'
Andrew Tridgell [Sun, 20 Feb 2011 23:14:13 +0000 (10:14 +1100)]
s3-waf: rename 'errors' to 'errors3'

and add an alias 'errors' if not doing a toplevel build

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

13 years agos3-waf: renamed tdb-wrap to tdb-wrap3
Andrew Tridgell [Sun, 20 Feb 2011 23:12:48 +0000 (10:12 +1100)]
s3-waf: renamed tdb-wrap to tdb-wrap3

allow for a common name 'tdb-wrap'

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

13 years agos3-waf: rename POPT_SAMBA to POPT_SAMBA3
Andrew Tridgell [Sun, 20 Feb 2011 23:09:21 +0000 (10:09 +1100)]
s3-waf: rename POPT_SAMBA to POPT_SAMBA3

This renames the POPT_SAMBA subsystem to POPT_SAMBA3. It also adds an
alias 'POPT_SAMBA' if we are not doing a toplevel build.

This allows us to use the common dependency 'POPT_SAMBA' in other waf
rules.

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

13 years agos3-waf: added a krb5 dependency
Andrew Tridgell [Sun, 20 Feb 2011 23:02:05 +0000 (10:02 +1100)]
s3-waf: added a krb5 dependency

LIBMSRPC depends on krb5.h

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

13 years agolibcli/nbt: allow use of the waf build for nbt in source3
Andrew Tridgell [Sun, 20 Feb 2011 23:00:49 +0000 (10:00 +1100)]
libcli/nbt: allow use of the waf build for nbt in source3

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

13 years agos4-ndr: added NDR_WBINT to ndr_tables
Andrew Tridgell [Tue, 15 Feb 2011 05:28:37 +0000 (16:28 +1100)]
s4-ndr: added NDR_WBINT to ndr_tables

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

13 years agos3-rpc_server: Let enpoint mapper listen on port 135.
Andreas Schneider [Mon, 21 Feb 2011 08:58:26 +0000 (09:58 +0100)]
s3-rpc_server: Let enpoint mapper listen on port 135.

*** This is my commit #500 ***

Endpoint Mapper is disabled by default. The next steps are to setup a
tcpip and ncalrpc listener for each service and register it at epm.

Autobuild-User: Andreas Schneider <asn@cryptomilk.org>
Autobuild-Date: Tue Feb 22 00:07:45 CET 2011 on sn-devel-104

13 years agos3-rpc_server: Added event and msg ctx to _rpc_ep_register.
Andreas Schneider [Mon, 21 Feb 2011 15:28:38 +0000 (16:28 +0100)]
s3-rpc_server: Added event and msg ctx to _rpc_ep_register.

13 years agos3-rpc_server: Added port option to _rpc_ep_register.
Andreas Schneider [Mon, 21 Feb 2011 08:08:47 +0000 (09:08 +0100)]
s3-rpc_server: Added port option to _rpc_ep_register.

13 years agos3-rpc_server: Added function to setup tcpip listener!
Andreas Schneider [Mon, 14 Feb 2011 09:29:14 +0000 (10:29 +0100)]
s3-rpc_server: Added function to setup tcpip listener!

13 years agos3-rpc_server: Rename srv_rpc_register.c.
Andreas Schneider [Thu, 17 Feb 2011 11:24:41 +0000 (12:24 +0100)]
s3-rpc_server: Rename srv_rpc_register.c.

13 years agos3-rpc_server: Rename srv_rpc_register.
Andreas Schneider [Thu, 17 Feb 2011 11:21:09 +0000 (12:21 +0100)]
s3-rpc_server: Rename srv_rpc_register.

13 years agos3-rpc_server: Pass tevent_context to dcerpc endpoints.
Andreas Schneider [Thu, 17 Feb 2011 11:18:45 +0000 (12:18 +0100)]
s3-rpc_server: Pass tevent_context to dcerpc endpoints.

13 years agos3-rpc_server: Create a common ncacn listen state.
Andreas Schneider [Tue, 15 Feb 2011 11:57:26 +0000 (12:57 +0100)]
s3-rpc_server: Create a common ncacn listen state.

13 years agos3-rpc_server: Rename named_pipe_read_packet().
Andreas Schneider [Mon, 14 Feb 2011 14:58:14 +0000 (15:58 +0100)]
s3-rpc_server: Rename named_pipe_read_packet().

This is not named pipe specific.

13 years agos3-librpc: Only register NCACN_NP.
Andreas Schneider [Mon, 21 Feb 2011 16:55:52 +0000 (17:55 +0100)]
s3-librpc: Only register NCACN_NP.

This is the only transport we support at the moment.

13 years agos3-lsa: fix some uninitialized variables in our lsa server.
Günther Deschner [Mon, 21 Feb 2011 16:35:45 +0000 (17:35 +0100)]
s3-lsa: fix some uninitialized variables in our lsa server.

Guenther

Autobuild-User: Günther Deschner <gd@samba.org>
Autobuild-Date: Mon Feb 21 18:47:30 CET 2011 on sn-devel-104

13 years agos3-pdb_ipa: remove uninitialized (and unused) status code.
Günther Deschner [Mon, 21 Feb 2011 16:32:48 +0000 (17:32 +0100)]
s3-pdb_ipa: remove uninitialized (and unused) status code.

Guenther

13 years agos4-descriptor: Fixed some compiler warnings.
Nadezhda Ivanova [Mon, 21 Feb 2011 15:17:12 +0000 (17:17 +0200)]
s4-descriptor: Fixed some compiler warnings.

Autobuild-User: Nadezhda Ivanova <nivanova@samba.org>
Autobuild-Date: Mon Feb 21 18:02:21 CET 2011 on sn-devel-104

13 years agos4-descriptor: Removed unnecessary descriptor_change function and unused callbacks.
Nadezhda Ivanova [Mon, 21 Feb 2011 15:14:12 +0000 (17:14 +0200)]
s4-descriptor: Removed unnecessary descriptor_change function and unused callbacks.

13 years agos4-descriptor: Replaced the async descriptor_change with synchronous descriptor_modify.
Nadezhda Ivanova [Mon, 21 Feb 2011 15:08:44 +0000 (17:08 +0200)]
s4-descriptor: Replaced the async descriptor_change with synchronous descriptor_modify.

The purpose is to make descriptor module synchronous. This will simplify reading and debugging, and also will make the
    implementation of SD hierarchy recalculation on modify much easier.

13 years agos4-descriptor: Replaced the synchronous descriptor_change with the synchronous descri...
Nadezhda Ivanova [Mon, 21 Feb 2011 15:04:27 +0000 (17:04 +0200)]
s4-descriptor: Replaced the synchronous descriptor_change with the synchronous descriptor_add.

The purpose is to make descriptor module synchronous. This will simplify reading and debugging, and also will make the
implementation of SD hierarchy recalculation on modify much easier.

13 years agos4-smbtorture: use torture_comment() instead of printf in raw.write test.
Günther Deschner [Mon, 21 Feb 2011 13:03:23 +0000 (14:03 +0100)]
s4-smbtorture: use torture_comment() instead of printf in raw.write test.

Guenther

Autobuild-User: Günther Deschner <gd@samba.org>
Autobuild-Date: Mon Feb 21 15:26:38 CET 2011 on sn-devel-104

13 years agos4-smbtorture: fix some indent in raw.write test.
Günther Deschner [Mon, 21 Feb 2011 13:01:27 +0000 (14:01 +0100)]
s4-smbtorture: fix some indent in raw.write test.

Guenther

13 years agos4-smbtorture: fix trailing whitespace in raw.write test.
Günther Deschner [Mon, 21 Feb 2011 13:00:08 +0000 (14:00 +0100)]
s4-smbtorture: fix trailing whitespace in raw.write test.

Guenther

13 years agos4:scripting/python/modules.[ch] - explicitly say that "py_update_path" takes no...
Matthias Dieter Wallnöfer [Mon, 21 Feb 2011 10:47:17 +0000 (11:47 +0100)]
s4:scripting/python/modules.[ch] - explicitly say that "py_update_path" takes no argument

This quiets some build warnings.

Autobuild-User: Matthias Dieter Wallnöfer <mdw@samba.org>
Autobuild-Date: Mon Feb 21 14:42:00 CET 2011 on sn-devel-104

13 years agos3:tests: move the log directory of the smbclient_s3 test to st/
Michael Adam [Mon, 21 Feb 2011 11:48:48 +0000 (12:48 +0100)]
s3:tests: move the log directory of the smbclient_s3 test to st/

And use a proper mktemp call to create a unique name.
The old location under /tmp/ was bad.

Autobuild-User: Michael Adam <obnox@samba.org>
Autobuild-Date: Mon Feb 21 13:39:06 CET 2011 on sn-devel-104

13 years agos3:tests: clean up old log directories of the registry.roundtrip test
Michael Adam [Mon, 21 Feb 2011 11:48:15 +0000 (12:48 +0100)]
s3:tests: clean up old log directories of the registry.roundtrip test

13 years agos4:smbtorture do not leave output directory around
Christian Ambach [Fri, 18 Feb 2011 14:02:35 +0000 (15:02 +0100)]
s4:smbtorture do not leave output directory around

calling smbtorture with no or invalid arguments left the temporary
output directory around
this patches removes the dead-end exit from usage and makes the
logic go on until the final cleanup state is reached

output directory will still be left around when test times out
or testcases itself force an exit

also make sure that the directory itself is deleted, not just
the objects in it

Signed-off-by: Matthias Dieter Wallnöfer <mdw@samba.org>
Signed-off-by: Andrew Bartlett <abartlet@samba.org>
Autobuild-User: Matthias Dieter Wallnöfer <mdw@samba.org>
Autobuild-Date: Mon Feb 21 11:35:30 CET 2011 on sn-devel-104

13 years agolibcli/security/security_descriptor.c - fix three wrong counter variables
Matthias Dieter Wallnöfer [Wed, 16 Feb 2011 08:22:43 +0000 (09:22 +0100)]
libcli/security/security_descriptor.c - fix three wrong counter variables

These strictly need to be "uint32_t" since "acl*->num_aces" has been
defined by this type.

This counter patchset has been reviewed by Andrew Bartlett.

13 years agolibcli/security/privileges.c - fix wrong counter type
Matthias Dieter Wallnöfer [Wed, 16 Feb 2011 08:12:17 +0000 (09:12 +0100)]
libcli/security/privileges.c - fix wrong counter type

This strictly needs to be from type "uint32_t" since "privset->count"
is defined with this type.

13 years agolibcli/security/privileges.c - fix the counting of privileges
Matthias Dieter Wallnöfer [Wed, 16 Feb 2011 08:20:11 +0000 (09:20 +0100)]
libcli/security/privileges.c - fix the counting of privileges

Since the privileges are always counted with a signed integer, there is no
reason to specify the upper limit with a "uint32_t".

13 years agolibcli/security/sddl.c - fix wrong counter type
Matthias Dieter Wallnöfer [Wed, 16 Feb 2011 08:12:17 +0000 (09:12 +0100)]
libcli/security/sddl.c - fix wrong counter type

This strictly needs to be from type "uint32_t" since "acl->num_aces" is
defined of this type.

13 years agolibcli/security/display_sec.c - fix wrong counter type
Matthias Dieter Wallnöfer [Wed, 16 Feb 2011 08:12:17 +0000 (09:12 +0100)]
libcli/security/display_sec.c - fix wrong counter type

This strictly needs to be of type "uint32_t" due to
"sec_acl->num_aces" which is of type "uint32_t".

13 years agos4: avoid overwritting the dceprc.h file from toplevel librpc
Matthieu Patou [Sun, 20 Feb 2011 10:23:48 +0000 (13:23 +0300)]
s4: avoid overwritting the dceprc.h file from toplevel librpc

Change back to what was the configuration of header_path before
177ddcb084e8f8608bf2012a7c58f7b1e56d2acd so that dcerpc.h is installed
in ${prefix}/include and not in ${prefix}/include/gen_ndr as the
toplevel librpc wants also to put a dcerpc.h file in this directory.

Add some documentation in order to avoid any new regression.

This change should fix problems for openchange team.

Autobuild-User: Matthieu Patou <mat@samba.org>
Autobuild-Date: Mon Feb 21 09:47:05 CET 2011 on sn-devel-104

13 years agopyldb: add tests for getting control results
Matthieu Patou [Wed, 9 Feb 2011 09:50:35 +0000 (12:50 +0300)]
pyldb: add tests for getting control results

13 years agopyldb: Add tests for the ldb_result object
Matthieu Patou [Wed, 9 Feb 2011 08:22:46 +0000 (11:22 +0300)]
pyldb: Add tests for the ldb_result object

13 years agopyldb: create LdbResult, return value from ldb.search is now a LdbResult
Matthieu Patou [Mon, 7 Feb 2011 06:50:36 +0000 (09:50 +0300)]
pyldb: create LdbResult, return value from ldb.search is now a LdbResult

13 years agos4-unittests: replace assertEquals(res, []) by assertEquals(len(res), 0)
Matthieu Patou [Wed, 9 Feb 2011 18:51:34 +0000 (21:51 +0300)]
s4-unittests: replace assertEquals(res, []) by assertEquals(len(res), 0)

13 years agoldb: controls marshalling/unmarshalling improvement
Matthieu Patou [Sun, 20 Feb 2011 12:23:27 +0000 (15:23 +0300)]
ldb: controls marshalling/unmarshalling improvement

Add a function to marshall a control to a string
Refactor the code of ldb_control_parse_strings to allow to extract the
core code into ldb_control_parse_from_string so that this function can
be called for just 1 string

13 years agoFix missing dependency on libreplace.
Jelmer Vernooij [Sun, 20 Feb 2011 23:26:12 +0000 (00:26 +0100)]
Fix missing dependency on libreplace.

Autobuild-User: Jelmer Vernooij <jelmer@samba.org>
Autobuild-Date: Mon Feb 21 01:17:33 CET 2011 on sn-devel-104

13 years agos4/drs-tests:Blackbox test to verify DsReplicaSync handling
Kamen Mazdrashki [Sun, 20 Feb 2011 02:21:32 +0000 (04:21 +0200)]
s4/drs-tests:Blackbox test to verify DsReplicaSync handling

DsReplicaSync is indirectly called using 'samba-tool drs options' command
to enable/disable replication and 'samba-tool drs replicate' command
to trigger inbound replication cycle

Autobuild-User: Kamen Mazdrashki <kamenim@samba.org>
Autobuild-Date: Sun Feb 20 23:03:03 CET 2011 on sn-devel-104

13 years agos4/samba.tests: Raise BlackboxProcessError exception in case check_output method...
Kamen Mazdrashki [Sun, 20 Feb 2011 02:17:25 +0000 (04:17 +0200)]
s4/samba.tests: Raise BlackboxProcessError exception in case check_output method fails

This way the caller gets the chance to receive STDOUT and STDERR for
a failed process.
We may use this info to check if a process has failed properly,
e.g. with expected output

13 years agos4/samba.tests: Extend CalledProcessError class to store STDOUT and STDERR for a...
Kamen Mazdrashki [Sun, 20 Feb 2011 02:15:08 +0000 (04:15 +0200)]
s4/samba.tests: Extend CalledProcessError class to store STDOUT and STDERR for a failed rocess call

13 years agos4/drs-tests: Allow _net_drs_replicate to force replication and return output from...
Kamen Mazdrashki [Fri, 18 Feb 2011 02:27:19 +0000 (04:27 +0200)]
s4/drs-tests: Allow _net_drs_replicate to force replication and return output from command execution

13 years agos4/drs-tests: Split samba-tool command line generation into separate method
Kamen Mazdrashki [Fri, 18 Feb 2011 02:09:45 +0000 (04:09 +0200)]
s4/drs-tests: Split samba-tool command line generation into separate method

so we can use to exec samba-tool passing different commands

13 years agos4/drs-tests: Inherit DrsReplSchemaTestCase from DrsBaseTestCase
Kamen Mazdrashki [Fri, 18 Feb 2011 01:25:20 +0000 (03:25 +0200)]
s4/drs-tests: Inherit DrsReplSchemaTestCase from DrsBaseTestCase

and remove duplicated functionality

13 years agos4/drs-tests: Inherit DrsFsmoTestCase from DrsBaseTestCase
Kamen Mazdrashki [Fri, 18 Feb 2011 01:25:02 +0000 (03:25 +0200)]
s4/drs-tests: Inherit DrsFsmoTestCase from DrsBaseTestCase

and remove duplicated functionality

13 years agos4/drs-tests: Inherit DrsDeleteObjectTestCase from DrsBaseTestCase
Kamen Mazdrashki [Fri, 18 Feb 2011 01:24:08 +0000 (03:24 +0200)]
s4/drs-tests: Inherit DrsDeleteObjectTestCase from DrsBaseTestCase

and remove duplicated functionality

13 years agos4/drs-tests: Add a base class to hold common functionality for all DRS python tests
Kamen Mazdrashki [Fri, 18 Feb 2011 00:54:50 +0000 (02:54 +0200)]
s4/drs-tests: Add a base class to hold common functionality for all DRS python tests

13 years agos3: Fix pdb_ads_enum_aliasmem for empty aliases
Volker Lendecke [Sun, 20 Feb 2011 18:55:01 +0000 (19:55 +0100)]
s3: Fix pdb_ads_enum_aliasmem for empty aliases

Autobuild-User: Volker Lendecke <vlendec@samba.org>
Autobuild-Date: Sun Feb 20 21:40:40 CET 2011 on sn-devel-104

13 years agos3: Support SetGroupInfo in pdb_ads
Volker Lendecke [Sun, 20 Feb 2011 17:39:30 +0000 (18:39 +0100)]
s3: Support SetGroupInfo in pdb_ads

13 years agos3: Fix a debug message
Volker Lendecke [Sun, 20 Feb 2011 17:39:09 +0000 (18:39 +0100)]
s3: Fix a debug message

13 years agos3: Fix pdb_ads_enum_group_members for empty groups
Volker Lendecke [Sun, 20 Feb 2011 16:53:26 +0000 (17:53 +0100)]
s3: Fix pdb_ads_enum_group_members for empty groups

13 years agos3: Fix error returns in pdb_ads_mod_groupmem
Volker Lendecke [Sun, 20 Feb 2011 16:41:22 +0000 (17:41 +0100)]
s3: Fix error returns in pdb_ads_mod_groupmem

13 years agos4-version: Fix version finding for bzr branches.
Jelmer Vernooij [Sun, 20 Feb 2011 15:28:54 +0000 (16:28 +0100)]
s4-version: Fix version finding for bzr branches.

Autobuild-User: Jelmer Vernooij <jelmer@samba.org>
Autobuild-Date: Sun Feb 20 17:35:45 CET 2011 on sn-devel-104

13 years agoldb-samba: Add missing dependency on pyldb-util.
Jelmer Vernooij [Sun, 30 Jan 2011 09:58:47 +0000 (10:58 +0100)]
ldb-samba: Add missing dependency on pyldb-util.

13 years agos3: Improve a debug message, we have more than pdb_tdb.
Volker Lendecke [Sun, 20 Feb 2011 14:20:26 +0000 (15:20 +0100)]
s3: Improve a debug message, we have more than pdb_tdb.

Autobuild-User: Volker Lendecke <vlendec@samba.org>
Autobuild-Date: Sun Feb 20 16:50:05 CET 2011 on sn-devel-104

13 years agos3: Protect tldap_errstr against a NULL ld
Volker Lendecke [Sun, 20 Feb 2011 14:08:41 +0000 (15:08 +0100)]
s3: Protect tldap_errstr against a NULL ld

13 years agos3: Fix return code of pdb_ads_getsamupriv if the user does not exist
Volker Lendecke [Sat, 19 Feb 2011 17:25:25 +0000 (18:25 +0100)]
s3: Fix return code of pdb_ads_getsamupriv if the user does not exist

Autobuild-User: Volker Lendecke <vlendec@samba.org>
Autobuild-Date: Sun Feb 20 11:12:01 CET 2011 on sn-devel-104

13 years agos3: Add ACB_NORMAL to workstations, match RPC-SAMR
Volker Lendecke [Sat, 19 Feb 2011 16:52:50 +0000 (17:52 +0100)]
s3: Add ACB_NORMAL to workstations, match RPC-SAMR

13 years agos3: Make QueryDispInfo and QueryInfo match for guest
Volker Lendecke [Sat, 19 Feb 2011 16:44:48 +0000 (17:44 +0100)]
s3: Make QueryDispInfo and QueryInfo match for guest

13 years agos3: NO_SUCH_USER is a lot more likely than NO_MEMORY
Volker Lendecke [Sat, 19 Feb 2011 22:20:34 +0000 (23:20 +0100)]
s3: NO_SUCH_USER is a lot more likely than NO_MEMORY

13 years agos3: Convert init_system_info to NTSTATUS
Volker Lendecke [Sat, 19 Feb 2011 19:05:07 +0000 (20:05 +0100)]
s3: Convert init_system_info to NTSTATUS

13 years agos3: Slightly simplify Get_Pwnam_alloc
Volker Lendecke [Mon, 14 Feb 2011 20:41:00 +0000 (21:41 +0100)]
s3: Slightly simplify Get_Pwnam_alloc

13 years agos3: Fix some nonempty blank lines
Volker Lendecke [Mon, 14 Feb 2011 20:39:10 +0000 (21:39 +0100)]
s3: Fix some nonempty blank lines

13 years agos3:tests: fix the smbclient_s3 test for multiple users running it.
Michael Adam [Sat, 19 Feb 2011 10:49:43 +0000 (11:49 +0100)]
s3:tests: fix the smbclient_s3 test for multiple users running it.

The test created /tmp/log.smbclient, which lets the test fail if
two users are running the test simultaneously.

Now /tmp/log.test_smbclient_s3.$$ is used.

Autobuild-User: Michael Adam <obnox@samba.org>
Autobuild-Date: Sat Feb 19 13:06:57 CET 2011 on sn-devel-104

13 years agos3:tests: remove unused script/tests/test_functions.sh
Michael Adam [Sat, 19 Feb 2011 01:29:54 +0000 (02:29 +0100)]
s3:tests: remove unused script/tests/test_functions.sh

This is not used any more now with selftest.

13 years agos3:tests: include subunit.sh instead of test_functions.sh in test_posix_s3.sh
Michael Adam [Sat, 19 Feb 2011 00:14:54 +0000 (01:14 +0100)]
s3:tests: include subunit.sh instead of test_functions.sh in test_posix_s3.sh

It would actually not be necessary at all to include a script providing
testit() and so on, since this script snippet is currently only sourced
in tests.sh to plan the included test.

13 years agos3:tests: include subunit.sh instead of test_functions.sh in test_ntlm_auth_s3.sh
Michael Adam [Sat, 19 Feb 2011 00:14:54 +0000 (01:14 +0100)]
s3:tests: include subunit.sh instead of test_functions.sh in test_ntlm_auth_s3.sh

It would actually not be necessary at all to include a script providing
testit() and so on, since this script snippet is currently only sourced
in tests.sh to plan the included test.

13 years agos3:tests: include subunit.sh instead of test_functions.sh in test_smbtorture_s3.sh
Michael Adam [Sat, 19 Feb 2011 00:14:54 +0000 (01:14 +0100)]
s3:tests: include subunit.sh instead of test_functions.sh in test_smbtorture_s3.sh

It would actually not be necessary at all to include a script providing
testit() and so on, since this script snippet is currently only sourced
in tests.sh to plan the included test.

13 years agos3:tests: include subunit.sh instead of test_functions.sh in test_wbinfo_s3.sh
Michael Adam [Sat, 19 Feb 2011 00:14:54 +0000 (01:14 +0100)]
s3:tests: include subunit.sh instead of test_functions.sh in test_wbinfo_s3.sh

It would actually not be necessary at all to include a script providing
testit() and so on, since this script snippet is currently only sourced
in tests.sh to plan the included test.

13 years agos3:tests: use the blackbox subunit output formatter for the testparm_s3 test.
Michael Adam [Fri, 18 Feb 2011 23:32:06 +0000 (00:32 +0100)]
s3:tests: use the blackbox subunit output formatter for the testparm_s3 test.

With the old output, failures would go unnoticed by selftest.

13 years agos3:tests: include subunit.sh instead of test_functions.sh in test_local_s3.sh
Michael Adam [Sat, 19 Feb 2011 00:14:54 +0000 (01:14 +0100)]
s3:tests: include subunit.sh instead of test_functions.sh in test_local_s3.sh

It would actually not be necessary at all to include a script providing
testit() and so on, since this script snippet is currently only sourced
in tests.sh to plan the included test.

13 years agos3:tests: use the blackbox subunit output formatter for the smbclient_s3 test.
Michael Adam [Fri, 18 Feb 2011 23:32:06 +0000 (00:32 +0100)]
s3:tests: use the blackbox subunit output formatter for the smbclient_s3 test.

With the old output, failures would go unnoticed by selftest.

13 years agos3: Pass logonHours through pdb_ads
Volker Lendecke [Wed, 16 Feb 2011 15:33:21 +0000 (16:33 +0100)]
s3: Pass logonHours through pdb_ads

Autobuild-User: Volker Lendecke <vlendec@samba.org>
Autobuild-Date: Sat Feb 19 12:22:08 CET 2011 on sn-devel-104

13 years agos3: Add "len" to pdb_set_hours
Volker Lendecke [Wed, 16 Feb 2011 15:47:23 +0000 (16:47 +0100)]
s3: Add "len" to pdb_set_hours

13 years agos3: Let pdb_ads write accountExpires
Volker Lendecke [Tue, 15 Feb 2011 20:42:35 +0000 (21:42 +0100)]
s3: Let pdb_ads write accountExpires

13 years agos3: Fix pdb_ads_pull_time
Volker Lendecke [Tue, 15 Feb 2011 20:41:58 +0000 (21:41 +0100)]
s3: Fix pdb_ads_pull_time

13 years agovfs_smb_traffic_analyzer shall also transfer the clients IP address.
Holger Hetterich [Sun, 13 Feb 2011 17:20:00 +0000 (18:20 +0100)]
vfs_smb_traffic_analyzer shall also transfer the clients IP address.

Autobuild-User: Jeremy Allison <jra@samba.org>
Autobuild-Date: Sat Feb 19 01:53:18 CET 2011 on sn-devel-104

13 years agoFix alignment issues in SPOOLSS "BUFFER" marshalling.
Jeremy Allison [Fri, 18 Feb 2011 17:01:46 +0000 (09:01 -0800)]
Fix alignment issues in SPOOLSS "BUFFER" marshalling.
Guenther and Metze please check !

Autobuild-User: Jeremy Allison <jra@samba.org>
Autobuild-Date: Fri Feb 18 18:49:55 CET 2011 on sn-devel-104

13 years agos3:vfs:syncops add option to disable metasync per share
Christian Ambach [Fri, 18 Feb 2011 12:03:52 +0000 (13:03 +0100)]
s3:vfs:syncops add option to disable metasync per share

introduce an option to disable the metadata sync
in case the filesystem handles this correctly the sync can be
skipped, but synchronization of the data that was written can still
be configured (in opposition to the disable flag disabling all
sync operations)

Autobuild-User: Volker Lendecke <vlendec@samba.org>
Autobuild-Date: Fri Feb 18 17:31:59 CET 2011 on sn-devel-104

13 years agos3-smbsharemodes: libsmbsharemodes does neither depend on krb5 or ldap.
Günther Deschner [Fri, 18 Feb 2011 14:54:51 +0000 (15:54 +0100)]
s3-smbsharemodes: libsmbsharemodes does neither depend on krb5 or ldap.

Guenther

Autobuild-User: Günther Deschner <gd@samba.org>
Autobuild-Date: Fri Feb 18 16:46:35 CET 2011 on sn-devel-104

13 years agonsswitch: make libwbclient a public library again.
Günther Deschner [Fri, 18 Feb 2011 14:40:59 +0000 (15:40 +0100)]
nsswitch: make libwbclient a public library again.

Guenther

13 years agos3-waf: we need to globally -Ilib/replace
Günther Deschner [Fri, 18 Feb 2011 14:39:28 +0000 (15:39 +0100)]
s3-waf: we need to globally -Ilib/replace

Guenther

13 years agos3-waf: fix popt support.
Günther Deschner [Fri, 18 Feb 2011 14:33:25 +0000 (15:33 +0100)]
s3-waf: fix popt support.

Guenther

13 years agolib/util/charset Add back setlocale(), but only when called from binaries
Andrew Bartlett [Fri, 18 Feb 2011 02:59:05 +0000 (13:59 +1100)]
lib/util/charset Add back setlocale(), but only when called from binaries

When called from a library, we don't want to call this, as we may
overwrite some of our calling program's context.

Andrew Bartlett

Autobuild-User: Andrew Bartlett <abartlet@samba.org>
Autobuild-Date: Fri Feb 18 09:29:35 CET 2011 on sn-devel-104

13 years agolib/util/charcnv Move iconv handle setup in common
Andrew Bartlett [Fri, 18 Feb 2011 02:47:28 +0000 (13:47 +1100)]
lib/util/charcnv Move iconv handle setup in common

We now use the struct smb_iconv_convenience at the core of all our
iconv code, and use global_iconv_convenience for the callers that
don't specify one.

Andrew Bartlett

13 years agos3-charcnv Don't genreate valid_table on the fly, rely on valid.dat
Andrew Bartlett [Fri, 18 Feb 2011 00:51:33 +0000 (11:51 +1100)]
s3-charcnv Don't genreate valid_table on the fly, rely on valid.dat

This file is always installed, and is only even required for the old,
depricated mangle hash method.

Andrew Bartlett

13 years agolib/util Remove #if _SAMBA_BUILD_ == 4 that isn't required any more
Andrew Bartlett [Thu, 17 Feb 2011 23:52:12 +0000 (10:52 +1100)]
lib/util Remove #if _SAMBA_BUILD_ == 4 that isn't required any more