1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-14 19:24:43 +03:00

61835 Commits

Author SHA1 Message Date
Günther Deschner
ab27c6d138 s3: re-run make samba3-idl.
Guenther
2010-04-09 13:57:17 +02:00
Günther Deschner
8805490853 winreg: keytype options is a bitmask.
Guenther
2010-04-09 13:57:17 +02:00
Günther Deschner
bc9289995a s4-smbtorture: more work on registry REG_LINK (in-registry symlinks) test.
Guenther
2010-04-09 13:57:17 +02:00
Andrew Tridgell
92a051ef2f s4-waf: only enable the python uuid module if python <= 2.4 2010-04-09 21:26:28 +10:00
Volker Lendecke
a10f024083 libwbclient: Fix some memleaks in the tests 2010-04-09 13:15:05 +02:00
Andrew Tridgell
45d3ac05b3 build: use Logs.error() and Logs.info() instead of print()
this gives appropriate colors on output, and ensures it works with
compiler output
2010-04-09 21:12:09 +10:00
Andrew Tridgell
d661759780 build: nicer error message on missing file in waf dist 2010-04-09 21:12:09 +10:00
Andrew Tridgell
a591b8497d s4-waf: added --gdbtest option for waf test 2010-04-09 20:44:25 +10:00
Andrew Tridgell
0b8a3a4036 build: no need to re-create the lib and bin symlinks if they exist
this saves a few unlink/symlink calls for null builds
2010-04-09 20:31:06 +10:00
Andrew Tridgell
5f90d3260b build: added --picky-developer and --fatal-errors
Added configure options for --fatal-errors and --picky-developer. This
removes -Wfatal-errors from the --enable-developer flags.
2010-04-09 20:31:06 +10:00
Jelmer Vernooij
0d92dd1074 s4-net: Cope with options without arguments. 2010-04-09 11:53:00 +02:00
Jelmer Vernooij
410527f936 s4-net: 'net user create' -> 'net user add', for backwards compatibility. 2010-04-09 11:53:00 +02:00
Jelmer Vernooij
ececb73262 Support --version in python scripts. 2010-04-09 11:53:00 +02:00
Jelmer Vernooij
9af8d02b22 s4-net: Convert machinepw command to python. 2010-04-09 11:53:00 +02:00
Jelmer Vernooij
f83aa13f62 s4-net: Convert vampire command over to Python. 2010-04-09 11:53:00 +02:00
Jelmer Vernooij
ffa73c412e s4-net: Convert user subcommand to Python. 2010-04-09 11:53:00 +02:00
Kamen Mazdrashki
8149094edd s4/dsdb: Set schemaInfo attribute value during provisioning
After provisioning new Forest, schemaInfo should be set
to a value with revision=1 and current invocation_id
2010-04-09 12:21:34 +03:00
Kamen Mazdrashki
4ba2ac073d s4/dsdb: split writing of schemaInfo blob in two parts
ldb_msg preparation is moved into separate function
so that it can be used for implementing schemaInfo
updates both on module stack (dsdb_module_... functions)
and directly on ldb_context
2010-04-09 12:21:33 +03:00
Kamen Mazdrashki
fbef33fb73 s4/dsdb: Let caller to control if valid invocationId is critical or zero-guid is acceptable 2010-04-09 12:21:33 +03:00
Kamen Mazdrashki
2763a4ac4e s4/test: Add DRS-UNIT test suite to 'quicktests' list 2010-04-09 12:21:32 +03:00
Kamen Mazdrashki
5363b6e68b s4/dsdb: Use dsdb_schema_info object to create default schemaInfo values 2010-04-09 12:21:32 +03:00
Kamen Mazdrashki
c3d7798991 s4/dsdb: Use dsdb_schema_info object to verify schema_info blobs 2010-04-09 12:21:31 +03:00
Kamen Mazdrashki
e5ef11f4e2 s4/test: Use drsut_schemainfo_new() instead of SCHEMA_INFO_DEFAULT local define 2010-04-09 12:21:31 +03:00
Kamen Mazdrashki
15921b669e s4/waf: add new files to WAF build 2010-04-09 12:21:31 +03:00
Kamen Mazdrashki
6d439afbf7 s4/samldb: schemaInfo attribute must be updated when adding new Schema object 2010-04-09 12:21:30 +03:00
Kamen Mazdrashki
7f0da64a49 s4/test: add shemaInfo torture test to automated test suite 2010-04-09 12:21:30 +03:00
Kamen Mazdrashki
08dd0d0b54 s4/schema: Torture test for schemaInfo implementation
This test checks if schemaInfo revision changes when an object
is added or modified in Schema.

