samba.git
12 years agos3:spoolss: make use of cli_state_protocol()
Stefan Metzmacher [Mon, 1 Aug 2011 14:59:54 +0000 (16:59 +0200)]
s3:spoolss: make use of cli_state_protocol()

metze

12 years agos3:masktest: make use of cli_state_protocol()
Stefan Metzmacher [Mon, 1 Aug 2011 14:59:34 +0000 (16:59 +0200)]
s3:masktest: make use of cli_state_protocol()

metze

12 years agos3:net_rpc: make use of cli_state_protocol()
Stefan Metzmacher [Mon, 1 Aug 2011 14:59:10 +0000 (16:59 +0200)]
s3:net_rpc: make use of cli_state_protocol()

metze

12 years agos3:winbindd_cm: make use of cli_state_protocol()
Stefan Metzmacher [Mon, 1 Aug 2011 14:58:49 +0000 (16:58 +0200)]
s3:winbindd_cm: make use of cli_state_protocol()

metze

12 years agos3:libsmb: add cli_state_protocol()
Stefan Metzmacher [Sat, 30 Jul 2011 10:04:37 +0000 (12:04 +0200)]
s3:libsmb: add cli_state_protocol()

metze

12 years agos3:include: change cli->protocol to enum protocol_types
Stefan Metzmacher [Tue, 2 Aug 2011 01:51:38 +0000 (03:51 +0200)]
s3:include: change cli->protocol to enum protocol_types

metze

12 years agos3:libsmb/cli*: make use of cli_state_capabilities()
Stefan Metzmacher [Mon, 1 Aug 2011 14:42:23 +0000 (16:42 +0200)]
s3:libsmb/cli*: make use of cli_state_capabilities()

metze

12 years agos3:libsmb/libsmb_*: make use of cli_state_capabilities()
Stefan Metzmacher [Mon, 1 Aug 2011 14:41:19 +0000 (16:41 +0200)]
s3:libsmb/libsmb_*: make use of cli_state_capabilities()

metze

12 years agos3:torture: make use of cli_state_capabilities()
Stefan Metzmacher [Mon, 1 Aug 2011 14:40:45 +0000 (16:40 +0200)]
s3:torture: make use of cli_state_capabilities()

metze

12 years agos3:winbindd_cm: make use of cli_state_capabilities()
Stefan Metzmacher [Mon, 1 Aug 2011 14:39:55 +0000 (16:39 +0200)]
s3:winbindd_cm: make use of cli_state_capabilities()

metze

12 years agos3:include: make use of cli_state_capabilities() in SERVER_HAS_UNIX_CIFS()
Stefan Metzmacher [Mon, 1 Aug 2011 14:39:20 +0000 (16:39 +0200)]
s3:include: make use of cli_state_capabilities() in SERVER_HAS_UNIX_CIFS()

metze

12 years agos3:libsmb: add cli_state_capabilities()
Stefan Metzmacher [Sat, 30 Jul 2011 10:04:16 +0000 (12:04 +0200)]
s3:libsmb: add cli_state_capabilities()

metze

12 years agos3:smb2cli_base: smb2cli_req_send() needs to call tevent_req_post() on error
Stefan Metzmacher [Mon, 18 Jul 2011 12:38:33 +0000 (14:38 +0200)]
s3:smb2cli_base: smb2cli_req_send() needs to call tevent_req_post() on error

metze

12 years agosamba-tool: Don't install -c version, which is now deprecated.
Jelmer Vernooij [Tue, 2 Aug 2011 01:32:54 +0000 (03:32 +0200)]
samba-tool: Don't install -c version, which is now deprecated.

Autobuild-User: Jelmer Vernooij <jelmer@samba.org>
Autobuild-Date: Tue Aug  2 04:53:39 CEST 2011 on sn-devel-104

12 years agoFix bug #8341 - libsmbclient segfault when feed the root of a mounted share via an uri
Alban Browaeys [Mon, 1 Aug 2011 23:40:22 +0000 (16:40 -0700)]
Fix bug #8341 - libsmbclient segfault when feed the root of a mounted share via an uri

