kai/samba.git
15 years agostricter checks for valid inputs in SMB2 open and lock
Andrew Tridgell [Mon, 26 May 2008 05:02:43 +0000 (15:02 +1000)]
stricter checks for valid inputs in SMB2 open and lock

15 years agocheck use of mincnt past EOF in SMB
Andrew Tridgell [Mon, 26 May 2008 05:00:56 +0000 (15:00 +1000)]
check use of mincnt past EOF in SMB

15 years agofill in reserved field on SMB2 flush
Andrew Tridgell [Mon, 26 May 2008 05:00:27 +0000 (15:00 +1000)]
fill in reserved field on SMB2 flush

15 years agoallow larger streams using the TDB backend
Andrew Tridgell [Mon, 26 May 2008 04:59:58 +0000 (14:59 +1000)]
allow larger streams using the TDB backend

15 years agoFix missing colon.
Jelmer Vernooij [Sun, 25 May 2008 12:41:54 +0000 (14:41 +0200)]
Fix missing colon.

15 years agoExpose transfer and abstract syntax.
Jelmer Vernooij [Sun, 25 May 2008 02:54:38 +0000 (04:54 +0200)]
Expose transfer and abstract syntax.

15 years agoExpose request timeout variable in Python.
Jelmer Vernooij [Sun, 25 May 2008 02:38:57 +0000 (04:38 +0200)]
Expose request timeout variable in Python.

15 years agoAdd support for secondary contexts from Python.
Jelmer Vernooij [Sun, 25 May 2008 02:23:03 +0000 (04:23 +0200)]
Add support for secondary contexts from Python.

15 years agoAdd initial work for script that uses probing to figure out IDL.
Jelmer Vernooij [Sun, 25 May 2008 00:32:21 +0000 (02:32 +0200)]
Add initial work for script that uses probing to figure out IDL.

15 years agoCheck for fault codes when connecting.
Jelmer Vernooij [Sat, 24 May 2008 22:04:11 +0000 (00:04 +0200)]
Check for fault codes when connecting.

15 years agoAdd helper function to return DCE/RPC fault codes.
Jelmer Vernooij [Sat, 24 May 2008 21:39:38 +0000 (23:39 +0200)]
Add helper function to return DCE/RPC fault codes.

15 years agoAdd convenience function for creating objects with NDR error codes.
Jelmer Vernooij [Sat, 24 May 2008 21:22:49 +0000 (23:22 +0200)]
Add convenience function for creating objects with NDR error codes.

15 years agoFix memory initialization in raw calls.
Jelmer Vernooij [Sat, 24 May 2008 21:07:16 +0000 (23:07 +0200)]
Fix memory initialization in raw calls.

15 years agoSupport optional object argument when sending DCE/RPC requests.
Jelmer Vernooij [Sat, 24 May 2008 21:02:09 +0000 (23:02 +0200)]
Support optional object argument when sending DCE/RPC requests.

15 years agoAllow connecting to a DCE/RPC interface with Python for which we don't have IDL.
Jelmer Vernooij [Sat, 24 May 2008 20:56:49 +0000 (22:56 +0200)]
Allow connecting to a DCE/RPC interface with Python for which we don't have IDL.

15 years agoAdd convenience functions for setting Python objects from errors.
Jelmer Vernooij [Sat, 24 May 2008 20:13:32 +0000 (22:13 +0200)]
Add convenience functions for setting Python objects from errors.

15 years agoExport functions for setting NTSTATUS and WERRORs in python.
Jelmer Vernooij [Sat, 24 May 2008 19:38:33 +0000 (21:38 +0200)]
Export functions for setting NTSTATUS and WERRORs in python.

15 years agoAllow request() call to do custom calls on DCE/RPC interfaces.
Jelmer Vernooij [Sat, 24 May 2008 19:20:45 +0000 (21:20 +0200)]
Allow request() call to do custom calls on DCE/RPC interfaces.

