kai/samba.git
7 years agos4:libcli/smb2: remove unused smb2_session->pid
Stefan Metzmacher [Wed, 25 Jul 2012 09:40:54 +0000 (11:40 +0200)]
s4:libcli/smb2: remove unused smb2_session->pid

metze

7 years agos3:libsmb: remove unused cli_state->smb2.pid
Stefan Metzmacher [Wed, 25 Jul 2012 09:26:22 +0000 (11:26 +0200)]
s3:libsmb: remove unused cli_state->smb2.pid

metze

7 years agos4:libcli/smb2: remove unused variable
Stefan Metzmacher [Wed, 25 Jul 2012 08:59:12 +0000 (10:59 +0200)]
s4:libcli/smb2: remove unused variable

metze

7 years agolibcli/smb: there's no PID field in the SMB2/3 header anymore
Stefan Metzmacher [Wed, 25 Jul 2012 08:58:34 +0000 (10:58 +0200)]
libcli/smb: there's no PID field in the SMB2/3 header anymore

It's a reserved field...

metze

7 years agolibcli/smb: pass smbXcli_tcon to smb2cli_req_create/send()
Stefan Metzmacher [Wed, 25 Jul 2012 08:36:27 +0000 (10:36 +0200)]
libcli/smb: pass smbXcli_tcon to smb2cli_req_create/send()

metze

7 years agos4:libcli/smb2: remove unused elements from smb2_tree
Stefan Metzmacher [Wed, 25 Jul 2012 07:31:15 +0000 (09:31 +0200)]
s4:libcli/smb2: remove unused elements from smb2_tree

metze

7 years agos4:torture/smb2: create temporary smbXcli_tcon/session structures instead of changing...
Stefan Metzmacher [Wed, 25 Jul 2012 07:29:00 +0000 (09:29 +0200)]
s4:torture/smb2: create temporary smbXcli_tcon/session structures instead of changing them

metze

7 years agos4:torture/smb2: use smb2cli_tcon_capabilities()
Stefan Metzmacher [Wed, 25 Jul 2012 07:27:34 +0000 (09:27 +0200)]
s4:torture/smb2: use smb2cli_tcon_capabilities()

metze

7 years agolibcli/smb: add smb2cli_tcon_capabilities()
Stefan Metzmacher [Wed, 25 Jul 2012 07:27:00 +0000 (09:27 +0200)]
libcli/smb: add smb2cli_tcon_capabilities()

metze

7 years agos3:libsmb: remove unused tcon specific elements from cli_state->smb2
Stefan Metzmacher [Wed, 25 Jul 2012 07:05:32 +0000 (09:05 +0200)]
s3:libsmb: remove unused tcon specific elements from cli_state->smb2

metze

7 years agos3:libsmb: remove cli_state->smb2.tid
Stefan Metzmacher [Wed, 25 Jul 2012 07:01:02 +0000 (09:01 +0200)]
s3:libsmb: remove cli_state->smb2.tid

metze

7 years agos4:torture: remove unused shm_setup()
Stefan Metzmacher [Wed, 25 Jul 2012 06:36:10 +0000 (08:36 +0200)]
s4:torture: remove unused shm_setup()

metze

7 years agos4:torture: replace shm_setup() with anonymous_shared_allocate()
Stefan Metzmacher [Wed, 25 Jul 2012 06:35:44 +0000 (08:35 +0200)]
s4:torture: replace shm_setup() with anonymous_shared_allocate()

metze

7 years agos3:torture: remove unused shm_setup()
Stefan Metzmacher [Wed, 25 Jul 2012 06:35:17 +0000 (08:35 +0200)]
s3:torture: remove unused shm_setup()

metze

7 years agos3:torture: replace shm_setup() with anonymous_shared_allocate()
Stefan Metzmacher [Wed, 25 Jul 2012 06:33:31 +0000 (08:33 +0200)]
s3:torture: replace shm_setup() with anonymous_shared_allocate()

metze

7 years agos3:smb2_server: simplify the talloc_pool handling for smbd_smb2_request
Stefan Metzmacher [Mon, 23 Jul 2012 16:22:59 +0000 (18:22 +0200)]
s3:smb2_server: simplify the talloc_pool handling for smbd_smb2_request