Fix null deref.

Autobuild-User: Jeremy Allison <jra@samba.org>
Autobuild-Date: Tue Aug  2 02:58:26 CEST 2011 on sn-devel-104

12 years agodbcheck: Cancel transaction if operation fails.
Jelmer Vernooij [Mon, 1 Aug 2011 18:04:02 +0000 (20:04 +0200)]
dbcheck: Cancel transaction if operation fails.

Autobuild-User: Jelmer Vernooij <jelmer@samba.org>
Autobuild-Date: Tue Aug  2 01:41:07 CEST 2011 on sn-devel-104

12 years agoFix bug 7462 - Non-standard SA_RESETHAND is used in ...lib/tevent/tevent_signal.c
Jeremy Allison [Mon, 1 Aug 2011 18:49:10 +0000 (11:49 -0700)]
Fix bug 7462 - Non-standard SA_RESETHAND is used in ...lib/tevent/tevent_signal.c

Make SA_RESETHAND conditional on its existance.

Autobuild-User: Jeremy Allison <jra@samba.org>
Autobuild-Date: Mon Aug  1 22:03:45 CEST 2011 on sn-devel-104

12 years agoacl: Improve error message when setting acls fails.
Jelmer Vernooij [Sun, 31 Jul 2011 18:05:23 +0000 (20:05 +0200)]
acl: Improve error message when setting acls fails.

Autobuild-User: Jelmer Vernooij <jelmer@samba.org>
Autobuild-Date: Mon Aug  1 18:59:12 CEST 2011 on sn-devel-104

12 years agoremove unnecessary dependency on 'events' from ldb modules.
Jelmer Vernooij [Sun, 31 Jul 2011 17:42:15 +0000 (19:42 +0200)]
remove unnecessary dependency on 'events' from ldb modules.

12 years agoheimdal_build: Use krb5-config to find heimdal include directory and library path...
Jelmer Vernooij [Sat, 30 Jul 2011 15:45:04 +0000 (17:45 +0200)]
heimdal_build: Use krb5-config to find heimdal include directory and library path, rather than hardcoding.

12 years agowinsif.idl: fix comment about a pidl bug
Stefan Metzmacher [Mon, 1 Aug 2011 13:38:12 +0000 (15:38 +0200)]
winsif.idl: fix comment about a pidl bug

metze

Autobuild-User: Stefan Metzmacher <metze@samba.org>
Autobuild-Date: Mon Aug  1 17:47:05 CEST 2011 on sn-devel-104

12 years agopidl:NDR/Parser: allow [string,size_of()] together
Stefan Metzmacher [Mon, 1 Aug 2011 13:17:41 +0000 (15:17 +0200)]
pidl:NDR/Parser: allow [string,size_of()] together

metze

12 years agoeventlog6.idl: fix definition of eventlog6_StringArray
Stefan Metzmacher [Mon, 1 Aug 2011 13:18:40 +0000 (15:18 +0200)]
eventlog6.idl: fix definition of eventlog6_StringArray

This is an array of string, not an array of characters.

metze

12 years agos3:rpc_transport_tstream: call tstream_cli_np_use_trans() before tstream_writev_queue...
Stefan Metzmacher [Thu, 28 Jul 2011 10:54:31 +0000 (12:54 +0200)]
s3:rpc_transport_tstream: call tstream_cli_np_use_trans() before tstream_writev_queue_send()

This will be needed when tstream_writev_queue_send() changes it's behavior and
avoids using an immediate event when the queue is empty.

metze

Autobuild-User: Stefan Metzmacher <metze@samba.org>
Autobuild-Date: Mon Aug  1 14:55:00 CEST 2011 on sn-devel-104

12 years agopidl:NDR/Server: use interface->{UUID} and {NAME} instead of the raw {PROPERTIES}
Stefan Metzmacher [Mon, 1 Aug 2011 09:32:48 +0000 (11:32 +0200)]
pidl:NDR/Server: use interface->{UUID} and {NAME} instead of the raw {PROPERTIES}

metze

