Stefan Metzmacher
59b9dfa0cb
s3:smb2_server: do one central session check if the operation requires it
...
metze
2012-08-07 11:16:37 +02:00
Stefan Metzmacher
aba6df9f55
s3:smb2_server: add and use smbd_smb2_call()
...
metze
2012-08-07 11:16:37 +02:00
Stefan Metzmacher
e01333242f
s3:smb2_server: add .as_root to smbd_smb2_dispatch_table
...
metze
2012-08-07 11:16:36 +02:00
Stefan Metzmacher
f69ed57d0f
s3:smb2_server: add .need_tcon to smbd_smb2_dispatch_table
...
metze
2012-08-07 11:16:36 +02:00
Stefan Metzmacher
46f7a60e78
s3:smb2_server: add .need_session to smbd_smb2_dispatch_table
...
metze
2012-08-07 11:16:36 +02:00
Stefan Metzmacher
357110c10b
s3:smb2_server: introduce a smbd_smb2_dispatch_table (for now just with names)
...
metze
2012-08-07 11:16:36 +02:00
Stefan Metzmacher
5ac4d3d274
s3:smb2_server: move 'conn' to main block of smbd_smb2_request_dispatch()
...
metze
2012-08-07 11:16:36 +02:00
Andrew Bartlett
f06c216d0b
s3-pysmbd: Try opening as a file, then as a directory
...
Autobuild-User(master): Andrew Bartlett <abartlet@samba.org>
Autobuild-Date(master): Tue Aug 7 08:59:21 CEST 2012 on sn-devel-104
2012-08-07 08:59:21 +02:00
Andrew Bartlett
e571d5c03e
s3-pysmbd: Use talloc_zero()
...
This avoids operating on uninitialised data
Andrew Bartlett
2012-08-07 14:57:33 +10:00
Andrew Bartlett
e658421fe1
s3-passdb: Simplify idmap wrapper in pdb_samba4
...
The source3 consumers of this API are now quite happy to be given an answer
of ID_TYPE_BOTH, so we do not need this extra code to try and force the
answer to UID or GID.
Andrew Bartlett
2012-08-07 14:57:33 +10:00
Andrew Bartlett
227d490477
s3-pysmbd: Add talloc_stackframe() to smbd_set_simple_acl wrapper
2012-08-07 14:57:07 +10:00
Stefan Metzmacher
721096b1ad
s3:smb2_server: make use of smbd_smb2_inbuf_parse_compound() in smbd_smb2_request_read*()
...
This changes the way we read SMB2 traffic from the socket,
now as create just one large buffer for the whole NBT payload
and then split it into iovec elements in smbd_smb2_inbuf_parse_compound()
metze
Autobuild-User(master): Stefan Metzmacher <metze@samba.org>
Autobuild-Date(master): Mon Aug 6 21:54:35 CEST 2012 on sn-devel-104
2012-08-06 21:54:35 +02:00
Stefan Metzmacher
fbd663c143
s3:smb2_server: make use of smbd_smb2_inbuf_parse_compound() in smbd_smb2_request_create()
...
metze
2012-08-06 20:02:32 +02:00
Stefan Metzmacher
9e9d784def
s3:smb2_server: remove const from smbd_smb2_first_negprot()
...
metze
2012-08-06 20:02:32 +02:00
Stefan Metzmacher
c1b3454259
s3:smb2_server: add smbd_smb2_inbuf_parse_compound()
...
metze
2012-08-06 20:02:32 +02:00
Christian Ambach
18c152f8aa
lib/param: move enum dns_update_settings to lib/param
2012-08-06 18:07:52 +02:00
Andrew Bartlett
0514a84f7e
Rework recursive waf build to be a selftest-enabled not a developer build
...
This essentially reverts commit a943a9ba2f
.
I've fixed this by making lib/param/parm_table.c honour --enable-selftest.
Andrew Bartlett
2012-08-06 20:51:56 +10:00
Andrew Bartlett
dd8c0e59a3
build: Remove duplicate declaration of --enable-selftest
2012-08-06 20:51:55 +10:00
Andrew Bartlett
49b2720317
lib/param: Also enable vlp when --enable-selftest is specified
2012-08-06 20:51:55 +10:00
Stefan Metzmacher
1c7bd2b71c
s3:smbd: remove unused variable in sesssetup.c
...
metze
Autobuild-User(master): Stefan Metzmacher <metze@samba.org>
Autobuild-Date(master): Sun Aug 5 23:09:06 CEST 2012 on sn-devel-104
2012-08-05 23:09:06 +02:00
Stefan Metzmacher
4384b1e73b
s3:smb2_server: make use of SMBD_SMB2_* macros
...
metze
2012-08-05 20:55:41 +02:00
Stefan Metzmacher
47c67f2eac
s3:smb2_ioctl: make use of SMBD_SMB2_* macros
...
metze
2012-08-05 20:55:40 +02:00
Stefan Metzmacher
e281b9f798
s3:smb2_lock: make use of SMBD_SMB2_* macros
...
metze
2012-08-05 20:55:40 +02:00
Stefan Metzmacher
e67d07f639
s3:smb2_setinfo: make use of SMBD_SMB2_* macros
...
metze
2012-08-05 20:55:40 +02:00
Stefan Metzmacher
9c58a0a870
s3:smb2_getinfo: make use of SMBD_SMB2_* macros
...
metze
2012-08-05 20:55:40 +02:00
Stefan Metzmacher
e9a21e5c8b
s3:smb2_negprot: make use of SMBD_SMB2_* macros
...
metze
2012-08-05 20:55:39 +02:00
Stefan Metzmacher
f28b2ac65a
s3:smb2_write: make use of SMBD_SMB2_* macros
...
metze
2012-08-05 20:55:38 +02:00
Stefan Metzmacher
f08e478d2f
s3:smb2_tcon: make use of SMBD_SMB2_* macros
...
metze
2012-08-05 20:55:37 +02:00
Stefan Metzmacher
6e9a65ded3
s3:smb2_create: make use of SMBD_SMB2_* macros
...
metze
2012-08-05 20:55:37 +02:00
Stefan Metzmacher
926379ae79
s3:smb2_find: make use of SMBD_SMB2_* macros
...
metze
2012-08-05 20:55:36 +02:00
Stefan Metzmacher
559742f45f
s3:smb2_sesssetup: make use of SMBD_SMB2_* macros
...
metze
2012-08-05 20:55:36 +02:00
Stefan Metzmacher
048c8d3db4
s3:smb2_glue: make use of SMBD_SMB2_IN_HDR_PTR()
...
metze
2012-08-05 20:55:36 +02:00
Stefan Metzmacher
8cf817d7fd
s3:smb2_read: make use of SMBD_SMB2_IN_BODY_PTR()
...
metze
2012-08-05 20:55:35 +02:00
Stefan Metzmacher
121dbd6210
s3:smb2_notify: make use of SMBD_SMB2_IN_*_PTR()
...
metze
2012-08-05 20:55:35 +02:00
Stefan Metzmacher
88a34026f5
s3:smb2_flush: make use of SMBD_SMB2_IN_BODY_PTR()
...
metze
2012-08-05 20:55:35 +02:00
Stefan Metzmacher
52805c4169
s3:smb2_close: make use of SMBD_SMB2_IN_BODY_PTR()
...
metze
2012-08-05 20:55:34 +02:00
Stefan Metzmacher
21742c3693
s3:smb2_break: make use of SMBD_SMB2_IN_BODY_PTR()
...
metze
2012-08-05 20:55:34 +02:00
Stefan Metzmacher
7ee54cd9c4
s3:smbd: add helper macros to access smb2req->{in,out}.vector[]
...
For SMB3 encryption we need to change the vector layout
and we better hide this behind some central macros.
metze
2012-08-05 20:55:34 +02:00
Stefan Metzmacher
7327310754
s3:smb2_server: use 'i' instead of '1' as vector index in smbd_smb2_request_pending_timer()
...
If we reach this code i is currently always 1, but it's easier to unstand this
way.
metze
Autobuild-User(master): Stefan Metzmacher <metze@samba.org>
Autobuild-Date(master): Sun Aug 5 20:00:26 CEST 2012 on sn-devel-104
2012-08-05 20:00:26 +02:00
Stefan Metzmacher
1a0c40f537
s3:smb2_lock: remove unused in_smbpid
...
metze
2012-08-05 16:39:31 +02:00
Stefan Metzmacher
96fa47f56e
s3:smb2_write: remove unused in_smbpid
...
metze
2012-08-05 16:39:31 +02:00
Stefan Metzmacher
056070f395
s3:smb2_read: remove unused in_smbpid
...
metze
2012-08-05 16:39:30 +02:00
Stefan Metzmacher
401860cab6
s3:smbd: add support for SMB_EXTENDED_SIGNATURES in SMBtconX
...
metze
Autobuild-User(master): Stefan Metzmacher <metze@samba.org>
Autobuild-Date(master): Sat Aug 4 14:28:04 CEST 2012 on sn-devel-104
2012-08-04 14:28:04 +02:00
Stefan Metzmacher
ff75fd9eda
s3:smbd: setup the application session key with the first tcon on a session
...
Look for Server.Session.SessionKeyState in [MS-SMB].
The first SMBtconX sets the state to available, which makes it possible
to protect the session key at that stage, if client and server
support TREE_CONNECT_ANDX_EXTENDED_SIGNATURE.
metze
2012-08-04 12:33:06 +02:00
Stefan Metzmacher
3a0db4d865
s3:rpc_server/wkssvc: make usage of session_extract_session_key()
...
This makes sure we return NO_USER_SESSION_KEY if there's no session key.
metze
2012-08-04 12:33:06 +02:00
Stefan Metzmacher
396f3177ca
s3:rpc_server/netlogon: make usage of session_extract_session_key()
...
This makes sure we return NO_USER_SESSION_KEY if there's no session key.
metze
2012-08-04 12:33:06 +02:00
Stefan Metzmacher
49d0432efd
s3:smbd: setup session->global->signing_/application_key during SPNEGO SMB1 session setups
...
metze
Autobuild-User(master): Stefan Metzmacher <metze@samba.org>
Autobuild-Date(master): Sat Aug 4 11:09:42 CEST 2012 on sn-devel-104
2012-08-04 11:09:42 +02:00
Stefan Metzmacher
2265e4633a
s3:smbd: setup session->global->signing_/application_key during old SMB1 session setups
...
metze
2012-08-04 09:10:23 +02:00
Stefan Metzmacher
3d63e4da17
s3:smbd: keep the "application session key" during SMB1 reauth
...
metze
2012-08-04 09:10:22 +02:00
Stefan Metzmacher
c32120b4e9
s3:libsmb: add EXTENDED_SIGNATURE support in cli_tcon_andx*()
...
metze
2012-08-04 09:10:22 +02:00
Stefan Metzmacher
b1a0fda73d
libcli/smb: pass hdr/len to smb_signing_check/sign_pdu() and skip the nbt header
...
metze
2012-08-04 09:10:21 +02:00
Stefan Metzmacher
b1c5efbfea
s3:smbd: skip nbt header in srv_check_sign_mac()
...
metze
2012-08-04 09:10:20 +02:00
Christian Ambach
764f2f99e0
s3-ctdb: return proper exit code
...
do not loose the result from ctdbd_messaging_send_blob()
Autobuild-User(master): Christian Ambach <ambi@samba.org>
Autobuild-Date(master): Fri Aug 3 14:49:01 CEST 2012 on sn-devel-104
2012-08-03 14:49:01 +02:00
Christian Ambach
0a45e9c4d2
s3-ctdb: adjust a loglevel
2012-08-03 12:53:49 +02:00
Volker Lendecke
6cfe6e92a1
s3-ctdb: Fix ctdb_serverids_exist for target nodes that died
...
Signed-off-by: Christian Ambach <ambi@samba.org>
2012-08-03 12:53:49 +02:00
Volker Lendecke
6d83e35410
s3-ctdb: Add debugs to ctdb_serverids_exist
...
Signed-off-by: Christian Ambach <ambi@samba.org>
2012-08-03 12:53:49 +02:00
Andrew Bartlett
1e5098d5e1
s3-pysmbd: Add hook for get_nt_acl()
...
Autobuild-User(master): Andrew Bartlett <abartlet@samba.org>
Autobuild-Date(master): Thu Aug 2 13:27:55 CEST 2012 on sn-devel-104
2012-08-02 13:27:54 +02:00
Andrew Bartlett
64f494de5e
s3-pysmbd: fix DEBUG
2012-08-02 11:35:19 +02:00
Andrew Bartlett
e5686a4cf0
s3-pysmbd: Add my copyright
2012-08-02 11:35:19 +02:00
Andrew Bartlett
55a0d6606c
s3-pysmbd: Add set_nt_acl() function based on parts of vfstest
...
This will allow us to set the full NT ACL on a file, using the VFS
layer, during provision of the AD DC.
Andrew Bartlett
2012-08-02 11:35:19 +02:00
Andrew Bartlett
b041d29c11
s3-pypassdb: Fix wrapper for pdb_domain_info to return correct dns_{domain,forest}
2012-08-02 11:35:19 +02:00
Stefan Metzmacher
b93e6ef5e7
s3:smbd: add a optional_support helper variable to reply_tcon_and_X()
...
metze
Autobuild-User(master): Stefan Metzmacher <metze@samba.org>
Autobuild-Date(master): Wed Aug 1 18:25:26 CEST 2012 on sn-devel-104
2012-08-01 18:25:26 +02:00
Stefan Metzmacher
3fb6549db0
s3:smbd: make use of TCONX_FLAG_DISCONNECT_TID define
...
metze
2012-08-01 14:17:16 +02:00
Stefan Metzmacher
3682eb80ab
s3:libsmb: add a optional_support helper variable
...
metze
2012-08-01 14:17:16 +02:00
Stefan Metzmacher
137d65b397
s3:libsmb: add a tcon_flags helper variable
...
metze
2012-08-01 14:17:16 +02:00
Stefan Metzmacher
d3aaa1ebc8
libcli/smb: move some TCON related defines to smb_constants.h
...
metze
2012-08-01 14:17:16 +02:00
Stefan Metzmacher
8e1c6d4232
s3:rpc_client: rename pipe_auth_data->user_session_key to transport_session_key
...
metze
2012-08-01 14:17:15 +02:00
Stefan Metzmacher
0ec50e8a2f
s3:libsmb: remove unused cli_state->user_session_key
...
metze
2012-08-01 14:17:15 +02:00
Stefan Metzmacher
0068a9fd93
s3:utils/net_rpc*: make use of cli_get_session_key()
...
metze
2012-08-01 14:17:15 +02:00
Stefan Metzmacher
616206a806
s3:libnet_join: make use of cli_get_session_key() in libnet_join_joindomain_rpc()
...
metze
2012-08-01 14:17:14 +02:00
Stefan Metzmacher
8b42f526f4
s3:rpc_client: make use of smbXcli_session_application_key()
...
metze
2012-08-01 14:17:14 +02:00
Stefan Metzmacher
c9eac1af14
s3:libsmb: make use of smb1cli_session_set_session_key()
...
metze
2012-08-01 14:17:12 +02:00
Michael Adam
9b9ef92701
s3:ctdbd_conn: use unitX_t types consistently throughout the module
...
Signed-off-by: Stefan Metzmacher <metze@samba.org>
2012-08-01 12:30:26 +02:00
Richard Sharpe
d4bce355ad
Add two flags to allow for handling of Extended Signatures (Session Key Protection) on a TCON_AND_X request and response.
...
Autobuild-User(master): Richard Sharpe <sharpe@samba.org>
Autobuild-Date(master): Wed Aug 1 06:36:37 CEST 2012 on sn-devel-104
2012-08-01 06:36:37 +02:00
Volker Lendecke
eaa381a292
s3: Fix Coverity ID 710791 Resource leak
...
Signed-off-by: Stefan Metzmacher <metze@samba.org>
Autobuild-User(master): Stefan Metzmacher <metze@samba.org>
Autobuild-Date(master): Tue Jul 31 13:34:53 CEST 2012 on sn-devel-104
2012-07-31 13:34:53 +02:00
Volker Lendecke
3bc1f4570e
s3: Fix Coverity ID 710803 Resource leak
...
Signed-off-by: Stefan Metzmacher <metze@samba.org>
2012-07-31 11:40:23 +02:00
Volker Lendecke
d1dccfbda6
s3: Fix Coverity ID 710818 Resource leak
...
Signed-off-by: Stefan Metzmacher <metze@samba.org>
2012-07-31 11:40:23 +02:00
Volker Lendecke
2ddc3a280e
s3: Fix Coverity ID 710827 Resource leak
...
Signed-off-by: Stefan Metzmacher <metze@samba.org>
2012-07-31 11:40:22 +02:00
Volker Lendecke
d2eb26cfbd
s3: Make request_timed_out() static
...
Signed-off-by: Stefan Metzmacher <metze@samba.org>
2012-07-31 11:40:22 +02:00
Stefan Metzmacher
35c0f164bc
s3:smbd: do a clean shutdown during release_ip() after CTDB_SRVID_RELEASE_IP
...
metze
Autobuild-User(master): Stefan Metzmacher <metze@samba.org>
Autobuild-Date(master): Tue Jul 31 11:33:27 CEST 2012 on sn-devel-104
2012-07-31 11:33:27 +02:00
Stefan Metzmacher
d73b7938bb
s3:smbd: use print_sockaddr() instead of client_socket_addr()
...
We already have a server address in sockaddr_storage format.
Also the name "client_socket" was very miss leading,
as it returns the local address of the socket.
metze
2012-07-31 09:34:21 +02:00
Stefan Metzmacher
13de233fc6
s3:smbd: move smbd_register_ips() next to release_ip()
...
metze
2012-07-31 09:34:21 +02:00
Stefan Metzmacher
ec69eb41bf
s3:dbwrap_ctdb: initialize db_record->db
...
metze
2012-07-31 09:34:20 +02:00
Andrew Bartlett
0e1814c6f6
s3-utils: Add cast to fix error found by -Werror=format
...
Autobuild-User(master): Andrew Bartlett <abartlet@samba.org>
Autobuild-Date(master): Mon Jul 30 11:51:02 CEST 2012 on sn-devel-104
2012-07-30 11:51:02 +02:00
Andrew Bartlett
9c9df9c8a3
s3-libsmbclient: Add missing talloc_stackframe() calls
...
These caused a panic with the new assertion on the talloc stackframe being
in place.
Andrew Bartlett
Autobuild-User(master): Andrew Bartlett <abartlet@samba.org>
Autobuild-Date(master): Sun Jul 29 05:21:24 CEST 2012 on sn-devel-104
2012-07-29 05:21:23 +02:00
Andrew Bartlett
dc00df2add
lib/param: Rename "socket address" to "nbt client socket address" to clarify role
...
This parameter is only used in our NBT client code and in nmbd as a
fallback when we fail to select a better interface from "interfaces"
to use directly.
Andrew Bartlett
Autobuild-User(master): Andrew Bartlett <abartlet@samba.org>
Autobuild-Date(master): Fri Jul 27 12:16:25 CEST 2012 on sn-devel-104
2012-07-27 12:16:25 +02:00
Andrew Bartlett
b181a0b96b
lib/param: Remove use of lp{cfg,}_socket_address outside the NBT client and server
...
In these other cases, control of the sockets to bind to can be obtained using
"bind interfaces only = yes" and "interfaces = ".
Andrew Bartlett
2012-07-27 17:59:51 +10:00
Andrew Bartlett
ca24820736
lib/param: Remove unused "paranoid server security"
...
This became unused when security=server went away.
Andrew Bartlett
2012-07-27 03:34:23 +02:00
Andrew Bartlett
42e405a422
param: Make socket_address common, Revert 611ef42053
...
This essentially reverts the commit 611ef42053
Author: Yasuma Takeda <yasuma@osstech.co.jp>
Date: Fri Dec 5 13:37:51 2008 -0800
Fix bug #5944 - nmbd does not boot if socket adress = "" is defined in smb.conf
Intead, the documentation is fixed so that the correct default is
recorded. Removing the special case handling here allows this to be
dealt with in the same way as all other parameters.
Andrew Bartlett
2012-07-27 03:34:23 +02:00
Andrew Bartlett
bc1826abd6
lib/param: Merge parameter tables into a common file
...
This file is then included into both loadparm systems.
Andrew Bartlett
Pair-Programmed-With: Andrew Tridgell <tridge@samba.org>
2012-07-27 03:34:23 +02:00
Andrew Bartlett
2429647790
s3-param: Merge "log file" parameter with lib/param
...
The lib/param code uses a special handler for setting the log file.
We need to set this here, so that we can make this table common.
Andrew Bartlett
2012-07-27 03:34:22 +02:00
Andrew Bartlett
a943a9ba2f
s3-build: Make recursive waf build a developer build again (to build developer test facilities)
...
My commit f446506608
was to work around the automatic ABI check
in the waf developer build. However, now that the validity of loadparm options depends on
this being a developer build, we need to change back, but disable the ABI check.
Andrew Bartlett
2012-07-27 03:34:22 +02:00
Björn Jacke
9b59590a89
s3:vlp: fix build on OS X
...
Autobuild-User(master): Björn Jacke <bj@sernet.de>
Autobuild-Date(master): Fri Jul 27 03:13:59 CEST 2012 on sn-devel-104
2012-07-27 03:13:59 +02:00
Björn Jacke
4b914a223d
s3: use libreplace in pthreadpooltest to fix some builds
2012-07-26 18:07:29 +02:00
Björn Jacke
96340e60b7
s3: add Darwin sendfile support and merge with the FreeBSD code
...
This is based on the adpotion of the FreeBSD sendfile code that was done by
James Peach for Darwin.
Autobuild-User(master): Björn Jacke <bj@sernet.de>
Autobuild-Date(master): Thu Jul 26 17:19:09 CEST 2012 on sn-devel-104
2012-07-26 17:19:09 +02:00
Björn Jacke
887cebffd0
s3:waf: add Darwin sendfile() test
2012-07-26 15:18:30 +02:00
Björn Jacke
d347c8d577
s3:configure: add Darwin sendfile() test
2012-07-26 15:18:30 +02:00
Stefan Metzmacher
a67daa3aa6
s3:smb2_negprot: return the current system time in the SMB2 NEGPROT response
...
metze
Autobuild-User(master): Stefan Metzmacher <metze@samba.org>
Autobuild-Date(master): Thu Jul 26 11:56:02 CEST 2012 on sn-devel-104
2012-07-26 11:56:02 +02:00
Stefan Metzmacher
f6592c427d
s3:smbd: fix compiler warnings in notify_internal.c
...
metze
2012-07-26 10:02:07 +02:00
Stefan Metzmacher
df08929d28
s3:smb2_sesssetup: reject SMB2_SESSION_FLAG_BINDING requests
...
metze
Autobuild-User(master): Stefan Metzmacher <metze@samba.org>
Autobuild-Date(master): Thu Jul 26 02:08:56 CEST 2012 on sn-devel-104
2012-07-26 02:08:56 +02:00
Stefan Metzmacher
859e5be070
s3:smb2_ioctl: fix GUID_compare() check in FSCTL_VALIDATE_NEGOTIATE_INFO
...
metze
2012-07-25 23:32:18 +02:00
Stefan Metzmacher
3a85737191
s3:smb2_ioctl: allow clients to send padding at the end of FSCTL_VALIDATE_NEGOTIATE_INFO
...
metze
2012-07-25 23:31:02 +02:00
Stefan Metzmacher
3cce5214f9
s3:smb2_ioctl: remove FSCTL_VALIDATE_NEGOTIATE_INFO_224 implementation
...
Only Windows8 Beta uses this and it's broken, the client send wrong
capabilities. Just returning an error seems to be fine for the Windows8 Beta
client.
metze
2012-07-25 23:29:28 +02:00
Stefan Metzmacher
0aac3c09f1
libcli/smb: pass smbXcli_session to smb2cli_tcon_set_values()
...
metze
2012-07-25 14:48:50 +02:00
Stefan Metzmacher
bb6761c127
s3:libsmb: remove unused cli_state->smb2.pid
...
metze
2012-07-25 12:15:05 +02:00
Stefan Metzmacher
56aa419d87
libcli/smb: there's no PID field in the SMB2/3 header anymore
...
It's a reserved field...
metze
2012-07-25 12:15:05 +02:00
Stefan Metzmacher
7de4ae7f9f
libcli/smb: pass smbXcli_tcon to smb2cli_req_create/send()
...
metze
2012-07-25 12:15:04 +02:00
Stefan Metzmacher
167d94c73d
s3:libsmb: remove unused tcon specific elements from cli_state->smb2
...
metze
2012-07-25 12:15:03 +02:00
Stefan Metzmacher
d2ba9c36f3
s3:libsmb: remove cli_state->smb2.tid
...
metze
2012-07-25 12:15:03 +02:00
Stefan Metzmacher
b0f1921bd7
s3:torture: remove unused shm_setup()
...
metze
2012-07-25 12:15:02 +02:00
Stefan Metzmacher
e0bc165080
s3:torture: replace shm_setup() with anonymous_shared_allocate()
...
metze
2012-07-25 12:15:01 +02:00
Stefan Metzmacher
c66a45d3f2
s3:smb2_server: simplify the talloc_pool handling for smbd_smb2_request
...
metze
2012-07-25 12:15:01 +02:00
David Binderman
d58aa46c08
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
2012-07-25 02:42:32 +02:00
Stefan Metzmacher
79ccb96cd3
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
2012-07-25 00:10:47 +02:00
Stefan Metzmacher
20d43a1d30
libcli/smb: pass smbXcli_tcon to smb2cli_ioctl*()
...
metze
2012-07-24 22:20:06 +02:00
Stefan Metzmacher
51af8b9600
libcli/smb: pass smbXcli_tcon to smb2cli_query_directory*()
...
metze
2012-07-24 22:20:06 +02:00
Stefan Metzmacher
370e7140bb
libcli/smb: pass smbXcli_tcon to smb2cli_query_info*()
...
metze
2012-07-24 22:20:06 +02:00
Stefan Metzmacher
6dc701c958
libcli/smb: pass smbXcli_tcon to smb2cli_set_info*()
...
metze
2012-07-24 22:20:06 +02:00
Stefan Metzmacher
6612c831a3
libcli/smb: pass smbXcli_tcon to smb2cli_flush*()
...
metze
2012-07-24 22:20:06 +02:00
Stefan Metzmacher
86a5ab731b
libcli/smb: pass smbXcli_tcon to smb2cli_write*()
...
metze
2012-07-24 22:20:06 +02:00
Stefan Metzmacher
697b82a619
libcli/smb: pass smbXcli_tcon to smb2cli_read*()
...
metze
2012-07-24 22:20:06 +02:00
Stefan Metzmacher
74f9b52e65
libcli/smb: pass smbXcli_tcon to smb2cli_close*()
...
metze
2012-07-24 22:20:06 +02:00
Stefan Metzmacher
32b33999db
libcli/smb: pass smbXcli_tcon to smb2cli_create*()
...
metze
2012-07-24 22:20:06 +02:00
Stefan Metzmacher
92efe1a35f
s3:libsmb: setup a smbXcli_tcon for SMB2
...
metze
2012-07-24 22:20:06 +02:00
Stefan Metzmacher
b9100a7ac4
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
2012-07-24 21:22:44 +02:00
Stefan Metzmacher
ed726281b3
s3:libsmb: use a smbXcli_tcon instead of uint16_t cli_state->smb1.tid
...
metze
2012-07-24 18:44:04 +02:00
Stefan Metzmacher
20e4392b25
s3:libsmb: make use of cli_state_[g|s]et_tid()
...
metze
2012-07-24 18:44:04 +02:00
Günther Deschner
867de2f3aa
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
2012-07-24 14:49:41 +02:00
Andrew Bartlett
3367fd01d4
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
2012-07-24 11:01:17 +02:00
Andrew Bartlett
b62b031815
lib/param: Make lp_usershare_max_shares() a common parameter
...
Pair-Programmed-With: Andrew Tridgell <tridge@samba.org>
2012-07-24 11:01:17 +02:00
Andrew Bartlett
f3562424b6
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>
2012-07-24 11:01:17 +02:00
Andrew Bartlett
280d1877fd
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
2012-07-24 09:16:44 +02:00
Andrew Bartlett
01f25adb5a
s3-param: Merge parameter varaibles with lib/param
...
Baded on an earlier patch:
Pair-Programmed-With: Andrew Tridgell <tridge@samba.org>
2012-07-24 10:46:12 +10:00
Andrew Bartlett
7881f4adc5
s3-param: fix indent on cups encrypt
2012-07-24 10:46:12 +10:00
Andrew Bartlett
2daf1204c6
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
2012-07-24 10:46:12 +10:00
Andrew Bartlett
80d3208830
param: Make internal handler for 'server role' common
2012-07-24 10:46:12 +10:00
Andrew Bartlett
9521cd0409
param: Make the 'unicode' parameter common
...
This parameter is most useful for interop testing, rather than production use.
Andrew Bartlett
2012-07-24 10:46:12 +10:00
Jeremy Allison
69e98ff86c
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
2012-07-24 02:00:59 +02:00
Jeremy Allison
644d48d539
Fix compiler warning message.
2012-07-24 00:09:46 +02:00
Jeremy Allison
b76d574b98
Fix incorrect use of server as a talloc context.
2012-07-24 00:09:46 +02:00
Jeremy Allison
61cec270c2
Fix unused variable.
2012-07-24 00:09:46 +02:00
Jeremy Allison
e5a3218b0e
Fix compiler warning.
2012-07-24 00:09:46 +02:00
Stefan Metzmacher
43b070d8dd
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
2012-07-24 00:08:58 +02:00
Luk Claes
cdec0c4646
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>
2012-07-23 22:13:29 +02:00
Andreas Schneider
a256d61c50
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
2012-07-23 22:12:29 +02:00
Jeremy Allison
111c2159de
Fix problem found by Andrew Bartlett - correctly check encrypted flag.
2012-07-23 20:15:33 +02:00
Stefan Metzmacher
5adf63fe30
lib/crypto: add aes_ccm_128
...
metze
2012-07-23 18:19:36 +02:00
Stefan Metzmacher
a41a1d176f
s3:test_smb2: copy the session_channel from the primary channel.
...
metze
2012-07-23 18:19:36 +02:00
Stefan Metzmacher
88f326a2c0
s3:smb2_tcon: reject access to shares mark as "smb encrypt = required"
...
We do not support SMB2 transport encryption yet.
metze
2012-07-23 18:19:36 +02:00
Guenther Deschner
3fe601afcf
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
2012-07-23 18:19:00 +02:00