metze

7 years agoFix bug 9065: source3/registry/regfio.c: bad call to memcpy
David Binderman [Tue, 24 Jul 2012 22:46:10 +0000 (15:46 -0700)]
Fix bug 9065: source3/registry/regfio.c: bad call to memcpy
Signed-off-by: Jeremy Allison <jra@samba.org>
Autobuild-User(master): Jeremy Allison <jra@samba.org>
Autobuild-Date(master): Wed Jul 25 02:42:32 CEST 2012 on sn-devel-104

7 years agos3:torture/test_smb2: make a copy of smbXcli_tcon
Stefan Metzmacher [Tue, 24 Jul 2012 18:11:25 +0000 (20:11 +0200)]
s3:torture/test_smb2: make a copy of smbXcli_tcon

metze

Autobuild-User(master): Stefan Metzmacher <metze@samba.org>
Autobuild-Date(master): Wed Jul 25 00:10:47 CEST 2012 on sn-devel-104

7 years agolibcli/smb: pass smbXcli_tcon to smb2cli_ioctl*()
Stefan Metzmacher [Mon, 23 Jul 2012 20:32:49 +0000 (22:32 +0200)]
libcli/smb: pass smbXcli_tcon to smb2cli_ioctl*()

metze

7 years agolibcli/smb: pass smbXcli_tcon to smb2cli_query_directory*()
Stefan Metzmacher [Mon, 23 Jul 2012 20:32:49 +0000 (22:32 +0200)]
libcli/smb: pass smbXcli_tcon to smb2cli_query_directory*()

metze

7 years agolibcli/smb: pass smbXcli_tcon to smb2cli_query_info*()
Stefan Metzmacher [Mon, 23 Jul 2012 20:32:49 +0000 (22:32 +0200)]
libcli/smb: pass smbXcli_tcon to smb2cli_query_info*()

metze

7 years agolibcli/smb: pass smbXcli_tcon to smb2cli_set_info*()
Stefan Metzmacher [Mon, 23 Jul 2012 20:32:49 +0000 (22:32 +0200)]
libcli/smb: pass smbXcli_tcon to smb2cli_set_info*()

metze

7 years agolibcli/smb: pass smbXcli_tcon to smb2cli_flush*()
Stefan Metzmacher [Mon, 23 Jul 2012 20:32:49 +0000 (22:32 +0200)]
libcli/smb: pass smbXcli_tcon to smb2cli_flush*()

metze

7 years agolibcli/smb: pass smbXcli_tcon to smb2cli_write*()
Stefan Metzmacher [Mon, 23 Jul 2012 20:32:49 +0000 (22:32 +0200)]
libcli/smb: pass smbXcli_tcon to smb2cli_write*()

metze

7 years agolibcli/smb: pass smbXcli_tcon to smb2cli_read*()
Stefan Metzmacher [Mon, 23 Jul 2012 20:32:49 +0000 (22:32 +0200)]
libcli/smb: pass smbXcli_tcon to smb2cli_read*()

metze

7 years agolibcli/smb: pass smbXcli_tcon to smb2cli_close*()
Stefan Metzmacher [Mon, 23 Jul 2012 20:32:49 +0000 (22:32 +0200)]
libcli/smb: pass smbXcli_tcon to smb2cli_close*()

metze

7 years agolibcli/smb: pass smbXcli_tcon to smb2cli_create*()
Stefan Metzmacher [Mon, 23 Jul 2012 20:32:49 +0000 (22:32 +0200)]
libcli/smb: pass smbXcli_tcon to smb2cli_create*()

metze

7 years agos3:libsmb: setup a smbXcli_tcon for SMB2
Stefan Metzmacher [Mon, 23 Jul 2012 20:22:02 +0000 (22:22 +0200)]
s3:libsmb: setup a smbXcli_tcon for SMB2

metze

7 years agos4:libcli/smb2: setup a smbXcli_tcon for each smb2_tree
Stefan Metzmacher [Mon, 23 Jul 2012 20:11:19 +0000 (22:11 +0200)]
s4:libcli/smb2: setup a smbXcli_tcon for each smb2_tree

