Commit message (Collapse) | Author | Age | Files | Lines | ||
---|---|---|---|---|---|---|
... | ||||||
* | r3001: Expose unmarshalling functions for structures marked "public" in the | Tim Potter | 2004-10-16 | 2 | -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 exceptions | Tim Potter | 2004-10-15 | 1 | -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 that | Tim Potter | 2004-10-15 | 2 | -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 Potter | 2004-10-14 | 1 | -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 nicer | Tim Potter | 2004-10-14 | 1 | -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 Potter | 2004-10-14 | 2 | -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 Potter | 2004-10-14 | 1 | -0/+1 | |
| | ||||||
* | r2817: Get winreg_GetKeySecurity() working but use data blob instead of | Tim Potter | 2004-10-04 | 1 | -32/+77 | |
| | | | | security descriptor. | |||||
* | r2807: OK I think winreg_EnumValue() finally works. The previous version | Tim Potter | 2004-10-03 | 1 | -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 DCERPC | Tim Potter | 2004-10-03 | 1 | -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 Potter | 2004-10-03 | 2 | -520/+553 | |
| | ||||||
* | r2790: Add code to generate WERROR exceptions. Arrange inclusion of ↵ | Tim Potter | 2004-10-02 | 1 | -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 trying | Tim Potter | 2004-10-02 | 1 | -12/+22 | |
| | | | | to clean it up. (-: | |||||
* | r2780: Add conversion routines for DATA_BLOB. I'm not convinced that ↵ | Tim Potter | 2004-10-02 | 1 | -0/+29 | |
| | | | | | | DATA_BLOB's should be treated as scalar types though. | |||||
* | r2766: Test OpenKey, QueryInfoKey, EnumKey, CloseKey functions. | Tim Potter | 2004-10-01 | 1 | -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 Potter | 2004-10-01 | 2 | -0/+4 | |
| | | | | Add winreg.i to list of extensions. | |||||
* | r2739: Start of torture test for winreg wrappers. | Tim Potter | 2004-09-28 | 1 | -0/+23 | |
| | ||||||
* | r2728: Break arg parsing stuff out of samr.py into a standalone program. | Tim Potter | 2004-09-28 | 2 | -47/+53 | |
| | ||||||
* | r2560: Don't require structure fields that have the pidl value() property | Tim Potter | 2004-09-23 | 1 | -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 them | Tim Potter | 2004-09-23 | 2 | -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 Potter | 2004-09-23 | 2 | -0/+319 | |
| | ||||||
* | r2511: Add NT status codes. | Tim Potter | 2004-09-22 | 2 | -17/+537 | |
| | ||||||
* | r2502: Finish off samr torture test: samr_CreateUser2, samr_SetUserInfo, | Tim Potter | 2004-09-22 | 1 | -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 Potter | 2004-09-22 | 1 | -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 Potter | 2004-09-22 | 1 | -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 Potter | 2004-09-22 | 1 | -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 Potter | 2004-09-21 | 1 | -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 Potter | 2004-09-20 | 1 | -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 Potter | 2004-09-20 | 1 | -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 Potter | 2004-09-20 | 1 | -0/+10 | |
| | ||||||
* | r2423: Add some instructions for building extensions. | Tim Potter | 2004-09-19 | 1 | -0/+37 | |
| | ||||||
* | r2421: Fix test for lookupdomain for a non-existent domain. | Tim Potter | 2004-09-19 | 2 | -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 Potter | 2004-09-19 | 1 | -4/+38 | |
| | ||||||
* | r2416: More argument checks. Raise an exception instead of segfaulting if a | Tim Potter | 2004-09-19 | 1 | -1/+41 | |
| | | | | dictionary does not contain a required key. | |||||
* | r2415: Throw a TypeError exception if a scalar value doesn't have the correct | Tim Potter | 2004-09-19 | 1 | -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 Potter | 2004-09-19 | 1 | -1/+1 | |
| | ||||||
* | r2410: Add test for samr_SetSecurity(). | Tim Potter | 2004-09-18 | 1 | -2/+7 | |
| | ||||||
* | r2408: Tridge suggested that all the structures from misc.idl (policy handles, | Tim Potter | 2004-09-18 | 1 | -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 that | Tim Potter | 2004-09-15 | 1 | -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 Potter | 2004-09-15 | 1 | -30/+39 | |
| | ||||||
* | r2357: Start coding conversion routines for security descriptors, acls and sids. | Tim Potter | 2004-09-15 | 1 | -3/+56 | |
| | ||||||
* | r2345: Add test for samr_QuerySecurity() | Tim Potter | 2004-09-15 | 1 | -12/+35 | |
| | ||||||
* | r2344: Return PyDict_New() in stub functions instead of Py_None to avoid | Tim Potter | 2004-09-15 | 1 | -2/+2 | |
| | | | | | crashing in garbage collector (hmm - all that was required was probably a Py_INCREF(Py_None) though). | |||||
* | r2342: Remove obsolete file. | Tim Potter | 2004-09-15 | 1 | -59/+0 | |
| | ||||||
* | r2339: my first python commit! | Andrew Tridgell | 2004-09-15 | 1 | -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 Potter | 2004-09-14 | 2 | -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 Potter | 2004-09-13 | 1 | -1/+26 | |
| | ||||||
* | r2300: Start writing a Python torture test suite based on the smbtorture rpc ↵ | Tim Potter | 2004-09-12 | 2 | -11/+52 | |
| | | | | tests. | |||||
* | r2299: Map a (C) NULL pointer to (Python) None and vice versa. | Tim Potter | 2004-09-12 | 1 | -0/+6 | |
| | ||||||
* | r2297: Add string conversion functions. | Tim Potter | 2004-09-12 | 1 | -1/+6 | |
| |