1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-08 21:18:16 +03:00
Commit Graph

440 Commits

Author SHA1 Message Date
Günther Deschner
5eedaaea43 s4-smbtorture: skip winreg symlink test against Samba in RPC-SPOOLSS.
Guenther
2010-04-09 20:00:56 +02:00
Günther Deschner
bc2e675c3a s4-smbtorture: make sure to check for result of spoolss_GetJob tests.
This avoids returning potentially uninitialised data. Thanks Andreas for
pointing this out.

Guenther
2010-04-09 20:00:56 +02:00
Günther Deschner
48daa0b6ee s4-smbtorture: add test to check for registry symlinks in RPC-SPOOLSS-PRINTER.
Guenther
2010-04-09 16:17:54 +02:00
Günther Deschner
a21be5fc1b s4-smbtorture: fix build after winreg IDL renames, sorry..
Guenther
2010-04-09 14:46:28 +02:00
Günther Deschner
1c4c4dd7e0 s4-smbtorture: protect against full UNC paths in winreg printerinfo test.
Guenther
2010-04-08 16:14:20 +02:00
Günther Deschner
16deed7199 s4-smbtorture: add PrinterInfo level 2 / winreg consistency test.
This compares PrinterInfo2 with contents of
HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Print\Printers\printername and
HKLM\SYSTEM\CurrentControlSet\Control\Print\Printers\printername

Guenther
2010-04-08 15:03:56 +02:00
Günther Deschner
f87a18ec3b s4-smbtorture: minor cleanup, use data_blob_talloc_zero() in RPC-SPOOLSS.
Guenther
2010-04-08 15:03:56 +02:00
Günther Deschner
0ec6f297ee s4-smbtorture: minor typo in SetJob test in RPC-SPOOLSS.
Guenther
2010-04-07 23:53:19 +02:00
Günther Deschner
345fcf5875 s4-smbtorture: test for invalid form flags in RPC-SPOOLSS.
Guenther
2010-04-07 14:56:07 +02:00
Günther Deschner
f63c345bbd s4-smbtorture: test all types and also use a wellknown builtin form name in RPC-SPOOLSS.
Guenther
2010-04-07 14:41:13 +02:00
Günther Deschner
4712940e7c s4-smbtorture: merge badname spoolss openprinter tests.
Guenther
2010-04-07 11:40:41 +02:00
Günther Deschner
8bb30ffcf6 s4-smbtorture: avoid passing down a full test_spoolss_context to directory
spoolss tests when not used.

Guenther
2010-04-07 11:40:31 +02:00
Günther Deschner
4d482d9c19 s4-smbtorture: more work on forms tests in RPC-SPOOLSS.
Guenther
2010-04-06 21:13:19 +02:00
Günther Deschner
55e1af856e s4-smbtorture: fix correct result error code in SetForm spoolss test.
Guenther
2010-04-06 12:13:54 +02:00
Günther Deschner
0909696261 s4-smbtorture: more JobInfo testing.
Guenther
2010-03-26 23:01:19 +01:00
Günther Deschner
f70e1b4d43 s4-smbtorture: fail spoolss test on SetJob failure.
Guenther
2010-03-26 14:36:47 +01:00
Günther Deschner
2e20cdaeeb s4-smbtorture: activate job control tests against s3 in spoolss tests.
Spoolss job control commands work for cups in s3 now but not for other
backends. We need to investigate why.

Guenther
2010-03-25 11:04:52 +01:00
Günther Deschner
426cb9be1c s4-smbtorture: add print test to RPC-SPOOLSS-PRINTER as well.
Guenther
2010-03-25 00:50:44 +01:00
Günther Deschner
6913c57b2f s4-smbtorture: create several printjobs during print test in RPC-SPOOLSS.
Guenther
2010-03-25 00:50:44 +01:00
Günther Deschner
27c50255f6 s4-smbtorture: mention job id in GetJob test output in RPC-SPOOLSS.
Guenther
2010-03-25 00:50:30 +01:00
Günther Deschner
1bb8341871 s4-smbtorture: mention job id in SetJob test output in RPC-SPOOLSS.
Guenther
2010-03-25 00:50:18 +01:00
Günther Deschner
4ca2cc348e s4-smbtorture: workaround broken REG_MULTI_SZ from winreg in s3
during SetPrinterDataEx SPOOLSS test.