15 years agoUse manually written Python bindings for DCE/RPC rather than SWIG based.
Jelmer Vernooij [Sat, 24 May 2008 19:02:56 +0000 (21:02 +0200)]
Use manually written Python bindings for DCE/RPC rather than SWIG based.

Use base class for pidl-generated DCE/RPC interface Python bindings.

15 years agoShare struct used for interfaces in Python code.
Jelmer Vernooij [Sat, 24 May 2008 18:00:37 +0000 (20:00 +0200)]
Share struct used for interfaces in Python code.

15 years agoAdd tests for new NDR pack/unpack functionality in Python DCE/RPC bindings.
Jelmer Vernooij [Sat, 24 May 2008 17:50:09 +0000 (19:50 +0200)]
Add tests for new NDR pack/unpack functionality in Python DCE/RPC bindings.

15 years agoOnly provide __ndr_pack__ / __ndr_unpack__ if the push/pull functions are public.
Jelmer Vernooij [Sat, 24 May 2008 17:49:54 +0000 (19:49 +0200)]
Only provide __ndr_pack__ / __ndr_unpack__ if the push/pull functions are public.

15 years agoAdd convenience functions for packing/unpacking structs in python.
Jelmer Vernooij [Sat, 24 May 2008 16:57:15 +0000 (18:57 +0200)]
Add convenience functions for packing/unpacking structs in python.

15 years agoSupport __ndr_unpack__ on DCE/RPC structures in Python.
Jelmer Vernooij [Sat, 24 May 2008 16:55:46 +0000 (18:55 +0200)]
Support __ndr_unpack__ on DCE/RPC structures in Python.

15 years agoAdd __ndr_pack__ method to all DCE/RPC structures.
Jelmer Vernooij [Sat, 24 May 2008 16:46:32 +0000 (18:46 +0200)]
Add __ndr_pack__ method to all DCE/RPC structures.

15 years agoAdd docstrings to a couple more python modules.
Jelmer Vernooij [Sat, 24 May 2008 02:01:57 +0000 (04:01 +0200)]
Add docstrings to a couple more python modules.

15 years agoInclude full path for python scripting dir to allow out-of-tree builds.
Jelmer Vernooij [Fri, 23 May 2008 17:32:50 +0000 (19:32 +0200)]
Include full path for python scripting dir to allow out-of-tree builds.

15 years agoFix typo in bugs.txt.
Matthias Dieter Wallnöfer [Fri, 23 May 2008 17:28:55 +0000 (19:28 +0200)]
Fix typo in bugs.txt.

15 years agoMore work allowing out-of-tree builds. Patch by Matthias Dieter Wallnöfer and me.
Jelmer Vernooij [Fri, 23 May 2008 17:25:05 +0000 (19:25 +0200)]
More work allowing out-of-tree builds. Patch by Matthias Dieter Wallnöfer and me.

15 years agoFix indentation, add docstring in provisioning script.
Jelmer Vernooij [Fri, 23 May 2008 14:43:26 +0000 (16:43 +0200)]
Fix indentation, add docstring in provisioning script.

15 years agoSome more PEP improvements.
Jelmer Vernooij [Fri, 23 May 2008 14:29:08 +0000 (16:29 +0200)]
Some more PEP improvements.

15 years agoMerge branch 'v4-0-test' of ssh://git.samba.org/data/git/samba into v4-0-wsgi
Jelmer Vernooij [Fri, 23 May 2008 14:24:07 +0000 (16:24 +0200)]
Merge branch 'v4-0-test' of ssh://git.samba.org/data/git/samba into v4-0-wsgi

Conflicts:

source/scripting/python/samba/provision.py

15 years agogetting/setting security options works for the regf backend now
Jelmer Vernooij [Fri, 23 May 2008 14:19:51 +0000 (16:19 +0200)]
getting/setting security options works for the regf backend now

15 years agoInclude test case name when reporting with subunit. This should make it possible...
Jelmer Vernooij [Fri, 23 May 2008 14:19:00 +0000 (16:19 +0200)]
Include test case name when reporting with subunit. This should make it possible to having a test fail against some test cases and success against other ones.

