Stefan Metzmacher
a358eee2d8
s3:smb2_server: use smbd_smb2_request_verify_sizes() in smb2_lock.c
...
metze
2011-09-07 10:38:06 +02:00
Stefan Metzmacher
22d479f757
s3:smb2_server: use smbd_smb2_request_verify_sizes() in smb2_keepalive.c
...
metze
2011-09-07 10:38:06 +02:00
Stefan Metzmacher
29b3601c02
s3:smb2_server: use smbd_smb2_request_verify_sizes() in smb2_ioctl.c
...
metze
2011-09-07 10:38:06 +02:00
Stefan Metzmacher
880eafd7e8
s3:smb2_server: use smbd_smb2_request_verify_sizes() in smb2_getinfo.c
...
metze
2011-09-07 10:38:05 +02:00
Stefan Metzmacher
440f702aa9
s3:smb2_server: use smbd_smb2_request_verify_sizes() in smb2_flush.c
...
metze
2011-09-07 10:38:05 +02:00
Stefan Metzmacher
bc95ab99dc
s3:smb2_server: use smbd_smb2_request_verify_sizes() in smb2_find.c
...
metze
2011-09-07 10:38:05 +02:00
Stefan Metzmacher
251815bfd3
s3:smb2_server: use smbd_smb2_request_verify_sizes() in smb2_create.c
...
metze
2011-09-07 10:38:04 +02:00
Stefan Metzmacher
e09b3940a7
s3:smb2_server: use smbd_smb2_request_verify_sizes() in smb2_close.c
...
metze
2011-09-07 10:38:04 +02:00
Stefan Metzmacher
9da2f72d47
s3:smb2_server: use smbd_smb2_request_verify_sizes() in smb2_break.c
...
metze
2011-09-07 10:38:04 +02:00
Stefan Metzmacher
02f7c37e67
s3:smb2_server: use smbd_smb2_request_verify_sizes() in smb2_tcon.c
...
metze
2011-09-07 10:38:03 +02:00
Stefan Metzmacher
d280d9f945
s3:smb2_server: use smbd_smb2_request_verify_sizes() in smb2_sesssetup.c
...
metze
2011-09-07 10:38:03 +02:00
Stefan Metzmacher
7ec3a35d2a
s3:smb2_server: use smbd_smb2_request_verify_sizes() in smb2_negprot.c
...
metze
2011-09-07 10:38:03 +02:00
Stefan Metzmacher
6985a1378b
s3:smb2_server: add smbd_smb2_request_verify_sizes()
...
metze
2011-09-07 10:38:02 +02:00
Stefan Metzmacher
fcd0c0e19e
s3:torture: relax TRANS2 midmight time checking
...
It's possible that the test runs on a full hour, e.g. Tue Sep 6 03:00:00 2011.
So better check that the a_time is different from the current time.
metze
2011-09-07 10:38:02 +02:00
Stefan Metzmacher
674f9cc1d9
s3:smb2cli: fix marshalling of smb2_create_blobs in smb2cli_create()
...
metze
Autobuild-User: Stefan Metzmacher <metze@samba.org>
Autobuild-Date: Wed Sep 7 10:21:55 CEST 2011 on sn-devel-104
2011-09-07 10:21:55 +02:00
Stefan Metzmacher
013d2abc75
s3:smb2cli: don't terminate the pathname in smb2cli_query_directory()
...
Windows generates NT_STATUS_OBJECT_NAME_INVALID otherwise.
metze
2011-09-07 08:33:41 +02:00
Stefan Metzmacher
96a3ec51b4
s3:smb2cli: don't terminate the pathname in smb2cli_create()
...
Windows generates NT_STATUS_OBJECT_NAME_INVALID otherwise.
metze
2011-09-07 08:33:41 +02:00
Stefan Metzmacher
817bb1f8f2
s3:smb2cli: don't terminate the pathname in smb2cli_tcon()
...
Windows generates NT_STATUS_BAD_NETWORK_NAME otherwise.
metze
2011-09-07 08:33:40 +02:00
Stefan Metzmacher
884a5a620f
s3:smb2cli: SMB2_TCON needs one dyn byte to that the structure size check works.
...
Windows generates NT_STATUS_INVALID_PARAMETER otherwise.
metze
2011-09-07 08:33:38 +02:00
Stefan Metzmacher
85b393a199
s3:smb2cli: SMB2_WRITE needs one dyn byte to that the structure size check works.
...
Windows generates NT_STATUS_INVALID_PARAMETER otherwise.
metze
2011-09-07 08:33:15 +02:00
Stefan Metzmacher
42609036be
s3:smb2cli: SMB2_READ needs one dyn byte to that the structure size check works.
...
Windows generates NT_STATUS_INVALID_PARAMETER otherwise.
metze
2011-09-07 08:32:45 +02:00
Stefan Metzmacher
fbcba9fa8f
s3:smb2cli: SMB2_QUERY_DIRECTORY needs one dyn byte to that the structure size check works.
...
Windows generates NT_STATUS_INVALID_PARAMETER otherwise.
metze
2011-09-07 08:32:42 +02:00
Stefan Metzmacher
b57fb1e1a4
s3:smb2cli: SMB2_CREATE needs one dyn byte to that the structure size check works.
...
Windows generates NT_STATUS_INVALID_PARAMETER otherwise.
metze
2011-09-07 08:32:08 +02:00
Stefan Metzmacher
35d4afc3e0
s3:smb2cli: SMB2_SESSION_SETUP needs one dyn byte to that the structure size check works.
...
Windows generates NT_STATUS_INVALID_PARAMETER otherwise.
metze
2011-09-07 08:32:05 +02:00
Jeremy Allison
9646d802b7
Revert "Part 5 of bugfix for bug #7509 - smb_acl_to_posix: ACL is invalid for set (Invalid argument)"
...
This reverts commit 17f6e0272370f764d4a0053c8e74f20b0444c721.
Using the existing default permissions for group access is incorrect
when no such permissions are given in the incoming ACL.
Autobuild-User: Jeremy Allison <jra@samba.org>
Autobuild-Date: Wed Sep 7 03:50:21 CEST 2011 on sn-devel-104
2011-09-07 03:50:21 +02:00
Volker Lendecke
fd65e5eb8c
s3: Make winbindd_lookup_names static
...
Autobuild-User: Volker Lendecke <vlendec@samba.org>
Autobuild-Date: Tue Sep 6 20:03:56 CEST 2011 on sn-devel-104
2011-09-06 20:03:56 +02:00
Stefan Metzmacher
436cda0cbd
s3:smb2_server: make use of SMB2_WRITEFLAG_WRITE_THROUGH
...
metze
Autobuild-User: Stefan Metzmacher <metze@samba.org>
Autobuild-Date: Tue Sep 6 16:59:50 CEST 2011 on sn-devel-104
2011-09-06 16:59:49 +02:00
Günther Deschner
e68c4f4b33
waf: install pam modules in PAMMODULESDIR.
...
Guenther
Autobuild-User: Günther Deschner <gd@samba.org>
Autobuild-Date: Tue Sep 6 11:09:45 CEST 2011 on sn-devel-104
2011-09-06 11:09:45 +02:00
Stefan Metzmacher
012c9d06a9
s3:smb2_server: add basic support for SMB 2.1
...
This adds support for the 2 stage negprot, from SMB 1 to SMB 2.1.
Support for this of for now and "max protocol = SMB2" still maps
to "max protocol = SMB2_02" PROTOCOL_SMB2_02.
In order to activate smb2.1, you need to use "max protocol = SMB2_10".
metze
Autobuild-User: Stefan Metzmacher <metze@samba.org>
Autobuild-Date: Mon Sep 5 19:30:58 CEST 2011 on sn-devel-104
2011-09-05 19:30:58 +02:00
Stefan Metzmacher
1c8e8c7e7b
s3:smb2_server: return NOT_SUPPORTED if we don't find a common dialect with the client
...
metze
2011-09-05 18:01:07 +02:00
Stefan Metzmacher
e603929b98
s3:smb2_server: max_trans, max_read and max_write are limited to 64 kilobytes
...
Only if SMB2_CAP_LARGE_MTU is supported we should announce larger limits.
metze
2011-09-05 18:01:07 +02:00
Stefan Metzmacher
a44d3d1764
s3:smb2cli: make sure we don't try to send requests on a disconnected cli_state
...
metze
2011-09-05 18:01:07 +02:00
Stefan Metzmacher
4dca2acfe4
s3:smb2cli: make sure requests are not finished, when we send when to the network
...
metze
2011-09-05 18:01:06 +02:00
Stefan Metzmacher
0b6087c7be
s3:smb2cli: disconnect the connection, if we're out of message ids
...
metze
2011-09-05 18:01:06 +02:00
Stefan Metzmacher
5155a15c5c
s3:smb2cli: don't use state->cli->smb2.mid++ as macro argument
...
It gets expanded multiple times.
metze
2011-09-05 18:01:06 +02:00
Andreas Schneider
3e8c665465
s3-smbd: Rename reload_printers() and add documentation.
...
Autobuild-User: Andreas Schneider <asn@cryptomilk.org>
Autobuild-Date: Mon Sep 5 17:59:47 CEST 2011 on sn-devel-104
2011-09-05 17:59:47 +02:00
Volker Lendecke
303962e370
s3: Fix smbcontrol smbd idmap kill S-1-5-21-...
...
The calls to sid_to_gid and sid_to_uid create id mapping entries themselves,
which makes it pretty difficult to reliably delete id mapping entries
everywhere just using a SID.
Autobuild-User: Volker Lendecke <vlendec@samba.org>
Autobuild-Date: Mon Sep 5 16:30:41 CEST 2011 on sn-devel-104
2011-09-05 16:30:41 +02:00
Volker Lendecke
76ba67862f
s3: Reformat msg_idmap.c to match Samba coding
2011-09-05 14:58:46 +02:00
Stefan Metzmacher
491c975dfe
s3:smbd: make use of PROTOCOL_SMB2_02
...
metze
2011-09-05 13:25:00 +02:00
Stefan Metzmacher
0ed0a66956
libcli/smb: move smb2_signing.c to the toplevel
...
metze
2011-09-05 13:17:32 +02:00
Andreas Schneider
ad37341949
s3-spoolssd: Remove stale printers only on a valid pcap update.
...
load_printers() removes stale printers and we should only remove them if
we have a CUPS connection and talked to cups. Else we will remove every
configured printer if cups is not available.
Autobuild-User: Andreas Schneider <asn@cryptomilk.org>
Autobuild-Date: Mon Sep 5 11:18:23 CEST 2011 on sn-devel-104
2011-09-05 11:18:23 +02:00
Stefan Metzmacher
3167a2b8b9
s3:smb2cli: ask for a session key in smb2cli_sesssetup_send()
...
This is needed if we want to support SMB2 signing later.
metze
Autobuild-User: Stefan Metzmacher <metze@samba.org>
Autobuild-Date: Sat Sep 3 16:21:35 CEST 2011 on sn-devel-104
2011-09-03 16:21:34 +02:00
Andreas Schneider
b73426595c
s3-spoolss: Fix bug #8236 empty notify servername.
...
Signed-off-by: Andreas Schneider <asn@samba.org>
Autobuild-User: Jeremy Allison <jra@samba.org>
Autobuild-Date: Sat Sep 3 02:58:42 CEST 2011 on sn-devel-104
2011-09-03 02:58:42 +02:00
Jeremy Allison
17f6e02723
Part 5 of bugfix for bug #7509 - smb_acl_to_posix: ACL is invalid for set (Invalid argument)
...
Be smarter about setting default permissions when a ACL_GROUP_OBJ isn't given. Use the
principle of least surprises for the user.
Autobuild-User: Jeremy Allison <jra@samba.org>
Autobuild-Date: Sat Sep 3 00:16:05 CEST 2011 on sn-devel-104
2011-09-03 00:16:05 +02:00
Jeremy Allison
2a1453e231
Part 4 of bugfix for bug #7509 - smb_acl_to_posix: ACL is invalid for set (Invalid argument)
...
Be smarter about setting default permissions when a ACL_USER_OBJ isn't given. Use the
principle of least surprises for the user.
2011-09-02 13:36:10 -07:00
Jeremy Allison
c528fc5cac
Part 3 of bugfix for bug #7509 - smb_acl_to_posix: ACL is invalid for set (Invalid argument)
...
Don't call check_owning_objs() to convert ACL_USER->ACL_USER_OBJ and
AC_GROUP->ACL_GROUP_OBJ for default (directory) ACLs, we do this separately
inside ensure_canon_entry_valid().
2011-09-02 12:22:34 -07:00
Jeremy Allison
a5038ace24
Part 2 of bugfix for bug #7509 - smb_acl_to_posix: ACL is invalid for set (Invalid argument)
...
Only map CREATOR_OWNER/CREATOR_GROUP to ACL_USER_OBJ/ACL_GROUP_OBJ in
a default(directory) ACL set.
2011-09-02 11:58:56 -07:00
Jeremy Allison
2b935b49f3
Part 1 of bugfix for bug #7509 - smb_acl_to_posix: ACL is invalid for set (Invalid argument)
...
Remove the code I added for bug "6878 - Cannot change ACL's inherit flag". It is incorrect
and causes the POSIX ACL ACL_USER_OBJ duplication.
2011-09-02 11:21:08 -07:00
Michael Adam
dfbffac977
s3:registry: fix a debug message typo
...
Autobuild-User: Michael Adam <obnox@samba.org>
Autobuild-Date: Fri Sep 2 11:47:11 CEST 2011 on sn-devel-104
2011-09-02 11:47:11 +02:00
Michael Adam
fff30e9f88
s3:registry: introduce a define REGDB_CODE_VERSION and use it in regdb code.
...
This is to not use the precise code version REGDB_VERSION_V3 explicitly
in the code.
2011-09-02 10:17:20 +02:00