12 years agopidl:NDR/Parser: use interface->{UUID} and {NAME} instead of the raw {PROPERTIES}
Stefan Metzmacher [Mon, 1 Aug 2011 09:32:48 +0000 (11:32 +0200)]
pidl:NDR/Parser: use interface->{UUID} and {NAME} instead of the raw {PROPERTIES}

metze

12 years agopidl:NDR/Parser: use '0' instead of 'NULL' for an uint32_t value
Stefan Metzmacher [Mon, 1 Aug 2011 11:00:30 +0000 (13:00 +0200)]
pidl:NDR/Parser: use '0' instead of 'NULL' for an uint32_t value

metze

12 years agos4-upgradeprovision: try to fix the detection of @provision record
Matthieu Patou [Sat, 30 Jul 2011 20:46:58 +0000 (00:46 +0400)]
s4-upgradeprovision: try to fix the detection of @provision record

Autobuild-User: Matthieu Patou <mat@samba.org>
Autobuild-Date: Mon Aug  1 13:43:50 CEST 2011 on sn-devel-104

12 years agos3-rpc_server: Only setup tcpip ports if epmapper is enabled.
Andreas Schneider [Mon, 1 Aug 2011 09:14:12 +0000 (11:14 +0200)]
s3-rpc_server: Only setup tcpip ports if epmapper is enabled.

Autobuild-User: Andreas Schneider <asn@cryptomilk.org>
Autobuild-Date: Mon Aug  1 12:31:59 CEST 2011 on sn-devel-104

12 years agos3-rpc_server: Use rpc_spoolss_mode().
Andreas Schneider [Fri, 29 Jul 2011 15:46:37 +0000 (17:46 +0200)]
s3-rpc_server: Use rpc_spoolss_mode().

12 years agos3-rpc_server: Add rpc_spoolss_mode().
Andreas Schneider [Fri, 29 Jul 2011 15:46:21 +0000 (17:46 +0200)]
s3-rpc_server: Add rpc_spoolss_mode().

12 years agos3-rpc_server: Enable endpoint mapper as daemon by default.
Andreas Schneider [Fri, 29 Jul 2011 15:25:39 +0000 (17:25 +0200)]
s3-rpc_server: Enable endpoint mapper as daemon by default.

12 years agos3-rpc_server: Use rpc_epmapper_mode().
Andreas Schneider [Thu, 14 Jul 2011 08:40:53 +0000 (10:40 +0200)]
s3-rpc_server: Use rpc_epmapper_mode().

Remove embedded mode cause this will not work. It was only there for
testing.

12 years agos3-rpc_server: Add rpc_epmapper_mode().
Andreas Schneider [Fri, 29 Jul 2011 09:44:02 +0000 (11:44 +0200)]
s3-rpc_server: Add rpc_epmapper_mode().

12 years agos3-rpc_server: Disable listening on tcpip ports by default.
Andreas Schneider [Thu, 14 Jul 2011 08:37:49 +0000 (10:37 +0200)]
s3-rpc_server: Disable listening on tcpip ports by default.

12 years agos3-torture: Run epmapper as daemon and the tests over ncalrpc.
Andreas Schneider [Mon, 11 Jul 2011 15:02:36 +0000 (17:02 +0200)]
s3-torture: Run epmapper as daemon and the tests over ncalrpc.

12 years agos3-epmd: Use rpc_setup_tcpip_sockets().
Andreas Schneider [Tue, 5 Jul 2011 10:04:00 +0000 (12:04 +0200)]
s3-epmd: Use rpc_setup_tcpip_sockets().

12 years agos3-librpc: Remove obsolete dcerpc_binding_vector_create().
Andreas Schneider [Wed, 13 Jul 2011 11:49:57 +0000 (13:49 +0200)]
s3-librpc: Remove obsolete dcerpc_binding_vector_create().

12 years agos3-rpc_server: Use binding vector in rpc_ep_try_register().
Andreas Schneider [Fri, 1 Jul 2011 16:40:38 +0000 (18:40 +0200)]
s3-rpc_server: Use binding vector in rpc_ep_try_register().

