summaryrefslogtreecommitdiff
path: root/source4/scripting
AgeCommit message (Collapse)AuthorFilesLines
2007-10-10r5293: Map an empty policy handle to None when creating policy handles, andTim Potter1-3/+20
refuse to accept None as a policy handle when accepting them. Now we don't segfault after running the samr_Shutdown() test. (This used to be commit 2f0419c4d8100864ddddf5629d1808b655da9d76)
2007-10-10r5247: Fix rpcclient to work with new swig interface.Tim Potter1-18/+34
(This used to be commit ad12a90d0e0fe7106b1845097d8fc71be3b8e378)
2007-10-10r5244: Convert this module to use the new structure mapping SWIG stuff ↵Tim Potter1-72/+103
instead of the old dictionary based routines. The SAMR connect, close, enumdomains, opendomain, enum{users,aliases,groups} functions now work again! (This used to be commit 53b361657fe892ad7b9d781450ad841a6b1072e5)
2007-10-10r5243: Woohoo - memory leak city! Comment out talloc_free() call until ITim Potter1-1/+1
figure out a better way to pass tallocated memory around with SWIG. (This used to be commit c63668cbbe393a78ccd9a86a33fb4bd7bb9af16d)
2007-10-10r5242: Check that argument is an integer or a long for uint32_t inputTim Potter1-3/+16
typemap. The uint32_t output typemap must return a Python long as an unsigned uint32_t cannot be fully represented by a Python int. Likewise for the NTSTATUS typemap. (This used to be commit 6dba5d6fb43f87bedc380c4f82b1d5f90b70325a)
2007-10-10r5224: Add in/out typemaps for resume handles. This saves us having to muchTim Potter1-0/+39
around with pointers to just one uint32. Add an output typemap to copy a policy handle as the talloc context is destroyed before the wrapper function returns. More work here needed to avoid memory leaks. Use the swig carrays.i file to create accessor and setter functions for fixed width integer types. Also add functions for struct samr_SamEntry as it's returned by the LookupDomain RPC. This really needs to be done by pidl so I don't have to go through and find all the structures that are returned in arrays. Include security.i to give us SIDs and security descriptors. (This used to be commit 5a1f6c999ef5e84e93ec8f07b9751d795c4566a5)
2007-10-10r5095: uint32 -> uint32_tTim Potter1-3/+2
%include misc.i to get definition of struct policy_handle Remove #includes we aren't using just now. (This used to be commit e561bc3efa2a5307a3940a32058ca00d5dfc2fc5)
2007-10-10r5094: Use builtin swig types for converting between fixed width integer types.Tim Potter1-11/+8
(This used to be commit f2a1b237bcc824bd3e84da69f472ffb3c9055d00)
2007-10-10r5074: Remove dead code.Tim Potter1-266/+0
(This used to be commit 36b46bb05aeffb2ba708e4653c131cecece01984)
2007-10-10r5018: Initialise required subsystems (by hand, generated by substitutingTim Potter1-8/+40
BINARY for LIBRARY in config.mk). Cut things down to just the samr pipe for the moment. (This used to be commit 95d2a58e5b2cfc30304ca390de7073c214850984)
2007-10-10r5017: Fix bug in output typemap for uint32 (!)Tim Potter1-1/+1
(This used to be commit dc845154ca1738f4c3959a1799cbbd6ce65b7d02)
2007-10-10r5016: Use LIBRARY instead of BINARY for inserting the swig stuff into theTim Potter2-13/+8
build system. This still generates bogus targets (i.e bin/swig_dcerpc.so.0.0.1) and the subsystem initialisation needs to be done by hand but it is less of a hack. (This used to be commit e9b69d19a84b31966fb6e66e9d8682b0f9b40a47)
2007-10-10r4982: Start to move swig dependencies into new build system. UnfortunatelyTim Potter2-0/+16
I can only get something useful happening by using the BINARY keyword as nothing else seems to generate dependency lists that can be used when linking the swig shared libraries. Anyway this is a lot nicer than having lots of junk in makefile.pm. (This used to be commit 71a22f5206086c5ab7315d38934d65483aff7a70)
2007-10-10r4981: Fix swig build.Tim Potter1-3/+1
(This used to be commit b44ab87c83ad094ce4595c9702d6a21f30c1de26)
2007-10-10r4546: Use talloc_p() instad of talloc()Tim Potter1-1/+1
(This used to be commit 2ec3a137d7fd8a912bc70e865f7a7798190b8869)
2007-10-10r3870: Delete wrappers for tdb_lockkeys() and tdb_unlockkeys().Tim Potter1-2/+0
(This used to be commit 5af52c559e731d55ccd019a2b06f486a2f86e6ce)
2007-10-10r3607: EnumDomainAlises doesn't take a max_size parameter.Tim Potter1-1/+0
(This used to be commit 996d042bf701860fcc9a9b424118c02addb2119b)
2007-10-10r3590: Add some more commands to rpcclient from a patch by jbm. AddTim Potter2-6/+186
SamrQueryDomInfo, SamrQueryDomInfo2, SamrEnumDomainAliases, and SamrEnumDomainUsers. (This used to be commit 91eb405354a65bfd94bf59c21fe21f68fff7b9fd)
2007-10-10r3589: Add some extra status codes.Tim Potter1-0/+2
(This used to be commit 6d918f15951f38061128e141bbcc161d8956977e)
2007-10-10r3588: Fix bug in converting SIDs containing large unsigned integers from ↵Tim Potter2-3/+15
Python. (This used to be commit a46aba43549e5221ec0c15d4133444d8ef77a4fb)
2007-10-10r3521: Collect printer driver names in EnumPrinterDrivers.Tim Potter1-4/+5
(This used to be commit 86f54db1ef96fbffc6f1c7948d8bc849009a536d)
2007-10-10r3506: Test EnumPorts function.Tim Potter1-6/+14
(This used to be commit 354068aae16b7e0c13416cfcdf9bdef5138dccc0)
2007-10-10r3505: #include dynconfig.hTim Potter1-0/+1
(This used to be commit 336eba61e99cd96fe4abc8476b998d079fbb5770)
2007-10-10r3474: Add conversion functions for the time_t type.Tim Potter1-0/+23
(This used to be commit caa563faaa264c41afdb60d64dc9566fcd31518e)
2007-10-10r3459: Fix cut&paste error in copyright header.Tim Potter1-2/+2
(This used to be commit 922ea35a4b6ea02e888a98aee241f1b9f6fca420)
2007-10-10r3456: Add appropriate #includes to fix Python extensions build.Tim Potter1-0/+8
(This used to be commit 7e94d5bd3dd7b7055e9b70496207713f94446f98)
2007-10-10r3430: Add tests for EnumPrinterDataEx, SetPrinterDataEx (doesn't work),Tim Potter1-10/+65
EnumPrinterDrivers. (This used to be commit fe381c3ebc64a7d067832c7d2aebeb35b1f3923b)
2007-10-10r3411: Ignore some autogenerated files.Tim Potter1-0/+3
(This used to be commit f6428f2d01a4bd8d4acadf96e33957371cdb2021)
2007-10-10r3410: Handle conversion of DATA_BLOBs and pointers to DATA_BLOBs from python.Tim Potter2-1/+43
(This used to be commit 12e037dbe3d497aff2415c0a22fab20a7932ab7a)
2007-10-10r3405: Test EnumPrinterData and GetPrinterData.Tim Potter1-1/+48
(This used to be commit a4facee8602cfb9b2599e0068dd42933ed94655e)
2007-10-10r3403: Add test for operations on print server handle.Tim Potter1-15/+72
Add tests for EnumJobs, GetJob. Oops - forgot to EnumPrinters at level2. (This used to be commit 930d57964b69fda59f473914ac4633984f259c86)
2007-10-10r3401: Fix IDL for SetForm RPC.Tim Potter1-10/+29
(This used to be commit 206f3de297c397c8894f9855ea8571c68823e1fc)
2007-10-10r3396: Rename form_name -> formname. This time, check smbtorture builds beforeTim Potter1-1/+4
committing. (-: (This used to be commit c776232d0130638a85cc8ce75e4bbef75952e856)
2007-10-10r3311: Consistency updates for form name members.Tim Potter1-33/+94
Add tests for EnumForms, GetForm, AddForm, DeleteForm. (This used to be commit 6c49ce976a5c6982fa83de4ea723cef5597c29ef)
2007-10-10r3309: Add wrapper for dcerpc_server_name() function.Tim Potter1-0/+2
(This used to be commit 2d60a04f21da9dbe32c85b11afa98df74f5fd763)
2007-10-10r3308: Handle servers that don't have samr_Connect5.Tim Potter1-4/+11
(This used to be commit 52af866ffb427427d21daf11a4ca9a8b9881f1d5)
2007-10-10r3302: The security descriptors in spoolss_PrinterInfo2 and spoolss_PrinterInfo3Tim Potter1-6/+53
need to be marked as subcontext(0). GetPrinter tests now work for all info levels! (This used to be commit 53bd02960e17f7517e0d6c4f489d27b8bdcc7582)
2007-10-10r3217: Start of a spoolss_GetPrinter test.Tim Potter1-0/+26
(This used to be commit 994fe92febe38f06d69f43b01c80e8350e902986)
2007-10-10r3216: Add tests for OpenPrinterEx and ClosePrinter.Tim Potter1-8/+63
(This used to be commit b7ff5f0deded4bcf6695dac0683fd9d271d9c255)
2007-10-10r3204: Got unpacking of an array of PrinterInfo union elements working. Phew.Tim Potter1-1/+1
(This used to be commit f490cd719cc02589e73e26fa983aff90708d1926)
2007-10-10r3010: Do some more PyInt vs PyLong checks.Tim Potter1-3/+2
(This used to be commit b19dc6cd9c1ac44d970b092f09cf96c737a90fdd)
2007-10-10r3009: Fix up unmarshall functions to return Python dict instead of a NTSTATUS.Tim Potter1-2/+8
We can now unmarshall a single printer returned from an EnumPrinters. (This used to be commit 89da7a9196d40699881f12c9a5fe62301aafd4cf)
2007-10-10r3007: uint32 values need to be stored in Python longs, as on 32-bit machinesTim Potter1-1/+5
Python ints can only hold int32 values. (This used to be commit 7c5ada63bf5d876a1b67df2cf7bd44942e4b0a98)
2007-10-10r3001: Expose unmarshalling functions for structures marked "public" in theTim Potter2-1/+7
idl. This allows us to pass a buffer of bytes returned from a spoolss call and convert it to a Python dictionary. Works for enumprinters level 1! (This used to be commit 4bc497a2994b12845a46b2d19f60bb81c9869fc9)
2007-10-10r2994: More cleanups. Move the generation of NTSTATUS and WERROR exceptionsTim Potter1-32/+0
from inside a swig %exception block and into the argout typemap. This will allow us to wrap functions that don't require exception handling, and also get rid of some ugly code in dcerpc.i (This used to be commit 558076cc8ddbdb563869f7d35150310217f30c31)
2007-10-10r2986: Add correct value to dict when generating wrapper for functions thatTim Potter2-4/+8
return WERROR values. Clean up WERROR vs NTSTATUS handling a bit. (This used to be commit e6756e3ee0af3e7e98f6deaf9dc83af9aac1b586)
2007-10-10r2975: Try to emulate NT_STATUS_IS_ERR() functionality for WERRORs. ↵Tim Potter1-2/+4
Unfortunately this means enumerating all the ones we don't think are errors. (This used to be commit a079e044f0ef23c6c4307c9da35019ec3e8f1d2a)
2007-10-10r2966: Handle conversion of DATA_BLOB fields from Python in a slightly nicerTim Potter1-10/+10
manner. I'm hoping to get rid of DATA_BLOB's but for the moment they make it easy to get some spoolss action happening quickly. (This used to be commit 15f8f73f8bfec099973fb8bf167020ae50346cf6)
2007-10-10r2965: Ignore *.pyc files in torture directory.Tim Potter2-3/+41
Allow test module name to be specified on command line for pytorture module. Start spoolss torture test. (This used to be commit 44bab84f765f6a4d37733a353fc6b74b09c1b39a)
2007-10-10r2964: Add spoolss to list of wrapped client functions.Tim Potter1-0/+1
(This used to be commit 96d31ff19d2fa5b0c5a0ee23000a97cb77637968)