metze

7 years agolibcli/smb: pass down smbXcli_tcon to smb1cli_req_create/send() and smb1cli_trans*
Stefan Metzmacher [Mon, 23 Jul 2012 19:34:58 +0000 (21:34 +0200)]
libcli/smb: pass down smbXcli_tcon to smb1cli_req_create/send() and smb1cli_trans*

metze

Autobuild-User(master): Stefan Metzmacher <metze@samba.org>
Autobuild-Date(master): Tue Jul 24 21:22:44 CEST 2012 on sn-devel-104

7 years agos4:libcli/raw: setup a smbXcli_tcon for each smbcli_tree
Stefan Metzmacher [Mon, 23 Jul 2012 18:57:23 +0000 (20:57 +0200)]
s4:libcli/raw: setup a smbXcli_tcon for each smbcli_tree

metze

7 years agos3:libsmb: use a smbXcli_tcon instead of uint16_t cli_state->smb1.tid
Stefan Metzmacher [Mon, 23 Jul 2012 18:27:58 +0000 (20:27 +0200)]
s3:libsmb: use a smbXcli_tcon instead of uint16_t cli_state->smb1.tid

metze

7 years agolibcli/smb: add smbXcli_tcon structure
Luk Claes [Sat, 2 Jun 2012 16:03:20 +0000 (18:03 +0200)]
libcli/smb: add smbXcli_tcon structure

Signed-off-by: Luk Claes <luk@debian.org>
Signed-off-by: Stefan Metzmacher <metze@samba.org>
7 years agos3:libsmb: make use of cli_state_[g|s]et_tid()
Stefan Metzmacher [Mon, 23 Jul 2012 18:38:33 +0000 (20:38 +0200)]
s3:libsmb: make use of cli_state_[g|s]et_tid()

metze

7 years agos4:libcli/raw: parse extended SMBtconX responses
Stefan Metzmacher [Tue, 24 Jul 2012 06:56:02 +0000 (08:56 +0200)]
s4:libcli/raw: parse extended SMBtconX responses

metze

7 years agos4:libcli/raw: fix SMBtconX response parsing
Stefan Metzmacher [Tue, 24 Jul 2012 06:54:02 +0000 (08:54 +0200)]
s4:libcli/raw: fix SMBtconX response parsing

metze

7 years agowaf: Update to newer upstream snapshot.
Andrew Bartlett [Tue, 24 Jul 2012 11:40:35 +0000 (21:40 +1000)]
waf: Update to newer upstream snapshot.

Autobuild-User(master): Andrew Bartlett <abartlet@samba.org>
Autobuild-Date(master): Tue Jul 24 16:42:44 CEST 2012 on sn-devel-104

7 years agos3-pdb: remove unused variables.
Günther Deschner [Tue, 24 Jul 2012 08:48:34 +0000 (10:48 +0200)]
s3-pdb: remove unused variables.

Guenther

Autobuild-User(master): Günther Deschner <gd@samba.org>
Autobuild-Date(master): Tue Jul 24 14:49:42 CEST 2012 on sn-devel-104

7 years agolib/param: Merge VFS and MSDFS parameters from source3 into lib/param
Andrew Bartlett [Mon, 23 Jul 2012 23:42:03 +0000 (09:42 +1000)]
lib/param: Merge VFS and MSDFS parameters from source3 into lib/param

This will make the merge of the whole table smoother.

Based on an earlier patch
Pair-Programmed-With: Andrew Tridgell <tridge@samba.org>

Andrew Bartlett

Autobuild-User(master): Andrew Bartlett <abartlet@samba.org>
Autobuild-Date(master): Tue Jul 24 12:53:17 CEST 2012 on sn-devel-104

7 years agolib/param: Merge Winbind parameters from source3 into lib/param
Andrew Bartlett [Mon, 23 Jul 2012 23:06:43 +0000 (09:06 +1000)]
lib/param: Merge Winbind parameters from source3 into lib/param

This will make the merge of the whole table smoother.

Based on an earlier patch
Pair-Programmed-With: Andrew Tridgell <tridge@samba.org>

