Gregor Beck
9c0252446f
s3: let g_lock_unlock() return more specific status codes on failure
...
Signed-off-by: Michael Adam <obnox@samba.org>
2011-09-07 19:50:05 +02:00
Volker Lendecke
14876e65ea
s3: Fix Coverity ID 2611, UNINIT
...
Autobuild-User: Volker Lendecke <vlendec@samba.org>
Autobuild-Date: Wed Sep 7 19:47:49 CEST 2011 on sn-devel-104
2011-09-07 19:47:49 +02:00
Volker Lendecke
74cdddea1b
s3: Fix Coverity ID 2612, UNINIT
2011-09-07 18:20:22 +02:00
Stefan Metzmacher
9005e0f7b3
s3:smb2cli: let smb2cli_req_create() use the give pid, uid and tid values
...
metze
Autobuild-User: Stefan Metzmacher <metze@samba.org>
Autobuild-Date: Wed Sep 7 18:19:43 CEST 2011 on sn-devel-104
2011-09-07 18:19:43 +02:00
Stefan Metzmacher
2ec0634f28
s3:smb2cli: pass the uid to the SMB2_SESSION_SETUP to support multi-leg-auth
...
metze
2011-09-07 16:48:46 +02:00
Volker Lendecke
4ee613ba64
talloc: Remove an unused variable
...
Autobuild-User: Volker Lendecke <vlendec@samba.org>
Autobuild-Date: Wed Sep 7 16:47:26 CEST 2011 on sn-devel-104
2011-09-07 16:47:26 +02:00
Christian Ambach
0aa558718a
s3:idmap/autorid add a small alloc pool to autorid
...
this is needed to allocate gids for BUILTIN\Users and
BUILTIN\Administrators
gids are stored at the start of the first domain
as RIDs start with values over 500, we have some room there
so we do not need to allocate a range
Autobuild-User: Christian Ambach <ambi@samba.org>
Autobuild-Date: Wed Sep 7 15:15:09 CEST 2011 on sn-devel-104
2011-09-07 15:15:09 +02:00
Andrew Bartlett
c640e9235f
s4-s3-upgrade: convert password age policies to the negative NTTIME format
...
This previously caused all accounts to be locked out.
Andrew Bartlett
Autobuild-User: Andrew Bartlett <abartlet@samba.org>
Autobuild-Date: Wed Sep 7 13:44:44 CEST 2011 on sn-devel-104
2011-09-07 13:44:44 +02:00
Andrew Bartlett
61543577fa
lib/addns: Remove unused TALLOC_ macros
2011-09-07 12:16:41 +02:00
Amitay Isaacs
78c2eca811
build: Replace mkbuildoptions-waf awk script with waf target
2011-09-07 12:16:40 +02:00
Amitay Isaacs
47f7e3c525
samba-tool: Add --filter option to ldapcmp to ignore specified attributes
2011-09-07 12:16:40 +02:00
Amitay Isaacs
2fc233b78f
s4-kcc: Fix the list of NCs for DRS replica information
...
AD DNS partitions (DomainDnsZones and ForestDnsZones) are listed
under msDs-hasMasterNCs attribute for post-2003 windows servers.
2011-09-07 12:16:40 +02:00
Stefan Metzmacher
9bc4decc1c
s3:smb2_server: return OBJECT_NAME_INVALID if the path is terminated in SMB2_FIND/QUERY_DIRECTORY
...
metze
Autobuild-User: Stefan Metzmacher <metze@samba.org>
Autobuild-Date: Wed Sep 7 12:15:51 CEST 2011 on sn-devel-104
2011-09-07 12:15:51 +02:00
Stefan Metzmacher
1bc93c2605
s3:smb2_server: return OBJECT_NAME_INVALID if the path is terminated in SMB2_CREATE
...
metze
2011-09-07 10:38:08 +02:00
Stefan Metzmacher
68b33aa61a
s3:smb2_server: return BAD_NETWORK_NAME if the path is terminated in SMB2_TCON
...
metze
2011-09-07 10:38:08 +02:00
Stefan Metzmacher
1a726b88ec
s3:smb2_server: use smbd_smb2_request_verify_sizes() in smb2_write.c
...
metze
2011-09-07 10:38:08 +02:00
Stefan Metzmacher
3643a05ba6
s3:smb2_server: use smbd_smb2_request_verify_sizes() in smb2_setinfo.c
...
metze
2011-09-07 10:38:07 +02:00
Stefan Metzmacher
f3a8d65bdf
s3:smb2_server: use smbd_smb2_request_verify_sizes() in smb2_read.c
...
metze
2011-09-07 10:38:07 +02:00
Stefan Metzmacher
c6480366e5
s3:smb2_server: use smbd_smb2_request_verify_sizes() in smb2_notify.c
...
metze
2011-09-07 10:38:07 +02:00
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
fce8ef69d3
s4:torture/basic: relax base.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 17f6e02723
.
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
Andrew Bartlett
a9a3a79767
s4-s3-upgrade Handle expected errors, error out on unexpected ones
...
Autobuild-User: Andrew Bartlett <abartlet@samba.org>
Autobuild-Date: Wed Sep 7 02:22:56 CEST 2011 on sn-devel-104
2011-09-07 02:22:56 +02:00
Andrew Bartlett
02da47d75c
s4-s3-upgrade Fix group member addition
2011-09-07 08:44:35 +10: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
Stefan Metzmacher
dd3c1b740c
smb2_constants: add SMB2_WRITEFLAG_WRITE_THROUGH define
...
metze
2011-09-06 15:28:00 +02:00