Andrew Bartlett [Wed, 3 Mar 2010 02:24:52 +0000 (13:24 +1100)]
s4:credentials Add the functions needed to do S4U2Self with cli_credentials
A torture test to demonstrate will be added soon.
Andrew Bartlett
Andrew Bartlett [Wed, 3 Mar 2010 00:34:04 +0000 (11:34 +1100)]
s4:credentials talloc_free() any previous salt_principal
This isn't used often, but it is generally better not to leak it onto
what may be a longer-term context.
Andrew Bartlett
Stefan Metzmacher [Sat, 10 Apr 2010 08:58:27 +0000 (10:58 +0200)]
s4:autogen-waf: generate 'Makefile' instead of 'makefile'
This hopefully fixes the build on MacOS 10.
metze
Stefan Metzmacher [Sat, 10 Apr 2010 08:49:18 +0000 (10:49 +0200)]
s4:configure: generate Makefile from Makefile.in
This makes it possible for the waf build to also generate a 'Makefile'
instead of 'makefile'. On some platforms 'Makefile' is used before 'makefile'
metze
Stefan Metzmacher [Sat, 10 Apr 2010 08:07:11 +0000 (10:07 +0200)]
s4:heimdal_build/wscript_build: remove more network related stuff from HEIMDAL_ROKEN_H
metze
Stefan Metzmacher [Sat, 10 Apr 2010 07:54:49 +0000 (09:54 +0200)]
s4:heimdal_build/wscript_build: use LIBREPLACE_H for asn1_compile and compile_et
metze
Stefan Metzmacher [Sat, 10 Apr 2010 07:51:28 +0000 (09:51 +0200)]
lib/replace: create a LIBREPLACE_H subsystem
metze
Jeremy Allison [Sat, 10 Apr 2010 02:26:34 +0000 (19:26 -0700)]
Plumb SMB2 stubs into all the places we defer SMB1 operations.
Rename functions to be internally consistent. Next step is
to cope queueing single (non-compounded) SMB2 requests to
put some code inside the stubs.
Jeremy.
Matthias Dieter Wallnöfer [Fri, 9 Apr 2010 21:34:07 +0000 (23:34 +0200)]
s4:LDB - fix up "LDAPI" test
Set the "options" environment variable in a deterministic manner.
Günther Deschner [Fri, 9 Apr 2010 17:54:31 +0000 (19:54 +0200)]
s4-smbtorture: skip winreg symlink test against Samba in RPC-SPOOLSS.
Guenther
Günther Deschner [Fri, 9 Apr 2010 17:53:31 +0000 (19:53 +0200)]
s4-smbtorture: make sure to check for result of spoolss_GetJob tests.
This avoids returning potentially uninitialised data. Thanks Andreas for
pointing this out.
Guenther
Günther Deschner [Fri, 9 Apr 2010 16:44:19 +0000 (18:44 +0200)]
s3-spoolss: Fix two uninitialized vars in spoolss util code.
Guenther
Günther Deschner [Fri, 9 Apr 2010 16:33:25 +0000 (18:33 +0200)]
s3: re-run make samba3-idl.
Guenther
Günther Deschner [Fri, 9 Apr 2010 15:50:51 +0000 (17:50 +0200)]
s4-smbtorture: display helpful error message when winreg_QueryMultipleValues fails.
Guenther
Günther Deschner [Fri, 9 Apr 2010 15:49:57 +0000 (17:49 +0200)]
winreg: move REG_OPTION_NON_VOLATILE out of option bitmask.
Guenther
Günther Deschner [Fri, 9 Apr 2010 15:28:04 +0000 (17:28 +0200)]
winreg: fill in IDL for winreg_QueryMultipleValues2.
Guenther
Günther Deschner [Fri, 9 Apr 2010 14:47:45 +0000 (16:47 +0200)]
s3: add iconv_convenience handle to pull/push sz helpers.
Guenther
Volker Lendecke [Fri, 9 Apr 2010 14:49:02 +0000 (16:49 +0200)]
s3: Fix a typo
Stefan Metzmacher [Fri, 9 Apr 2010 14:27:39 +0000 (16:27 +0200)]
selftest: make sure filter-subunit and format-subunit use unbuffered io
metze
Stefan Metzmacher [Fri, 9 Apr 2010 13:58:32 +0000 (15:58 +0200)]
s4:selftest: mark some smb2.compound tests as knownfail
metze
Stefan Metzmacher [Fri, 9 Apr 2010 07:03:43 +0000 (09:03 +0200)]
RPC-ALTERCONTEXT: let the test pass against w2k3 and w2k8
The behavior between w2k3 and w2k8 differs:
- w2k3 just ignores alter_context requests which try to change
an existing presentation context.
- w2k8 returns DERPC_NCA_S_PROTO_ERROR and closes the transport
connection.
metze
Stefan Metzmacher [Fri, 9 Apr 2010 07:02:48 +0000 (09:02 +0200)]
s4:torture/rpc/lsa.c: add test_lsa_OpenPolicy2_ex() that takes an expected status
metze
Stefan Metzmacher [Fri, 9 Apr 2010 11:27:07 +0000 (13:27 +0200)]
s4:librpc/rpc: correctly initialize last_fault_code for bind and alter_context requests
metze
Stefan Metzmacher [Fri, 9 Apr 2010 11:25:59 +0000 (13:25 +0200)]
librpc/rpc: fix typo DERPC_ => DCERPC_
metze
Stefan Metzmacher [Fri, 9 Apr 2010 11:25:34 +0000 (13:25 +0200)]
librpc: rerun make idl
metze
Stefan Metzmacher [Fri, 9 Apr 2010 10:07:43 +0000 (12:07 +0200)]
dcerpc.idl: fix typo DERPC_ => DCERPC_
metze
Stefan Metzmacher [Fri, 9 Apr 2010 11:23:53 +0000 (13:23 +0200)]
lib/torture: also print intergers as HEX values in the torture_assert macros
metze
Stefan Metzmacher [Fri, 9 Apr 2010 12:26:36 +0000 (14:26 +0200)]
s4:heimdal_build/wscript_build: we don't need separate subsystems just for optional source files
metze
Stefan Metzmacher [Fri, 9 Apr 2010 12:13:53 +0000 (14:13 +0200)]
s4:heimdal_build/wscript_build: remove useless dependecies of HEIMDAL_ROKEN_H
This hopefully fixes the build on host opi - OpenSUSE 10.2 (x86_64).
metze
Stefan Metzmacher [Fri, 9 Apr 2010 12:10:57 +0000 (14:10 +0200)]
s4:heimdal_build/wscript_build: create a HEIMDAL_ROKEN*_SOURCE variable
metze
Günther Deschner [Fri, 9 Apr 2010 13:58:01 +0000 (15:58 +0200)]
s4-smbtorture: add test to check for registry symlinks in RPC-SPOOLSS-PRINTER.
Guenther
Günther Deschner [Fri, 9 Apr 2010 12:44:38 +0000 (14:44 +0200)]
s4-smbtorture: fix build after winreg IDL renames, sorry..
Guenther
Jelmer Vernooij [Fri, 9 Apr 2010 12:20:18 +0000 (14:20 +0200)]
s4-build: Fix autoconf build (net_machinepw.c is no longer present)
Volker Lendecke [Fri, 9 Apr 2010 12:09:20 +0000 (14:09 +0200)]
s3: Use talloc_tos() as talloc ctx for fd_lines_load() in map_username()
Volker Lendecke [Fri, 9 Apr 2010 12:05:09 +0000 (14:05 +0200)]
s3: TALLOC_FREE(command) correctly in map_username()
Günther Deschner [Fri, 9 Apr 2010 11:51:42 +0000 (13:51 +0200)]
s4-smbtorture: Fix winreg test after keytype renameing.
Guenther
Günther Deschner [Fri, 9 Apr 2010 11:50:34 +0000 (13:50 +0200)]
s4-winreg: Fix dcesrv_winreg_CreateKey after rename.
Guenther
Günther Deschner [Fri, 9 Apr 2010 11:50:10 +0000 (13:50 +0200)]
s3: re-run make samba3-idl.
Guenther
Günther Deschner [Fri, 9 Apr 2010 11:49:28 +0000 (13:49 +0200)]
winreg: rename winreg_KeyType to winreg_KeyOptions.
Guenther
Günther Deschner [Fri, 9 Apr 2010 10:40:36 +0000 (12:40 +0200)]
s4-smbtorture: when creating winreg-symlinks during a test, it is very wise to make them volatile.
Guenther
Günther Deschner [Fri, 9 Apr 2010 10:26:06 +0000 (12:26 +0200)]
s4-smbtorture: winreg keytype options is a bitmask.
Guenther
Günther Deschner [Fri, 9 Apr 2010 10:24:59 +0000 (12:24 +0200)]
s3: re-run make samba3-idl.
Guenther
Günther Deschner [Fri, 9 Apr 2010 10:24:18 +0000 (12:24 +0200)]
winreg: keytype options is a bitmask.
Guenther
Günther Deschner [Thu, 8 Apr 2010 23:07:39 +0000 (01:07 +0200)]
s4-smbtorture: more work on registry REG_LINK (in-registry symlinks) test.
Guenther
Andrew Tridgell [Fri, 9 Apr 2010 11:24:59 +0000 (21:24 +1000)]
s4-waf: only enable the python uuid module if python <= 2.4
Volker Lendecke [Mon, 5 Apr 2010 13:11:19 +0000 (15:11 +0200)]
libwbclient: Fix some memleaks in the tests
Andrew Tridgell [Fri, 9 Apr 2010 11:12:02 +0000 (21:12 +1000)]
build: use Logs.error() and Logs.info() instead of print()
this gives appropriate colors on output, and ensures it works with
compiler output
Andrew Tridgell [Fri, 9 Apr 2010 11:00:49 +0000 (21:00 +1000)]
build: nicer error message on missing file in waf dist
Andrew Tridgell [Fri, 9 Apr 2010 10:44:09 +0000 (20:44 +1000)]
s4-waf: added --gdbtest option for waf test
Andrew Tridgell [Fri, 9 Apr 2010 10:30:44 +0000 (20:30 +1000)]
build: no need to re-create the lib and bin symlinks if they exist
this saves a few unlink/symlink calls for null builds
Andrew Tridgell [Fri, 9 Apr 2010 09:54:40 +0000 (19:54 +1000)]
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.
Jelmer Vernooij [Fri, 9 Apr 2010 00:37:20 +0000 (02:37 +0200)]
s4-net: Cope with options without arguments.
Jelmer Vernooij [Fri, 9 Apr 2010 00:31:57 +0000 (02:31 +0200)]
s4-net: 'net user create' -> 'net user add', for backwards compatibility.
Jelmer Vernooij [Fri, 9 Apr 2010 00:30:48 +0000 (02:30 +0200)]
Support --version in python scripts.
Jelmer Vernooij [Thu, 8 Apr 2010 21:58:15 +0000 (23:58 +0200)]
s4-net: Convert machinepw command to python.
Jelmer Vernooij [Thu, 8 Apr 2010 21:53:19 +0000 (23:53 +0200)]
s4-net: Convert vampire command over to Python.
Jelmer Vernooij [Mon, 1 Mar 2010 22:03:41 +0000 (23:03 +0100)]
s4-net: Convert user subcommand to Python.
Kamen Mazdrashki [Fri, 9 Apr 2010 07:48:20 +0000 (10:48 +0300)]
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
Kamen Mazdrashki [Thu, 8 Apr 2010 07:23:13 +0000 (10:23 +0300)]
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
Kamen Mazdrashki [Thu, 8 Apr 2010 05:27:07 +0000 (08:27 +0300)]
s4/dsdb: Let caller to control if valid invocationId is critical or zero-guid is acceptable
Kamen Mazdrashki [Thu, 8 Apr 2010 02:32:59 +0000 (05:32 +0300)]
s4/test: Add DRS-UNIT test suite to 'quicktests' list
Kamen Mazdrashki [Thu, 8 Apr 2010 02:31:35 +0000 (05:31 +0300)]
s4/dsdb: Use dsdb_schema_info object to create default schemaInfo values
Kamen Mazdrashki [Thu, 8 Apr 2010 02:30:16 +0000 (05:30 +0300)]
s4/dsdb: Use dsdb_schema_info object to verify schema_info blobs
Kamen Mazdrashki [Thu, 8 Apr 2010 02:27:59 +0000 (05:27 +0300)]
s4/test: Use drsut_schemainfo_new() instead of SCHEMA_INFO_DEFAULT local define
Kamen Mazdrashki [Wed, 7 Apr 2010 11:22:49 +0000 (14:22 +0300)]
s4/waf: add new files to WAF build
Kamen Mazdrashki [Tue, 6 Apr 2010 12:17:05 +0000 (15:17 +0300)]
s4/samldb: schemaInfo attribute must be updated when adding new Schema object
Kamen Mazdrashki [Wed, 7 Apr 2010 10:00:53 +0000 (13:00 +0300)]
s4/test: add shemaInfo torture test to automated test suite
Kamen Mazdrashki [Wed, 31 Mar 2010 01:18:06 +0000 (04:18 +0300)]
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
Kamen Mazdrashki [Thu, 8 Apr 2010 07:51:36 +0000 (10:51 +0300)]
s4/was: Add 'drsblobs' Python module
Kamen Mazdrashki [Wed, 31 Mar 2010 01:13:18 +0000 (04:13 +0300)]
s4: Add 'drsblobs' Python module
This module is be very useful when it comes to making
torture tests.
Kamen Mazdrashki [Tue, 6 Apr 2010 12:10:47 +0000 (15:10 +0300)]
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)
Andrew Bartlett [Tue, 6 Apr 2010 01:32:57 +0000 (11:32 +1000)]
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
Andrew Bartlett [Tue, 6 Apr 2010 01:32:14 +0000 (11:32 +1000)]
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
Kamen Mazdrashki [Mon, 29 Mar 2010 09:31:38 +0000 (12:31 +0300)]
s4/tort: Unit test for schemaInfo implementation
Kamen Mazdrashki [Sat, 27 Mar 2010 01:04:09 +0000 (03:04 +0200)]
torture: add torture_assert_goto() convenience macro
Kamen Mazdrashki [Tue, 23 Mar 2010 14:44:02 +0000 (16:44 +0200)]
s4/dsdb: dsdb_schema_info object implementation
Kamen Mazdrashki [Tue, 23 Mar 2010 00:32:14 +0000 (02:32 +0200)]
s4/dsdb: Define dsdb representation for schemaInfo attribute
Kamen Mazdrashki [Thu, 18 Mar 2010 15:04:34 +0000 (17:04 +0200)]
s4/ldif: Handle Schema:schemaInfo blobs
Kamen Mazdrashki [Thu, 18 Mar 2010 00:33:04 +0000 (02:33 +0200)]
s4/idl: drsblobs IDL regeneration
Kamen Mazdrashki [Thu, 18 Mar 2010 00:30:51 +0000 (02:30 +0200)]
s4/idl: Schema:schemaInfo attribute description
Karolin Seeger [Fri, 9 Apr 2010 07:23:54 +0000 (09:23 +0200)]
s4-krb5: Fix typos in comment.
Karolin
Jeremy Allison [Fri, 9 Apr 2010 05:15:55 +0000 (22:15 -0700)]
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.
Jeremy Allison [Fri, 9 Apr 2010 04:24:23 +0000 (21:24 -0700)]
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.
Jeremy Allison [Fri, 9 Apr 2010 03:32:36 +0000 (20:32 -0700)]
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.
Kamen Mazdrashki [Mon, 29 Mar 2010 21:13:46 +0000 (00:13 +0300)]
s4/torture: Suppress Valgrind warnings
This patch suppresses two Valgrind warnings of type
"xxx bytes in yy blocks are indirectly lost in loss record"
Günther Deschner [Thu, 8 Apr 2010 22:11:57 +0000 (00:11 +0200)]
s4-winreg: add winreg_DeleteKeyEx stub.
Guenther
Günther Deschner [Thu, 8 Apr 2010 22:11:41 +0000 (00:11 +0200)]
s3-winreg: add winreg_DeleteKeyEx stub.
Guenther
Günther Deschner [Thu, 8 Apr 2010 22:11:00 +0000 (00:11 +0200)]
s3: re-run make samba3-idl.
Guenther
Günther Deschner [Thu, 8 Apr 2010 22:10:07 +0000 (00:10 +0200)]
winreg: add IDL for winreg_DeleteKeyEx.
Guenther
Matthias Dieter Wallnöfer [Thu, 8 Apr 2010 21:43:50 +0000 (23:43 +0200)]
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.
Matthias Dieter Wallnöfer [Thu, 8 Apr 2010 21:42:23 +0000 (23:42 +0200)]
s4:registry - "patchfile_preg.c" - make a SIVAL statement nicer
Günther Deschner [Thu, 8 Apr 2010 21:47:04 +0000 (23:47 +0200)]
s3: re-run make samba3-idl.
Guenther
Günther Deschner [Thu, 8 Apr 2010 21:46:15 +0000 (23:46 +0200)]
winreg: fill in some winreg IDL gaps.
Guenther
Jelmer Vernooij [Thu, 8 Apr 2010 21:41:08 +0000 (23:41 +0200)]
s4-net: Convert 'net time' to python.
Jelmer Vernooij [Mon, 1 Mar 2010 21:33:01 +0000 (22:33 +0100)]
net: Convert time command to python.
Jelmer Vernooij [Thu, 8 Apr 2010 20:59:16 +0000 (22:59 +0200)]
s4-net: Use new Net() object in net export keytab.
Jelmer Vernooij [Mon, 1 Mar 2010 21:23:45 +0000 (22:23 +0100)]
pynet: Create a net class.
Jelmer Vernooij [Thu, 8 Apr 2010 21:18:17 +0000 (23:18 +0200)]
s4-python: Fix formatting, use standard convention to call instance methods.
Jelmer Vernooij [Thu, 8 Apr 2010 20:14:50 +0000 (22:14 +0200)]
s4-python: Cancel transaction properly in case of exceptions, fix formatting.
Jelmer Vernooij [Thu, 8 Apr 2010 20:07:42 +0000 (22:07 +0200)]
s4-python: Move load_partition_usn to dsdb module.