1
0
mirror of https://github.com/samba-team/samba.git synced 2025-04-28 10:50:25 +03:00

110 Commits

Author SHA1 Message Date
Tim Potter
2f0419c4d8 r5293: Map an empty policy handle to None when creating policy handles, and
refuse to accept None as a policy handle when accepting them.  Now we
don't segfault after running the samr_Shutdown() test.
2007-10-10 13:09:37 -05:00
Tim Potter
ad12a90d0e r5247: Fix rpcclient to work with new swig interface. 2007-10-10 13:09:34 -05:00
Tim Potter
53b361657f r5244: Convert this module to use the new structure mapping SWIG stuff instead of
the old dictionary based routines.  The SAMR connect, close, enumdomains,
opendomain, enum{users,aliases,groups} functions now work again!
2007-10-10 13:09:33 -05:00
Tim Potter
c63668cbbe r5243: Woohoo - memory leak city! Comment out talloc_free() call until I
figure out a better way to pass tallocated memory around with SWIG.
2007-10-10 13:09:33 -05:00
Tim Potter
6dba5d6fb4 r5242: Check that argument is an integer or a long for uint32_t input
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.
2007-10-10 13:09:33 -05:00
Tim Potter
5a1f6c999e r5224: Add in/out typemaps for resume handles. This saves us having to much
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.
2007-10-10 13:09:33 -05:00
Tim Potter
e561bc3efa r5095: uint32 -> uint32_t
%include misc.i to get definition of struct policy_handle

Remove #includes we aren't using just now.
2007-10-10 13:09:22 -05:00
Tim Potter
f2a1b237bc r5094: Use builtin swig types for converting between fixed width integer types. 2007-10-10 13:09:22 -05:00
Tim Potter
36b46bb05a r5074: Remove dead code. 2007-10-10 13:09:20 -05:00
Tim Potter
95d2a58e5b r5018: Initialise required subsystems (by hand, generated by substituting
BINARY for LIBRARY in config.mk).