Andrew Bartlett

7 years agolib/param: Merge DNS parameters with source3 param
Andrew Bartlett [Mon, 23 Jul 2012 23:04:35 +0000 (09:04 +1000)]
lib/param: Merge DNS parameters with source3 param

This will make the merge of the whole table smoother.

Based on an earlier patch
Pair-Programmed-With: Andrew Tridgell <tridge@samba.org>

Andrew Bartlett

7 years agolib/param: Rearrange AD DC options to make a merge with the source3 table easier
Andrew Bartlett [Mon, 23 Jul 2012 22:59:05 +0000 (08:59 +1000)]
lib/param: Rearrange AD DC options to make a merge with the source3 table easier

Andrew Bartlett

7 years agolib/param: Re-arrange TLS parameters into their own section
Andrew Bartlett [Mon, 23 Jul 2012 03:51:18 +0000 (13:51 +1000)]
lib/param: Re-arrange TLS parameters into their own section

This makes the merge with the source3 table less disruptive

Based on an earlier patch:
Pair-Programmed-With: Andrew Tridgell <tridge@samba.org>

Andrew Bartlett

7 years agolib/param: Add handler overrides
Andrew Bartlett [Mon, 23 Jul 2012 23:48:32 +0000 (09:48 +1000)]
lib/param: Add handler overrides

These #defines allow us to merge the parameter table without providing the
handler functions quite yet.  This helps us do this task in stages.

Andrew Bartlett

7 years agolib/param: Merge handling of security/domain master/domain logons/server role
Andrew Bartlett [Mon, 23 Jul 2012 03:32:31 +0000 (13:32 +1000)]
lib/param: Merge handling of security/domain master/domain logons/server role

This ensures that the same input parameters always gives the same
output values in both loadparm systems.

Andrew Bartlett

7 years agolib/param: Make lp_usershare_max_shares() a common parameter
Andrew Bartlett [Mon, 23 Jul 2012 02:47:41 +0000 (12:47 +1000)]
lib/param: Make lp_usershare_max_shares() a common parameter

Pair-Programmed-With: Andrew Tridgell <tridge@samba.org>

7 years agolib/param: Move all enum declarations to lib/param
Andrew Bartlett [Mon, 23 Jul 2012 02:47:01 +0000 (12:47 +1000)]
lib/param: Move all enum declarations to lib/param

This is in preperation for the parameter table being made common.

Andrew Bartlett

Pair-Programmed-With: Andrew Tridgell <tridge@samba.org>

7 years agolib/param: Rename param_enums.c to param_table.c
Andrew Bartlett [Mon, 23 Jul 2012 02:35:02 +0000 (12:35 +1000)]
lib/param: Rename param_enums.c to param_table.c

This is in preperation for the parameter table being merged into this file.

Andrew Bartlett

Autobuild-User(master): Andrew Bartlett <abartlet@samba.org>
Autobuild-Date(master): Tue Jul 24 09:16:44 CEST 2012 on sn-devel-104

7 years agolib/param: Remove 'case insensitive filesystem'
Andrew Bartlett [Mon, 23 Jul 2012 02:24:42 +0000 (12:24 +1000)]
lib/param: Remove 'case insensitive filesystem'

We use the slightly confusing 'case sensitive = yes' option for the same behaviour.

This avoids adding even more confusing documentation for the ntvfs-only option.

Andrew Bartlett

7 years agolib/param: Remove "ntptr providor" and hard-code in s4 spoolss server
Andrew Bartlett [Mon, 23 Jul 2012 02:01:41 +0000 (12:01 +1000)]
lib/param: Remove "ntptr providor" and hard-code in s4 spoolss server

This stub codebase does not justify a merged parameter.

Andrew Bartlett

Pair-Programmed-With: Andrew Tridgell <tridge@samba.org>

7 years agos3-param: Merge parameter varaibles with lib/param
Andrew Bartlett [Mon, 23 Jul 2012 01:43:54 +0000 (11:43 +1000)]
s3-param: Merge parameter varaibles with lib/param

Baded on an earlier patch:
Pair-Programmed-With: Andrew Tridgell <tridge@samba.org>

