1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-13 13:18:06 +03:00
Commit Graph

56870 Commits

Author SHA1 Message Date
Jeremy Allison
333fcba1de Cope with old CIFSFS clients that use SMBunlink to remove
symlinks instead of trans2:posix_unlink.
Jeremy.
2009-10-08 15:36:36 -07:00
Jeremy Allison
5c4fea6d72 Merge branch 'master' of ssh://jra@git.samba.org/data/git/samba 2009-10-08 15:36:24 -07:00
Björn Jacke
76f73c73ea s3: make linking of libwbclient --as-needed safe
Partly fixes #6791. Thanks to Buchan Milne!
2009-10-09 00:24:18 +02:00
Jeremy Allison
77abc2dabd Merge branch 'master' of ssh://jra@git.samba.org/data/git/samba 2009-10-08 10:01:51 -07:00
John H Terpstra
fb7096a55b Fix typos. Thank-you PC Oota. 2009-10-08 08:27:21 -05:00
Volker Lendecke
f0fd5df7fd s3: Fix shadow copy display on Windows 7
Windows 7 is a bit more picky on our NT_STATUS_BUFFER_TOO_SMALL. Announce the
right buffer size, the same amount we later check for.
2009-10-08 14:07:07 +02:00
Matthias Dieter Wallnöfer
1e2f455b4a winbind: adapt the new reject constants also there
Please note: in the past the value "0" was misinterpreted as other error. This
isn't true. "0" means no error.
Therefore a solution for this one has to found.
2009-10-08 11:01:22 +02:00
Günther Deschner
efaa98e824 s3-winbindd: NDR_WBINT_CHECKMACHINEACCOUNT should not be cacheable.
Guenther
2009-10-08 10:40:42 +02:00
Matthias Dieter Wallnöfer
607ceff234 s3/s4 - Adapt the IDL changes on various locations 2009-10-08 09:50:19 +02:00
Matthias Dieter Wallnöfer
c2685cdedb s3/s4:samr.idl - Corrects the "userPwdChangeFailureInformation" structure
This I've done according to WSPP doc MS-SAMR 2.2.7.23.
2009-10-08 09:49:56 +02:00
Jeremy Allison
46d1933240 Exteded RAW-RENAME test to catch regressions in bug 6781.
Jeremy.
2009-10-07 16:52:29 -07:00
Jeremy Allison
14dc32a4f5 Oops. Don't break the build..
Jeremy.
2009-10-07 15:43:43 -07:00
Jeremy Allison
94ce06f01d Make the logic a lot clearer and fix the comment to match.
Jeremy
2009-10-07 15:39:38 -07:00
Matthias Dieter Wallnöfer
91456b8dc5 s4:ldb - SQLite: port some constraints from the TDB backend also to the SQLITE one 2009-10-08 00:18:07 +02:00
Matthias Dieter Wallnöfer
75eff6eaf3 s4:subtree_delete - Make the initialisation of the child counter more clear 2009-10-08 00:18:07 +02:00
Matthias Dieter Wallnöfer
30faff7567 s4:ldap.py - Further enhancements
- Enhance test for "distinguishedName"
- Add a test for single-valued attributes
- Add a test for multi-valued attributes
- Add a test for empty messages
- Add a test for empty attributes
2009-10-08 00:18:07 +02:00
Matthias Dieter Wallnöfer
f9990e9b39 s4:ldb - add a check which has to be done on beginning of a "modify" operation 2009-10-08 00:18:06 +02:00
Matthias Dieter Wallnöfer
ee0204cfcc s4:ldap server - remove unused error handlings
Those error cases should be handled by LDB itself to be available on all
connection methods and not only over LDAP.
2009-10-08 00:18:06 +02:00
Matthias Dieter Wallnöfer
32a7b82e87 s4:ldb_tdb - Rework/Various
- Unify the error handling method with "done" mark in all longer functions
- Fix up result codes to match more the real MS AD
- Some cosmetic fixups
2009-10-08 00:18:06 +02:00
Jeremy Allison
746fb5aa4f Correct fix for bug 6781 - Cannot rename subfolders in Explorer view with recent versions of Samba.
Without this fix, renaming a directory ./a to ./b, whilst a directory ./aa was already open
would fail.
Jeremy.
2009-10-07 15:14:50 -07:00
Aravind Srinivasan
2f379d70ff s4/torture: Ported SMBv1 RAW-OPEN tests to SMB2-CREATE
Four tests were ported from raw/open.c

One new tests added LEADING-SLASH, which tests that a server provides
the proper error when a relative path is given to a CREATE PDU
with a leading "/".
2009-10-07 14:20:25 -07:00
Aravind Srinivasan
0bff2ced79 s4/torture: convert all printf to torture_comments 2009-10-07 12:18:44 -07:00
Aravind Srinivasan
0ec8fe420f s4/torture: Ported SMBv1 RAW-STREAMS tests to SMB2-STREAMS 2009-10-07 12:16:27 -07:00
Kai Blin
3703890596 AD-Bench: A first go at an Active Directory benchmark. 2009-10-07 15:45:46 +02:00
Günther Deschner
3c3725a340 s3-winbindd: libwbclient: implement secure channel verification for specific domains in wbcCheckTrustCredentials().
Guenther
2009-10-07 11:18:18 +02:00
Günther Deschner
7b3501200c wbinfo: allow to check trusts via "wbinfo -t --domain DOMAINNAME".
Guenther
2009-10-07 11:18:11 +02:00
Günther Deschner
2df47b0a54 libwbclient: implement secure channel verification for specific domains in wbcCheckTrustCredentials().
Guenther
2009-10-07 11:18:03 +02:00
Günther Deschner
3d3134a7d6 s3-netlogon: pure cosmetic indent fixes in _netr_LogonControl2Ex().
Guenther
2009-10-07 10:36:22 +02:00
Günther Deschner
fea2a78beb s3: re-run make samba3-idl.
Guenther
2009-10-07 10:34:15 +02:00
Andrew Tridgell
d29409c152 Merge branch 'master' of ssh://git.samba.org/data/git/samba 2009-10-07 16:21:28 +11:00
Andrew Tridgell
b3377ef2ea s4-drs: fixed a memory error introduced yesterday
ids is retrurned via _ids, so it needs to be on the passed in mem_ctx
2009-10-07 16:20:16 +11:00
Steven Danneman
26b7734841 s4/torture: Add server target of OneFS
I've added a "--target=onefs" which lists expected deviation in the
OneFS SMB server implementation compared to a Windows machine.