Guenther
2010-03-17 15:55:23 +01:00
Günther Deschner
481402bae5 s4-smbtorture: workaround the fact that you cannot fully rename a printer in samba.
Guenther
2010-03-17 15:54:58 +01:00
Günther Deschner
c05a06187d s4-smbtorture: only use "friendly" data in extended SetPrinterDataEx test.
Passes against windows but not against samba yet :-(

Guenther
2010-03-17 15:43:06 +01:00
Stefan Metzmacher
c1bf3244df s4:torture/rpc/spoolss.c: make use of dcerpc_binding_handle stubs
metze
2010-03-16 15:35:31 +01:00
Stefan Metzmacher
28a6e5398d s4:tortore/rpc/spoolss.c: fix compiler warning
metze
2010-03-16 15:35:30 +01:00
Günther Deschner
27d46ba266 s4-smbtorture: make it a bit easier to track failures in RPC-SPOOLSS-PRINTER.
Guenther
2010-03-16 15:13:52 +01:00
Günther Deschner
4379b082b8 s3-spoolss: be very strict on OpenPrinter{Ex} failures for bad names.
Guenther
2010-03-16 10:43:57 +01:00
Günther Deschner
83b9e12513 s4-smbtorture: add simple printer rename test to RPC-SPOOLSS-PRINTER.
Guenther
2010-03-15 18:35:19 +01:00
Günther Deschner
08ec9b7e73 s4-smbtorture: fill PrinterDriverData with more values for consistency test.
Guenther
2010-03-15 17:27:12 +01:00
Günther Deschner
1eb0fbe68d s4-smbtorture: cleanup data after enumdata{ex} consistency test.
Guenther
2010-03-15 14:55:25 +01:00
Günther Deschner
06cbf05e8b s4-smbtorture: when cross checking enumdata{ex} make sure to have at least one entry.
Guenther
2010-03-15 14:16:03 +01:00
Günther Deschner
6bfde084e6 s4-smbtorture: add PrinterInfo_to_SetPrinterInfo helper to RPC-SPOOLSS.
Guenther
2010-03-15 14:16:03 +01:00
Günther Deschner
c3eb509dea s4-smbtorture: fix torture_comment in RPC-SPOOLSS.
Guenther
2010-03-15 10:20:27 +01:00
Stefan Metzmacher
b52b357ede s4:torture/rpc/spoolss.c: fix compiler warnings
metze
2010-03-13 08:20:24 +01:00
Günther Deschner
8f07737714 s4-smbtorture: warn on unexpected devicenames in spoolss devicemode test.
Guenther
2010-03-13 02:26:59 +01:00
Günther Deschner
33d9901ecb s4-smbtorture: fix build and handle in spoolss test.
it's friday night...

Guenther
2010-03-13 01:34:31 +01:00
Günther Deschner
d39ece17e0 s4-smbtorture: add spoolss EnumPrinterData vs EnumPrinterDataEx consistency test.
Guenther
2010-03-13 01:12:22 +01:00
Günther Deschner
ab33b991de s4-smbtorture: refactor spoolss EnumPrinterData test.
Guenther
2010-03-13 01:12:21 +01:00
Günther Deschner
1d9d617d97 s4-smbtorture: refactor SetPrinterData() calls a little more.
Guenther
2010-03-13 01:12:21 +01:00
Günther Deschner
3de2f0475d s4-smbtorture: re-arrange spoolss_SetPrinterData() tests.
Guenther
2010-03-13 01:12:21 +01:00
Günther Deschner
f064a182eb s4-smbtorture: make sure RPC-SPOOLSS passes against 64bit archs (w2k8r2).
Guenther
2010-03-13 01:12:21 +01:00
Günther Deschner
e0d85f87b7 winreg: add winreg_KeyType enum.
Guenther
2010-03-11 20:23:47 +01:00
Günther Deschner
3a8d85da68 s4-smbtorture: more work on test_key_value() RPC-WINREG test.
Guenther
2010-03-11 19:01:07 +01:00
Günther Deschner
3fd5ac6344 s4-smbtorture: only look at DATA_BLOB pointer when einfo[0].data_length > 0.
Guenther
2010-03-11 00:09:04 +01:00
Günther Deschner
01801f3f94 s4-smbtorture: while testing PrinterDataEx also compare Get and Enum results.
Guenther
2010-03-10 23:10:44 +01:00
Günther Deschner
0a253e6b72 s4-smbtorture: fix some build warnings in RPC-SPOOLSS test.
Guenther
2010-03-10 02:54:26 +01:00
Günther Deschner
62b41e6842 s4-smbtorture: rework test_winreg_QueryValue in RPC-SPOOLSS-PRINTER once again.
Guenther
2010-03-10 00:46:23 +01:00
Günther Deschner
48cdca0d47 s4-smbtorture: fix uninitialized variable in winreg QueryValue call.
Guenther
2010-03-09 16:14:39 +01:00
Günther Deschner
6cbb8fdc48 s4-smbtorture: fix test_SetPrinterDataEx_matrix() call. sorry...
Guenther
2010-03-05 16:01:33 +01:00
Günther Deschner
d4db966c06 s4-smbtorture: when checking PrinterData matrix, include winreg cross reference checks.
Guenther
2010-03-05 15:19:50 +01:00
Günther Deschner
f385f4aeb0 s4-smbtorture: hand down printername to test_SetPrinterDataEx_matrix.
Guenther
2010-03-05 15:18:30 +01:00
Günther Deschner
c5fb6551d9 s4-smbtorture: add more paranoid checks for REG_DWORD SetPrinterDataEx tests.
Guenther
2010-03-05 15:18:17 +01:00
Günther Deschner
65f453ce71 s4-smbtorture: remove check for selfmade parsing artefact.
We were checking against a phenomenon that we created ourselves at the pidl
layer...

Guenther
2010-03-05 15:18:01 +01:00
Günther Deschner
f797ec9d81 s4-smbtorture: fix smbtorture after GetPrinterData{Ex} after IDL changes.
Guenther
2010-03-05 15:18:00 +01:00
Günther Deschner
ca319bfff2 s4-smbtorture: fix smbtorture after SetPrinterData{Ex} IDL changes.
Guenther
2010-03-05 15:17:59 +01:00
Günther Deschner
1a64d3cbc6 s4-smbtorture: add stricter SetPrinterDataEx tests to spoolss tests.
Guenther
2010-03-01 15:22:29 +01:00
Günther Deschner
4f6634e56d s4-smbtorture: add test_SetPrinterDataEx to RPC-SPOOLSS-PRINTER.
Guenther
2010-03-01 15:22:29 +01:00
Günther Deschner
74c7c1cc7f s4-smbtorture: return needed size pointer from test_GetPrinterDataEx.
Guenther
2010-03-01 15:22:29 +01:00
Günther Deschner
e76b8a0700 s4-smbtorture: test at least three different regtypes in test_SetPrinterDataEx.
Guenther
2010-03-01 15:22:29 +01:00
Günther Deschner
8ee516eb9e s4-smbtorture: define environment in one place in RPC-SPOOLSS test.
Guenther
2010-02-25 19:10:43 +01:00
Günther Deschner
d6cb1cc85f s4-smbtorture: try to set every single devicemode component in RPC-SPOOLSS-PRINTER.
Guenther
2010-02-25 13:13:57 +01:00
Günther Deschner
bbdd1412b2 s4-smbtorture: move ChangeID test to the list of tests we run against created printers.
Guenther
2010-02-25 13:13:33 +01:00
Günther Deschner
1b78573c2d s4-smbtorture: verify that the client cpu architecture has no influence on the
calculated buffer size in RPC-SPOOLSS.

Guenther
2010-02-24 11:43:20 +01:00
Günther Deschner
ec0aa8a5c9 s4-smbtorture: more work on devicemode tests.
Guenther
2010-02-19 15:25:42 +01:00
Günther Deschner
0e95a6a09c s4-smbtorture: explain failure conditions in printer device mode tests a little more.
Guenther
2010-02-19 14:27:31 +01:00
Günther Deschner
f2ecec3dcd s4-smbtorture: add --option=torture:spoolss_check_size=yes.
This disables the size calculation comparison by default.

Guenther
2010-02-19 14:25:19 +01:00
Günther Deschner
299e5bc2ba s4-smbtorture: print more comments while running SD and DM tests in RPC-SPOOLSS-PRINTER.
Guenther
2010-02-19 14:24:18 +01:00
Günther Deschner
998a7b4e3f s4-smbtorture: skip printer info cross tests against samba 3 for now.
Not even w2k8r2 passes them atm.

Guenther
2010-02-18 01:49:02 +01:00
Günther Deschner
97d36377d3 s4-smbtorture: try more combinations to find printers in test_EnumPrinters_findname().
Also take a note of servers returning full UNC printer paths although we did not
set the servername.

Guenther
2010-02-18 01:48:52 +01:00
Günther Deschner
a1ba72f84c s4-smbtorture: simplify test_PrinterInfo_DevMode a bit.
Guenther
2010-02-18 01:48:45 +01:00
Günther Deschner
57847c2fee s4-smbtorture: avoid potential loop while adding a new printer in RPC-SPOOLSS-PRINTER.
Guenther
2010-02-18 01:48:36 +01:00
Günther Deschner
3a9dc490b4 s4-smbtorture: unify test list to run against single created printers in RPC-SPOOLSS-PRINTER.
This is to make sure we run the same tests for printers created via AddPrinter
and via AddPrinterEx.

Guenther
2010-02-17 11:29:37 +01:00
Günther Deschner
b32c1e2975 s4-smbtorture: also test level 2 sets for devicemodes and see if they persist.
Guenther
2010-02-17 11:29:37 +01:00
Günther Deschner
ff5bfb9708 s4-smbtorture: refactor setprinter devicemode calls in RPC-SPOOLSS-PRINTER.
Guenther
2010-02-17 11:29:36 +01:00
Günther Deschner
020c8df281 s4-smbtorture: fix spoolss SD test against w2k8r2.
Guenther
2010-02-16 10:47:05 +01:00
Günther Deschner
41bb8767a2 s4-smbtorture: more work on test_PrinterInfo_DevMode RPC-SPOOLSS-PRINTER.
Guenther
2010-02-16 09:22:35 +01:00
Günther Deschner
1e59e5d8c9 s4-smbtorture: allow to call OpenPrinterEx with devicemode.
Guenther
2010-02-16 09:20:25 +01:00
Günther Deschner
bb05595b0a s4-smbtorture: more work on SD tests for RPC-SPOOLSS.
Guenther
2010-02-15 22:17:01 +01:00
Günther Deschner
71cfcee6ba s4-smbtorture: add rather simple spoolss device mode test.
Guenther
2010-02-15 22:16:25 +01:00
Günther Deschner
a6192d766f s4-smbtorture: use test_SetPrinter call in spoolss security descriptor tests.
Guenther
2010-02-15 22:15:33 +01:00
Günther Deschner
cdf2f6b672 s4-smbtorture: w2k8r2 allows to add printers w/o defining printprocessor.
Guenther
2010-02-15 22:12:55 +01:00
Günther Deschner
72f250ac16 s4-smbtorture: add some security descriptor tests to RPC-SPOOLSS and RPC-SPOOLSS-PRINTER.
Guenther
2010-02-15 11:08:16 +01:00
Günther Deschner
f8778ba8f4 s4-smbtorture: use test_GetPrinter_level in RPC-SPOOLSS-NOTIFY.
Guenther
2010-02-10 01:00:25 +01:00
Günther Deschner
3dbe8603d9 s4-smbtorture: add test_ChangeID to RPC-SPOOLSS.
This tests ChangeID consistency between spoolss_GetPrinterData,
spoolss_GetPrinterDataEx and spoolss_GetPrinter (level 0).

Guenther
2010-01-06 22:09:37 +01:00
Günther Deschner
7568f49134 s4-smbtorture: add test_SetPrinter to RPC-SPOOLSS.
Guenther
2010-01-06 22:09:36 +01:00
Günther Deschner
0457cf915b s4-smbtorture: refactor test_GetPrinter in RPC-SPOOLSS.
Guenther
2010-01-06 22:09:36 +01:00
Günther Deschner
a9689bb755 s4-smbtorture: fix smbtorture after setprinter IDL fixes.
Guenther
2009-12-17 10:43:32 +01:00
Günther Deschner
308b50a7bb s4-smbtorture: run GetPrinterDriver2 tests against each printer's driver.
Guenther
2009-12-16 01:13:43 +01:00
Günther Deschner
801fbd0569 s4-smbtorture: check whether a returned buffer size is a multiple of 4 in RPC-SPOOLSS.
This gives a good indication where our IDL (and the s3 spoolss implementation) is still wrong.

Guenther
2009-12-14 10:37:41 +01:00
Günther Deschner
ce33967f4a s4-smbtorture: fix and extend enum printerkey test.
Guenther
2009-12-10 17:48:50 +01:00
Günther Deschner
d2f13dd688 s4-smbtorture: enhance spoolss_EnumPrinterKey torture test.
This demonstrates that s3 still does not have that call implemented correctly.

Guenther
2009-12-09 15:34:45 +01:00
Günther Deschner
5e8e5dfe88 s4-smbtorture: make level 8 the reference for PrinterDriverEnum test.
Guenther
2009-12-08 11:51:09 +01:00
Günther Deschner
35c067782b s4-smbtorture: fill in COMPARE_STRING_ARRAY macro in spoolss driver test.
Guenther
2009-12-08 10:37:13 +01:00
Günther Deschner
8de6f7178c s4-smbtorture: disable some spoolss printerdata tests which s3 does not pass at the moment.
Guenther
2009-12-07 14:42:13 +01:00
Günther Deschner
123d8d1c2c s4-smbtorture: fix RPC-SPOOLSS after _spoolss_SetPrinterDataEx IDL change.
Guenther
2009-12-07 14:42:13 +01:00
Günther Deschner
02fe863039 s4-smbtorture: heavily expand printerdata tests in RPC-SPOOLSS.
Including new tests for:
- spoolss_SetPrinterDataEx
- spoolss_DeletePrinterDataEx
- spoolss_DeletePrinterKey

Guenther
2009-12-04 12:55:52 +01:00
Günther Deschner
2f0548fd98 s4-smbtorture: check more WERRORs in RPC-SPOOLSS.
Guenther
2009-12-03 23:48:59 +01:00
Günther Deschner
4e20a6f83b s4-smbtorture: call test_EnumPrinterDrivers with architecture in RPC-SPOOLSS.
Guenther
2009-12-03 22:16:24 +01:00
Günther Deschner
450211b610 s4-smbtorture: be very strict in checking spools_EnumPrinterKey results.
Guenther
2009-12-03 01:04:02 +01:00
Günther Deschner
5f60855ba2 samba-spoolss: use spoolss_StringArray2 in spoolss_EnumPrinterKey.
This should finally resolve the endian issues we were seeing on sparc and is
much cleaner for spoolss clients and servers.

Guenther
2009-12-02 14:56:17 +01:00
Günther Deschner
8f6df5d3ec s4-smbtorture: more and stricter tests for printer and data keys in RPC-SPOOLSS.
Guenther
2009-11-27 23:16:21 +01:00
Günther Deschner
d66b7d80d5 s4-smbtorture: add tests for spoolss_EnumPrinterKey to RPC-SPOOLSS-PRINTER.
Guenther
2009-11-23 12:17:54 +01:00
Günther Deschner
c3f461c35f s4-smbtorture: some work on getprinterdriver and getprinterdriver2 tests.
Guenther
2009-07-16 03:05:44 +02:00
Günther Deschner
b6fb8cf5f3 s4-smbtorture: add RPC-SPOOLSS-PRINTER test.
Guenther
2009-07-14 23:03:58 +02:00
Günther Deschner
3a367ab10d s4-smbtorture: add some tests to check spoolss_SetPrinter behavior.
Guenther
2009-07-14 22:59:45 +02:00
Günther Deschner
b0cce950ba s4-smbtorture: restructure test_OpenPrinter_server in RPC-SPOOLSS a bit.
Guenther
2009-07-14 22:58:55 +02:00
Günther Deschner
f729abaa94 s4-smbtorture: fix getjob test in RPC-SPOOLSS.
Guenther
2009-07-02 22:00:41 +02:00
Günther Deschner
e7d72b585a s4-smbtorture: Test for newly added form with enum call in RPC-SPOOLSS.
Guenther
2009-06-30 13:34:41 +02:00
Günther Deschner
66780e016b s4-smbtorture: remove trailing whitespace from RPC-SPOOLSS.
Guenther
2009-06-30 11:38:41 +02:00
Günther Deschner
d11d4382b9 s4-smbtorture: also test for "all" architecture in enum driver tests in RPC-SPOOLSS.
Guenther
2009-06-08 21:24:31 +02:00
Günther Deschner
5f0c9c57f5 s4-smbtorture: test all levels in test_GetJob().
Guenther
2009-04-20 00:59:36 +02:00
Günther Deschner
fe2828c353 s4-smbtorture: Skip Job pause and resume on paused printers for Samba 3 for now.
Guenther
2009-04-17 17:27:42 +02:00
Günther Deschner
cb9c0cefaf s4-smbtorture: rework test_EnumPrinterDrivers() a little to succeed with s3.
Yes, I feel dirty for this but promise to come back and fix appropriately.

Guenther
2009-04-17 17:25:14 +02:00
Günther Deschner
4a2dfbf3c9 s4-smbtorture: print SPOOLSS_JOB_CONTROL flags in RPC-SPOOLSS test.
Guenther
2009-04-14 12:13:08 +02:00
Günther Deschner
1dbb6530fa s4-smbtorture: fix two valgrind warnings.
Guenther
2009-04-13 23:45:45 +02:00
Günther Deschner
56f5105400 s4-smbtorture: disable test_SecondaryClosePrinter when running against s3 for now.
Guenther
2009-04-13 23:45:37 +02:00
Günther Deschner
0f76e2d0bd s4-smbtorture: move test_ReplyOpenPrinter from RPC-SPOOLSS to RPC-SPOOLSS-NOTIFY.
Guenther
2009-04-13 23:45:29 +02:00
Günther Deschner
81aca44d30 s4-smbtorture: use printerinfo level 1 name, not description in
test_EnumPrinters_old().

Guenther
2009-04-13 16:10:50 +02:00
Günther Deschner
6e52c232c7 s4-smbtorture: fix spoolss_EnumPrinterDataEx tests.
sorry, I could swear this did compile...

Guenther
2009-03-18 01:42:56 +01:00
Günther Deschner
0e2139c693 s4-smbtorture: fix RPC-SPOOLSS test after PrinterData changes.
Guenther
2009-03-17 11:14:54 +01:00
Günther Deschner
c6e3e5eabc s4-smbtorture: fix test_GetPrinterData tests after out pointer changes.
Guenther
2009-03-17 10:58:22 +01:00
Günther Deschner
ec0c6e1617 s4-smbtorture: fix build warning in test_EnumPrintProcDataTypes.
Guenther
2009-03-14 23:25:29 +01:00
Günther Deschner
a93fbf8b26 s4-smbtorture: add test_EnumPrintProcDataTypes to RPC-SPOOLSS test.
Guenther
2009-03-07 00:25:44 +01:00
Günther Deschner
8bc7bb77be s4-smbtorture: exit early in test_EnumPorts when no port info has been returned.
Guenther
2009-03-06 14:28:22 +01:00
Günther Deschner
47adaea11e s4-smbtorture: fix RPC-SPOOLSS test after enum out info pointer changes.
Guenther
2009-03-06 14:28:04 +01:00
Günther Deschner
8bf0c256d7 s4-smbtorture: add test_AddJob test to RPC-SPOOLSS test.
Guenther
2009-02-25 23:48:29 +01:00
Günther Deschner
6cd30a351a s4-smbtorture: expand RPC-SPOOLSS enumform and getform tests for level 2 forms.
Guenther
2009-02-25 21:17:19 +01:00
Günther Deschner
666cc916eb s4-smbtorture: add test_GetPrintProcessorDirectory to RPC-SPOOLSS.
Guenther
2009-02-25 21:17:18 +01:00
Günther Deschner
64cec99843 s4-smbtorture: fix spoolss test after count out,ref idl changes.
Guenther
2009-02-17 16:15:52 +01:00
Günther Deschner
886c028e44 s4-smbtorture: fix test_PausePrinter and test_ResumePrinter.
Guenther
2009-02-14 01:21:21 +01:00
Günther Deschner
c1dbcd4cf8 s4-smbtorture: fix SPOOLSS test w.r.t. spoolss_ReplyOpenPrinter.
Guenther
2009-02-10 23:57:30 +01:00
Günther Deschner
cd5a314b51 s4-smbtorture: fix test_GetPrinterData.
Guenther
2009-02-06 18:37:02 +01:00
Günther Deschner
afe300cb52 s4-smbtorture: fix spoolss enum tests.
Guenther
2009-02-06 17:36:10 +01:00
Günther Deschner
88aaac39fa s4-smbtorture: fix test_EnumPrinterDataEx.
Guenther
2009-02-06 14:59:22 +01:00
Günther Deschner
8ddb81ca0a s4-smbtorture: fix test_GetPrinterDataEx.
Guenther
2009-02-06 14:59:22 +01:00
Günther Deschner
3954cd83aa s4-smbtorture: fix test_GetPrinterDriver2.
Guenther
2009-02-06 14:59:22 +01:00
Günther Deschner
99398e8768 s4-smbtorture: fix test_GetForm.
Guenther
2009-02-06 14:59:21 +01:00
Günther Deschner
d400de2ffa s4-smbtorture: fix test_DoPrintTest.
Guenther
2009-02-06 14:59:21 +01:00
Günther Deschner
6e1c008913 s4-smbtorture: fix test_DoPrintTest.
Guenther
2009-02-06 14:59:21 +01:00
Günther Deschner
0d4dbe6012 s4-smbtorture: fix test_GetPrinterDriverDirectory.
Guenther
2009-02-06 14:59:21 +01:00
Günther Deschner
8153916f4a s4-smbtorture: fix test_GetPrinter.
Guenther
2009-02-06 14:59:21 +01:00
Günther Deschner
22e2f220be s4-smbtorture: fix test_GetJob.
Guenther
2009-02-06 14:59:20 +01:00
Stefan Metzmacher
c41944b9f9 spoolss.idl: improve idl for EnumPrinterData and not use 'lstring' any more
metze
(This used to be commit d6cdddbcf3)
2008-02-13 10:39:25 +01:00
Kai Blin
9532bced6c r26048: spoolss: Fix test_SecondaryClosePrinter.
The test was trying to be too smart. Fixed to not reuse test_ClosePrinter.
(This used to be commit 5f688d1fdd)
2007-12-21 05:45:47 +01:00
Kai Blin
e35e41a8f9 r26047: spoolss: OpenPrinterEx with an invalid server/printer name returns WERR_INVALID_PARAM
This is observed against a Win2k3 DC, and different tothe WERR_INVALID_PRINTER_NAME
returned by OpenPrinter.
(This used to be commit 7e78dc7cfe)
2007-12-21 05:45:46 +01:00
Kai Blin
1eaefd15cb r25642: Fix a small typo.
(This used to be commit 7416a1d606)
2007-12-21 05:43:02 +01:00
Jelmer Vernooij
2151cde580 r25554: Convert last instances of BOOL, True and False to the standard types.
(This used to be commit 566aa14139)
2007-10-10 15:07:55 -05:00
Jelmer Vernooij
2f3551ca7c r25446: Merge some changes I made on the way home from SFO:
2007-09-29 More higher-level passing around of lp_ctx.
2007-09-29 Fix warning.
2007-09-29 Pass loadparm contexts on a higher level.
2007-09-29 Avoid using global loadparm context.
(This used to be commit 3468952e77)
2007-10-10 15:07:34 -05:00
Jelmer Vernooij
8e2d624a58 r24937: Merge tests spoolss RPC callbacks.
(This used to be commit 9b256a0ca2)
2007-10-10 15:03:39 -05:00
Jelmer Vernooij
3e7203d0b3 r24755: Use common code for finding the RPC binding in the torture tests.
(This used to be commit e3310e7739)
2007-10-10 15:03:03 -05:00
Jelmer Vernooij
919aa6b27e r24735: Use torture API in more places.
(This used to be commit 1319d88c09)
2007-10-10 15:03:00 -05:00
Stefan Metzmacher
f14bd1a90a r24557: rename 'dcerpc_table_' -> 'ndr_table_'
metze
(This used to be commit 84651aee81)
2007-10-10 15:02:15 -05:00
Andrew Tridgell
0479a2f1cb r23792: convert Samba4 to GPLv3
There are still a few tidyups of old FSF addresses to come (in both s3
and s4). More commits soon.
(This used to be commit fcf38a38ac)
2007-10-10 14:59:12 -05:00
Stefan Metzmacher
5dd8496af6 r23687: not every compiler supports __typeof__()
metze
(This used to be commit d0f77f7bd7)
2007-10-10 14:59:01 -05:00
Stefan Metzmacher
403530d0ec r17787: ifdef out unused macros and generate a smb_panic()
when the wrong macro is used on a field.

metze
(This used to be commit dd0f692d19)
2007-10-10 14:16:42 -05:00
Jelmer Vernooij
909b111f58 r14720: Add torture_context argument to all torture tests
(This used to be commit 3c7a5ce291)
2007-10-10 13:59:13 -05:00
Jelmer Vernooij
4f1c8daa36 r14470: Remove some unnecessary headers.
(This used to be commit f7312dab3b)
2007-10-10 13:57:29 -05:00
Jelmer Vernooij
1060f6b3f6 r14402: Generate seperate headers for RPC client functions.
(This used to be commit 7054ebf024)
2007-10-10 13:57:19 -05:00
Jelmer Vernooij
eefe30b7d8 r14379: Build torture/rpc/ as a seperate smbtorture module. Move helper
functions for rpc out of torture/torture.c
(This used to be commit 1d2d970f3b)
2007-10-10 13:57:16 -05:00
Jelmer Vernooij
25bb00fbcd r12693: Move core data structures out of smb.h into core.h
torture prototypes in seperate header
(This used to be commit 73610639b2)
2007-10-10 13:49:39 -05:00
Jelmer Vernooij
acd6a086b3 r12510: Change the DCE/RPC interfaces to take a pointer to a
dcerpc_interface_table struct rather then a tuple of interface
name, UUID and version.

This removes the requirement for having a global list of DCE/RPC interfaces,
except for these parts of the code that use that list explicitly
(ndrdump and the scanner torture test).

This should also allow us to remove the hack that put the authservice parameter
in the dcerpc_binding struct as it can now be read directly from
dcerpc_interface_table.

I will now modify some of these functions to take a dcerpc_syntax_id
structure rather then a full dcerpc_interface_table.
(This used to be commit 8aae0f168e)
2007-10-10 13:47:48 -05:00
Stefan Metzmacher
1598aaca95 r11676: as tridge uses 0x%llx in his latest commits...
try to use it every where and see how portable it is

metze
(This used to be commit 66a94de5dd)
2007-10-10 13:46:12 -05:00
Stefan Metzmacher
ccaf752e35 r8054: add OSVersion, OSVersionEx, DNSMachineName PrintServerData
metze
(This used to be commit 47781fccbc)
2007-10-10 13:19:03 -05:00
Stefan Metzmacher
88df3c81ee r8050: - make use of more [value()] properties
- the out subcontext's need to have a fixed size of r->in.offered,
  to make windows clients happy

metze
(This used to be commit 054e1ca434)
2007-10-10 13:19:02 -05:00
Stefan Metzmacher
fe94ba6e71 r8046: - add somemore failure checks in the RPC-SPOOLSS test
- test AddForm on the PrintServer object

- GetForm() isn't allowed on the PrintServer object so remove NTPTR
  function for it

- accept the dns name as servername in the spoolss server

metze
(This used to be commit d8c308a465)
2007-10-10 13:19:02 -05:00
Andrew Tridgell
ffa3632188 r7650: fixed a typo
(This used to be commit 331afee4ca)
2007-10-10 13:18:17 -05:00
Stefan Metzmacher
038628b9c5 r7642: - test NULL server_name in GetPrinterDriverDirectory() too, (same result as "")
- test EnumForms() on the PrintServer (NT4 returns WERR_BADFID)
  (jerry: how do it get the lists of forms in the printserver gui)

metze
(This used to be commit fddfe1f04b)
2007-10-10 13:18:16 -05:00
Stefan Metzmacher
056d63c62f r7580: - add GetPrinterDriverDirectory() idl, torture test and server code
- add EnumMonitors() server code and return "Standard TCP/IP Port"
- add parsing for opening Ports and Monitors with OpenPrinterEx()

metze
(This used to be commit 08e6de37bc)
2007-10-10 13:18:11 -05:00
Stefan Metzmacher
04c3bbe053 r7574: - seperate [in] and [out] buffers and buf_sizes
- use the same names as etherel (offered,needed) for the buffer sizes
  (and they are really independently used)

metze
(This used to be commit f5532a5b74)
2007-10-10 13:18:11 -05:00
Stefan Metzmacher
56af29caa5 r7464: add newline to printf
metze
(This used to be commit 7123cd1116)
2007-10-10 13:17:56 -05:00
Stefan Metzmacher
30da4d8d93 r7369: allow no entries returned by Enum*()
metze
(This used to be commit 3778da9d17)
2007-10-10 13:17:47 -05:00
Stefan Metzmacher
22ae788666 r7346: use StartPagePrinter(), WritePrinter() and EndPagePrinter() to print a few test pages
on each printer
(we don't actually print because we have paused the printer before...)

metze
(This used to be commit 6bccf55ab9)
2007-10-10 13:17:45 -05:00
Stefan Metzmacher
f9716b51cd r7342: submit a test job for each printer and delete this job
metze
(This used to be commit b71d577097)
2007-10-10 13:17:44 -05:00
Stefan Metzmacher
6484698ee4 r7340: fix the build
and some more error checks

metze
(This used to be commit da6263d421)
2007-10-10 13:17:44 -05:00
Stefan Metzmacher
87bbda10bf r7333: Pause and resume each printer
metze
(This used to be commit 191375f417)
2007-10-10 13:17:43 -05:00
Stefan Metzmacher
d8889b6f8d r7329: test some more PrinterData values
metze
(This used to be commit ad35bfb225)
2007-10-10 13:17:42 -05:00
Stefan Metzmacher
9a831a3963 r7328: fix GetPrinterData and SetPrinterData, with zero length subcontexts
metze
(This used to be commit 73d597bacf)
2007-10-10 13:17:42 -05:00
Stefan Metzmacher
62480f1252 r7120: make use of the new 'noopnum' property and get rid of handwritten
parsing code for the spoolss_Enum* functions, there still same handwritten code needed
but just to stack the autogenerated code into the correct way

metze
(This used to be commit 155d18e8b7)
2007-10-10 13:17:19 -05:00
Stefan Metzmacher
4baf0b01c4 r6197: fix for my last commit, I removed SPOOLSS_ARCHITECTURE, which was "Architecture"
(sorry richard:-)

disable lookup for DefaultSpoolDirectory until, I have fixed the parsing when WERR_MORE_DATA
is returned

metze
(This used to be commit d5993337b8)
2007-10-10 13:11:25 -05:00
Richard Sharpe
d3911fa5d7 r6195: I think Metze meant SPOOLSS_ARCHITECTURE_NT_X86, but I could be wrong.
(This used to be commit 85c2b8b944)
2007-10-10 13:11:25 -05:00
Stefan Metzmacher
746bb14367 r6194: - fix some spoolss_*Form names and types
- fix GetPrinterData(), look inside the datablob

- add idl for RemoteFindFirstChangeNotify(), without meaning yet, just to not return a DCERPC_FAULT
  when receiving this request

metze
(This used to be commit 92f3d5bd9c)
2007-10-10 13:11:25 -05:00
Stefan Metzmacher
3abce73193 r6179: - add new spoolss tests for all spoolss_Enum*() calls which didn't need
a handle as parameter,

  EnumPorts
  EnumPrinterDrivers
  EnumMonitors
  EnumPrintProcessors
  EnumPrinters

  we now do cross checks between the different info levels
  and sore the results in a global context,
  so that we later can add cross checks between the different object types

- add idl for EnumMonitors and EnumPrintProcessors

metze
(This used to be commit 92a3721bc7)
2007-10-10 13:11:23 -05:00
Andrew Bartlett
645711c602 r5941: Commit this patch much earlier than I would normally prefer, but metze needs a working tree...
The main volume of this patch was what I started working on today:
 - Cleans up memory handling around DCE/RPC pipes, to have a parent talloc context.
 - Uses sepereate inner loops for some of the DCE/RPC tests

The other and more important part of this patch fixes issues
surrounding the new credentials framwork:

This makes the struct cli_credentials always a talloc() structure,
rather than on the stack.  Parts of the cli_credentials code already
assumed this.

There were other issues, particularly in the DCERPC over SMB handling,
as well as little things that had to be tidied up before test_w2k3.sh
would start to pass.

Andrew Bartlett
(This used to be commit 0453f9d05d)
2007-10-10 13:11:11 -05:00
Andrew Bartlett
df64302213 r5902: A rather large change...
I wanted to add a simple 'workstation' argument to the DCERPC
authenticated binding calls, but this patch kind of grew from there.

With SCHANNEL, the 'workstation' name (the netbios name of the client)
matters, as this is what ties the session between the NETLOGON ops and
the SCHANNEL bind.  This changes a lot of files, and these will again
be changed when jelmer does the credentials work.

I also correct some schannel IDL to distinguish between workstation
names and account names.  The distinction matters for domain trust
accounts.

Issues in handling this (issues with lifetime of talloc pointers)
caused me to change the 'creds_CredentialsState' and 'struct
dcerpc_binding' pointers to always be talloc()ed pointers.

In the schannel DB, we now store both the domain and computername, and
query on both.  This should ensure we fault correctly when the domain
is specified incorrectly in the SCHANNEL bind.

In the RPC-SCHANNEL test, I finally fixed a bug that vl pointed out,
where the comment claimed we re-used a connection, but in fact we made
a new connection.

This was achived by breaking apart some of the
dcerpc_secondary_connection() logic.

The addition of workstation handling was also propogated to NTLMSSP
and GENSEC, for completeness.

The RPC-SAMSYNC test has been cleaned up a little, using a loop over
usernames/passwords rather than manually expanded tests.  This will be
expanded further (the code in #if 0 in this patch) to use a newly
created user account for testing.

In making this test pass test_rpc.sh, I found a bug in the RPC-ECHO
server, caused by the removal of [ref] and the assoicated pointer from
the IDL.  This has been re-added, until the underlying pidl issues are
solved.
(This used to be commit 824289dcc2)
2007-10-10 13:11:07 -05:00
Günther Deschner
0dcd79b92a r5611: Add EnumPrinterDataEx-test (for now just for PrinterDriverData, we need
to enumerate (recursively!) over all keys with EnumPrinterKey later on.

Guenther
(This used to be commit 46ae4010f2)
2007-10-10 13:10:56 -05:00
Tim Potter
04d3e8046a r5553: Add idl and test for spoolss_AddPort(). It always seems to return
WERR_NOT_SUPPORTED though.
(This used to be commit ba4730a378)
2007-10-10 13:10:54 -05:00
Tim Potter
84d632ab5e r5552: Don't try to read the value of r.out.result when the dcerpc client
function returns non-OK.  If a non-OK status is returned then some or
all or r.out is likely to be uninitialised.
(This used to be commit 0e83a306b0)
2007-10-10 13:10:54 -05:00
Stefan Metzmacher
ae223fadd0 r5539: more bad name checks and don't check for \\localhost and \\127.0.0.1
we maybe use this in the build farm

metze
(This used to be commit 98e32260f5)
2007-10-10 13:10:53 -05:00
Stefan Metzmacher
68ce448fbd r5537: - make use of bitmaps and enums
- add and fix some PrinterInfo levels

- add and fix some DriverInfo levels

- fix EnumPrinterDriver torture test

the curent RPC-SPOOLSS now passes on w2k3

metze
(This used to be commit 14b88ca20d)
2007-10-10 13:10:53 -05:00
Stefan Metzmacher
09879ff119 r5516: NT4 doesn't support GetPrinterDataEx()
metze
(This used to be commit 81f4afcbfa)
2007-10-10 13:10:53 -05:00
Stefan Metzmacher
d900aed90c r5503: - add torture test which tests for invalid printernames
- add OpenPrinter() server code that just calls OpenPrinterEx()

- fix OpenPrinterEx logic, we pass the invalid printer names test now

metze
(This used to be commit 3085d3728e)
2007-10-10 13:10:52 -05:00
Stefan Metzmacher
4926b8f5c0 r5498: fix OpenPrinter() idl and torture test
metze
(This used to be commit fd7950abe6)
2007-10-10 13:10:51 -05:00
Stefan Metzmacher
6b4cac2c00 r5489: hide handwritten pull/push/print code from the caller
for the spoolss_Enum* functions

metze
(This used to be commit bfcc86e706)
2007-10-10 13:10:50 -05:00
Andrew Tridgell
759da3b915 r5037: got rid of all of the TALLOC_DEPRECATED stuff. My apologies for the
large commit. I thought this was worthwhile to get done for
consistency.
(This used to be commit ec32b22ed5)
2007-10-10 13:09:15 -05:00
Andrew Tridgell
6836f5d0b1 r4616: the first phase in the addition of proper support for
dcerpc_alter_context and multiple context_ids in the dcerpc client
library.

This stage does the following:

 - split "struct dcerpc_pipe" into two parts, the main part being "struct dcerpc_connection", which
   contains all the parts not dependent on the context, and "struct dcerpc_pipe" which has
   the context dependent part. This is similar to the layering in libcli_*() for SMB

 - disable the current dcerpc_alter code. I've used a #warning until i
   get the 2nd phase finished. I don't know how portable #warning is, but
   it won't be long before I add full alter context support anyway, so it won't last long

 - cleanup the allocation of dcerpc_pipe structures. The previous code
   was quite awkward.
(This used to be commit 4004c69937)
2007-10-10 13:08:34 -05:00
Andrew Tridgell
cc8f4358cc r4035: more effort on consistent naming of the access mask bits.
This removes the duplicate named SEC_RIGHTS_MAXIMUM_ALLOWED and
SEC_RIGHTS_FULL_CONTROL, which are just other names for
SEC_FLAG_MAXIMUM_ALLOWED and SEC_RIGHTS_FILE_ALL. The latter names
match the new naming conventions in security.idl

Also added names for the generic->specific mappings for files are
directories
(This used to be commit 17a4e0b3ac)
2007-10-10 13:06:16 -05:00
Andrew Tridgell
90067934cd r3428: switched to using minimal includes for the auto-generated RPC code.
The thing that finally convinced me that minimal includes was worth
pursuing for rpc was a compiler (tcc) that failed to build Samba due
to reaching internal limits of the size of include files. Also the
fact that includes.h.gch was 16MB, which really seems excessive. This
patch brings it back to 12M, which is still too large, but
better. Note that this patch speeds up compile times for both the pch
and non-pch case.

This change also includes the addition iof a "depends()" option in our
IDL files, allowing you to specify that one IDL file depends on
another. This capability was needed for the auto-includes generation.
(This used to be commit b8f5fa8ac8)
2007-10-10 13:05:09 -05:00
Tim Potter
89665e87b4 r3396: Rename form_name -> formname. This time, check smbtorture builds before
committing.  (-:
(This used to be commit c776232d01)
2007-10-10 13:05:05 -05:00
Andrew Tridgell
ba6d5fcb97 r3324: made the smbtorture code completely warning free
(This used to be commit 7067bb9b52)
2007-10-10 13:04:55 -05:00
Volker Lendecke
4a25682214 r3317: Fix the build
(This used to be commit 5e8fd27d6e)
2007-10-10 13:04:53 -05:00
Volker Lendecke
5a75c3b060 r3218: Fix the build
(This used to be commit 478ba62915)
2007-10-10 13:04:42 -05:00
Andrew Tridgell
13f44bbacb r2209: patch from volker to add EnumPorts spoolss IDL and test code
the ndr->offset=0; stuff is ugly. We need a better way to handle this.
(This used to be commit e909bfa708)
2007-10-10 12:58:31 -05:00
Andrew Tridgell
5f6c0b6c8c r2207: this bug caued valgrind to consume infinite memory till the kernel killed it :(
(This used to be commit 60a88595e2)
2007-10-10 12:58:31 -05:00
Andrew Tridgell
a1318baa55 r1041: - pulled the domain join code out of the netlogon test and made it a separate utility function, to allow
multiple torture tests to temporarily join a domain

- fixed a session key size problem

- added a schannel test suite

- allow schannel to work with ncacn_ip_tcp
(This used to be commit 36f05e4d57)
2007-10-10 12:56:33 -05:00
Stefan Metzmacher
f88bf54c7f r889: convert samba4 to use [u]int16_t instead of [u]int16
metze
(This used to be commit af6f1f8a01)
2007-10-10 12:56:16 -05:00
Stefan Metzmacher
f9d8f8843d r884: convert samba4 to use [u]int32_t instead of [u]int32
metze
(This used to be commit 0e5517d937)
2007-10-10 12:56:15 -05:00
Stefan Metzmacher
0b4da9d7e0 - add 'print' to the DCERPC binding strings
e.g.
  ncacn_np:myserver:[samr,sign,print]

  will now enable the packet debugging

  and the debugging is not bound anymore to the debuglevel >= 2
  in the torture tests

- also the dcesrv_remote module now supports debugging of the packets
  use the 'dcerpc_remote:binding' smb.conf parameter.

metze
(This used to be commit 40abf3c584)
2004-02-03 14:56:07 +00:00
Andrew Tridgell
53382d54f4 check for the correct fault code when the server fails a use of a
incorrect policy handle
(This used to be commit 8cd6e90eb8)
2004-01-20 06:10:15 +00:00
Andrew Tridgell
8ae5b50a6e added code to the RPC-SPOOLSS test that demonstrates that policy
handles are not shared between open dcerpc connections, even when
those connections are on the same SMB socket. I have tested this with
w2k3, w2k and NT4. It seems that policy handles have a strict scope of
the dcerpc connection on which they were opened.

I realise that this goes against existing folk-law in the team, but it
seems that the previous testing (I'm not sure who did this?) was
wrong. Perhaps clients do send us policy handles from other
connections, but if they do then the correct thing to do is to fail
the operation with a dcerpc fault. I suspect that failing it with
exactly the right dcerpc fault code is important.
(This used to be commit 2ed24d29ba)
2004-01-20 06:07:09 +00:00
Andrew Tridgell
fa062af11a * removed a bunch of unused code
* made some functions static
(This used to be commit 829b87f30d)
2003-11-30 23:40:04 +00:00
Tim Potter
d944b9780a Added EnumPrinterDriver, GetPrinterDriver (still in progress)
(This used to be commit a818439b59)
2003-11-30 11:57:40 +00:00
Tim Potter
2bb7ff5915 GetPrinterDataEx, SetPrinterDataEx, DeletePrinterDataEx.
(This used to be commit e8367f5735)
2003-11-28 11:50:33 +00:00
Tim Potter
d55fc1c9f2 Add SetPrinterData, DeletePrinterData.
(This used to be commit ea534f82d0)
2003-11-28 10:34:58 +00:00
Andrew Tridgell
f83f0cb060 fixed some warnings
(This used to be commit 1c2b8a93c5)
2003-11-28 09:05:44 +00:00
Tim Potter
b0ba0462a4 Fix bug in EnumPrinterData test.
Implement GetPrinterData RPC.
(This used to be commit 270c4fe389)
2003-11-28 06:39:06 +00:00
Tim Potter
d419464d87 Added EnumJobs, GetJob, SetJob RPCs.
(This used to be commit a06cbbbf1f)
2003-11-28 05:02:32 +00:00
Tim Potter
abff8aac56 Implemented SetForm RPC.
(This used to be commit bdb0dfc370)
2003-11-27 20:55:13 +00:00
Tim Potter
6aee8274ef Add DeleteForm, start cleaning up tests.
(This used to be commit 10b31623fd)
2003-11-27 09:50:25 +00:00
Tim Potter
4884a97f3b Implemented AddForm RPC. The mystery of the useless_ptr has been
solved.  It was a pointer in a union member.

RPC-SPOOLSS tests a bit messy and could do with a cleanup.
(This used to be commit cf8cd44852)
2003-11-27 06:15:06 +00:00
Tim Potter
ee67d68f1c Implemented EnumForms and GetForm.
(This used to be commit 822750592c)
2003-11-26 06:26:18 +00:00
Andrew Tridgell
be77d9c60d * fixed null terminated string handling
* fixed nested relative offsets in push functions

the spoolss torture test now passes!
(This used to be commit 60ced76160)
2003-11-22 11:49:22 +00:00
Andrew Tridgell
677fb26deb * fixed handling of relative subcontext unions
* fixed GetPrinter in spoolss after OpenPrinter
(This used to be commit 4aea2d79dd)
2003-11-22 10:37:00 +00:00
Andrew Tridgell
86a604429e a fairly major upgrade to the dcerpc system
* added a NDR validator. The way it works is that when the
   DCERPC_DEBUG_VALIDATE_* flags are set the dcerpc system will
   perform NDR buffer validation. On sending a request the packet is
   first marshalled, then unmarahslled, then marshalled again, and it is
   confirmed that the two marshalling results are idential. This
   ensures that our pull and push routines are absolutely in sync, so
   that we can be very confident that if a routine works in the client
   then the corresponding routine must work on the server side. A
   similar validation is performed on all replies.

 * a result of this change is that pidl is fussier about the [ref]
   tag. You can only use it on pointers (which is the only place it
   makes sense)

 * fixed a basic alignment bug in the push side of the NDR code

 * added server side pull/push support. Our dcerpc system is now fully
   ready to be used on the server side.

 * fixed the relative offset pointer list. It must be traversed in
   reverse order on push

 * added automatic value setting for the size parameter in outgoing
   SdBuf structures.

 * expanded the ndr debugging code to always give a message on any
   failure

 * fixed the subcontext push code

 * fixed some memory leaks in smbtorture RPC tests
(This used to be commit 8ecf720206)
2003-11-22 08:11:32 +00:00
Andrew Tridgell
f01e89e9e0 EnumPrinterData in spoolss now works
(This used to be commit af07ca7fbc)
2003-11-20 01:28:33 +00:00
Andrew Tridgell
8f38cc8df8 cope with no printers returned from EnumPrinters
(This used to be commit 8c49669dbe)
2003-11-18 09:19:34 +00:00
Tim Potter
30daed2f7c Working on EnumPrinterData. There appears to be an alignment problem
after reading a non-empty DATA_BLOB in the reply.
(This used to be commit 3165bf532f)
2003-11-18 05:54:14 +00:00
Andrew Tridgell
9b7b5e5c51 use the auto-generated UUID, version and name rather than listing them
in the dcerpc core code
(This used to be commit 16ffeb7c80)
2003-11-18 05:01:10 +00:00
Andrew Tridgell
2c0a7165ef * use the new auto-generated debug code method.
* add a couple more info levels to wkssvc
(This used to be commit c69161bdb1)
2003-11-18 01:18:24 +00:00
Andrew Tridgell
d285c6f14f * add another WERR err code
* use the top-level function argument printing to show more detail in
   RPC-* tests
(This used to be commit 33bb878562)
2003-11-17 11:55:56 +00:00
Andrew Tridgell
e62c5c9a8d use [subcontext] to make GetPrinter a bit easier in smbtorture
(This used to be commit a5140985d8)
2003-11-17 09:34:19 +00:00
Andrew Tridgell
d1feb4c6d5 call OpenPrinterEx on each printer on the server, and then call
GetPrinter with all info levels on each printer
(This used to be commit 136b3cfc04)
2003-11-17 04:56:59 +00:00
Andrew Tridgell
bf48b6e69a added OpenPrinter and a test function. Note that the Samba3 structure
for OpenPrinter was wrong.
(This used to be commit 186ddbbf87)
2003-11-17 03:38:13 +00:00
Andrew Tridgell
90916de4a5 * more info levels for EnumPrinter
* use WERROR return type in spoolss EnumPrinter
(This used to be commit 8301a6b6ad)
2003-11-17 02:58:10 +00:00
Andrew Tridgell
657b4d2abd nicer method of handling spoolss EnumPrinters
this also handles the return of several printers (an array of relative
subcontexts)
(This used to be commit 060421c7dc)
2003-11-17 02:18:11 +00:00
Andrew Tridgell
ae4cb40100 use nstring and [relative] to support levels 1 and 2 of EnumPrinters
fully
(This used to be commit 69c6017c94)
2003-11-16 13:49:14 +00:00
Andrew Tridgell
ea266c0625 added support for level1 of EnumPrinters in spoolss. This uses a
number of "magic" add-ons to IDL to make it less painful, hopefully
this will make IDL generation useful for horrible systems like spoolss
(This used to be commit e18dba7d5a)
2003-11-16 11:36:59 +00:00
Tim Potter
274667be32 Added tests for EnumPrinters and ClosePrinter.
(This used to be commit 9f3b84c7d7)
2003-11-16 04:20:29 +00:00
Andrew Tridgell
5bd51a1d5d the returned policy handle in spoolss_OpenPrinterEx() is pass by
reference

(tim, my apoligies if this conflicts with an uncomitted fix from you)
(This used to be commit fa0872e663)
2003-11-15 20:56:18 +00:00
Tim Potter
78b7118d1a Skeleton IDL for SPOOLSS pipe. For this inital version, only OpenPrinterEx
works but without a devicemode.
(This used to be commit 35e889cf33)
2003-11-15 05:42:49 +00:00