7 years agos3-param: fix indent on cups encrypt
Andrew Bartlett [Mon, 23 Jul 2012 01:42:40 +0000 (11:42 +1000)]
s3-param: fix indent on cups encrypt

7 years agos3-param: Merge a number of s4 parameters from lib/param to make this table common
Andrew Bartlett [Mon, 23 Jul 2012 01:40:21 +0000 (11:40 +1000)]
s3-param: Merge a number of s4 parameters from lib/param to make this table common

This is not finished yet, but this is a downpayment on the final task.

Based on an work that that was
Pair-Programmed-With: Andrew Tridgell <tridge@samba.org>

Andrew Bartlett

7 years agoparam: Make internal handler for 'server role' common
Andrew Bartlett [Mon, 23 Jul 2012 01:38:25 +0000 (11:38 +1000)]
param: Make internal handler for 'server role' common

7 years agoparam: Make the 'unicode' parameter common
Andrew Bartlett [Sun, 22 Jul 2012 23:14:39 +0000 (09:14 +1000)]
param: Make the 'unicode' parameter common

This parameter is most useful for interop testing, rather than production use.

Andrew Bartlett

7 years agoRemove unused variable.
Jeremy Allison [Mon, 23 Jul 2012 20:35:49 +0000 (13:35 -0700)]
Remove unused variable.

Autobuild-User(master): Jeremy Allison <jra@samba.org>
Autobuild-Date(master): Tue Jul 24 02:01:00 CEST 2012 on sn-devel-104

7 years agoFix compiler warning message.
Jeremy Allison [Mon, 23 Jul 2012 20:34:28 +0000 (13:34 -0700)]
Fix compiler warning message.

7 years agoFix incorrect use of server as a talloc context.
Jeremy Allison [Mon, 23 Jul 2012 20:32:34 +0000 (13:32 -0700)]
Fix incorrect use of server as a talloc context.

7 years agoFix unused variable.
Jeremy Allison [Mon, 23 Jul 2012 20:30:46 +0000 (13:30 -0700)]
Fix unused variable.

7 years agoFix compiler warning.
Jeremy Allison [Mon, 23 Jul 2012 20:30:25 +0000 (13:30 -0700)]
Fix compiler warning.

7 years agoFix debug print warning message.
Jeremy Allison [Mon, 23 Jul 2012 20:21:25 +0000 (13:21 -0700)]
Fix debug print warning message.

7 years agobuild: Add -Werror=address to the developer build
Andrew Bartlett [Mon, 23 Jul 2012 09:25:11 +0000 (19:25 +1000)]
build: Add -Werror=address to the developer build

Signed-off-by: Jeremy Allison <jra@samba.org>
7 years agolibcli/smb: pass down smbXcli_session to smb1cli_req_create/send() and smb1cli_trans*
Stefan Metzmacher [Mon, 23 Jul 2012 18:15:21 +0000 (20:15 +0200)]
libcli/smb: pass down smbXcli_session to smb1cli_req_create/send() and smb1cli_trans*

metze

Autobuild-User(master): Stefan Metzmacher <metze@samba.org>
Autobuild-Date(master): Tue Jul 24 00:08:58 CEST 2012 on sn-devel-104

7 years agos4:libcli/raw: setup a smbXcli_session for each smbcli_session
Stefan Metzmacher [Mon, 23 Jul 2012 17:47:05 +0000 (19:47 +0200)]
s4:libcli/raw: setup a smbXcli_session for each smbcli_session

metze

7 years agos3:libsmb: use cli_state_{g,s}et_uid instead of smb1.uid directly
Luk Claes [Sat, 2 Jun 2012 10:45:40 +0000 (12:45 +0200)]
s3:libsmb: use cli_state_{g,s}et_uid instead of smb1.uid directly

Signed-off-by: Luk Claes <luk@debian.org>
Signed-off-by: Stefan Metzmacher <metze@samba.org>
7 years agolibcli/smb: introduce smb1.session for uid use
Luk Claes [Sat, 2 Jun 2012 10:49:22 +0000 (12:49 +0200)]
libcli/smb: introduce smb1.session for uid use

