summaryrefslogtreecommitdiffstats
path: root/source4
Commit message (Collapse)AuthorAgeFilesLines
* s4: Fix result check for getaddrinfo()Kamen Mazdrashki2010-01-071-6/+11
| | | | | | | | | | | I think this completes commit 50feca550eed7828198b7c0fc5f0e5ddc863313d. Now result should be handled correctly both for systems that support EAI_NODATA but returns EAI_NONAME (as my Ubuntu 9.x) and systems that doesn't support EAI_NODATA at all. Signed-off-by: Stefan Metzmacher <metze@samba.org> (cherry picked from commit a2044b9a61d9c8ca66067b286ad9bc01cf0490b9) (cherry picked from commit dd35252f4dbe3dc36b35c21915bf959524dc4930)
* s4-smbtorture: add test_ChangeID to RPC-SPOOLSS.Günther Deschner2010-01-071-0/+179
| | | | | | | | | This tests ChangeID consistency between spoolss_GetPrinterData, spoolss_GetPrinterDataEx and spoolss_GetPrinter (level 0). Guenther (cherry picked from commit 3dbe8603d967d9d1b13290ec0f0556c7323a7692) (cherry picked from commit 066094537420c70e453462407c751c9ae863ae01)
* s4-smbtorture: add test_SetPrinter to RPC-SPOOLSS.Günther Deschner2010-01-071-0/+26
| | | | | | Guenther (cherry picked from commit 7568f49134c548c470e99c51e237ad3e225d6488) (cherry picked from commit d7375656d058cef1a47158132eb0599becb1a779)
* s4-smbtorture: refactor test_GetPrinter in RPC-SPOOLSS.Günther Deschner2010-01-071-28/+50
| | | | | | Guenther (cherry picked from commit 0457cf915b724e3afd54ab1b5c8b96dcb5b7550a) (cherry picked from commit d5eac5b8dccd2d940044c3d06603554740dd3ac3)
* s4-smbtorture: skip GetAliasMembership against s4.Günther Deschner2009-12-211-0/+4
| | | | | | | | | It returns NT_STATUS_INTERNAL_DB_CORRUPTION for unknown sids and I could not figure out why. Guenther (cherry picked from commit dc4c41124228878d2c29fe2b240b23eb49631fe1) (cherry picked from commit 0d5db6d06bfbc7f52bf3fa61468f6220d63bccc8)
* s4-smbtorture: add a samr_GetAliasMembership test to RPC-SAMR.Günther Deschner2009-12-211-0/+47
| | | | | | Guenther (cherry picked from commit 619ad0c6ecf88a861ad1a1e1d5564bd1f91855cc) (cherry picked from commit 2365f868a08503945e92193c18eec5fb1ae2dc93)
* s4-smbtorture: fix smbtorture after setprinter IDL fixes.Günther Deschner2009-12-211-4/+4
| | | | | | Guenther (cherry picked from commit a9689bb755b4fd22a8c2b651aa90b2f74188edcb) (cherry picked from commit c79320978f3cdfb698fe7eb060d1678bdac01caa)
* s4-smbtorture: run GetPrinterDriver2 tests against each printer's driver.Günther Deschner2009-12-211-17/+45
| | | | | | Guenther (cherry picked from commit 308b50a7bb07a7db6d2119f9ff08f33fce922562) (cherry picked from commit ea7442720fbde39817abf9a6f312a940d634e6d8)
* s4-smbtorture: check whether a returned buffer size is a multiple of 4 in ↵Günther Deschner2009-12-151-0/+80
| | | | | | | | | | RPC-SPOOLSS. This gives a good indication where our IDL (and the s3 spoolss implementation) is still wrong. Guenther (cherry picked from commit 801fbd05691819ce9afadf4817bf1bf8ccc28a02) (cherry picked from commit 73da0de2eaa2dec3ef1ebeee9dccaf81201dc7ba)
* s4-smbtorture: add more spoolss_EnumPrinterKey tests for local NDR test.Günther Deschner2009-12-152-0/+18
| | | | | | Guenther (cherry picked from commit dc71d1c29de521c5034fd7ebf4657610d62c2c3c) (cherry picked from commit 2f49b911249b71c5aa68d14203e322c750acaef2)
* s4-smbtorture: fix and extend enum printerkey test.Günther Deschner2009-12-152-21/+49
| | | | | | Guenther (cherry picked from commit ce33967f4a6a762e97a87513df7d33716db689fb) (cherry picked from commit c3943161f7dd5d0c42b50f7689a2032652dc8ff6)
* s4-smbtorture: enhance spoolss_EnumPrinterKey torture test.Günther Deschner2009-12-151-14/+26
| | | | | | | | This demonstrates that s3 still does not have that call implemented correctly. Guenther (cherry picked from commit d2f13dd6882079f82d45847eda72c75d6de55a21) (cherry picked from commit d9a3bc084dafa7616c617fcaae5ed78fd27c3521)
* s4-smbtorture: make level 8 the reference for PrinterDriverEnum test.Günther Deschner2009-12-151-42/+73
| | | | | | Guenther (cherry picked from commit 5e8e5dfe889a63747ffbd9429d8115e1715f53e6) (cherry picked from commit c65e5dec09c14454b6d5ae22bb8aa21c414e36d7)
* s4-smbtorture: fill in COMPARE_STRING_ARRAY macro in spoolss driver test.Günther Deschner2009-12-151-1/+15
| | | | | | Guenther (cherry picked from commit 35c067782b1dcd354dd825af3e853adf4c74e1d1) (cherry picked from commit 52361a5c66773e2032b5b9a67b5c3d47ea0c3430)
* s4-smbtorture: disable some spoolss printerdata tests which s3 does not pass ↵Günther Deschner2009-12-081-0/+13
| | | | | | | | at the moment. Guenther (cherry picked from commit 8de6f7178c220d0a529ed91f87760e8d172448d2) (cherry picked from commit 5dde3686d951db49ae6a06a31dc43fd5c0d3162f)
* s4-smbtorture: fix RPC-SPOOLSS after _spoolss_SetPrinterDataEx IDL change.Günther Deschner2009-12-081-28/+48
| | | | | | Guenther (cherry picked from commit 123d8d1c2c8ea214fa1a216c92ca1a3fc1b4d6d0) (cherry picked from commit f67637b63dce30b07fc95bd80ace36c9defbbb23)
* s4-smbtorture: heavily expand printerdata tests in RPC-SPOOLSS.Günther Deschner2009-12-081-67/+299
| | | | | | | | | | | Including new tests for: - spoolss_SetPrinterDataEx - spoolss_DeletePrinterDataEx - spoolss_DeletePrinterKey Guenther (cherry picked from commit 02fe8630395879ffa761d75c7d7b75fc7cda5e4c) (cherry picked from commit 32bec5e5f09eec603b4fc366707bbd320dc804a3)
* s4-smbtorture: check more WERRORs in RPC-SPOOLSS.Günther Deschner2009-12-081-34/+35
| | | | | | Guenther (cherry picked from commit 2f0548fd98ccbe9695d4e6ae0e21e5ceca76ac68) (cherry picked from commit cfd570a0128db42429a48ab6001f20d99d8dbfeb)
* s4-smbtorture: call test_EnumPrinterDrivers with architecture in RPC-SPOOLSS.Günther Deschner2009-12-081-25/+6
| | | | | | Guenther (cherry picked from commit 4e20a6f83b981ae0948ce1b9ec0a39162b38b512) (cherry picked from commit 3f0de03ca9d6e075e10943d9e511134231809b16)
* s4-smbtorture: be very strict in checking spools_EnumPrinterKey results.Günther Deschner2009-12-082-3/+15
| | | | | | Guenther (cherry picked from commit 450211b61016a4fed71eb116c1b526af0f365f13) (cherry picked from commit 6b8158ddfdce65e32ca39d8cc2c1d7b215cd22ff)
* samba-spoolss: use spoolss_StringArray2 in spoolss_EnumPrinterKey.Günther Deschner2009-12-082-32/+6
| | | | | | | | | This should finally resolve the endian issues we were seeing on sparc and is much cleaner for spoolss clients and servers. Guenther (cherry picked from commit 5f60855ba2eb822dcb867378ff09278c42931b89) (cherry picked from commit 91e9afbcd65500a37f947442955d9ca3e080982e)
* Fix bug 6546: Avoid accessing buf[-1] if NUL byte comes from fgetsVolker Lendecke2009-12-081-1/+3
| | | | (cherry picked from commit c0282f8f7d40b893610fdc235cb130f1fedbeb13)
* s4-smbtorture: more and stricter tests for printer and data keys in RPC-SPOOLSS.Günther Deschner2009-12-081-4/+8
| | | | | | Guenther (cherry picked from commit 8f6df5d3ec31a8c3dedfdfc506c44e03026d8485) (cherry picked from commit e1468d0935140f99412dc92b32d38e64c21d6b75)
* s4-smbtorture: refactor RPC-SAMR-LARGE-DC test a little more.Günther Deschner2009-12-081-25/+27
| | | | | | Guenther (cherry picked from commit 60419a0eb72c2e07c4b882727b2ccb01b73c52e6) (cherry picked from commit a1a49c704b2496006abc8c759023f889dd7986fe)
* s4-smbtorture: add torture_samr_context to carry some RPC-SAMR-X specifics.Günther Deschner2009-12-081-84/+111
| | | | | | Guenther (cherry picked from commit d22eb75a13a294cb31a3f253356853eab48b41d5) (cherry picked from commit 358f3c309b02eb4fee62be4ebbbab2b625cfe7e6)
* librpc: rerun "make idl"Stefan Metzmacher2009-11-261-1/+1
| | | | | | metze (cherry picked from commit 49553d066ba346b28286b72f54e5ee8739cbcef2) (cherry picked from commit f275c437b170f3d11a183306b77f8755bda6e688)
* s4-smbtorture: fix spoolss_EnumPrinterKey client in RPC-SPOOLSS-WIN.Günther Deschner2009-11-261-4/+18
| | | | | Guenther (cherry picked from commit 0bf518c3c20cc6d86e574733730a266dc7ef2496)
* s4-smbtorture: add tests for spoolss_EnumPrinterKey to RPC-SPOOLSS-PRINTER.Günther Deschner2009-11-261-0/+81
| | | | | | Guenther (cherry picked from commit d66b7d80d5ae1a0bf2e3d1e6718f569726da7734) (cherry picked from commit 9dcb99af64eca362873220d5f03d04d63cf2b0de)
* s4-smbtorture: re-arrange netlogon LogonControl test.Günther Deschner2009-11-262-13/+65
| | | | | | | | | The LogonControl tests now are split out to a new RPC-NETLOGON-ADMIN test that tests the behaviour of that call when called by user, dc or workstation. Guenther (cherry picked from commit e9c6984cb62ce8d7d899202c1275d241a605913c) (cherry picked from commit 8b94ea1a55fa96078ce86dedb033b083143939ff)
* Fix up some of the timing constants for DELAYWRITE. Add some extra tests up ↵Jeremy Allison2009-11-261-30/+114
| | | | | | | | | test_delayed_write_update6 to investigate what happens to a sticky write handle after a second handle close. Jeremy. (cherry picked from commit c2df97f57ce205935c37cd5a90cfeddb129cd92b) (cherry picked from commit 139711dcbd704d43fa9861e217fed8d8f92c571d)
* s4-smbtorture: skip three info levels while testing s3 with RPC-LSA.Günther Deschner2009-11-261-3/+14
| | | | | | | | These are only supported by s3 when running pdb_ads atm. Guenther (cherry picked from commit a8de4f091ef10223e862b3cb6f0b9e5cef5cde2a) (cherry picked from commit 3b53045146803bbb046f52ba28a39d6ca4bf4870)
* s4-smbtorture: skip QueryInfoPolicy2 while running RPC-LSA against s3.Günther Deschner2009-11-261-0/+4
| | | | | | | | This is only supported by s3 when running pdb_ads atm. Guenther (cherry picked from commit 58d401bb212b43d05213514f8bb2efa850d4e5c9) (cherry picked from commit 505934c56e0df600aff8d406b7c636f830360257)
* s4-smbtorture: skip QueryDomainInformationPolicy test against s3 in RPC-LSA.Günther Deschner2009-11-261-0/+4
| | | | | | Guenther (cherry picked from commit bff9819521255b3dcd0f04aa585c1ad0385896fd) (cherry picked from commit fc8c1b23109b90daf2b185522728d08c921a91af)
* s4-smbtorture: simplify some torture_comments in RPC-LSA.Günther Deschner2009-11-261-20/+6
| | | | | | Guenther (cherry picked from commit 074ad24653e85c60b9af863ac526832229754a96) (cherry picked from commit 18a00b7c0c0fa6d3e2d8bcba2d3f0969697781f3)
* s4-smbtorture: skip bigendian tests against s3 in RPC-LSA-SECRETS.Günther Deschner2009-11-261-0/+6
| | | | | | Guenther (cherry picked from commit 3587bb63e21c3f033a17bb493dceb64b05fe85d6) (cherry picked from commit e7fdabff1fb8adeb6a58521811adfc85f41c34f3)
* s4-smbtorture: fix warning in RPC-WKSSVC torture test.Günther Deschner2009-11-261-3/+5
| | | | | | Guenther (cherry picked from commit 5e8c86c558360ea3c507dae5b3088aa1c2c97bb4) (cherry picked from commit 4522d79d90140f051e1d83a572f67564192ac5d8)
* Add in Metze's new code to ndr encode the user.DOSATTRIBStefan (metze) Metzmacher2009-11-261-1/+1
| | | | | | blobs. Next I'll change the create timestamp and dos attribute code to use this. (cherry picked from commit 0ef863ad21e017693a821912c96fc69471ffe9fe)
* lib/tdb: make tdbtool use tdb_check() for "check" commandRusty Russell2009-11-261-1/+1
| | | | | | | Also, set logging function so we get more informative messages. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au> (cherry picked from commit d94a4d44ea644c82925c5901af491a35f0ba611d)
* s4-torture: fixed double free in libnet_group testAndrew Tridgell2009-11-261-1/+0
| | | | (cherry picked from commit d8d28f74aabce7c02c25c2c1543ebea0355d68a8)
* s4-torture: catch bad command line optionsAndrew Tridgell2009-11-261-0/+3
| | | | | It is annoying when you mistype a command line option and aren't told. (cherry picked from commit 44b0dcefb70cd8ffd18f6513c655c137fdd1985e)
* s4-torture: fixed a pipe leakAndrew Tridgell2009-11-261-0/+2
| | | | | | The RPC-SAMR-PASSWORDS* tests could leak RPC pipes, causing an overallocation of fd's on the server (cherry picked from commit 3e447ed62138fff14493a76a95a7fd2755e467f0)
* s4-torture: fixed a fd/mem leak in the RPC-LSA-SECRETS testAndrew Tridgell2009-11-261-7/+12
| | | | | | This test left a large number of lsa pipes open, which could trigger the server running out of fds (cherry picked from commit 9f68deb48c7264c89f7f235306ef0f14dcfc6865)
* s4-lsa: Fix dcesrv_lsa_EnumTrustDom() and avoid infite windows client loop.Günther Deschner2009-11-261-0/+9
| | | | | | | | Found by RPC-LSA-TRUSTED-DOMAIN torture test. Guenther (cherry picked from commit 4b6cfbb6d27eea07400d0eacb08b2f69724b19ca) (cherry picked from commit b2b836330c7c75130675354937a5609df54718c0)
* s4-smbtorture: test whether an lsa_EnumTrustDom implementation would hang up ↵Günther Deschner2009-11-261-6/+45
| | | | | | | | a client. Guenther (cherry picked from commit 48520b2274638bde88b08361197c1056936bcba0) (cherry picked from commit 1500ee66e7b8d4d0644762aebed9be63b7cacb0b)
* s4-smbtorture: fix RPC-LSA-LSALOOKUP test against w2k3 and w2k8.Günther Deschner2009-11-261-16/+50
| | | | | | | | | Make sure to split out lsa_LookupName NULL name test so that we can better track results from bogus names and NULL names. Guenther (cherry picked from commit a4d54875768bbe6bcd019a788081d182ce9d4a80) (cherry picked from commit f8706bef307b1de684ce91ed2e5ecbda7695db09)
* s4-smbtorture: Make it simpler to specify number of trusted domains to create inGünther Deschner2009-11-261-17/+40
| | | | | | | | RPC-LSA-TRUSTED-DOMAINS. Guenther (cherry picked from commit 9ee5d8466513a957128fcf511529fcd76fa3f05b) (cherry picked from commit 6972bf282c752581257119a847e821090c5b80de)
* s4-smbtorture: Fix wrong comment in RPC-LSA-TRUSTED-DOMAIN test.Günther Deschner2009-11-261-1/+1
| | | | | | Guenther (cherry picked from commit 7e180101d3a460d30da7b5043034ef306913b2d1) (cherry picked from commit 1c34c07a843e64eb00715f75de911ff2c10619f7)
* s4-smbtorture: split out EnumTrustedDomainsEx test in RPC-LSA-TRUSTED-DOMAINS.Günther Deschner2009-11-261-2/+27
| | | | | | Guenther (cherry picked from commit bf2746b537484a51b55a3000e4c34d08bd5aff7a) (cherry picked from commit 42b21db724de27f27ec039064a467dfe6311c5c3)
* s4-smbtorture: add stricter tests for LSA-LOOKUPNAMES replies.Günther Deschner2009-11-261-3/+13
| | | | | | Guenther (cherry picked from commit d76e77ce9a72543727ff83eacbefed22f0c644b9) (cherry picked from commit 0bf4f0bfecc6ec06187aafaabc0fbace4de3fddc)
* s4-smbtorture: move all LookupNames tests into RPC-LSA-LOOKUPNAMES.Günther Deschner2009-11-261-7/+8
| | | | | | Guenther (cherry picked from commit 80b512fe03e692f630375c39f84ae9f91f5b333a) (cherry picked from commit ae0ae7b46beb5aa38e94f36a5d238fef2256131c)