15 years agoCope with new event context parameter in API and removed parameters to reg_open_local().
Jelmer Vernooij [Fri, 23 May 2008 14:17:58 +0000 (16:17 +0200)]
Cope with new event context parameter in API and removed parameters to reg_open_local().

15 years agoReport full 'path' of unexpected test results for easier inclusion in knownfailure...
Jelmer Vernooij [Fri, 23 May 2008 14:17:23 +0000 (16:17 +0200)]
Report full 'path' of unexpected test results for easier inclusion in knownfailure file.

15 years agoMerge branch 'v4-0-test' of ssh://git.samba.org/data/git/samba into registry
Jelmer Vernooij [Fri, 23 May 2008 13:24:40 +0000 (15:24 +0200)]
Merge branch 'v4-0-test' of ssh://git.samba.org/data/git/samba into registry

15 years agoMerge branch 'v4-0-test' of ssh://git.samba.org/data/git/samba into docstrings2
Jelmer Vernooij [Fri, 23 May 2008 13:20:57 +0000 (15:20 +0200)]
Merge branch 'v4-0-test' of ssh://git.samba.org/data/git/samba into docstrings2

15 years agoselftest: Use convenience function for prepending paths to environment variables.
Jelmer Vernooij [Fri, 23 May 2008 13:20:32 +0000 (15:20 +0200)]
selftest: Use convenience function for prepending paths to environment variables.

15 years agoFix bugs in samr python tests.
Jelmer Vernooij [Fri, 23 May 2008 13:10:35 +0000 (15:10 +0200)]
Fix bugs in samr python tests.

15 years agoCreate new context in pytalloc to avoid problems with talloc_free() freeing the wrong...
Jelmer Vernooij [Fri, 23 May 2008 13:09:51 +0000 (15:09 +0200)]
Create new context in pytalloc to avoid problems with talloc_free() freeing the wrong parent of a pointer.

15 years agoUFollow conventions for __repr__ contents for talloc python wrapper.
Jelmer Vernooij [Fri, 23 May 2008 11:13:36 +0000 (13:13 +0200)]
UFollow conventions for __repr__ contents for talloc python wrapper.

15 years agoFix syntax for return type in DCE/RPC interface python bindings.
Jelmer Vernooij [Fri, 23 May 2008 10:45:05 +0000 (12:45 +0200)]
Fix syntax for return type in DCE/RPC interface python bindings.

15 years agoSelf PYTHONPATH from selftest.
Jelmer Vernooij [Fri, 23 May 2008 10:40:45 +0000 (12:40 +0200)]
Self PYTHONPATH from selftest.

15 years agoRAW-STREAMS: better test the bahavior of streams on directories
Stefan Metzmacher [Fri, 23 May 2008 07:39:50 +0000 (09:39 +0200)]
RAW-STREAMS: better test the bahavior of streams on directories

Note: this has a samba3 specific code path, which we should fixed.

metze

15 years agopvfs_open: return FILE_IS_A_DIRECTORY when opening a stream on a directory
Stefan Metzmacher [Fri, 23 May 2008 07:47:59 +0000 (09:47 +0200)]
pvfs_open: return FILE_IS_A_DIRECTORY when opening a stream on a directory

metze

15 years agopvfs_resolve: stream_name = "" is only the same as NULL for files
Stefan Metzmacher [Fri, 23 May 2008 07:46:50 +0000 (09:46 +0200)]
pvfs_resolve: stream_name = "" is only the same as NULL for files

metze

15 years agopvfs_streams: directories don't have streams
Stefan Metzmacher [Fri, 23 May 2008 07:45:46 +0000 (09:45 +0200)]
pvfs_streams: directories don't have streams

metze

15 years agoFix imports for provision-backend.
Jelmer Vernooij [Fri, 23 May 2008 02:31:10 +0000 (04:31 +0200)]
Fix imports for provision-backend.

This needs a blackbox test...