12 years agos3-rpc_server: Add RPC socket helper functions.
Andreas Schneider [Thu, 30 Jun 2011 08:46:48 +0000 (10:46 +0200)]
s3-rpc_server: Add RPC socket helper functions.

12 years agos3-librpc: Add dcerpc_binding_vector_replace_iface().
Andreas Schneider [Fri, 1 Jul 2011 12:39:58 +0000 (14:39 +0200)]
s3-librpc: Add dcerpc_binding_vector_replace_iface().

12 years agos3-librpc: Add dcerpc_binding_vector_dup().
Andreas Schneider [Fri, 1 Jul 2011 12:36:31 +0000 (14:36 +0200)]
s3-librpc: Add dcerpc_binding_vector_dup().

12 years agos3-librpc: Add dcerpc_binding_vector_add_unix().
Andreas Schneider [Thu, 30 Jun 2011 10:02:33 +0000 (12:02 +0200)]
s3-librpc: Add dcerpc_binding_vector_add_unix().

12 years agos3-librpc: Add dcerpc_binding_vector_add_port().
Andreas Schneider [Thu, 30 Jun 2011 10:01:10 +0000 (12:01 +0200)]
s3-librpc: Add dcerpc_binding_vector_add_port().

12 years agos3-librpc: Add dcerpc_binding_vector_add_np_default().
Andreas Schneider [Thu, 30 Jun 2011 09:56:11 +0000 (11:56 +0200)]
s3-librpc: Add dcerpc_binding_vector_add_np_default().

12 years agos3-librpc: Add dcerpc_binding_vector_new().
Andreas Schneider [Thu, 30 Jun 2011 09:52:59 +0000 (11:52 +0200)]
s3-librpc: Add dcerpc_binding_vector_new().

12 years agos3-rpc_server: Rename to rpc service setup.
Andreas Schneider [Mon, 6 Jun 2011 09:13:10 +0000 (11:13 +0200)]
s3-rpc_server: Rename to rpc service setup.

12 years agos3-rpc_server: Move the endpoint registration to own file.
Andreas Schneider [Mon, 6 Jun 2011 09:10:02 +0000 (11:10 +0200)]
s3-rpc_server: Move the endpoint registration to own file.

12 years agos3-rpc_server: Added common function to create tcpip socket.
Andreas Schneider [Mon, 23 May 2011 14:00:30 +0000 (16:00 +0200)]
s3-rpc_server: Added common function to create tcpip socket.

12 years agos3-lsa: Fix crypto prototypes.
Günther Deschner [Sun, 31 Jul 2011 20:37:08 +0000 (22:37 +0200)]
s3-lsa: Fix crypto prototypes.

Guenther

Autobuild-User: Günther Deschner <gd@samba.org>
Autobuild-Date: Mon Aug  1 00:18:34 CEST 2011 on sn-devel-104

12 years agos3-build: remove some unused/duplicate headers.
Günther Deschner [Sun, 31 Jul 2011 19:43:02 +0000 (21:43 +0200)]
s3-build: remove some unused/duplicate headers.

Guenther

12 years agos3-selftest: finally enable RPC-LSA against s3.
Günther Deschner [Tue, 3 Nov 2009 10:48:09 +0000 (11:48 +0100)]
s3-selftest: finally enable RPC-LSA against s3.

Guenther

12 years agos3-selftest: enable RPC-LSA-SECRETS against s3.
Günther Deschner [Thu, 29 Oct 2009 23:09:25 +0000 (00:09 +0100)]
s3-selftest: enable RPC-LSA-SECRETS against s3.

Guenther

12 years agos3-lsa: support secret objects in _lsa_QuerySecurity().
Günther Deschner [Thu, 1 Jul 2010 20:25:16 +0000 (22:25 +0200)]
s3-lsa: support secret objects in _lsa_QuerySecurity().

Guenther

12 years agos3-lsa: support secret objects in _lsa_DeleteObject().
Günther Deschner [Thu, 29 Oct 2009 23:05:07 +0000 (00:05 +0100)]
s3-lsa: support secret objects in _lsa_DeleteObject().