Signed-off-by: Luk Claes <luk@debian.org>
Signed-off-by: Stefan Metzmacher <metze@samba.org>
7 years agos3-winbind: Fix bug #9052 resolving our own "Domain Local" groups.
Andreas Schneider [Sat, 21 Jul 2012 00:12:09 +0000 (17:12 -0700)]
s3-winbind: Fix bug #9052 resolving our own "Domain Local" groups.

We don't resolve our own "Domain Local" groups since bug #7843 has been
fixed. So we need to add the add resource groups to the sid list too.

Before bug #7843 the "Domain Local" groups were added with a
lookupuseraliases call, but this isn't done anymore for our domain
so we need to resolve resource groups here.

When to use Resource Groups:
http://technet.microsoft.com/en-us/library/cc753670%28v=WS.10%29.aspx

Signed-off-by: Jeremy Allison <jra@samba.org>
Autobuild-User(master): Jeremy Allison <jra@samba.org>
Autobuild-Date(master): Mon Jul 23 22:12:30 CEST 2012 on sn-devel-104

7 years agoFix problem found by Andrew Bartlett - correctly check encrypted flag.
Jeremy Allison [Mon, 23 Jul 2012 17:20:26 +0000 (10:20 -0700)]
Fix problem found by Andrew Bartlett - correctly check encrypted flag.

7 years agolibcli/smb: set should_encrypt = true if we got SMB2_SESSION_FLAG_ENCRYPT_DATA
Stefan Metzmacher [Mon, 23 Jul 2012 09:38:31 +0000 (11:38 +0200)]
libcli/smb: set should_encrypt = true if we got SMB2_SESSION_FLAG_ENCRYPT_DATA

metze

Autobuild-User(master): Stefan Metzmacher <metze@samba.org>
Autobuild-Date(master): Mon Jul 23 20:14:07 CEST 2012 on sn-devel-104

7 years agolibcli/smb: encrypt SMB2 traffic if nedded/desired.
Stefan Metzmacher [Mon, 23 Jul 2012 08:14:53 +0000 (10:14 +0200)]
libcli/smb: encrypt SMB2 traffic if nedded/desired.

metze

7 years agolibcli/smb: increment nbt_len, when we have the fully created the SMB2 PDU
Stefan Metzmacher [Mon, 23 Jul 2012 08:07:19 +0000 (10:07 +0200)]
libcli/smb: increment nbt_len, when we have the fully created the SMB2 PDU

metze

7 years agolibcli/smb: maintain smb2.should_sign on smbXcli_req_state
Stefan Metzmacher [Mon, 23 Jul 2012 08:00:50 +0000 (10:00 +0200)]
libcli/smb: maintain smb2.should_sign on smbXcli_req_state

metze

7 years agolibcli/smb: make use of SMB2_HDR_BODY as header size
Stefan Metzmacher [Mon, 23 Jul 2012 07:44:06 +0000 (09:44 +0200)]
libcli/smb: make use of SMB2_HDR_BODY as header size

metze

7 years agolibcli/smb: parse the SMB2_TRANSFORM header and decrypt the SMB2 pdu
Stefan Metzmacher [Mon, 23 Jul 2012 07:16:05 +0000 (09:16 +0200)]
libcli/smb: parse the SMB2_TRANSFORM header and decrypt the SMB2 pdu

metze

7 years agolibcli/smb: create 4 iovecs per request in smb2cli_inbuf_parse_compound()
Stefan Metzmacher [Mon, 23 Jul 2012 06:11:59 +0000 (08:11 +0200)]
libcli/smb: create 4 iovecs per request in smb2cli_inbuf_parse_compound()

The first one might hold the SMB2_TRANSFORM Header later.

metze

7 years agolibcli/smb: prepare [en|de]cryption_key for SMB3
Stefan Metzmacher [Fri, 20 Jul 2012 07:30:05 +0000 (09:30 +0200)]
libcli/smb: prepare [en|de]cryption_key for SMB3

metze