15 years agoFix indentation.
Jelmer Vernooij [Thu, 22 May 2008 11:00:04 +0000 (13:00 +0200)]
Fix indentation.

15 years agoAdd another test toe the python samr testsuite.
Jelmer Vernooij [Thu, 22 May 2008 10:21:26 +0000 (12:21 +0200)]
Add another test toe the python samr testsuite.

15 years agoRemove unused ejs library functions.
Jelmer Vernooij [Thu, 22 May 2008 03:24:59 +0000 (05:24 +0200)]
Remove unused ejs library functions.

15 years agoRemove unused echo ejs script.
Jelmer Vernooij [Thu, 22 May 2008 03:23:50 +0000 (05:23 +0200)]
Remove unused echo ejs script.

15 years agoConvert samr test to python.
Jelmer Vernooij [Thu, 22 May 2008 03:13:31 +0000 (05:13 +0200)]
Convert samr test to python.

15 years agoDisable building of EJS DCE/RPC support.
Jelmer Vernooij [Thu, 22 May 2008 02:23:23 +0000 (04:23 +0200)]
Disable building of EJS DCE/RPC support.

15 years agoAdd proper implementation of MessageElement.__cmp__.
Jelmer Vernooij [Fri, 23 May 2008 02:07:42 +0000 (04:07 +0200)]
Add proper implementation of MessageElement.__cmp__.

15 years agoWork around bug adding extra imports in generated file.
Jelmer Vernooij [Fri, 23 May 2008 01:56:20 +0000 (03:56 +0200)]
Work around bug adding extra imports in generated file.

15 years agoRemove unused EJS testprogs.
Jelmer Vernooij [Thu, 22 May 2008 10:34:50 +0000 (12:34 +0200)]
Remove unused EJS testprogs.

15 years agoRegenerate with SWIG 1.3.35.
Jelmer Vernooij [Fri, 23 May 2008 01:22:56 +0000 (03:22 +0200)]
Regenerate with SWIG 1.3.35.

15 years agoFix bug after reprocessing swig files with newer version of SWIG.
Jelmer Vernooij [Fri, 23 May 2008 01:20:37 +0000 (03:20 +0200)]
Fix bug after reprocessing swig files with newer version of SWIG.

15 years agoFix imports for minschema.
Jelmer Vernooij [Fri, 23 May 2008 00:44:42 +0000 (02:44 +0200)]
Fix imports for minschema.

15 years agoProperly fix symlink for module aliases.
Jelmer Vernooij [Fri, 23 May 2008 00:42:42 +0000 (02:42 +0200)]
Properly fix symlink for module aliases.

15 years agodcerpc is now samba.dcerpc, avoid including source code in API documentation.
Jelmer Vernooij [Thu, 22 May 2008 22:45:50 +0000 (00:45 +0200)]
dcerpc is now samba.dcerpc, avoid including source code in API documentation.

15 years agoAdd docstrings to samba3 and getopt modules.
Jelmer Vernooij [Thu, 22 May 2008 16:47:32 +0000 (18:47 +0200)]
Add docstrings to samba3 and getopt modules.

15 years agoAdd docstrings to events python module.
Jelmer Vernooij [Thu, 22 May 2008 16:47:18 +0000 (18:47 +0200)]
Add docstrings to events python module.

15 years agoadd more docstrings to registry python module
Jelmer Vernooij [Thu, 22 May 2008 16:24:10 +0000 (18:24 +0200)]
add more docstrings to registry python module

15 years agoAdd docstrings to param python module.
Jelmer Vernooij [Thu, 22 May 2008 16:13:48 +0000 (18:13 +0200)]
Add docstrings to param python module.

15 years agoAdd docstring for samba.net.Join
Jelmer Vernooij [Thu, 22 May 2008 16:03:01 +0000 (18:03 +0200)]
Add docstring for samba.net.Join

15 years agoUse restructuredText formatting for docstrings.
Jelmer Vernooij [Thu, 22 May 2008 15:42:18 +0000 (17:42 +0200)]
Use restructuredText formatting for docstrings.

