summaryrefslogtreecommitdiff
path: root/source4/scripting
AgeCommit message (Collapse)AuthorFilesLines
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)
2007-10-10r2817: Get winreg_GetKeySecurity() working but use data blob instead ofTim Potter1-32/+77
security descriptor. (This used to be commit bc5165e40a716fb7c612b32c0b6f03cb2d331d11)
2007-10-10r2807: OK I think winreg_EnumValue() finally works. The previous versionTim Potter1-35/+25
didn't work with non-NULL registry value names. Update testsuite to enumerate all keys and values two levels deep. (This used to be commit c09f0f355ba6a589121588492aa2db5deb7121e0)
2007-10-10r2801: Wrapped functions that return a DOS error code can return DCERPCTim Potter1-0/+4
faults if they are badly formed. Handle this by checking the value of NTSTATUS as well as WERROR. (This used to be commit bb1be7819741f6c7dc1ee982cb2a255b6d776b79)
2007-10-10r2795: Split status code constants into a separate file.Tim Potter2-520/+553
(This used to be commit 12a3f75c1cf39c74952077cc00fd86a4e935f74b)
2007-10-10r2790: Add code to generate WERROR exceptions. Arrange inclusion of ↵Tim Potter1-3/+26
autogenerated interface files to divvy them up into pipes that return WERRORs and pipes that return NTSTATUS values. (This used to be commit 294d1ae35c09432a41e5a07a3aa1884bfb9a93be)
2007-10-10r2781: Got winreg_EnumValue() working. Check it in so I don't break it tryingTim Potter1-12/+22
to clean it up. (-: (This used to be commit cc646f73b873292eaba152770be9500beff1c988)
2007-10-10r2780: Add conversion routines for DATA_BLOB. I'm not convinced that ↵Tim Potter1-0/+29
DATA_BLOB's should be treated as scalar types though. (This used to be commit c9e96038f821783c30b5cf509334176f982403d9)
2007-10-10r2766: Test OpenKey, QueryInfoKey, EnumKey, CloseKey functions.Tim Potter1-5/+102
The IDL for EnumValue is wrong - can't figure it out right now. (This used to be commit 37af942d08da9ba9dcf351853f9064b5d179d5e4)
2007-10-10r2765: Allow functions containing WERROR values to be compiled.Tim Potter2-0/+4
Add winreg.i to list of extensions. (This used to be commit 6f3f6de058e806f13f48d3d1300db3784d2f470c)
2007-10-10r2739: Start of torture test for winreg wrappers.Tim Potter1-0/+23
(This used to be commit cf9b984b8457843d2b6bb1c4ac90d52c9b802d89)
2007-10-10r2728: Break arg parsing stuff out of samr.py into a standalone program.Tim Potter2-47/+53
(This used to be commit 799b377badebf9a3f388b7d3fdc36484aa5e3376)
2007-10-10r2560: Don't require structure fields that have the pidl value() propertyTim Potter1-26/+2
to be set. They can be if you want, but will be overwritten by the pidl push code. (This used to be commit 3170f6ed84e0514bf18d2a346f153bf0231b245b)
2007-10-10r2559: Python ints can't hold the full range of uint32 values so store themTim Potter2-22/+55
as Python longs. Also allow shorter width integer types to be initialised from long values. Their values are truncated if they are too long. (This used to be commit e9eb231d6441774d1b5227962bbe94aa29e20995)
2007-10-10r2555: Start of a rpcclient type program.Tim Potter2-0/+319
(This used to be commit c9d682731226b7ef222f588c43df5a1f62c21555)
2007-10-10r2511: Add NT status codes.Tim Potter2-17/+537
(This used to be commit 471b13da2b0893a58977154dbe4d004d5c06aed4)
2007-10-10r2502: Finish off samr torture test: samr_CreateUser2, samr_SetUserInfo,Tim Potter1-30/+288
samr_QueryAliasInfo, samr_SetAliasInfo, samr_AddMemberToAlias, samr_AddMultipleMembersToAlias, samr_QueryDisplayInfo, samr_QueryDisplayInfo2, samr_QueryDisplayInfo3, samr_GetDisplayEnumerationIndex, samr_GetDisplayEnumerationIndex2, samr_TestPrivateFunctionsDomain, samr_RidToSid, samr_GetBootKeyInformation, samr_DeleteUser, samr_DeleteAlias, samr_Close. (This used to be commit 808e0708a9601bb94246311e03a1d5adcf654022)
2007-10-10r2492: Some cleanups.Tim Potter1-29/+145
Add tests for samr_CreateDomainGroup, samr_DeleteDomainGroup, samr_QueryDomainInfo, samr_SetDomainInfo, samr_EnumDomainUsers, samr_EnumDomainAliases, samr_EnumDomainGroups. (This used to be commit 991d783c1ade19443c92b85f2b5763b5f51c6d61)
2007-10-10r2490: Some changes to take into account non-error NTSTATUS codes being ↵Tim Potter1-1/+1
returned: - Only throw an exception if NT_STATUS_IS_ERR() instead of !NT_STATUS_IS_OK(). - Add the NTSTATUS value to the returned dictionary under a key of 'result' so calling functions can access it. (This used to be commit 4ddcae90a2e9b93e58bd57932cd9ae4c95be6ae8)
2007-10-10r2486: Use correct type checks when checking 64-bit quantities (int64, uint64,Tim Potter1-16/+16
NTTIME and HYPER_T). Also use the correct conversion routines when creating 64 bit objects. (This used to be commit f09fee92395e89c768e221728d5b0114d78f59fe)
2007-10-10r2461: Update samr.py torture test after policy handle parameter renames.Tim Potter1-32/+99
I thought of another exception to the policy name rule - samr_Close can operate on any kind of samr handle. (This used to be commit 632b7cc0d6b8349a9db1e57c305c359aa500c9e6)
2007-10-10r2429: Add tests for samr_QueryUserInfo(), samr_QueryUserInfo2(),Tim Potter1-3/+174
samr_GetUserPwInfo(), samr_TestPrivateFunctionsUser(). Add stubs for the rest of the functions in test_OpenDomain() from smbtorture. (This used to be commit 1dc86e466dc546a5509fe5195444e48dc026e9a1)
2007-10-10r2427: Add tests for samr_GetDomPwInfo, samr_RemoveMemberFromForeignDomain,Tim Potter1-2/+150
samr_LookupName, samr_OpenUser, samr_DeleteUser, samr_CreateUse and samr_OpenDomain. (This used to be commit 086740c178c80ccb8d8eaff9f97007cb021bca20)
2007-10-10r2424: Refactor handling of non-OK NTSTATUS returns to be more swiggish.Tim Potter1-0/+10
(This used to be commit aaef6eaf6e0c38fb277d1be0617dfdff559a0115)
2007-10-10r2423: Add some instructions for building extensions.Tim Potter1-0/+37
(This used to be commit 7a7cf9f3521535da47895d1a516c8572f7f34e40)
2007-10-10r2421: Fix test for lookupdomain for a non-existent domain.Tim Potter2-2/+15
Export NTSTATUS exception from wrapper module so it can be used by scripts. (This used to be commit 57edfd605bffcf8a0feb5ccc5ec69cf5f35b677b)
2007-10-10r2419: Write tests for samr_EnumDomains() and samr_LookupDomain().Tim Potter1-4/+38
(This used to be commit aa15fd1ecba2163a077f398cecfb49d71a49cc9d)
2007-10-10r2416: More argument checks. Raise an exception instead of segfaulting if aTim Potter1-1/+41
dictionary does not contain a required key. (This used to be commit fc5443af9c271baf189ebe0b098e190b5eda4e14)
2007-10-10r2415: Throw a TypeError exception if a scalar value doesn't have the correctTim Potter1-8/+48
type, or the argument to a to_python function isn't a dictionary. (This used to be commit 0f58ffb142a9b8c5c745b3a2c93a1659ea8282e5)
2007-10-10r2414: samr_Connect.system_name is now an array.Tim Potter1-1/+1
(This used to be commit e1166c210004b090c5922b2f9b10b86ebc3fc11d)
2007-10-10r2410: Add test for samr_SetSecurity().Tim Potter1-2/+7
(This used to be commit e822979e84d33015c937e22174288a3f2c2ff04b)
2007-10-10r2408: Tridge suggested that all the structures from misc.idl (policy handles,Tim Potter1-132/+2
sids, security descriptors and acls) can be automatically generated instead of hand-written. Fix up the swig wrapper generator and helper routines to do this. (Only works for policy handles right now though and arrays are to be converted into lists instead of being binary blobs). Fix up wrapper generation for modules that don't define an interface (e.g misc.idl). (This used to be commit 160dc90921ecc136a25ae88e5c28800ddda5722a)
2007-10-10r2359: More consistency fixes: pass a talloc context to every function thatTim Potter1-22/+61
doesn't convert scalar types, more renaming of function names. Implement conversion fns for dom_sid, dom_sid2 (to struct version stubbed out). Also from Python conversions for security_acl and security_descriptors. (This used to be commit 945a4681051132c13f9235f676464fffb3bfadc8)
2007-10-10r2358: More renaming of functions to keep things consistent.Tim Potter1-30/+39
(This used to be commit 84513e4ed14e60b4cd09fcc2e596bc72d3a8807c)
2007-10-10r2357: Start coding conversion routines for security descriptors, acls and sids.Tim Potter1-3/+56
(This used to be commit c8d13a809b5b01823a62e5868bac47e1f2f25092)
2007-10-10r2345: Add test for samr_QuerySecurity()Tim Potter1-12/+35
(This used to be commit f6978a007a79c97910856b3c639844495f16ebab)
2007-10-10r2344: Return PyDict_New() in stub functions instead of Py_None to avoidTim Potter1-2/+2
crashing in garbage collector (hmm - all that was required was probably a Py_INCREF(Py_None) though). (This used to be commit a3eac318a624d214084741839faa2ad485902f6f)
2007-10-10r2342: Remove obsolete file.Tim Potter1-59/+0
(This used to be commit b7ef3d0a006ab8c07354ca83fcaf6018c3b595af)
2007-10-10r2339: my first python commit!Andrew Tridgell1-3/+27
added command line options for binding string, domain, username and password (This used to be commit e94bec1079f266fdb869642eab24f542a81f8e5a)
2007-10-10r2336: Add another conversion function to allow union arms that contain ↵Tim Potter2-4/+17
structures not pointers to structures. Do some renaming of hand-written functions as a result. Include lsa interface before samr interface as samr depends on some lsa structures. Build up a nice hashed index of interfaces, functions, structs and unions. Add test for samr_Connect5() function which contains a union. (This used to be commit 30f068164a5125f84a34f28ed0f2586a2bdec7e4)
2007-10-10r2324: Add hand-written versions of functions from misc.idl.Tim Potter1-1/+26
(This used to be commit d6876701cc027ec2b14923e3483e0432e7011138)