Ref. [MS-ADTS], 3.1.1.2.1
2010-04-09 12:21:29 +03:00
Kamen Mazdrashki
80d8f37b26 s4/was: Add 'drsblobs' Python module 2010-04-09 12:21:29 +03:00
Kamen Mazdrashki
3629fb9927 s4: Add 'drsblobs' Python module
This module is be very useful when it comes to making
torture tests.
2010-04-09 12:21:28 +03:00
Kamen Mazdrashki
8dd5705a59 librpc/idl: Use [nopython] attr for types used in decode_PrimaryKerberos method
C code generation for python module generates invalid code
(i.e. can not be compiled).
Another reason to 'hide' those types from Python is
that those types are not used at the moment
(and most probably won't be used in the future)
2010-04-09 12:21:28 +03:00
Andrew Bartlett
2ea99c22c3 librpc/idl Use [nopython] on some drsblobs.idl 'functions' as an example
It makes little sense to expose these 'functions' to anything other
than ndrdump.

Andrew Bartlett
2010-04-09 12:21:27 +03:00
Andrew Bartlett
738ac53037 pidl:python Allow 'nopython' to work
The 'nopython' flag wasn't available for use, as it failed to get past
the syntax checker.

Andrew Bartlett
2010-04-09 12:21:27 +03:00
Kamen Mazdrashki
526e62c46f s4/tort: Unit test for schemaInfo implementation 2010-04-09 12:21:27 +03:00
Kamen Mazdrashki
ae30cb958e torture: add torture_assert_goto() convenience macro 2010-04-09 12:21:26 +03:00
Kamen Mazdrashki
9d1f8bcca9 s4/dsdb: dsdb_schema_info object implementation 2010-04-09 12:21:26 +03:00
Kamen Mazdrashki
37a6b66344 s4/dsdb: Define dsdb representation for schemaInfo attribute 2010-04-09 12:21:25 +03:00
Kamen Mazdrashki
6e7be5f4d1 s4/ldif: Handle Schema:schemaInfo blobs 2010-04-09 12:21:25 +03:00
Kamen Mazdrashki
ffd1d7ee7e s4/idl: drsblobs IDL regeneration 2010-04-09 12:21:24 +03:00
Kamen Mazdrashki
63e1aae69c s4/idl: Schema:schemaInfo attribute description 2010-04-09 12:21:24 +03:00
Karolin Seeger
deccb6cf9a s4-krb5: Fix typos in comment.
Karolin
2010-04-09 09:24:28 +02:00
Jeremy Allison
08b24e923d Stop smb2 from calling into smb1 blocking lock request code.
Allocate a uint16_t internal SMB1 mid for an SMB2 request.
Add a back pointer from the faked up smb_request struct
to the smb2 request.

Getting ready to add restart code for blocking locks,
share mode violations and oplocks in SMB2.

Jeremy.
2010-04-08 22:15:55 -07:00
Jeremy Allison
3491f6d119 Simplify call_trans2qfilepathinfo() and smbd_do_qfilepathinfo()
Remove the bool ms_dfs_link parameter from smbd_do_qfilepathinfo.
It is not possible for this to be a DFS link. Remove the check_msdfs_link()
call from call_trans2qfilepathinfo() - the call to filename_convert()
above with a ucf_flags of zero *MUST* catch a DFS link and return
NT_STATUS_PATH_NOT_COVERED in this case, so the code below checking
for msdfs links is redundent. Don't add this to 3.5.x, as it's an
optimization but not needed to fix bug #7339 - MSDFS is non-functional in 3.5.x.

Jeremy.
2010-04-08 21:24:23 -07:00
Jeremy Allison
3587815595 Fix bug #7339 - MSDFS is non-functional in 3.5.x
In the refactoring around filename_convert, the split between the functions
resolve_dfspath() and resolve_dfspath_wcard() was lost, leaving us only with
resolve_dfspath_wcard().

Internally resolve_dfspath_wcard() calls dfs_redirect() only with a
"allow_wcards" flag of true, wheras the old resolve_dfspath() would call with a
value of false. The loss of this case causes dfs_redirect to always masquerade
DFS links as directories, even when they are being queried directly by a trans2
QPATHINFO call. We should only masquerade DFS links as directories when called
from a SMBsearch or trans2 findfirst/findnext - which was the intent of the
"allow_wcards" flag.

This patch adds back an allow_wcards bool parameter to
resolve_dfspath_wcard(). This bool is set from the state of the ucf_flags when
filename_convert() is called.

I will follow this up with a new smbclient-based torture test that will prevent
us from ever regressing our DFS support again.

Jeremy.
2010-04-08 20:32:36 -07:00
Kamen Mazdrashki
8126c78c76 s4/torture: Suppress Valgrind warnings
This patch suppresses two Valgrind warnings of type
"xxx bytes in yy blocks are indirectly lost in loss record"
2010-04-09 02:45:08 +03:00
Günther Deschner
846813797d s4-winreg: add winreg_DeleteKeyEx stub.
Guenther
2010-04-09 00:27:58 +02:00
Günther Deschner
ffcaa73280 s3-winreg: add winreg_DeleteKeyEx stub.
Guenther
2010-04-09 00:27:58 +02:00
Günther Deschner
e42d5b5ae3 s3: re-run make samba3-idl.
Guenther
2010-04-09 00:27:58 +02:00
Günther Deschner
dc4bf5651e winreg: add IDL for winreg_DeleteKeyEx.
Guenther
2010-04-09 00:27:58 +02:00
Matthias Dieter Wallnöfer
0a154b940d s4:registry - "patchfile_preg.c" - assign a better type to the "i" counter variable
The "i" variable sums up "size" values which are of type "size_t". Therefore
also "i" itself should be from this type.
2010-04-08 23:57:35 +02:00
Matthias Dieter Wallnöfer
aa9e782a4d s4:registry - "patchfile_preg.c" - make a SIVAL statement nicer 2010-04-08 23:57:34 +02:00