15 years agoAdd docstrings in misc python module.
Jelmer Vernooij [Thu, 22 May 2008 15:33:23 +0000 (17:33 +0200)]
Add docstrings in misc python module.

15 years agoAdd some docstrings to tdb.
Jelmer Vernooij [Thu, 22 May 2008 15:26:55 +0000 (17:26 +0200)]
Add some docstrings to tdb.

15 years agoAdd module docstring, docstrings for constructors.
Jelmer Vernooij [Thu, 22 May 2008 15:15:00 +0000 (17:15 +0200)]
Add module docstring, docstrings for constructors.

15 years agoAdd more docstrings in the ldb python module.
Jelmer Vernooij [Thu, 22 May 2008 15:02:31 +0000 (17:02 +0200)]
Add more docstrings in the ldb python module.

15 years agoAdd some docstrings to ldb python module, fix MessageElement name.
Jelmer Vernooij [Thu, 22 May 2008 14:50:33 +0000 (16:50 +0200)]
Add some docstrings to ldb python module, fix MessageElement name.

15 years agoAdd some docstrings to credentials python module.
Jelmer Vernooij [Thu, 22 May 2008 14:50:14 +0000 (16:50 +0200)]
Add some docstrings to credentials python module.

15 years agoAdd some notes about further enhancements of the Python pidl backend.
Jelmer Vernooij [Thu, 22 May 2008 13:13:13 +0000 (15:13 +0200)]
Add some notes about further enhancements of the Python pidl backend.

15 years agofix make test for EAs again
Andrew Tridgell [Thu, 22 May 2008 14:07:12 +0000 (00:07 +1000)]
fix make test for EAs again

- go back to 4 byte alignment until I work out the rules that Vista
  wants more exactly
- add the zero sized EA handling for SMB2 more generically

15 years agoMerge commit 'origin/v4-0-test' into v4-0-test
Andrew Tridgell [Thu, 22 May 2008 13:28:44 +0000 (23:28 +1000)]
Merge commit 'origin/v4-0-test' into v4-0-test

15 years agoSMB2 read returns NT_STATUS_END_OF_FILE on read past end of file
Andrew Tridgell [Thu, 22 May 2008 13:07:16 +0000 (23:07 +1000)]
SMB2 read returns NT_STATUS_END_OF_FILE on read past end of file

15 years agolibreplace: we need to use AC_TRY_LINK() to make sure HAVE_IPV6 is correctly detected
Stefan Metzmacher [Thu, 22 May 2008 13:00:19 +0000 (15:00 +0200)]
libreplace: we need to use AC_TRY_LINK() to make sure HAVE_IPV6 is correctly detected

metze

15 years agofixes for EAs and filename in gentest_smb2 results
Andrew Tridgell [Thu, 22 May 2008 13:00:08 +0000 (23:00 +1000)]
fixes for EAs and filename in gentest_smb2 results

- SMB2 returns 0 for a null EA
- return the share qualified name for the filename in SMB2 ALL_INFO
  level

15 years agoadded a --noeas option to gentest_smb2
Andrew Tridgell [Thu, 22 May 2008 12:46:43 +0000 (22:46 +1000)]
added a --noeas option to gentest_smb2

15 years agopass in the required alignment to the EA construction routines
Andrew Tridgell [Thu, 22 May 2008 12:46:29 +0000 (22:46 +1000)]
pass in the required alignment to the EA construction routines

15 years agoadded a define for all valid file attributes
Andrew Tridgell [Thu, 22 May 2008 07:54:06 +0000 (17:54 +1000)]
added a define for all valid file attributes

15 years agocheck for invalid file attribute values in create
Andrew Tridgell [Thu, 22 May 2008 07:53:50 +0000 (17:53 +1000)]
check for invalid file attribute values in create

15 years agoMerge commit 'origin/v4-0-test' into v4-0-test
Andrew Tridgell [Thu, 22 May 2008 06:09:10 +0000 (16:09 +1000)]
Merge commit 'origin/v4-0-test' into v4-0-test

