summaryrefslogtreecommitdiffstats
path: root/source/scripting
Commit message (Collapse)AuthorAgeFilesLines
...
* 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
|
* r2296: Correct setting of access_mask in test program.Tim Potter2004-09-121-1/+1
|
* r2295: Convert simple scalar types and policy handles between dcerpc functionTim Potter2004-09-121-0/+40
| | | | call request and response structures.
* r2278: Add some more helper functions.Tim Potter2004-09-101-10/+40
|
* r2276: Remove garbage collection debugs.Tim Potter2004-09-101-2/+0
|
* r2256: Include autogenerated interfaces for lsa and samr pipes. Typemaps ↵Tim Potter2004-09-081-1/+3
| | | | | | are currently not working though.
* r2253: Add test program, as small example of what's going on.Tim Potter2004-09-082-0/+15
|
* r2243: Include definition for PRINTF_ATTRIBUTE in Python tdb wrapper.Tim Potter2004-09-071-0/+10
|
* r2236: Zero request structure to let the REF_ALLOC flag work its magic.Tim Potter2004-09-061-0/+21
| | | | | | | Add argout typemap which throws an exception if NTSTATUS != OK and creates a dictionary of return values. samr_Connect2 function now works!
* r2235: When creating exception data, use Py_BuildValue instead of doing itTim Potter2004-09-061-6/+18
| | | | | | | | | | all by hand. Use $symname to name TALLOC_CTX's created in wrapper function. Also, make sure to free context afterwards. Set the DCERPC_NDR_REF_ALLOC flag in the dcerpc_pipe struct to save use lots of initialisation.
* r2230: Wrapper for dcerpc_samr_Connect2(). All this glue code should beTim Potter2004-09-052-2/+39
| | | | automatically generated but at the moment it's hand coded.
* r2229: Have dcerpc_pipe_connect() throw an exception if non-zero NTSTATUS isTim Potter2004-09-051-4/+22
| | | | | | returned from the C function. This way we can return the struct dcerpc_pipe object instead of a tuple of (NTSTATUS, dcerpc_pipe) which is a bad interface.
* r2228: Finally commit bits of old workareas together to get dcerpc pythonTim Potter2004-09-053-0/+99
| | | | | bindings happening. This commit lets python call dcerpc_pipe_connect() and open the samr pipe.
* r2227: Get rid of annoying compiler warning.Tim Potter2004-09-041-0/+8
|
* r2226: A bunch of fixes to get python tdb module building again. I'm notTim Potter2004-09-041-2/+3
| | | | | sure how this can be integrated into the build system properly though. Editing makefile.pl is the wrong way to do this.
* r960: convert 'unsigned int' to uint_t in the most placesStefan Metzmacher2004-06-011-1/+1
| | | | metze
* r888: more ..int32 -> ..int32_t stuffStefan Metzmacher2004-05-251-1/+1
| | | | metze
* r383: Scripting extensions using swig. This commit includes only a (LGPL) Tim Potter2004-04-283-0/+192
python interface to tdb and a rudimentary build system. Configure with --with-python and make swig to build and append $(builddir)/scripting/swig/python to PYTHONPATH.