Guenther

12 years agos3-lsa: implement _lsa_QuerySecret().
Günther Deschner [Thu, 29 Oct 2009 23:04:09 +0000 (00:04 +0100)]
s3-lsa: implement _lsa_QuerySecret().

Guenther

12 years agos3-lsa: implement _lsa_SetSecret().
Günther Deschner [Thu, 29 Oct 2009 23:03:21 +0000 (00:03 +0100)]
s3-lsa: implement _lsa_SetSecret().

Guenther

12 years agos3-lsa: implement _lsa_CreateSecret().
Günther Deschner [Thu, 29 Oct 2009 22:59:57 +0000 (23:59 +0100)]
s3-lsa: implement _lsa_CreateSecret().

Guenther

12 years agos3-lsa: implement _lsa_OpenSecret().
Günther Deschner [Thu, 29 Oct 2009 22:51:44 +0000 (23:51 +0100)]
s3-lsa: implement _lsa_OpenSecret().

Guenther

12 years agos3-secrets: add lsa_secret passdb api.
Günther Deschner [Thu, 17 Feb 2011 15:10:28 +0000 (16:10 +0100)]
s3-secrets: add lsa_secret passdb api.

Guenther

12 years agos3-secrets: add lsa_secret struct to secrets IDL.
Günther Deschner [Wed, 28 Oct 2009 17:07:56 +0000 (18:07 +0100)]
s3-secrets: add lsa_secret struct to secrets IDL.

Guenther

12 years agos3-passdb: add dummy calls to control global (replicated) secrets.
Günther Deschner [Wed, 28 Oct 2009 10:03:15 +0000 (11:03 +0100)]
s3-passdb: add dummy calls to control global (replicated) secrets.

Guenther

12 years agos3-lsa: add LSA_HANDLE_SECRET_TYPE.
Günther Deschner [Mon, 26 Oct 2009 12:43:16 +0000 (13:43 +0100)]
s3-lsa: add LSA_HANDLE_SECRET_TYPE.

Guenther

12 years agos3-lsa: Fix _lsa_DeleteObject to handle trusted domain objects.
Günther Deschner [Thu, 16 Jul 2009 12:32:18 +0000 (14:32 +0200)]
s3-lsa: Fix _lsa_DeleteObject to handle trusted domain objects.

Guenther

12 years agos4-kcc: correctly populate the neighbor object when taking information from repsTo
Matthieu Patou [Sat, 30 Jul 2011 07:05:40 +0000 (11:05 +0400)]
s4-kcc: correctly populate the neighbor object when taking information from repsTo

Autobuild-User: Matthieu Patou <mat@samba.org>
Autobuild-Date: Sun Jul 31 00:17:17 CEST 2011 on sn-devel-104