15 years agoadded testing of SMB2 setfileinfo in gentest_smb2
Andrew Tridgell [Thu, 22 May 2008 05:44:13 +0000 (15:44 +1000)]
added testing of SMB2 setfileinfo in gentest_smb2

15 years agoadded EAs in the generated SMB2 create operation
Andrew Tridgell [Thu, 22 May 2008 05:35:52 +0000 (15:35 +1000)]
added EAs in the generated SMB2 create operation

15 years agoadded --maskindexing and qfileinfo testing
Andrew Tridgell [Thu, 22 May 2008 04:51:32 +0000 (14:51 +1000)]
added --maskindexing and qfileinfo testing

 - added --maskindexing to mask the 0x2000 noindex bit in file
   attributes
 - added testing of qfileinfo in gentest_smb2

15 years agominor cleanup in SMB2 getinfo test
Andrew Tridgell [Thu, 22 May 2008 04:50:36 +0000 (14:50 +1000)]
minor cleanup in SMB2 getinfo test

15 years agofixed parsing of the SMB2 ALL_INFO qfileinfo level
Andrew Tridgell [Thu, 22 May 2008 04:49:21 +0000 (14:49 +1000)]
fixed parsing of the SMB2 ALL_INFO qfileinfo level

15 years agoadded SMB2 gentest generation of SMB2 echo packets
Andrew Tridgell [Thu, 22 May 2008 03:43:04 +0000 (13:43 +1000)]
added SMB2 gentest generation of SMB2 echo packets

15 years agobadly formed SMB2 packets get NT_STATUS_INVALID_PARAMETER
Andrew Tridgell [Thu, 22 May 2008 03:14:55 +0000 (13:14 +1000)]
badly formed SMB2 packets get NT_STATUS_INVALID_PARAMETER

15 years agofixes to the SMB2 lock test after recent SMB2 locking changes
Andrew Tridgell [Thu, 22 May 2008 03:14:36 +0000 (13:14 +1000)]
fixes to the SMB2 lock test after recent SMB2 locking changes

15 years agoGPO: Do not provision Default Domain Policy as initially enforced. (bz #5480)
Andrew Kroeger [Thu, 22 May 2008 02:14:06 +0000 (21:14 -0500)]
GPO: Do not provision Default Domain Policy as initially enforced. (bz #5480)

This only solves part of bz #5480.  The settings for Enforced & Link Enabled
now match the default settings of a Windows DC, but they are still "locked"
and cannot be changed via the GUI.

15 years agoenableaccount: Use correct command name in usage output.
Andrew Kroeger [Wed, 21 May 2008 23:54:15 +0000 (18:54 -0500)]
enableaccount: Use correct command name in usage output.

15 years agoprovision: Generate krb5.conf template separate from named.conf template.
Andrew Kroeger [Wed, 21 May 2008 23:12:36 +0000 (18:12 -0500)]
provision: Generate krb5.conf template separate from named.conf template.

15 years agogitignore: Ignore some output files from make test.
Andrew Kroeger [Wed, 21 May 2008 07:18:23 +0000 (02:18 -0500)]
gitignore: Ignore some output files from make test.

15 years agosubunit.sh: Properly capture and pass on the command output.
Andrew Kroeger [Wed, 21 May 2008 07:07:45 +0000 (02:07 -0500)]
subunit.sh: Properly capture and pass on the command output.

Previously, the output from $cmdline was never captured.  In case of a
failure, there was no output being passed to the subunit_fail_test() function,
but that function contains a call to "cat -".  This caused the script to hang
indefinitely waiting for input.

We now capture $cmdline output (including mapping stderr to stdout) using
backticks, and then pipe that output to the subunit_fail_test() if there is
a failure.

15 years agoFix import in provision test.
Jelmer Vernooij [Thu, 22 May 2008 01:09:40 +0000 (03:09 +0200)]
Fix import in provision test.