1
0
mirror of https://github.com/samba-team/samba.git synced 2025-11-14 12:23:52 +03:00
Commit Graph

47 Commits

Author SHA1 Message Date
Tim Potter
7ab240644e r6540: Implement a bunch more SAMR functions. 2007-10-10 13:16:24 -05:00
Tim Potter
16b7e503bd r6512: Refactor samr torture test to use the nicer OO interface instead of the
previous dictionary based SWIG interface (which was broken anyway).
2007-10-10 13:16:21 -05:00
Tim Potter
30d0c9fb2e r6329: Write tests for newly implemented alias functions. 2007-10-10 13:11:32 -05:00
Tim Potter
e3a69a7322 r6215: Add test for LookupNames. Fix CreateUser2 test. 2007-10-10 13:11:27 -05:00
Tim Potter
b09a472353 r6208: Add cli_credentials support for swig wrappers. For the moment it
only does anonymous connections.
2007-10-10 13:11:26 -05:00
Tim Potter
1459393983 r5369: Rename torture modules so they don't conflict with files in scripting/swig.
Start porting samr torture test to new API.
2007-10-10 13:09:47 -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
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
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
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
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
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
bc5165e40a r2817: Get winreg_GetKeySecurity() working but use data blob instead of
security descriptor.
2007-10-10 12:59:36 -05:00
Tim Potter
c09f0f355b 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.
2007-10-10 12:59:36 -05:00
Tim Potter
cc646f73b8 r2781: Got winreg_EnumValue() working. Check it in so I don't break it trying
to clean it up.  (-:
2007-10-10 12:59:32 -05:00
Tim Potter
37af942d08 r2766: Test OpenKey, QueryInfoKey, EnumKey, CloseKey functions.
The IDL for EnumValue is wrong - can't figure it out right now.
2007-10-10 12:59:31 -05:00
Tim Potter
cf9b984b84 r2739: Start of torture test for winreg wrappers. 2007-10-10 12:59:29 -05:00
Tim Potter
799b377bad r2728: Break arg parsing stuff out of samr.py into a standalone program. 2007-10-10 12:59:27 -05:00
Tim Potter
3170f6ed84 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.
2007-10-10 12:59:06 -05:00
Tim Potter
e9eb231d64 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.
2007-10-10 12:59:06 -05:00
Tim Potter
471b13da2b r2511: Add NT status codes. 2007-10-10 12:59:00 -05:00
Tim Potter
808e0708a9 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.
2007-10-10 12:58:59 -05:00
Tim Potter
991d783c1a r2492: Some cleanups.
Add tests for samr_CreateDomainGroup, samr_DeleteDomainGroup,
samr_QueryDomainInfo, samr_SetDomainInfo, samr_EnumDomainUsers,
samr_EnumDomainAliases, samr_EnumDomainGroups.
2007-10-10 12:58:57 -05:00
Tim Potter
632b7cc0d6 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.
2007-10-10 12:58:55 -05:00
Tim Potter
1dc86e466d 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.
2007-10-10 12:58:51 -05:00
Tim Potter
086740c178 r2427: Add tests for samr_GetDomPwInfo, samr_RemoveMemberFromForeignDomain,
samr_LookupName, samr_OpenUser, samr_DeleteUser, samr_CreateUse and
samr_OpenDomain.
2007-10-10 12:58:51 -05:00
Tim Potter
57edfd605b r2421: Fix test for lookupdomain for a non-existent domain.
Export NTSTATUS exception from wrapper module so it can be used by scripts.
2007-10-10 12:58:50 -05:00
Tim Potter
aa15fd1ecb r2419: Write tests for samr_EnumDomains() and samr_LookupDomain(). 2007-10-10 12:58:50 -05:00
Tim Potter
e1166c2100 r2414: samr_Connect.system_name is now an array. 2007-10-10 12:58:50 -05:00
Tim Potter
e822979e84 r2410: Add test for samr_SetSecurity(). 2007-10-10 12:58:49 -05:00
Tim Potter
f6978a007a r2345: Add test for samr_QuerySecurity() 2007-10-10 12:58:45 -05:00
Andrew Tridgell
e94bec1079 r2339: my first python commit!
added command line options for binding string, domain, username and password
2007-10-10 12:58:44 -05:00
Tim Potter
30f068164a r2336: Add another conversion function to allow union arms that contain 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.
2007-10-10 12:58:44 -05:00
Tim Potter
73e087f11e r2300: Start writing a Python torture test suite based on the smbtorture rpc tests. 2007-10-10 12:58:41 -05:00