Simo Sorce [Mon, 1 Aug 2011 20:50:51 +0000 (16:50 -0400)]
s3:smbd - Move printing queue stuff
This way we can properly deal with pcap updates in the background queue process
if it is enabled (on by default) and not perform these actions in the main
smbd process.
Signed-off-by: Günther Deschner <gd@samba.org>
Stefan Metzmacher [Tue, 2 Aug 2011 01:57:50 +0000 (03:57 +0200)]
s4:kdc: fix compiler warning
metze
Autobuild-User: Stefan Metzmacher <metze@samba.org>
Autobuild-Date: Tue Aug 2 06:06:15 CEST 2011 on sn-devel-104
Stefan Metzmacher [Tue, 2 Aug 2011 02:16:01 +0000 (04:16 +0200)]
s3:libsmb/libsmb_server: make use of cli_set_timeout()
metze
Stefan Metzmacher [Mon, 1 Aug 2011 15:01:42 +0000 (17:01 +0200)]
s3:libsmb/cli*: make use of cli_state_protocol()
metze
Stefan Metzmacher [Mon, 1 Aug 2011 15:01:42 +0000 (17:01 +0200)]
s3:client: make use of cli_state_protocol()
metze
Stefan Metzmacher [Mon, 1 Aug 2011 15:00:24 +0000 (17:00 +0200)]
s3:auth_server: make use of cli_state_protocol()
metze
Stefan Metzmacher [Mon, 1 Aug 2011 14:59:54 +0000 (16:59 +0200)]
s3:spoolss: make use of cli_state_protocol()
metze
Stefan Metzmacher [Mon, 1 Aug 2011 14:59:34 +0000 (16:59 +0200)]
s3:masktest: make use of cli_state_protocol()
metze
Stefan Metzmacher [Mon, 1 Aug 2011 14:59:10 +0000 (16:59 +0200)]
s3:net_rpc: make use of cli_state_protocol()
metze
Stefan Metzmacher [Mon, 1 Aug 2011 14:58:49 +0000 (16:58 +0200)]
s3:winbindd_cm: make use of cli_state_protocol()
metze
Stefan Metzmacher [Sat, 30 Jul 2011 10:04:37 +0000 (12:04 +0200)]
s3:libsmb: add cli_state_protocol()
metze
Stefan Metzmacher [Tue, 2 Aug 2011 01:51:38 +0000 (03:51 +0200)]
s3:include: change cli->protocol to enum protocol_types
metze
Stefan Metzmacher [Mon, 1 Aug 2011 14:42:23 +0000 (16:42 +0200)]
s3:libsmb/cli*: make use of cli_state_capabilities()
metze
Stefan Metzmacher [Mon, 1 Aug 2011 14:41:19 +0000 (16:41 +0200)]
s3:libsmb/libsmb_*: make use of cli_state_capabilities()
metze
Stefan Metzmacher [Mon, 1 Aug 2011 14:40:45 +0000 (16:40 +0200)]
s3:torture: make use of cli_state_capabilities()
metze
Stefan Metzmacher [Mon, 1 Aug 2011 14:39:55 +0000 (16:39 +0200)]
s3:winbindd_cm: make use of cli_state_capabilities()
metze
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
Stefan Metzmacher [Sat, 30 Jul 2011 10:04:16 +0000 (12:04 +0200)]
s3:libsmb: add cli_state_capabilities()
metze
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
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
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
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
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
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
Jelmer Vernooij [Sun, 31 Jul 2011 17:42:15 +0000 (19:42 +0200)]
remove unnecessary dependency on 'events' from ldb modules.
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.
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
Stefan Metzmacher [Mon, 1 Aug 2011 13:17:41 +0000 (15:17 +0200)]
pidl:NDR/Parser: allow [string,size_of()] together
metze
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
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
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
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
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
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
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
Andreas Schneider [Fri, 29 Jul 2011 15:46:37 +0000 (17:46 +0200)]
s3-rpc_server: Use rpc_spoolss_mode().
Andreas Schneider [Fri, 29 Jul 2011 15:46:21 +0000 (17:46 +0200)]
s3-rpc_server: Add rpc_spoolss_mode().
Andreas Schneider [Fri, 29 Jul 2011 15:25:39 +0000 (17:25 +0200)]
s3-rpc_server: Enable endpoint mapper as daemon by default.
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.
Andreas Schneider [Fri, 29 Jul 2011 09:44:02 +0000 (11:44 +0200)]
s3-rpc_server: Add rpc_epmapper_mode().
Andreas Schneider [Thu, 14 Jul 2011 08:37:49 +0000 (10:37 +0200)]
s3-rpc_server: Disable listening on tcpip ports by default.
Andreas Schneider [Mon, 11 Jul 2011 15:02:36 +0000 (17:02 +0200)]
s3-torture: Run epmapper as daemon and the tests over ncalrpc.
Andreas Schneider [Tue, 5 Jul 2011 10:04:00 +0000 (12:04 +0200)]
s3-epmd: Use rpc_setup_tcpip_sockets().
Andreas Schneider [Wed, 13 Jul 2011 11:49:57 +0000 (13:49 +0200)]
s3-librpc: Remove obsolete dcerpc_binding_vector_create().
Andreas Schneider [Fri, 1 Jul 2011 16:40:38 +0000 (18:40 +0200)]
s3-rpc_server: Use binding vector in rpc_ep_try_register().
Andreas Schneider [Thu, 30 Jun 2011 08:46:48 +0000 (10:46 +0200)]
s3-rpc_server: Add RPC socket helper functions.
Andreas Schneider [Fri, 1 Jul 2011 12:39:58 +0000 (14:39 +0200)]
s3-librpc: Add dcerpc_binding_vector_replace_iface().
Andreas Schneider [Fri, 1 Jul 2011 12:36:31 +0000 (14:36 +0200)]
s3-librpc: Add dcerpc_binding_vector_dup().
Andreas Schneider [Thu, 30 Jun 2011 10:02:33 +0000 (12:02 +0200)]
s3-librpc: Add dcerpc_binding_vector_add_unix().
Andreas Schneider [Thu, 30 Jun 2011 10:01:10 +0000 (12:01 +0200)]
s3-librpc: Add dcerpc_binding_vector_add_port().
Andreas Schneider [Thu, 30 Jun 2011 09:56:11 +0000 (11:56 +0200)]
s3-librpc: Add dcerpc_binding_vector_add_np_default().
Andreas Schneider [Thu, 30 Jun 2011 09:52:59 +0000 (11:52 +0200)]
s3-librpc: Add dcerpc_binding_vector_new().
Andreas Schneider [Mon, 6 Jun 2011 09:13:10 +0000 (11:13 +0200)]
s3-rpc_server: Rename to rpc service setup.
Andreas Schneider [Mon, 6 Jun 2011 09:10:02 +0000 (11:10 +0200)]
s3-rpc_server: Move the endpoint registration to own file.
Andreas Schneider [Mon, 23 May 2011 14:00:30 +0000 (16:00 +0200)]
s3-rpc_server: Added common function to create tcpip socket.
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
Günther Deschner [Sun, 31 Jul 2011 19:43:02 +0000 (21:43 +0200)]
s3-build: remove some unused/duplicate headers.
Guenther
Günther Deschner [Tue, 3 Nov 2009 10:48:09 +0000 (11:48 +0100)]
s3-selftest: finally enable RPC-LSA against s3.
Guenther
Günther Deschner [Thu, 29 Oct 2009 23:09:25 +0000 (00:09 +0100)]
s3-selftest: enable RPC-LSA-SECRETS against s3.
Guenther
Günther Deschner [Thu, 1 Jul 2010 20:25:16 +0000 (22:25 +0200)]
s3-lsa: support secret objects in _lsa_QuerySecurity().
Guenther
Günther Deschner [Thu, 29 Oct 2009 23:05:07 +0000 (00:05 +0100)]
s3-lsa: support secret objects in _lsa_DeleteObject().
Guenther
Günther Deschner [Thu, 29 Oct 2009 23:04:09 +0000 (00:04 +0100)]
s3-lsa: implement _lsa_QuerySecret().
Guenther
Günther Deschner [Thu, 29 Oct 2009 23:03:21 +0000 (00:03 +0100)]
s3-lsa: implement _lsa_SetSecret().
Guenther
Günther Deschner [Thu, 29 Oct 2009 22:59:57 +0000 (23:59 +0100)]
s3-lsa: implement _lsa_CreateSecret().
Guenther
Günther Deschner [Thu, 29 Oct 2009 22:51:44 +0000 (23:51 +0100)]
s3-lsa: implement _lsa_OpenSecret().
Guenther
Günther Deschner [Thu, 17 Feb 2011 15:10:28 +0000 (16:10 +0100)]
s3-secrets: add lsa_secret passdb api.
Guenther
Günther Deschner [Wed, 28 Oct 2009 17:07:56 +0000 (18:07 +0100)]
s3-secrets: add lsa_secret struct to secrets IDL.
Guenther
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
Günther Deschner [Mon, 26 Oct 2009 12:43:16 +0000 (13:43 +0100)]
s3-lsa: add LSA_HANDLE_SECRET_TYPE.
Guenther
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
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
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
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
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.
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
Volker Lendecke [Fri, 29 Jul 2011 14:36:58 +0000 (16:36 +0200)]
s3: Make map_open_params_to_ntcreate() available in lib/
Volker Lendecke [Fri, 29 Jul 2011 14:14:39 +0000 (16:14 +0200)]
s3: Make is_executable() available in lib/
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
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
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
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
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.
Michael Adam [Wed, 6 Jul 2011 14:09:17 +0000 (16:09 +0200)]
s3:g_lock: explicitly include dbwrap.h
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/"
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>
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
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>
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>
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>
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>
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>
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>
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
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>
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>
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>
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>
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>
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>
Andrew Bartlett [Wed, 27 Jul 2011 05:42:45 +0000 (15:42 +1000)]
selftest: explain how the message command test works