12 years agoAdded missing return. Not strictly neccessary, the following if (!NT_STATUS_EQUAL...
Jeremy Allison [Fri, 29 Jul 2011 22:20:15 +0000 (15:20 -0700)]
Added missing return. Not strictly neccessary, the following if (!NT_STATUS_EQUAL(status, NT_STATUS_NOT_SUPPORTED))
clause will catch this and use tevent_req_nterror(req, status); to set the status as NT_STATUS_OK, but
it looks strange to do it that way.

Autobuild-User: Jeremy Allison <jra@samba.org>
Autobuild-Date: Sat Jul 30 01:34:24 CEST 2011 on sn-devel-104

12 years agoSecod part of bugfix for bug #8335 - file copy aborts with smb2_validate_message_id...
Jeremy Allison [Fri, 29 Jul 2011 03:23:30 +0000 (20:23 -0700)]
Secod part of bugfix for bug #8335 - file copy aborts with smb2_validate_message_id: bad message_id

Modify the credit granting algorithm to closer to what I believe
Windows does.

Split up max_credits into 1/16ths, and then scale
the requested credits by how many 16ths have been
currently granted. Less than 1/16th == grant all
requested (100%), scale down as more have been
granted. Never ask for less than 1 if the client
asked for at least 1.

Autobuild-User: Jeremy Allison <jra@samba.org>
Autobuild-Date: Fri Jul 29 20:37:42 CEST 2011 on sn-devel-104

12 years agoFirst part of bugfix for bug #8335 - file copy aborts with smb2_validate_message_id...
Jeremy Allison [Fri, 29 Jul 2011 03:22:45 +0000 (20:22 -0700)]
First part of bugfix for bug #8335 - file copy aborts with smb2_validate_message_id: bad message_id

Set default max credits to 8192 now this has been documented in the
SMB2 spec.

12 years agos3: Add a fallback for missing open&x support in OS/X Lion
Volker Lendecke [Fri, 29 Jul 2011 14:37:18 +0000 (16:37 +0200)]
s3: Add a fallback for missing open&x support in OS/X Lion

Autobuild-User: Volker Lendecke <vlendec@samba.org>
Autobuild-Date: Fri Jul 29 17:55:20 CEST 2011 on sn-devel-104

12 years agos3: Make map_open_params_to_ntcreate() available in lib/
Volker Lendecke [Fri, 29 Jul 2011 14:36:58 +0000 (16:36 +0200)]
s3: Make map_open_params_to_ntcreate() available in lib/

12 years agos3: Make is_executable() available in lib/
Volker Lendecke [Fri, 29 Jul 2011 14:14:39 +0000 (16:14 +0200)]
s3: Make is_executable() available in lib/

12 years agos3: We only need base_name in map_open_params_to_ntcreate
Volker Lendecke [Fri, 29 Jul 2011 14:12:16 +0000 (16:12 +0200)]
s3: We only need base_name in map_open_params_to_ntcreate

12 years agos3:dbwrap: move all .c and .h files of dbwrap to lib/dbwrap/
Michael Adam [Thu, 7 Jul 2011 15:42:08 +0000 (17:42 +0200)]
s3:dbwrap: move all .c and .h files of dbwrap to lib/dbwrap/

Autobuild-User: Michael Adam <obnox@samba.org>
Autobuild-Date: Fri Jul 29 13:34:22 CEST 2011 on sn-devel-104

12 years agos3-waf: replace the dbwrap_util library by a dbwrap library that contains the dbwrap...
Michael Adam [Wed, 6 Jul 2011 15:02:13 +0000 (17:02 +0200)]
s3-waf: replace the dbwrap_util library by a dbwrap library that contains the dbwrap core

12 years agos3:dbwrap: move db_is_local() from dbwrap.c to dbwrap_open.c
Michael Adam [Wed, 6 Jul 2011 14:49:34 +0000 (16:49 +0200)]
s3:dbwrap: move db_is_local() from dbwrap.c to dbwrap_open.c

12 years agos3:dbwrap: move db_open() to a file dbwrap_open.c of its own.
Michael Adam [Wed, 6 Jul 2011 14:40:21 +0000 (16:40 +0200)]
s3:dbwrap: move db_open() to a file dbwrap_open.c of its own.

Also start new folder lib/dbwrap/ where dbwrap_open.c is stored and
make the fallbacke implementation functoins non-static and create a
dbwrap_private.h header file that contains their prototypes.

12 years agos3:g_lock: explicitly include dbwrap.h
Michael Adam [Wed, 6 Jul 2011 14:09:17 +0000 (16:09 +0200)]
s3:g_lock: explicitly include dbwrap.h

12 years agos3:modules:nfs4_acls: fix the include of dbwrap.h to not include "include/"
Michael Adam [Wed, 6 Jul 2011 14:14:18 +0000 (16:14 +0200)]
s3:modules:nfs4_acls: fix the include of dbwrap.h to not include "include/"

12 years agos3:dbwrap: explicitly include dbwrap.h in dbwrap_ctdb.c
Michael Adam [Wed, 6 Jul 2011 12:27:03 +0000 (14:27 +0200)]
s3:dbwrap: explicitly include dbwrap.h in dbwrap_ctdb.c

This used to come in via g_lock.h

Pair-Programmed-With: Gregor Beck <gbeck@sernet.de>

12 years agotalloc: added test suite for talloc_free_children()
Andrew Tridgell [Fri, 29 Jul 2011 01:57:07 +0000 (11:57 +1000)]
talloc: added test suite for talloc_free_children()

this tests the fix from Simo

Autobuild-User: Andrew Tridgell <tridge@samba.org>
Autobuild-Date: Fri Jul 29 11:30:13 CEST 2011 on sn-devel-104

12 years agotalloc: preserve context name on talloc_free_children()
Simo Sorce [Wed, 27 Jul 2011 16:02:35 +0000 (12:02 -0400)]
talloc: preserve context name on talloc_free_children()

Otherwise tc->name will end up pointing to garbage when it is not
set to a const but rather to a string allocate as child of the context itself.

Signed-off-by: Andrew Tridgell <tridge@samba.org>
12 years agosamba-tool: use ldb.binary_encode() on search expression elements
Andrew Tridgell [Thu, 28 Jul 2011 07:14:28 +0000 (17:14 +1000)]
samba-tool: use ldb.binary_encode() on search expression elements

this allows us to deal with search elements containing characters that
must be escaped in LDAP

Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
Pair-Programmed-With: Amitay Isaacs <amitay@gmail.com>

12 years agosamba-tool: fixed binary encoding of usernames in setpassword
Andrew Tridgell [Thu, 28 Jul 2011 07:03:57 +0000 (17:03 +1000)]
samba-tool: fixed binary encoding of usernames in setpassword

Pair-Programmed-With: Amitay Isaacs <amitay@gmail.com>
Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>

12 years agopyldb: added binary_encode() and binary_decode() methods
Andrew Tridgell [Thu, 28 Jul 2011 07:03:06 +0000 (17:03 +1000)]
pyldb: added binary_encode() and binary_decode() methods

this gives access to RFC2254 encoding from python

Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
Pair-Programmed-With: Amitay Isaacs <amitay@gmail.com>

12 years agoldb: added a test for an invalid search expression
Andrew Tridgell [Thu, 28 Jul 2011 05:56:15 +0000 (15:56 +1000)]
ldb: added a test for an invalid search expression

this tests the fix for invalid expressions in & and | expressions

Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
Pair-Programmed-With: Amitay Isaacs <amitay@gmail.com>

12 years agoldb: fixed a search expression parse bug
Andrew Tridgell [Thu, 28 Jul 2011 05:51:31 +0000 (15:51 +1000)]
ldb: fixed a search expression parse bug

when a secondary component of a & or | expression was invalid, it was
ignored rather than giving an error. For example:

 (|(objectclass=user)(samaccountname=foo\blah))

was treated as being:

 (objectclass=user)

whereas it should be an error, as foo\blah is invalid

Pair-Programmed-With: Amitay Isaacs <amitay@gmail.com>
Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>

12 years agos4-auth Fill in the remainder of the unix info in auth_session_info
Andrew Bartlett [Thu, 21 Jul 2011 08:21:19 +0000 (18:21 +1000)]
s4-auth Fill in the remainder of the unix info in auth_session_info

Signed-off-by: Andrew Tridgell <tridge@samba.org>
Autobuild-User: Andrew Bartlett <abartlet@samba.org>
Autobuild-Date: Fri Jul 29 05:33:03 CEST 2011 on sn-devel-104

12 years agos4-auth Move conversion of security_token to unix_token to auth
Andrew Bartlett [Thu, 21 Jul 2011 07:06:17 +0000 (17:06 +1000)]
s4-auth Move conversion of security_token to unix_token to auth

This allows us to honour the AUTH_SESSION_INFO_UNIX_TOKEN flag.

Andrew Bartlett

Signed-off-by: Andrew Tridgell <tridge@samba.org>
12 years agogensec: Add a way to request a unix token from GENSEC
Andrew Bartlett [Thu, 21 Jul 2011 05:39:27 +0000 (15:39 +1000)]
gensec: Add a way to request a unix token from GENSEC

Signed-off-by: Andrew Tridgell <tridge@samba.org>
12 years agontvfs: Use security_unix_token from auth.idl
Andrew Bartlett [Thu, 21 Jul 2011 05:37:41 +0000 (15:37 +1000)]
ntvfs: Use security_unix_token from auth.idl

Signed-off-by: Andrew Tridgell <tridge@samba.org>
12 years agos3-selftest Add tests for 'map to guest = bad user'
Andrew Bartlett [Fri, 22 Jul 2011 03:00:21 +0000 (13:00 +1000)]
s3-selftest Add tests for 'map to guest = bad user'

Signed-off-by: Andrew Tridgell <tridge@samba.org>
12 years agoselftest: Avoid being run over by armies of the undead
Andrew Bartlett [Tue, 26 Jul 2011 07:04:40 +0000 (17:04 +1000)]
selftest: Avoid being run over by armies of the undead

Ignore SIGCHILD to reap zombies

Andrew Bartlett

Signed-off-by: Andrew Tridgell <tridge@samba.org>
12 years agonbt: Add comment explaining that these responses are manually encoded
Andrew Bartlett [Wed, 27 Jul 2011 02:06:22 +0000 (12:06 +1000)]
nbt: Add comment explaining that these responses are manually encoded

Signed-off-by: Andrew Tridgell <tridge@samba.org>
12 years agoselftest: explain how the message command test works
Andrew Bartlett [Wed, 27 Jul 2011 05:42:45 +0000 (15:42 +1000)]
selftest: explain how the message command test works

12 years agos4-lsa Use the supplied handle in LsaLookupNames2
Andrew Bartlett [Wed, 27 Jul 2011 21:55:09 +0000 (07:55 +1000)]
s4-lsa Use the supplied handle in LsaLookupNames2

In my rework of this function in 2006 with
459a2301a5d63f5a1a6b27996c8a0358b20f2ab2 I ignored the incoming
handle, instead feching the LSA state again (dispite the commit
message indicating otherwise).

This means that data->access_mask is uninitialised, which doesn't
matter right now, but will once we start checking that.

Andrew Bartlett

12 years agos4-debug: Start with DEBUG_DEFAULT_STDOUT, so we can log to a file in deamons
Andrew Bartlett [Fri, 29 Jul 2011 02:10:39 +0000 (12:10 +1000)]
s4-debug: Start with DEBUG_DEFAULT_STDOUT, so we can log to a file in deamons

In commit 3c9d01e3e58e2217915317406541ac8c6f6dcf92 I changed the priority order
and added DEBUG_DEFAULT_STDOUT, but did not check all the callers.

Andrew Bartlett

12 years agos3-printing: Add forward declaration for dcerpc_binding_handle.
Andreas Schneider [Thu, 28 Jul 2011 15:12:24 +0000 (17:12 +0200)]
s3-printing: Add forward declaration for dcerpc_binding_handle.

This fixes a build warning.

Autobuild-User: Andreas Schneider <asn@cryptomilk.org>
Autobuild-Date: Thu Jul 28 20:07:37 CEST 2011 on sn-devel-104

12 years agos3: Priorize the async echo responder over the client
Volker Lendecke [Thu, 28 Jul 2011 12:24:40 +0000 (14:24 +0200)]
s3: Priorize the async echo responder over the client

Without this, an active client connection can starve the echo responder. This
leads to apparently "lost" SMBs.

Autobuild-User: Volker Lendecke <vlendec@samba.org>
Autobuild-Date: Thu Jul 28 18:53:38 CEST 2011 on sn-devel-104

12 years agotevent: Slightly simplify poll_event_loop_poll
Volker Lendecke [Thu, 28 Jul 2011 12:09:13 +0000 (14:09 +0200)]
tevent: Slightly simplify poll_event_loop_poll

No real code change. Do an early return instead of an if-statement, avoiding
one level of indentation.

12 years agos3: Remove unused smbd_echo_reader()
Volker Lendecke [Tue, 26 Jul 2011 13:39:58 +0000 (15:39 +0200)]
s3: Remove unused smbd_echo_reader()