Cut things down to just the samr pipe for the moment.
2007-10-10 13:09:14 -05:00
Tim Potter
dc845154ca r5017: Fix bug in output typemap for uint32 (!) 2007-10-10 13:09:14 -05:00
Tim Potter
e9b69d19a8 r5016: Use LIBRARY instead of BINARY for inserting the swig stuff into the
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.
2007-10-10 13:09:13 -05:00
Tim Potter
71a22f5206 r4982: Start to move swig dependencies into new build system. Unfortunately
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.
2007-10-10 13:09:11 -05:00
Tim Potter
b44ab87c83 r4981: Fix swig build. 2007-10-10 13:09:11 -05:00
Tim Potter
2ec3a137d7 r4546: Use talloc_p() instad of talloc() 2007-10-10 13:08:20 -05:00
Tim Potter
5af52c559e r3870: Delete wrappers for tdb_lockkeys() and tdb_unlockkeys(). 2007-10-10 13:06:00 -05:00
Tim Potter
996d042bf7 r3607: EnumDomainAlises doesn't take a max_size parameter. 2007-10-10 13:05:38 -05:00
Tim Potter
91eb405354 r3590: Add some more commands to rpcclient from a patch by jbm. Add
SamrQueryDomInfo, SamrQueryDomInfo2, SamrEnumDomainAliases, and
SamrEnumDomainUsers.
2007-10-10 13:05:36 -05:00
Tim Potter
6d918f1595 r3589: Add some extra status codes. 2007-10-10 13:05:36 -05:00
Tim Potter
a46aba4354 r3588: Fix bug in converting SIDs containing large unsigned integers from Python. 2007-10-10 13:05:36 -05:00
Tim Potter
86f54db1ef r3521: Collect printer driver names in EnumPrinterDrivers. 2007-10-10 13:05:28 -05:00
Tim Potter
354068aae1 r3506: Test EnumPorts function. 2007-10-10 13:05:22 -05:00
Tim Potter
336eba61e9 r3505: #include dynconfig.h 2007-10-10 13:05:22 -05:00
Tim Potter
caa563faaa r3474: Add conversion functions for the time_t type. 2007-10-10 13:05:18 -05:00
Tim Potter
922ea35a4b r3459: Fix cut&paste error in copyright header. 2007-10-10 13:05:16 -05:00
Tim Potter
7e94d5bd3d r3456: Add appropriate #includes to fix Python extensions build. 2007-10-10 13:05:15 -05:00
Tim Potter
fe381c3ebc r3430: Add tests for EnumPrinterDataEx, SetPrinterDataEx (doesn't work),
EnumPrinterDrivers.
2007-10-10 13:05:10 -05:00
Tim Potter
f6428f2d01 r3411: Ignore some autogenerated files. 2007-10-10 13:05:06 -05:00
Tim Potter
12e037dbe3 r3410: Handle conversion of DATA_BLOBs and pointers to DATA_BLOBs from python. 2007-10-10 13:05:06 -05:00
Tim Potter
a4facee860 r3405: Test EnumPrinterData and GetPrinterData. 2007-10-10 13:05:06 -05:00
Tim Potter
930d57964b r3403: Add test for operations on print server handle.
Add tests for EnumJobs, GetJob.

Oops - forgot to EnumPrinters at level2.
2007-10-10 13:05:06 -05:00
Tim Potter
206f3de297 r3401: Fix IDL for SetForm RPC. 2007-10-10 13:05:06 -05:00
Tim Potter
c776232d01 r3396: Rename form_name -> formname. This time, check smbtorture builds before
committing.  (-:
2007-10-10 13:05:05 -05:00
Tim Potter
6c49ce976a r3311: Consistency updates for form name members.
Add tests for EnumForms, GetForm, AddForm, DeleteForm.
2007-10-10 13:04:52 -05:00
Tim Potter
2d60a04f21 r3309: Add wrapper for dcerpc_server_name() function. 2007-10-10 13:04:52 -05:00
Tim Potter
52af866ffb r3308: Handle servers that don't have samr_Connect5. 2007-10-10 13:04:52 -05:00
Tim Potter
53bd02960e r3302: The security descriptors in spoolss_PrinterInfo2 and spoolss_PrinterInfo3
need to be marked as subcontext(0).

GetPrinter tests now work for all info levels!
2007-10-10 13:04:51 -05:00
Tim Potter
994fe92feb r3217: Start of a spoolss_GetPrinter test. 2007-10-10 13:04:42 -05:00
Tim Potter
b7ff5f0ded r3216: Add tests for OpenPrinterEx and ClosePrinter. 2007-10-10 13:04:42 -05:00
Tim Potter
f490cd719c r3204: Got unpacking of an array of PrinterInfo union elements working. Phew. 2007-10-10 13:04:40 -05:00
Tim Potter
b19dc6cd9c r3010: Do some more PyInt vs PyLong checks. 2007-10-10 12:59:57 -05:00
Tim Potter
89da7a9196 r3009: Fix up unmarshall functions to return Python dict instead of a NTSTATUS.
We can now unmarshall a single printer returned from an EnumPrinters.
2007-10-10 12:59:56 -05:00
Tim Potter
7c5ada63bf r3007: uint32 values need to be stored in Python longs, as on 32-bit machines
Python ints can only hold int32 values.
2007-10-10 12:59:56 -05:00
Tim Potter
4bc497a299 r3001: Expose unmarshalling functions for structures marked "public" in the
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!
2007-10-10 12:59:56 -05:00
Tim Potter
558076cc8d r2994: More cleanups. Move the generation of NTSTATUS and WERROR exceptions
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
2007-10-10 12:59:55 -05:00
Tim Potter
e6756e3ee0 r2986: Add correct value to dict when generating wrapper for functions that
return WERROR values.

Clean up WERROR vs NTSTATUS handling a bit.
2007-10-10 12:59:54 -05:00
Tim Potter
a079e044f0 r2975: Try to emulate NT_STATUS_IS_ERR() functionality for WERRORs. Unfortunately
this means enumerating all the ones we don't think are errors.
2007-10-10 12:59:53 -05:00
Tim Potter
15f8f73f8b r2966: Handle conversion of DATA_BLOB fields from Python in a slightly nicer
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.
2007-10-10 12:59:52 -05:00
Tim Potter
44bab84f76 r2965: Ignore *.pyc files in torture directory.
Allow test module name to be specified on command line for pytorture
module.

Start spoolss torture test.
2007-10-10 12:59:52 -05:00
Tim Potter
96d31ff19d r2964: Add spoolss to list of wrapped client functions. 2007-10-10 12:59:52 -05:00