7 years agolibcli/smb: copy the application_key in smb2cli_session_create_channel()
Stefan Metzmacher [Fri, 20 Jul 2012 07:22:17 +0000 (09:22 +0200)]
libcli/smb: copy the application_key in smb2cli_session_create_channel()

metze

7 years agolibcli/smb: check the buffer length in smbXcli_negprot_dispatch_incoming()
Stefan Metzmacher [Fri, 20 Jul 2012 07:20:43 +0000 (09:20 +0200)]
libcli/smb: check the buffer length in smbXcli_negprot_dispatch_incoming()

metze

7 years agolibcli/smb: only pass the smb2 buffer to smb2cli_inbuf_parse_compound()
Stefan Metzmacher [Fri, 20 Jul 2012 07:19:24 +0000 (09:19 +0200)]
libcli/smb: only pass the smb2 buffer to smb2cli_inbuf_parse_compound()

We should hide the transport as much as possible.

metze

7 years agolibcli/smb: add smb2_signing_[en|e]crypt_pdu()
Stefan Metzmacher [Fri, 20 Jul 2012 07:16:08 +0000 (09:16 +0200)]
libcli/smb: add smb2_signing_[en|e]crypt_pdu()

metze

7 years agolibcli/smb: construct the signing_key before forming the message
Stefan Metzmacher [Thu, 19 Jul 2012 09:16:16 +0000 (11:16 +0200)]
libcli/smb: construct the signing_key before forming the message

metze

7 years agolib/crypto: add aes_ccm_128
Stefan Metzmacher [Fri, 20 Jul 2012 05:37:48 +0000 (07:37 +0200)]
lib/crypto: add aes_ccm_128

metze

7 years agolibcli/smb: add SMB2_SESSION_FLAG_ENCRYPT_DATA
Stefan Metzmacher [Mon, 23 Jul 2012 08:46:21 +0000 (10:46 +0200)]
libcli/smb: add SMB2_SESSION_FLAG_ENCRYPT_DATA

metze

7 years agolibcli/smb: add SMB2_TRANSFORM macros
Stefan Metzmacher [Fri, 20 Jul 2012 07:11:30 +0000 (09:11 +0200)]
libcli/smb: add SMB2_TRANSFORM macros

metze

7 years agos3:test_smb2: copy the session_channel from the primary channel.
Stefan Metzmacher [Mon, 23 Jul 2012 11:34:05 +0000 (13:34 +0200)]
s3:test_smb2: copy the session_channel from the primary channel.

metze

7 years agos3:smb2_tcon: reject access to shares mark as "smb encrypt = required"
Stefan Metzmacher [Mon, 23 Jul 2012 11:47:24 +0000 (13:47 +0200)]
s3:smb2_tcon: reject access to shares mark as "smb encrypt = required"

We do not support SMB2 transport encryption yet.

metze

7 years agos3-winbind: Fix idmap initialization debug message.
Guenther Deschner [Mon, 23 Jul 2012 12:34:11 +0000 (14:34 +0200)]
s3-winbind: Fix idmap initialization debug message.

Signed-off-by: Andreas Schneider <asn@samba.org>
Autobuild-User(master): Andreas Schneider <asn@cryptomilk.org>
Autobuild-Date(master): Mon Jul 23 18:19:00 CEST 2012 on sn-devel-104

7 years agos3:smbd: if a fsp has fsp->deferred_close, clients shouldn't be able to use it
Stefan Metzmacher [Mon, 23 Jul 2012 10:07:42 +0000 (12:07 +0200)]
s3:smbd: if a fsp has fsp->deferred_close, clients shouldn't be able to use it

metze

Autobuild-User(master): Stefan Metzmacher <metze@samba.org>
Autobuild-Date(master): Mon Jul 23 16:22:03 CEST 2012 on sn-devel-104

7 years agos4-classicupgrade: Add unix attributes during upgrade
Geza Gemes [Sat, 21 Jul 2012 11:33:33 +0000 (13:33 +0200)]
s4-classicupgrade: Add unix attributes during upgrade

Signed-off-by: Andrew Bartlett <abartlet@samba.org>
Autobuild-User(master): Andrew Bartlett <abartlet@samba.org>
Autobuild-Date(master): Sun Jul 22 13:20:20 CEST 2012 on sn-devel-104

