summaryrefslogtreecommitdiffstats
path: root/source/scripting
Commit message (Collapse)AuthorAgeFilesLines
...
* r3001: Expose unmarshalling functions for structures marked "public" in theTim Potter2004-10-162-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!
* r2994: More cleanups. Move the generation of NTSTATUS and WERROR exceptionsTim Potter2004-10-151-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
* r2986: Add correct value to dict when generating wrapper for functions thatTim Potter2004-10-152-4/+8
| | | | | | return WERROR values. Clean up WERROR vs NTSTATUS handling a bit.
* r2975: Try to emulate NT_STATUS_IS_ERR() functionality for WERRORs. ↵Tim Potter2004-10-141-2/+4
| | | | | | Unfortunately this means enumerating all the ones we don't think are errors.
* r2966: Handle conversion of DATA_BLOB fields from Python in a slightly nicerTim Potter2004-10-141-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.
* r2965: Ignore *.pyc files in torture directory.Tim Potter2004-10-142-3/+41
| | | | | | | Allow test module name to be specified on command line for pytorture module. Start spoolss torture test.
* r2964: Add spoolss to list of wrapped client functions.Tim Potter2004-10-141-0/+1
|
* r2817: Get winreg_GetKeySecurity() working but use data blob instead of Tim Potter2004-10-041-32/+77
| | | | security descriptor.
* r2807: OK I think winreg_EnumValue() finally works. The previous versionTim Potter2004-10-031-35/+25
| | | | | | didn't work with non-NULL registry value names. Update testsuite to enumerate all keys and values two levels deep.
* r2801: Wrapped functions that return a DOS error code can return DCERPCTim Potter2004-10-031-0/+4
| | | | | faults if they are badly formed. Handle this by checking the value of NTSTATUS as well as WERROR.
* r2795: Split status code constants into a separate file.Tim Potter2004-10-032-520/+553
|
* r2790: Add code to generate WERROR exceptions. Arrange inclusion of ↵Tim Potter2004-10-021-3/+26
| | | | | | | autogenerated interface files to divvy them up into pipes that return WERRORs and pipes that return NTSTATUS values.
* r2781: Got winreg_EnumValue() working. Check it in so I don't break it tryingTim Potter2004-10-021-12/+22
| | | | to clean it up. (-:
* r2780: Add conversion routines for DATA_BLOB. I'm not convinced that ↵Tim Potter2004-10-021-0/+29
| | | | | | DATA_BLOB's should be treated as scalar types though.
* r2766: Test OpenKey, QueryInfoKey, EnumKey, CloseKey functions.Tim Potter2004-10-011-5/+102
| | | | The IDL for EnumValue is wrong - can't figure it out right now.
* r2765: Allow functions containing WERROR values to be compiled.Tim Potter2004-10-012-0/+4
| | | | Add winreg.i to list of extensions.
* r2739: Start of torture test for winreg wrappers.Tim Potter2004-09-281-0/+23
|
* r2728: Break arg parsing stuff out of samr.py into a standalone program.Tim Potter2004-09-282-47/+53
|
* r2560: Don't require structure fields that have the pidl value() propertyTim Potter2004-09-231-26/+2
| | | | | to be set. They can be if you want, but will be overwritten by the pidl push code.
* r2559: Python ints can't hold the full range of uint32 values so store themTim Potter2004-09-232-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.
* r2555: Start of a rpcclient type program.Tim Potter2004-09-232-0/+319
|
* r2511: Add NT status codes.Tim Potter2004-09-222-17/+537
|
* r2502: Finish off samr torture test: samr_CreateUser2, samr_SetUserInfo,Tim Potter2004-09-221-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.
* r2492: Some cleanups.Tim Potter2004-09-221-29/+145
| | | | | | Add tests for samr_CreateDomainGroup, samr_DeleteDomainGroup, samr_QueryDomainInfo, samr_SetDomainInfo, samr_EnumDomainUsers, samr_EnumDomainAliases, samr_EnumDomainGroups.
* r2490: Some changes to take into account non-error NTSTATUS codes being ↵Tim Potter2004-09-221-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.
* r2486: Use correct type checks when checking 64-bit quantities (int64, uint64,Tim Potter2004-09-221-16/+16
| | | | | | NTTIME and HYPER_T). Also use the correct conversion routines when creating 64 bit objects.
* r2461: Update samr.py torture test after policy handle parameter renames.Tim Potter2004-09-211-32/+99
| | | | | I thought of another exception to the policy name rule - samr_Close can operate on any kind of samr handle.
* r2429: Add tests for samr_QueryUserInfo(), samr_QueryUserInfo2(),Tim Potter2004-09-201-3/+174
| | | | | samr_GetUserPwInfo(), samr_TestPrivateFunctionsUser(). Add stubs for the rest of the functions in test_OpenDomain() from smbtorture.
* r2427: Add tests for samr_GetDomPwInfo, samr_RemoveMemberFromForeignDomain,Tim Potter2004-09-201-2/+150
| | | | | samr_LookupName, samr_OpenUser, samr_DeleteUser, samr_CreateUse and samr_OpenDomain.
* r2424: Refactor handling of non-OK NTSTATUS returns to be more swiggish.Tim Potter2004-09-201-0/+10
|
* r2423: Add some instructions for building extensions.Tim Potter2004-09-191-0/+37
|
* r2421: Fix test for lookupdomain for a non-existent domain.Tim Potter2004-09-192-2/+15
| | | | Export NTSTATUS exception from wrapper module so it can be used by scripts.
* r2419: Write tests for samr_EnumDomains() and samr_LookupDomain().Tim Potter2004-09-191-4/+38
|
* r2416: More argument checks. Raise an exception instead of segfaulting if a Tim Potter2004-09-191-1/+41
| | | | dictionary does not contain a required key.
* r2415: Throw a TypeError exception if a scalar value doesn't have the correctTim Potter2004-09-191-8/+48
| | | | type, or the argument to a to_python function isn't a dictionary.
* r2414: samr_Connect.system_name is now an array.Tim Potter2004-09-191-1/+1
|
* r2410: Add test for samr_SetSecurity().Tim Potter2004-09-181-2/+7
|
* r2408: Tridge suggested that all the structures from misc.idl (policy handles, Tim Potter2004-09-181-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).
* r2359: More consistency fixes: pass a talloc context to every function thatTim Potter2004-09-151-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.
* r2358: More renaming of functions to keep things consistent.Tim Potter2004-09-151-30/+39
|
* r2357: Start coding conversion routines for security descriptors, acls and sids.Tim Potter2004-09-151-3/+56
|
* r2345: Add test for samr_QuerySecurity()Tim Potter2004-09-151-12/+35
|
* r2344: Return PyDict_New() in stub functions instead of Py_None to avoid Tim Potter2004-09-151-2/+2
| | | | | crashing in garbage collector (hmm - all that was required was probably a Py_INCREF(Py_None) though).
* r2342: Remove obsolete file.Tim Potter2004-09-151-59/+0
|
* r2339: my first python commit!Andrew Tridgell2004-09-151-3/+27
| | | | added command line options for binding string, domain, username and password
* r2336: Add another conversion function to allow union arms that contain ↵Tim Potter2004-09-142-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.
* r2324: Add hand-written versions of functions from misc.idl.Tim Potter2004-09-131-1/+26
|
* r2300: Start writing a Python torture test suite based on the smbtorture rpc ↵Tim Potter2004-09-122-11/+52
| | | | tests.
* r2299: Map a (C) NULL pointer to (Python) None and vice versa.Tim Potter2004-09-121-0/+6
|
* r2297: Add string conversion functions.Tim Potter2004-09-121-1/+6
|