I've added this in a generic way using a list of module specific
parameters.  This list currently only contains the absence of
SACL support but will be added to as additional server differences
are defined.

I'd liked to use this abstraction for defining the differences between
a WinXP and Win7 server as well.
2009-10-06 19:43:15 -07:00
Aravind Srinivasan
e9c3318e52 s4/torture: Add SMB sharemode/access mask tests
Test several thousand permutations of create mask and sharemodes on file
and directory opens.

These tests use a checked-in results table derived from a WinXP server to
verify correct server behavior.

CREATEX_ACCESS
CREATEX_SHAREMODES_FILE
CREATEX_SHAREMODES_DIR
MAXIMUM_ALLOWED
2009-10-06 19:43:15 -07:00
Aravind Srinivasan
6de743a2a2 s4/torture: change comments to torture_failures
This allows the frameworks that wrap smbtorture to detect errors
better.
2009-10-06 19:43:15 -07:00
Jeremy Allison
7709db4c03 Test creating and deleting a bad symlink using the POSIX calls. Ensure
we don't regress on bug 6769.
Jeremy.
2009-10-06 17:18:15 -07:00
Andrew Tridgell
8dedceaff9 torture: disable the ValidatePassword test
This test causes problems on non-sealed connections against windows
2009-10-07 10:55:35 +11:00
Andrew Tridgell
d31fa07fde s4-torture: removed an accidental commit of a local test hack
Sorry about that ....
2009-10-07 10:05:26 +11:00
Andrew Tridgell
1d0fb1e0fb tdr: teach TDR about uint1632 enums
TDB doesn't have NDR64, but it needs to know how to map the new types
from pidl
2009-10-07 09:56:23 +11:00
Andrew Tridgell
7816f9d7ab pidl: update PIDL tests for uint1632 enums 2009-10-07 09:56:23 +11:00
Andrew Tridgell
90cd031fb3 idl: recompile IDL for uint1632 change 2009-10-07 09:56:23 +11:00
Andrew Tridgell
2bf8a7485c pidl: get the alignment right for uint1632 enums (NDR64)
The default enum in NDR63 is 32 bits, not 16 bits. We need a uint1632
type to get the alignment right.
2009-10-07 09:56:22 +11:00
Volker Lendecke
a4aa38f8b9 s3:winbind: Make query_user_list in winbindd_rpc a bit more readable 2009-10-06 21:33:20 +02:00
Matthias Dieter Wallnöfer
8536e1b947 s4:various LDB modules - "build_request" functions - propagate result codes back
It's very useful to know the exact result code when something fails and not
only a generic (by the module) created one.
Sure, there are some exception cases with specific results (special message
constellations, attributes, values...) which shouldn't be changed at all
(examples of them are in the "ldap.py" test). Therefore I looked very
carefully to not change them.
2009-10-06 19:41:16 +02:00
Matthias Dieter Wallnöfer
0d7c34a5b4 s4:rootdse module - intendation fixup 2009-10-06 19:37:53 +02:00
Matthias Dieter Wallnöfer
b87769c9a9 s4:acl module - intendation fix and comment enhancement 2009-10-06 19:37:26 +02:00
Abhidnya P Chirmule
ac774c4969 s3: Add access_mask to the flock VFS call 2009-10-06 18:52:06 +02:00
Günther Deschner
c344bf0184 s3-winbindd: make sure to reset connections when machine account password change chain was broken.
Guenther
2009-10-06 16:50:23 +02:00
Günther Deschner
0c2fc9eedf s3-netlogon: setup NETLOGON credential chain in rpccli_netlogon_set_trust_password() only when needed.
Guenther
2009-10-06 16:50:23 +02:00
Ronnie Sahlberg
e9f126421d add trailer alignment to structures 2009-10-06 19:14:11 +11:00
ronnie sahlberg
d26016c198 PIDL fix for using external types with wireshark backend
List,

Please review this patch to pidl.

Basically,  we need to process the wireshark conformance file BEFORE
we process the idl file since this file may define external types
and set the alignment for them (using the TYPE directive).
Otherwise pidl will default all external types to use 4byte alignment
which breaks (much more often) on NDR64

regards
ronnie sahlberg

From 8f86903fc353d0906bd82e72ce19c5af09beb001 Mon Sep 17 00:00:00 2001
From: Ronnie Sahlberg <ronniesahlberg@gmail.com>
Date: Mon, 5 Oct 2009 15:22:43 +1100
Subject: [PATCH] In the PIDL wireshark backend, we define external types in the conformance
 file using the TYPE directive.
 If we declare external types here, we must parse this file before we process
 the IDL file, or else these external types will all default to 4byte padding
 (pidl assumes all unknown types are 4byte aligned).

Make sure we read the conformance file and create these new types before
we parse the idl file.

Signed-off-by: Ronnie Sahlberg <ronniesahlberg@gmail.com>
2009-10-06 19:11:51 +11:00