7 years agos4 rfc2307 gids mapping fix
Sergey Urushkin [Fri, 20 Jul 2012 09:16:08 +0000 (13:16 +0400)]
s4 rfc2307 gids mapping fix

Signed-off-by: Andrew Bartlett <abartlet@samba.org>
7 years agoUse ippGet/ippSet (accessors) for IPP API.
Jiri Popelka [Thu, 19 Jul 2012 17:17:28 +0000 (19:17 +0200)]
Use ippGet/ippSet (accessors) for IPP API.

CUPS 1.6 makes various structures private and
introduces these ippGet and ippSet functions
for all of the fields in these structures.
http://www.cups.org/str.php?L3928

We define our own accessors when CUPS < 1.6.

Signed-off-by: Jeremy Allison <jra@samba.org>
Autobuild-User(master): Jeremy Allison <jra@samba.org>
Autobuild-Date(master): Fri Jul 20 22:35:55 CEST 2012 on sn-devel-104

7 years agoRemove source3/lib/pidfile.c
Jeremy Allison [Thu, 19 Jul 2012 23:41:07 +0000 (16:41 -0700)]
Remove source3/lib/pidfile.c

Autobuild-User(master): Jeremy Allison <jra@samba.org>
Autobuild-Date(master): Fri Jul 20 03:57:20 CEST 2012 on sn-devel-104

7 years agoMove everything to use the common pidfile functions.
Jeremy Allison [Thu, 19 Jul 2012 23:36:18 +0000 (16:36 -0700)]
Move everything to use the common pidfile functions.

The extra code in source3/lib/pidfile.c is no longer needed.

7 years agoFix the configure build - add lib/util/pidfile.o into UTIL_OBJ.
Jeremy Allison [Thu, 19 Jul 2012 23:21:15 +0000 (16:21 -0700)]
Fix the configure build - add lib/util/pidfile.o into UTIL_OBJ.

7 years agoMake the s3 pidfile use the common code inside lib/util/pidfile.c
Jeremy Allison [Thu, 19 Jul 2012 23:08:49 +0000 (16:08 -0700)]
Make the s3 pidfile use the common code inside lib/util/pidfile.c

7 years agoAdd debugs to functions. Add pidfile_unlink().
Jeremy Allison [Thu, 19 Jul 2012 23:08:16 +0000 (16:08 -0700)]
Add debugs to functions. Add pidfile_unlink().

7 years agoMove source4/smbd/pidfile into lib/util in preparation for making it in common.
Jeremy Allison [Thu, 19 Jul 2012 22:41:52 +0000 (15:41 -0700)]
Move source4/smbd/pidfile into lib/util in preparation for making it in common.

7 years agos3-param: Remove special case for lp_ctdbd_socket(), set CTDB_PATH as default
Andrew Bartlett [Thu, 19 Jul 2012 03:36:37 +0000 (13:36 +1000)]
s3-param: Remove special case for lp_ctdbd_socket(), set CTDB_PATH as default

This changes the default based on the #ifdef rather than an override
on a parameter value of ""

The less special override functions we have the easier it is to merge
the loadparm tables.

Andrew Bartlett

Pair-Programmed-With: Andrew Tridgell <tridge@samba.org>

Autobuild-User(master): Andrew Bartlett <abartlet@samba.org>
Autobuild-Date(master): Thu Jul 19 09:56:01 CEST 2012 on sn-devel-104

7 years agolib/param: bring lp_smb_ports() into common by making it a list everywhere
Andrew Bartlett [Wed, 18 Jul 2012 01:51:00 +0000 (11:51 +1000)]
lib/param: bring lp_smb_ports() into common by making it a list everywhere

7 years agos3-param: Make lp_name_resolve_order() return a list
Andrew Bartlett [Wed, 18 Jul 2012 05:19:15 +0000 (15:19 +1000)]
s3-param: Make lp_name_resolve_order() return a list

This allows this parameter, one of the few with differing declarations
between the loadparm systems, to be brought into common.

Andrew Bartlett

Pair-Programmed-With: Andrew Tridgell <tridge@samba.org>