1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-14 19:24:43 +03:00

1234 Commits

Author SHA1 Message Date
Tim Potter
8c1edd1674 r3430: Add tests for EnumPrinterDataEx, SetPrinterDataEx (doesn't work),
EnumPrinterDrivers.
(This used to be commit fe381c3ebc64a7d067832c7d2aebeb35b1f3923b)
2007-10-10 13:05:10 -05:00
Tim Potter
9ebf74c576 r3411: Ignore some autogenerated files.
(This used to be commit f6428f2d01a4bd8d4acadf96e33957371cdb2021)
2007-10-10 13:05:06 -05:00
Tim Potter
751b412326 r3410: Handle conversion of DATA_BLOBs and pointers to DATA_BLOBs from python.
(This used to be commit 12e037dbe3d497aff2415c0a22fab20a7932ab7a)
2007-10-10 13:05:06 -05:00
Tim Potter
5d7c6d7bbd r3405: Test EnumPrinterData and GetPrinterData.
(This used to be commit a4facee8602cfb9b2599e0068dd42933ed94655e)
2007-10-10 13:05:06 -05:00
Tim Potter
0e082a5c9d r3403: Add test for operations on print server handle.
Add tests for EnumJobs, GetJob.

Oops - forgot to EnumPrinters at level2.
(This used to be commit 930d57964b69fda59f473914ac4633984f259c86)
2007-10-10 13:05:06 -05:00
Tim Potter
75f1497c32 r3401: Fix IDL for SetForm RPC.
(This used to be commit 206f3de297c397c8894f9855ea8571c68823e1fc)
2007-10-10 13:05:06 -05:00
Tim Potter
89665e87b4 r3396: Rename form_name -> formname. This time, check smbtorture builds before
committing.  (-:
(This used to be commit c776232d0130638a85cc8ce75e4bbef75952e856)
2007-10-10 13:05:05 -05:00
Tim Potter
c69b5f7642 r3311: Consistency updates for form name members.
Add tests for EnumForms, GetForm, AddForm, DeleteForm.
(This used to be commit 6c49ce976a5c6982fa83de4ea723cef5597c29ef)
2007-10-10 13:04:52 -05:00
Tim Potter
d718b7f683 r3309: Add wrapper for dcerpc_server_name() function.
(This used to be commit 2d60a04f21da9dbe32c85b11afa98df74f5fd763)
2007-10-10 13:04:52 -05:00
Tim Potter
08dd85d26b r3308: Handle servers that don't have samr_Connect5.
(This used to be commit 52af866ffb427427d21daf11a4ca9a8b9881f1d5)
2007-10-10 13:04:52 -05:00
Tim Potter
fe54d8bc99 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!
(This used to be commit 53bd02960e17f7517e0d6c4f489d27b8bdcc7582)
2007-10-10 13:04:51 -05:00
Tim Potter
8ade4d9785 r3217: Start of a spoolss_GetPrinter test.
(This used to be commit 994fe92febe38f06d69f43b01c80e8350e902986)
2007-10-10 13:04:42 -05:00
Tim Potter
974d048493 r3216: Add tests for OpenPrinterEx and ClosePrinter.
(This used to be commit b7ff5f0deded4bcf6695dac0683fd9d271d9c255)
2007-10-10 13:04:42 -05:00
Tim Potter
266e36aa54 r3204: Got unpacking of an array of PrinterInfo union elements working. Phew.
(This used to be commit f490cd719cc02589e73e26fa983aff90708d1926)
2007-10-10 13:04:40 -05:00
Tim Potter
85a2db200a r3010: Do some more PyInt vs PyLong checks.
(This used to be commit b19dc6cd9c1ac44d970b092f09cf96c737a90fdd)
2007-10-10 12:59:57 -05:00
Tim Potter
c7a762bc74 r3009: Fix up unmarshall functions to return Python dict instead of a NTSTATUS.
We can now unmarshall a single printer returned from an EnumPrinters.
(This used to be commit 89da7a9196d40699881f12c9a5fe62301aafd4cf)
2007-10-10 12:59:56 -05:00
Tim Potter
71aaba4ea7 r3007: uint32 values need to be stored in Python longs, as on 32-bit machines
Python ints can only hold int32 values.
(This used to be commit 7c5ada63bf5d876a1b67df2cf7bd44942e4b0a98)
2007-10-10 12:59:56 -05:00
Tim Potter
addb2a9fd4 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!
(This used to be commit 4bc497a2994b12845a46b2d19f60bb81c9869fc9)
2007-10-10 12:59:56 -05:00
Tim Potter
8f00427136 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
(This used to be commit 558076cc8ddbdb563869f7d35150310217f30c31)
2007-10-10 12:59:55 -05:00
Tim Potter
dc2df2530f r2986: Add correct value to dict when generating wrapper for functions that
return WERROR values.

Clean up WERROR vs NTSTATUS handling a bit.
(This used to be commit e6756e3ee0af3e7e98f6deaf9dc83af9aac1b586)
2007-10-10 12:59:54 -05:00
Tim Potter
acf657a7c2 r2975: Try to emulate NT_STATUS_IS_ERR() functionality for WERRORs. Unfortunately
this means enumerating all the ones we don't think are errors.
(This used to be commit a079e044f0ef23c6c4307c9da35019ec3e8f1d2a)
2007-10-10 12:59:53 -05:00
Tim Potter
1c4b87c788 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.
(This used to be commit 15f8f73f8bfec099973fb8bf167020ae50346cf6)
2007-10-10 12:59:52 -05:00
Tim Potter
e3627c2c6e r2965: Ignore *.pyc files in torture directory.
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-10 12:59:52 -05:00
Tim Potter
913d5df89e r2964: Add spoolss to list of wrapped client functions.
(This used to be commit 96d31ff19d2fa5b0c5a0ee23000a97cb77637968)
2007-10-10 12:59:52 -05:00
Tim Potter
94ae449f33 r2817: Get winreg_GetKeySecurity() working but use data blob instead of
security descriptor.
(This used to be commit bc5165e40a716fb7c612b32c0b6f03cb2d331d11)
2007-10-10 12:59:36 -05:00
Tim Potter
263212aba5 r2807: OK I think winreg_EnumValue() finally works. The previous version
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-10 12:59:36 -05:00
Tim Potter
985abd104d r2801: Wrapped functions that return a DOS error code can return DCERPC
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-10 12:59:35 -05:00
Tim Potter
68d2ce3320 r2795: Split status code constants into a separate file.
(This used to be commit 12a3f75c1cf39c74952077cc00fd86a4e935f74b)
2007-10-10 12:59:34 -05:00
Tim Potter
a248164de5 r2790: Add code to generate WERROR exceptions. Arrange inclusion of 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-10 12:59:34 -05:00
Tim Potter
710ad9613b r2781: Got winreg_EnumValue() working. Check it in so I don't break it trying
to clean it up.  (-:
(This used to be commit cc646f73b873292eaba152770be9500beff1c988)
2007-10-10 12:59:32 -05:00
Tim Potter
7cef5fd077 r2780: Add conversion routines for DATA_BLOB. I'm not convinced that DATA_BLOB's
should be treated as scalar types though.
(This used to be commit c9e96038f821783c30b5cf509334176f982403d9)
2007-10-10 12:59:32 -05:00
Tim Potter
76a8fe491e r2766: Test OpenKey, QueryInfoKey, EnumKey, CloseKey functions.
The IDL for EnumValue is wrong - can't figure it out right now.
(This used to be commit 37af942d08da9ba9dcf351853f9064b5d179d5e4)
2007-10-10 12:59:31 -05:00
Tim Potter
b11be587e0 r2765: Allow functions containing WERROR values to be compiled.
Add winreg.i to list of extensions.
(This used to be commit 6f3f6de058e806f13f48d3d1300db3784d2f470c)
2007-10-10 12:59:31 -05:00
Tim Potter
096d2d68de r2739: Start of torture test for winreg wrappers.
(This used to be commit cf9b984b8457843d2b6bb1c4ac90d52c9b802d89)
2007-10-10 12:59:29 -05:00
Tim Potter
83d0f6ffae r2728: Break arg parsing stuff out of samr.py into a standalone program.
(This used to be commit 799b377badebf9a3f388b7d3fdc36484aa5e3376)
2007-10-10 12:59:27 -05:00
Tim Potter
5821c39553 r2560: Don't require structure fields that have the pidl value() property
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-10 12:59:06 -05:00
Tim Potter
46cbe76a2c r2559: Python ints can't hold the full range of uint32 values so store them
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-10 12:59:06 -05:00
Tim Potter
169627d7f5 r2555: Start of a rpcclient type program.
(This used to be commit c9d682731226b7ef222f588c43df5a1f62c21555)
2007-10-10 12:59:05 -05:00
Tim Potter
15568d45e1 r2511: Add NT status codes.
(This used to be commit 471b13da2b0893a58977154dbe4d004d5c06aed4)
2007-10-10 12:59:00 -05:00
Tim Potter
c9d96e9c44 r2502: Finish off samr torture test: samr_CreateUser2, samr_SetUserInfo,
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-10 12:58:59 -05:00
Tim Potter
b3a11c86e1 r2492: Some cleanups.
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-10 12:58:57 -05:00
Tim Potter
99721cc7c8 r2490: Some changes to take into account non-error NTSTATUS codes being 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-10 12:58:57 -05:00
Tim Potter
46efd4d31b r2486: Use correct type checks when checking 64-bit quantities (int64, uint64,
NTTIME and HYPER_T).

Also use the correct conversion routines when creating 64 bit objects.
(This used to be commit f09fee92395e89c768e221728d5b0114d78f59fe)
2007-10-10 12:58:57 -05:00
Tim Potter
851e54de66 r2461: Update samr.py torture test after policy handle parameter renames.
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-10 12:58:55 -05:00
Tim Potter
67cb7c9451 r2429: Add tests for samr_QueryUserInfo(), samr_QueryUserInfo2(),
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-10 12:58:51 -05:00
Tim Potter
b653d8775a r2427: Add tests for samr_GetDomPwInfo, samr_RemoveMemberFromForeignDomain,
samr_LookupName, samr_OpenUser, samr_DeleteUser, samr_CreateUse and
samr_OpenDomain.
(This used to be commit 086740c178c80ccb8d8eaff9f97007cb021bca20)
2007-10-10 12:58:51 -05:00
Tim Potter
6d82eaa7e9 r2424: Refactor handling of non-OK NTSTATUS returns to be more swiggish.
(This used to be commit aaef6eaf6e0c38fb277d1be0617dfdff559a0115)
2007-10-10 12:58:51 -05:00
Tim Potter
cb3cacdf40 r2423: Add some instructions for building extensions.
(This used to be commit 7a7cf9f3521535da47895d1a516c8572f7f34e40)
2007-10-10 12:58:51 -05:00
Tim Potter
fa8c1abcc8 r2421: Fix test for lookupdomain for a non-existent domain.
Export NTSTATUS exception from wrapper module so it can be used by scripts.
(This used to be commit 57edfd605bffcf8a0feb5ccc5ec69cf5f35b677b)
2007-10-10 12:58:50 -05:00
Tim Potter
6feaf61b61 r2419: Write tests for samr_EnumDomains() and samr_LookupDomain().
(This used to be commit aa15fd1ecba2163a077f398cecfb49d71a49cc9d)
2007-10-10 12:58:50 -05:00