Matthias Dieter Wallnöfer
a3f61dea40
Revert "s4:remove "util_ldb" submodule and integrate the three gendb_* calls in "dsdb/common/util.c""
...
This reverts commit 8a2ce5c47c
.
Jelmer pointed out that these are also in use by other LDB databases - not only
SAMDB ones.
Autobuild-User: Matthias Dieter Wallnöfer <mdw@samba.org>
Autobuild-Date: Sun Oct 17 13:37:16 UTC 2010 on sn-devel-104
2010-10-17 13:37:16 +00:00
Matthias Dieter Wallnöfer
8a2ce5c47c
s4:remove "util_ldb" submodule and integrate the three gendb_* calls in "dsdb/common/util.c"
...
They're only in use by SAMDB code.
Autobuild-User: Matthias Dieter Wallnöfer <mdw@samba.org>
Autobuild-Date: Sun Oct 17 09:40:13 UTC 2010 on sn-devel-104
2010-10-17 09:40:13 +00:00
Matthias Dieter Wallnöfer
5339bad942
s4:torture/local/dbspeed.c - use LDB result constant
...
Autobuild-User: Matthias Dieter Wallnöfer <mdw@samba.org>
Autobuild-Date: Fri Oct 15 19:11:32 UTC 2010 on sn-devel-104
2010-10-15 19:11:32 +00:00
Matthias Dieter Wallnöfer
a0e9814c0d
s4:dsdb - remove "samdb_result_uint", "samdb_result_int64", "samdb_result_uint64" and "samdb_result_string"
...
We have ldb_msg_find_attr_as_* calls which do exactly the same. Therefore this
reduces only code redundancies.
Signed-off-by: Andrew Bartlett <abartlet@samba.org>
2010-10-15 08:36:01 +11:00
Andrew Bartlett
a879a4610d
libcli/auth Merge source4/libcli/security and util_sid.c into the common code
...
This should ensure we only have one copy of these core functions
in the tree.
Andrew Bartlett
Signed-off-by: Andrew Tridgell <tridge@samba.org>
2010-10-14 02:35:05 +00:00
Andrew Tridgell
ca4864cce6
s4-torture: zero all of trans before the test starts
2010-10-13 11:00:04 +00:00
Jelmer Vernooij
1229935aa9
torture/becomedc: Add test for global schema, use samdb_connect().
...
Autobuild-User: Jelmer Vernooij <jelmer@samba.org>
Autobuild-Date: Tue Oct 12 18:35:33 UTC 2010 on sn-devel-104
2010-10-12 18:35:33 +00:00
Kai Blin
5ad0ed2181
libwbclient: Remove half-finished async implementation
...
The old approach on doing async libwbclient was never really finished.
Go ahead and remove this implementation.
Autobuild-User: Kai Blin <kai@samba.org>
Autobuild-Date: Tue Oct 12 07:05:31 UTC 2010 on sn-devel-104
2010-10-12 07:05:31 +00:00
Andrew Bartlett
5742f5115c
libcli/security Use common security.h
...
This includes dom_sid.h and security_token.h and will be moved
to the top level shortly.
Andrew Bartlett
Autobuild-User: Andrew Bartlett <abartlet@samba.org>
Autobuild-Date: Tue Oct 12 03:35:36 UTC 2010 on sn-devel-104
2010-10-12 03:35:36 +00:00
Günther Deschner
43d226fa25
s4-smbtorture: add test for openprinter printername pattern.
...
Guenther
2010-10-11 14:31:06 +00:00
Andrew Bartlett
58294ffdee
s4:smbtorture Create a new random output directory each time, and delete it
...
This ensures we don't delete an exiting directory.
Andrew Bartlett
Signed-off-by: Matthieu Patou <mat@matws.net>
2010-10-11 13:46:21 +00:00
Jelmer Vernooij
4280527b6a
torture_auth: Add missing dependency on gensec_ntlmssp.
2010-10-11 01:06:36 +02:00
Jelmer Vernooij
ffd7cee150
torture: Link against rpc server itself, not service module. (against which we can't link).
2010-10-11 01:06:36 +02:00
Jelmer Vernooij
c15e919a09
wafsamba: Clarify needs_python argument name, use pyembed/pyext where
...
applicable.
Allow using both pyembed and pyext, to prevent unresolved symbols.
Autobuild-User: Jelmer Vernooij <jelmer@samba.org>
Autobuild-Date: Sun Oct 10 03:54:01 UTC 2010 on sn-devel-104
2010-10-10 03:54:01 +00:00
Kamen Mazdrashki
2d2dbf53ee
s4-test-msds_intid: Verify ATTIDs for Linked Attributes
...
Autobuild-User: Kamen Mazdrashki <kamenim@samba.org>
Autobuild-Date: Sat Oct 9 03:43:34 UTC 2010 on sn-devel-104
2010-10-09 03:43:34 +00:00
Kamen Mazdrashki
6853883f3f
s4-test-msds_intid: Simplify parameters for _make_error_message() function
...
so it can be used in more places - when checking for
Linked Attributes ATTIDs for instance
2010-10-09 06:01:15 +03:00
Abhidnya P Chirmule
fb75355263
File winattr test
...
Autobuild-User: Volker Lendecke <vlendec@samba.org>
Autobuild-Date: Thu Oct 7 16:51:19 UTC 2010 on sn-devel-104
2010-10-07 16:51:19 +00:00
Abhidnya P Chirmule
9af40beda6
File BirthTime test
2010-10-07 16:10:16 +00:00
Günther Deschner
f5554fe75c
s4-smbtorture: re-arrange openprinterex tests.
...
Guenther
2010-10-07 17:25:50 +02:00
Günther Deschner
b7683a2c9d
samr: for correctness, rename samr_RidTypeArray to samr_RidAttrArray.
...
Guenther
Autobuild-User: Günther Deschner <gd@samba.org>
Autobuild-Date: Thu Oct 7 12:04:32 UTC 2010 on sn-devel-104
2010-10-07 12:04:32 +00:00
Andrew Tridgell
a9ee39cadf
s4-test: changed the gentest test to use a fixed seed.
...
we need our test suite to produce repeatable results
Autobuild-User: Andrew Tridgell <tridge@samba.org>
Autobuild-Date: Tue Oct 5 08:43:00 UTC 2010 on sn-devel-104
2010-10-05 08:43:00 +00:00
Matthieu Patou
906e3f1297
torture: complete dfs referral tests
...
Autobuild-User: Matthieu Patou <mat@samba.org>
Autobuild-Date: Tue Oct 5 08:01:39 UTC 2010 on sn-devel-104
2010-10-05 08:01:39 +00:00
Jelmer Vernooij
5548d3d41e
Add missing dependencies for com_err.
2010-10-05 00:38:35 +02:00
Kamen Mazdrashki
d385d9a317
s4-test-fsmo.py: Implement kind of busy-wait for role transfer
...
This allows us not to hard code timeout we are going to wait for
before failing the test - if DCs are not very busy, we won't wait
at all (speeds up 'make test' by a minute also)
Maximum timeout to wait for is set to 20 secs currently,
which should be enough even for slow machines and tested
DCs being under load
2010-10-03 01:24:57 +03:00
Kamen Mazdrashki
2a23f0d524
s4-test-fsmo.py: Use common implementation for env_get_var_value()
2010-10-03 01:24:57 +03:00
Kamen Mazdrashki
c05180caa7
s4-test-delete_object.py: Use common implementation for env_get_var_value()
2010-10-03 01:24:57 +03:00
Kamen Mazdrashki
6bc7c015fb
s4-test-fsmo.py: Use common implementation for connect_samdb()
...
Connections are restricted to LDAP only (remote),
as this test can't be run against local LDBs
2010-10-03 01:24:56 +03:00
Kamen Mazdrashki
98e4d2702a
s4-test-delete_object.py: Use common implementation for connect_samdb()
...
Connections are restricted to LDAP only (remote),
as this test can't be run against local LDBs
2010-10-03 01:24:56 +03:00
Günther Deschner
0ff7e0c998
samba: share readline wrappers among all buildsystems.
...
Guenther
2010-10-01 22:30:22 +02:00
Jelmer Vernooij
9917d37c3c
delete_object: Remove unnecessary pass calls.
2010-10-01 02:05:37 +02:00
Günther Deschner
156ab4ec10
s4-smbtorture: add new EnumPrinters test to test printername/servername
...
behaviour in EnumPrinter and GetPrinter calls.
Guenther
2010-09-30 02:59:35 +02:00
Günther Deschner
93d7230d25
s4-smbtorture: rework spoolss_EnumPrintProcDataTypes test.
...
Guenther
2010-09-28 01:17:13 +02:00
Günther Deschner
a335848a88
s4-smbtorture: rework test_EnumPrintProcessors to let it test more combinations.
...
Guenther
2010-09-28 01:17:09 +02:00
Stefan Metzmacher
b32625b79f
s4:torture/ldap: close connections with an UnbindRequest
...
metze
Autobuild-User: Stefan Metzmacher <metze@samba.org>
Autobuild-Date: Mon Sep 27 07:14:23 UTC 2010 on sn-devel-104
2010-09-27 07:14:23 +00:00
Stefan Metzmacher
b1ffacb437
LDAP-BASIC: test AbandonRequest
...
metze
2010-09-27 08:24:36 +02:00
Günther Deschner
d834671f68
s4-smbtorture: remove unneeded dcerpc_mgmt alias.
...
Guenther
2010-09-27 07:12:08 +02:00
Kamen Mazdrashki
11785600be
s4-fsmo.py: Fix usage of 'paged_search' module for remote LDB connections
2010-09-26 02:25:12 +03:00
Kamen Mazdrashki
cf57771116
s4-delete_object.py: Fix usage of 'paged_search' module for remote LDB connections
2010-09-26 02:25:12 +03:00
Andrew Tridgell
ca847b593d
torture: fixed a valgrind error in SMB2-CREATE
...
the lock structure had uninitialised elements, so we sent a random
length.
This also adds a 1 byte write, so there is real data that is being
truncated with the 2nd open
2010-09-25 10:38:44 -07:00
Matthias Dieter Wallnöfer
b6eb1b2072
s4:torture/rpc/netlogon.c - remove the dependency on "samdb_server_site_name"
...
Since this one relies on the right server loadparm context which we aren't able
to provide over torture.
Signed-off-by: Andrew Bartlett <abartlet@samba.org>
2010-09-24 09:25:42 +10:00
Jelmer Vernooij
136aa0d5ac
smbtorture: Report times.
2010-09-22 22:29:09 -07:00
Steven Danneman
bf1a4b2bc4
s4:libcli:smb2 Rename pending_id to async_id and make 64-bit
...
Match MS-SMB2 - 2.2.1.1 SMB2 Packet Header - ASYNC
2010-09-22 17:52:53 -07:00
Günther Deschner
a1ced10196
s4-smbtorture: print out membership in RPC-SPOOLSS-ACCESS.
...
Guenther
2010-09-22 12:24:29 -07:00
Kamen Mazdrashki
0027af02d2
s4-drs-test: Relax a check that may possibly fail
...
This check may fail due to automatic replication between DCs
during the test execution.
Ideally we should block automatic replications (somehow)
during this test. But until then, we need just to skip
this check, it is not *that* important anyway
2010-09-22 15:07:24 +03:00
Jelmer Vernooij
0aff42a6e4
torture: Remove active_testname variable.
2010-09-21 22:54:34 -07:00
Jelmer Vernooij
e456c69498
torture: Fix running individual tests.
2010-09-21 22:54:34 -07:00
Günther Deschner
c201e494c4
s4-smbtorture: print SVCCTL security descriptor in test_QueryServiceObjectSecurity().
...
Guenther
2010-09-20 17:41:18 -07:00
Kamen Mazdrashki
4752a6b6d7
s4-test: yet another test for ATTID-ot-OID conversion
...
Test with a valid ATTID for prefixMap lookups,
but supplied ATTID is with index not to be found
in the test prefixMap
2010-09-21 00:15:24 +03:00
Günther Deschner
58c79b828b
s4-smbtorture: add NetRemoteTOD libnetapi torture test.
...
Guenther
2010-09-20 13:53:09 -07:00
Günther Deschner
f12756b5ac
s4-smbtorture: add test_SetServiceObjectSecurity() to RPC-SVCCTL.
...
Guenther
2010-09-20 08:37:05 +02:00
Anatoliy Atanasov
5d807107bb
s4/fsmo: Naming master support added
...
Test suite for fsmo is extended with a test case for naming master too.
2010-09-19 12:16:04 -07:00
Günther Deschner
55f465576c
s4-smbtorture: add LOCAL-NDR-NTLMSSP.
...
Guenther
2010-09-19 20:45:19 +02:00
Kamen Mazdrashki
311744a131
s4-test: Add unit test for dsdb_schema_info_cmp()
2010-09-17 13:53:04 +03:00
Günther Deschner
6f5fa763c1
s4-smbtorture: fix winreg querymultiplevalues NDR test warning.
...
Guenther
2010-09-17 10:02:13 +02:00
Björn Jacke
2b254c814b
s3/s4: merge msleep and smb_msleep
...
the merged variant is renamed to smb_msleep as some platforms already have a
msleep function.
2010-09-16 21:38:20 +02:00
Günther Deschner
0730d982e6
s4-smbtorture: add NDR spoolss_GetPrinterDriver2 in and out check functions.
...
Guenther
2010-09-16 19:03:32 +02:00
Günther Deschner
809094a2c8
s4-smbtorture: finally enable most of our NDR_OUT NDR tests that we couldnt handle previously.
...
Guenther
2010-09-16 19:03:32 +02:00
Günther Deschner
c29b16faa8
s4-smbtorture: add functions to do NDR_OUT ndr_pull validation including NDR_IN context.
...
Guenther
2010-09-16 19:03:29 +02:00
Günther Deschner
5f9caf18db
s4-smbtorture: fix some indentation in NDR testsuite.
...
Guenther
2010-09-16 16:25:51 +02:00
Günther Deschner
725126b172
s3-smbtorture: fixup trailing whitespace in ndr testsuite.
...
Guenther
2010-09-16 16:22:32 +02:00
Günther Deschner
567a2e68d6
s4-smbtorture: add spoolss_GetPrinterDriver2 NDR tests.
...
Guenther
2010-09-16 14:42:22 +02:00
Günther Deschner
1250a63435
s4-smbtorture: mention -v switch for hexdump imports into the NDR testsuites.
...
Guenther
2010-09-16 14:41:37 +02:00
Günther Deschner
dfe25088ba
s4-smbtorture: activate spoolss_GetPrinterData NDR pull test.
...
Guenther
2010-09-16 14:31:53 +02:00
Andrew Bartlett
a394a8104e
torture/raw Allow one more 'not implemented' status return as a valid response
...
The Samba4 server responds to most ioctl calls with NT_STATUS_NOT_SUPPORTED
Andrew Bartlett
Signed-off-by: Andrew Tridgell <tridge@samba.org>
2010-09-16 21:09:17 +10:00
Andrew Bartlett
4083b8ac6c
s4-torture assert that we get a temp datagram socket.
...
I've seen a segfault because we failed to check this isn't NULL
before we use it. This will still of course fail, but not so
spectacularly.
Andrew Bartlett
Signed-off-by: Andrew Tridgell <tridge@samba.org>
2010-09-16 21:09:17 +10:00
Günther Deschner
fe59119e06
s4-smbtorture: try FSCTL_FIND_FILES_BY_SID with random blob data in RAW-IOCTL.
...
Guenther
2010-09-16 00:18:09 +02:00
Anatoliy Atanasov
ccb7fdc52b
s4/fsmo: Extended fsmo test with infrastructure, pdc and rid roles
2010-09-15 14:00:28 +03:00
Andrew Tridgell
0009d1771a
s4-libnet: print the domain name on domain open failure
...
Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
2010-09-15 15:39:36 +10:00
Günther Deschner
73edd661ea
s4-smbtorture: try to fix spoolss winreg Form tests on bigendian machines.
...
Guenther
2010-09-14 15:27:38 +02:00
Matthias Dieter Wallnöfer
eaa55b4123
s4:torture/rpc/samr.c - fix typos in outputs
2010-09-12 22:10:06 +02:00
Matthias Dieter Wallnöfer
c0a863b6f3
s4:ldb_register_samba_handlers - fix up and convert result codes to LDB/LDAP results
2010-09-11 17:41:38 +02:00
Björn Jacke
54ca77183b
s4/torture: use time_mono for timeouts
2010-09-10 23:10:25 +02:00
Björn Jacke
478ac36b9c
s4/torture: use time_mono for delta time
2010-09-10 23:10:25 +02:00
Matthias Dieter Wallnöfer
55bc079b9a
s4:torture/locktest.c - add a cast in order to quiet a warning on Solaris cc
2010-09-10 22:45:50 +02:00
Matthias Dieter Wallnöfer
ece428f02c
s4:torture/ntp/ntp_signd.c - add more "char *" casts in order to suppress Solaris warnings
2010-09-10 22:45:49 +02:00
Matthias Dieter Wallnöfer
55598c4746
s4:torture/rpc/winreg.c - hopefully this attempt fixes Solaris "cc" on the buildfarm
...
The Solaris "cc" incompatiblity on this codepart seems to be harder to fix than
it looks like.
2010-09-10 20:20:26 +02:00
Anatoliy Atanasov
62b5274827
s4/fsmo: Added python tests for schema master transfer op
2010-09-10 13:08:21 +03:00
Björn Jacke
19a3633e6e
s4/torture: use time_mono for deltas in lock test
2010-09-10 11:59:17 +02:00
Günther Deschner
cf76cf0299
s4-smbtorture: add spoolss_OpenPrinter with unc and printername in RPC-SPOOLSS-PRINTSERVER.
...
Guenther
2010-09-10 00:26:25 +02:00
Matthias Dieter Wallnöfer
ad25264dd7
s4:torture/rpc/winreg.c - restore Solaris cc compatibility
...
"static const struct"s need to be global in order to work with Solaris cc.
2010-09-09 21:26:43 +02:00
Kamen Mazdrashki
118df599ce
s4-drs-test: Add 'reset' and 'replace' tests for drsuapi_DsReplicaUpdateRefs
...
At first I got the impression we are not handling those cases,
but after those tests surprisingly passed I saw that
we have correct behavior implemented in a helper function.
So I decided to commit those tests in case someone change the
strange-looking check for DRSUAPI_DRS_ADD_REF flag in
a function that handles delete operation :)
2010-09-09 18:26:51 +03:00
Günther Deschner
81ece84b78
s4-smbtorture: add torture ndr nbt testsuite.
...
Guenther
2010-09-08 19:35:36 +02:00
Kamen Mazdrashki
35aed17b26
s4-test: refactor API-DELETEUSER test a little to:
...
- fail torture_context in case libnet_DeleteUser() has failed
- make use of torture_assert_* macros to track down where failur occured
- use only one memory context internally
2010-09-05 23:34:28 +03:00
Jelmer Vernooij
3c25067724
dsgetinfo: Set modulesdir when using ldb without ldb_wrap
...
(Is there a particular reason we're not using ldb_wrap here?)
2010-09-05 00:58:41 +02:00
Andrew Tridgell
389d35708e
torture-lsa: cope with STATUS_SOME_UNMAPPED errors
...
Now that we support SePrintOperatorPrivilege, an interaction between
the spoolss tests and the privileges tests cause a failure. The
failure happens like this:
- the spoolss.access test creates and then deletes an account with
SePrintOperatorPrivilege privilege
- this leaves the privileges database with an entry for a deleted
account that is still visible via LSA calls. This is correct
behaviour (verified against w2k8r2)
- the lsa.privileges test then enumerates all accounts that have at
least one privilege, and gets the SID for the deleted account
- it then called LookupNames and LookupSids on this deleted account,
and gets an error.
The fix is to not call LookupSids and LookupNames on sids which have
SID_NAME_UNKNOWN as the type
Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
2010-09-04 12:29:10 +10:00
Kamen Mazdrashki
97246f7bbd
s4-test-dssync: Print the reason for skipping FetchNT4Data test
2010-09-01 19:12:23 +03:00
Björn Jacke
f222387533
s4: use GetTimeOfDay macro instead of gettimeofday
2010-08-31 11:33:22 +02:00
Björn Jacke
4c8531b642
s4/torture: use monotonic clock for time deltas in denytest
2010-08-31 10:26:40 +02:00
Kamen Mazdrashki
0e87461dfb
s4-drs-test: Skip a check that may possibly fail
...
This check may fail due to automatic replication between DCs
during the test execution.
Ideally we should block automatic replications (somehow)
during this test. But until then, we need just to skip
this check, it is not *that* important anyway
2010-08-30 09:55:30 +03:00
Kamen Mazdrashki
0007203978
s4-drs-test: Use dns hostnames to run 'net drs replicate' command
2010-08-30 09:55:30 +03:00
Matthias Dieter Wallnöfer
ef334b95fa
s4:torture/rpc/winreg.c - set "error_message" to NULL in "test_HKLM_wellknown"
...
Hopefully this fixes the build on Solaris 8.
2010-08-27 19:20:21 +02:00
Matthias Dieter Wallnöfer
e736ace470
s4:torture/spoolss_access.c - fix discarded const warning
...
"discard_const_p" seems the most appropriate here.
2010-08-27 19:19:46 +02:00
Matthias Dieter Wallnöfer
a133d83607
s4:torture/raw/notify.c - freeable stuff shouldn't be "const"
2010-08-27 19:11:44 +02:00
Sumit Bose
896f3c8a49
s4-smbtorture: Added a torture test for forest trusts
...
Signed-off-by: Günther Deschner <gd@samba.org>
2010-08-25 13:48:22 +02:00
Sumit Bose
75e334fb61
s4-smbtorture: Make test_SetupCredentials3 public
...
Signed-off-by: Günther Deschner <gd@samba.org>
2010-08-25 13:46:30 +02:00
Günther Deschner
df7c7185fd
s4-smbtorture: fill in trust_domain_passwords_check_in in NDR lsa test.
...
Guenther
2010-08-25 13:27:50 +02:00
Sumit Bose
18b0a52b89
Fix RPC-LSA-TRUSTED-DOMAINS for changed IDL
2010-08-25 13:27:50 +02:00
Jelmer Vernooij
bc69a9d0d8
Avoid use of Samba DTD, which requires net access.
2010-08-22 14:05:58 +02:00
Kamen Mazdrashki
e05027401f
s4-test: make better error message for ATTID checks
2010-08-19 03:34:05 +03:00
Kamen Mazdrashki
c3cf388eaf
s4-test: Change attribute syntax and value for readability
...
When it comes to read logs and dumping data received
Octet String syntax comes in handy
2010-08-19 03:34:04 +03:00
Kamen Mazdrashki
20a8481d3f
s4-test-dssync: remove unused variable
2010-08-19 03:34:00 +03:00
James Peach
effc61cb78
smbtorture: Make SAMBA3CASEINSENSITIVE report failures properly.
2010-08-17 20:19:35 -07:00
James Peach
21fe753303
smbtorture: Ensure that the RPC setup returns correct status.
2010-08-17 20:19:17 -07:00
Günther Deschner
dba68d8452
Revert "s4:RPC-SPOOLSS-NOTIFY: skip test_RFFPCNEx() for now, as the test is broken"
...
This reverts commit 8ca8250443
.
2010-08-16 12:23:14 +02:00
Kamen Mazdrashki
e58aed25fc
s4-drs-test: Make the two DRS test suite a top-level test suites
...
so that test cases gets visible with "smbtorture --list"
2010-08-15 01:02:33 +03:00
Matthias Dieter Wallnöfer
4f6377043d
s4:torture/rpc/samr.c - fix a wrong torture error message
2010-08-14 18:48:19 +02:00
James Peach
44de839dab
smbtorture: Don't crash RAW-QFILEINFO if there's no alternate name.
2010-08-11 11:11:28 -07:00
James Peach
88d48a7d92
smbtorture: Make BASE-OPENATTR report a failure if it fails.
2010-08-11 11:11:11 -07:00
Kamen Mazdrashki
03bfd4290f
s4-test: Implement DRS-RPC-msDSIntId test case
2010-08-11 00:18:15 +03:00
Kamen Mazdrashki
06f59855a7
s4-test: Move dsdb_schema loading into public function
...
I will use this function for tests implementation later
2010-08-11 00:18:14 +03:00
Kamen Mazdrashki
c30f9bd734
s4-test: Move RPC-DSSYNC test in DRS-RPC test suite
2010-08-11 00:18:14 +03:00
Kamen Mazdrashki
da074f10e3
s4-test: Move dssync.c to torture/drs/rpc
2010-08-11 00:18:13 +03:00
Kamen Mazdrashki
f3c06892ec
s4-test: strip trailing white-spaces
2010-08-11 00:18:13 +03:00
Stefan Metzmacher
8ca8250443
s4:RPC-SPOOLSS-NOTIFY: skip test_RFFPCNEx() for now, as the test is broken
...
See https://bugzilla.samba.org/show_bug.cgi?id=7486 .
metze
2010-08-08 11:05:17 +02:00
Andreas Schneider
91a8d9bc9b
s3-torture: Improve the winreg deletekey torture comments.
2010-08-05 16:11:28 +02:00
Andreas Schneider
2a15f7008c
s3-torture: Correctly cleanup the winreg volatile key test.
...
Günther please check!
2010-08-05 16:11:19 +02:00
Andreas Schneider
0a8e382d73
s4-torture: Fixed the winreg EnumValue test against Windows.
...
Günther please check!
2010-08-05 16:11:01 +02:00
Stefan Metzmacher
b1a584f9dc
s4:torture/libnet: avoid dereferencing dcerpc_binding_handle internals
...
metze
2010-08-02 17:42:49 +02:00
Günther Deschner
6463281f36
s4-smbtorture: remove another old and now invalid s3 special case during spoolss testing.
...
Guenther
2010-08-02 16:10:06 +02:00
Stefan Metzmacher
b99a02a7d4
s4:torture/rpc/winreg: fix "strict aliasing" compiler warnings
...
metze
2010-08-01 11:18:05 +02:00
Stefan Metzmacher
c7ba3c4dcf
s4:torture/rpc/winreg: fix the build with non gcc compilers (e.g. on solaris)
...
metze
2010-08-01 11:17:14 +02:00
Matthias Dieter Wallnöfer
1b7029b47b
s4:torture/winreg.c - fix warnings of Solaris 10 cc through the appropriate casts
2010-07-31 20:59:02 +02:00
Matthias Dieter Wallnöfer
380b2cb4b0
s4:torture/winreg.c - remove unreachable code
2010-07-31 20:58:47 +02:00
Matthias Dieter Wallnöfer
f0c4a1aff4
s4:torture/winreg.c - add a FIXME comment on a codepart which isn't standard C-compatible
...
It seems to be GCC specific since it doesn't compile on Solaris 10 cc:
http://build.samba.org/?function=View+Build;host=sunX;tree=samba_4_0_waf;compiler=cc
2010-07-31 20:57:18 +02:00
Günther Deschner
a6e1fa23ad
s4-smbtorture: remove ifdefed symlink test, this is already skipped internally
...
in the s3 case.
Guenther
2010-07-30 11:24:23 +02:00
Günther Deschner
89071133e3
Revert "s4-torture: Disable setting REG_BINARY printer data with size 0."
...
This reverts commit 104c419345
.
2010-07-30 11:23:06 +02:00
Kamen Mazdrashki
39d287ec67
s4-test: Expand DSSYNC test to be executed against all partitions
...
It is still possible to supply specific partition
to test with on command line using
--option="dssync:partition={PARTITION_DN}"
2010-07-29 00:53:49 +03:00
Kamen Mazdrashki
bd6f77ee0b
s4-test-dssync: Issue warning in case we have diffrences in link attributes
...
In case differences in messages are:
1. Attributes with different values, i.e. 'replace'
2. Those attributes are back-link attributes
then we just warn about those differences.
It turns out windows doesn't send all values for back-link
attributes in replicated_object but in linked_attributes.
I consider this as workaround for the problem.
A better solution might be to merge linked_attribute values
into replacted_objects before comparing those with LDB result
(although this will work for Win2k8 and latter)
2010-07-29 00:53:49 +03:00
Kamen Mazdrashki
5bf54f17bd
s4-test: Simplify test_GetInfo() - we have what we need through LDB connection
...
we have already opened.
Added 'config_dn' and 'schema_dn' members which are to be used
later for extending the test_FetchData() to be executed
against every partition in case partition is not specified explicitly.
DsSyncText.site_name was removed also as it is not used anymore
2010-07-29 00:53:49 +03:00
Andreas Schneider
8fe6813ca0
s4-torture: Enable tests with keynames including a slash.
...
Signed-off-by: Jim McDonough <jmcd@samba.org>
2010-07-27 10:27:15 -04:00
Andreas Schneider
3f68a39458
Revert "s4-smbtorture: skip driverName and printerName DsSpooler tests for now."
...
This reverts commit 23eb2888d9
.
Signed-off-by: Jim McDonough <jmcd@samba.org>
2010-07-27 10:27:14 -04:00
Andreas Schneider
104c419345
s4-torture: Disable setting REG_BINARY printer data with size 0.
...
Signed-off-by: Jim McDonough <jmcd@samba.org>
2010-07-27 10:27:06 -04:00
Kamen Mazdrashki
91d9f88d28
s4-test: Use ldb_msg_normalize() in torture/rpc/dssync.c test
...
Signed-off-by: Andrew Bartlett <abartlet@samba.org>
2010-07-19 17:33:35 +10:00
Kamen Mazdrashki
148b8588bc
s4-test: Use ldb_msg_difference() in torture/rpc/dssync.c test
...
Signed-off-by: Andrew Bartlett <abartlet@samba.org>
2010-07-19 17:33:33 +10:00
Günther Deschner
3b0c87cf31
s4-smbtorture: run all testcases with bigendian push as well in RPC-BIND.
...
Guenther
2010-07-16 22:47:30 +02:00
Günther Deschner
1c7d089904
s4-smbtorture: rearrange testlist in RPC-BIND.
...
Guenther
2010-07-16 22:47:30 +02:00
Günther Deschner
7755e196a1
s4-smbtorture: make sure to wipe out dcerpc auth flags before RPC-BIND starts.
...
Guenther
2010-07-16 22:47:30 +02:00
James Peach
ec25a00031
smbtorture shell: Allow any config option to be set.
...
Not sure what I was thinking by restricting the shell to "torture:"
parametric options. It's really extemely useful to be able to set
arbitrary options.
2010-07-16 11:13:21 -07:00
Andrew Tridgell
6b266b85cf
s4-loadparm: 2nd half of lp_ to lpcfg_ conversion
...
this converts all callers that use the Samba4 loadparm lp_ calling
convention to use the lpcfg_ prefix.
Signed-off-by: Andrew Bartlett <abartlet@samba.org>
2010-07-16 18:24:27 +10:00
Günther Deschner
595c5a2498
s4-smbtorture: add very simple RPC-BIND testsuite.
...
Guenther
2010-07-14 01:34:48 +02:00
Günther Deschner
14cf257969
s4-smbtorture: rename rpc/bind.c to rpc/multi_bind.c.
...
Guenther
2010-07-14 01:34:28 +02:00
Günther Deschner
b0d69a857c
Revert "s4-smbtorture: skip bigendian tests against s3 in RPC-LSA-SECRETS."
...
This reverts commit 3587bb63e2
.
2010-07-08 10:59:16 +02:00
Steven Danneman
85504ae6ff
s4:libcli: Modify S4 client library to check for proper CN alignment
...
MS-CIFS 2.2.7.4.2 states that FILE_NOTIFY_INFORMATION structures in
change notify replies must be aligned to 4-byte boundaries.
This updates s4 client to check for this restriction and also adds a
torture test which should tickle a server into giving unaligned
structures if it doesn't follow the spec.
2010-07-06 13:28:02 -07:00
Günther Deschner
d56cc23c6a
s4-smbtorture: add my (C) to rap torture lib.
...
Guenther
2010-07-05 18:06:21 +02:00
Matthias Dieter Wallnöfer
6dc1c70876
s4:torture/rpc/samlogon.c - strip trailing whitespaces
2010-07-03 21:10:18 +02:00
Matthias Dieter Wallnöfer
e2e09f5c45
s4:torture/rpc/samlogon.c - provide a function which sets and afterwards resets the minimum password age
...
This is needed since we on s4 do now use the Windows Server standard of 1 day.
2010-07-03 21:04:47 +02:00
Günther Deschner
6da040261d
s4-smbtorture: enable extended SetValue test against Samba3.
...
Guenther
2010-07-02 10:50:21 +02:00
Günther Deschner
6961048487
s4-smbtorture: in extended setvalue winreg test, reduce max random buffer length to 16 bytes.
...
Guenther
2010-06-30 21:46:09 +02:00
Günther Deschner
e1c185d07d
s4-smbtorture: enable QueryMultipleValues{2} torture tests against samba3.
...
Guenther
2010-06-30 21:46:08 +02:00
Günther Deschner
a329dd0267
s4-smbtorture: add some more multiple_values_tests to RPC-WINREG.
...
Guenther
2010-06-30 21:46:07 +02:00
Günther Deschner
73fbc9c179
s4-smbtorture: remove duplicate torture_assert_sid_equal macro.
...
Guenther
2010-06-29 23:35:45 +02:00
Günther Deschner
1fb8e192ca
s4-smbtorture: add more sophisticated tests for winreg_QueryMultipleValues{2}.
...
Guenther
2010-06-29 23:10:16 +02:00
Günther Deschner
be7bff5eb5
s4-smbtorture: remove some pointless mem_equal tests in LOCAL-NDR-WINREG testsuite.
...
Guenther
2010-06-29 19:57:06 +02:00
Günther Deschner
92f3e143b7
s4-smbtorture: handle NT_STATUS_NOT_IMPLEMENTED in GetForestTrustInformation test.
...
When skipping over it, we can at least verify the credential chain.
Guenther
2010-06-29 17:19:28 +02:00
Günther Deschner
5bc77c8778
s4-smbtorture: use TEST_MACHINE_NAME in test_netr_GetForestTrustInformation().
...
Guenther
2010-06-29 17:16:25 +02:00
Günther Deschner
b31ff0537a
s4-smbtorture: add netr_GetForestTrustInformation test to RPC-NETLOGON.
...
Guenther
2010-06-29 17:13:01 +02:00
Günther Deschner
1662e383dd
s4-smbtorture: add NDR torture test for winreg_QueryMultipleValues2.
...
Guenther
2010-06-29 12:27:08 +02:00
Günther Deschner
7ae7750c40
s4-smbtorture: add RPC torture test for winreg_QueryMultipleValues2.
...
Guenther
2010-06-29 12:27:02 +02:00
Günther Deschner
bf07bf2857
winreg: fix winreg_QueryMultipleValues() IDL and torture tests.
...
Guenther
2010-06-29 11:48:53 +02:00
Kamen Mazdrashki
12bc68d4d0
s4/ndr: Fix tuncating of constant to a 'long' type
2010-06-29 00:35:22 +03:00
Matthias Dieter Wallnöfer
5606173997
s4:torture/rpc/samr.c - test_SetPassword_LastSet - introduce the delays also for s4
2010-06-28 14:51:07 +02:00
Matthias Dieter Wallnöfer
c0160d0614
s4:torture - SAMR password tests - activate support for password sets on level "18" and "21"
2010-06-28 14:51:06 +02:00
Günther Deschner
427c953273
s4-smbtorture: fix typo.
...
Not my day...
Guenther
2010-06-28 14:47:16 +02:00
Matthias Dieter Wallnöfer
f2e0ca2662
s4:torture/rpc/samr.c - test_SetPassword_LastSet - fix "pwdLastSet" test
...
- Remove superflous checks (on level 18, 24, 26 we do always have "pwdLastSet"
resets if "password_expired" > 0)
- Fixed some bugs
Signed-off-by: Günther Deschner <gd@samba.org>
2010-06-28 14:33:17 +02:00
Günther Deschner
c5bab3ea33
s4-smbtorture: add trustDomainPasswords blob test to LOCAL-NDR testsuite.
...
Our parsing of this struct is incorrect atm. and apparently also causes the s4
server to crash.
Thanks to Sumit Bose <sbose@redhat.com> for providing the auth data retrieved
from a w2k3 domain.msc operation.
Guenther
2010-06-28 14:18:04 +02:00
Kamen Mazdrashki
46556432c0
s4/drs-test: Add few comments in DrsDeleteObjectTestCase test
...
Also remove unused code
2010-06-28 04:43:28 +03:00
Kamen Mazdrashki
0c8ffc9f15
s4/drs-test: Fix whitespaces and permissions for delete_object.py test
...
Sorry I've missed to do this before
2010-06-26 01:15:50 +03:00
Jelmer Vernooij
0802f354ea
smbtorture: Fix loading of --load-list.
2010-06-25 11:32:59 +02:00
Kamen Mazdrashki
0dd6a759ed
s4/drs-test: Tests Deleted objects replication
...
Tests how deleted objects are replicated between two DCs.
Currently the test exploits following vulnerabilities:
- DsReplicaSync is not correctly implemented
- a 'deleted object' is restored (kind of) in case DC1 replicates
from DC2 before the 'deleted object' is replicated
2010-06-25 04:51:58 +03:00
Aravind Srinivasan
7e49a58ab9
s4 torture: Warn on NOT_IMPLEMENTED in addition to NOT_SUPPORTED for RAW-QFILEINFO
...
Signed-off-by: Tim Prouty <tprouty@samba.org>
2010-06-24 08:22:25 -07:00
Andrew Tridgell
4cb423f527
s4-python: python is not always in /usr/bin
...
Using "#!/usr/bin/env python" is more portable. It still isn't ideal
though, as we should really use the python path found at configure
time. We do that in many places already, but some don't.
Signed-off-by: Andrew Bartlett <abartlet@samba.org>
2010-06-24 18:46:57 +10:00
Günther Deschner
ba40f38281
s4-smbtorture: test more valid key names in RPC-WINREG.
...
Guenther
2010-06-23 15:35:41 +02:00
Günther Deschner
2dc50ec44c
s4-smbtorture: more work on test values WINREG test.
...
Guenther
2010-06-23 15:35:41 +02:00
Günther Deschner
714c926cf0
s4-smbtorture: add test for different winreg SetValue value names.
...
Guenther
2010-06-23 12:16:12 +02:00
Günther Deschner
7f8b3a26ec
s4-smbtorture: Fix test_SetPrinterDataEx_keys and test_SetPrinterDataEx_values.
...
We want to continue, not to skip here.
Guenther
2010-06-23 10:48:18 +02:00
Günther Deschner
1e897f6561
s4-smbtorture: add "printerdata_values" test to RPC-SPOOLSS-PRINTER.
...
Guenther
2010-06-22 15:57:18 +02:00
Günther Deschner
13ede2bf7a
s4-smbtorture: also test keynames with '/' in it in SetPrinterDataEx keyname tests.
...
Guenther
2010-06-22 15:57:12 +02:00
Günther Deschner
e439b6cb8c
s4-smbtorture: activate all keys in SetPrinterData keys test.
...
(just skip some of them still against s3).
Guenther
2010-06-22 15:57:06 +02:00
Günther Deschner
c31ffaf587
s4-smbtorture: split out a "printerdata_keys" test for RPC-SPOOLSS-PRINTER.
...
This separates key and value tests for SetPrinterDataEx and GetPrinterDataEx
(and also speeds up the whole testsuite).
Guenther
2010-06-22 15:57:00 +02:00
Aravind Srinivasan
c668b21cd6
s4 torture: RAW-SFILEINFO display warning instead of error on unsupported info level
...
Also add a test to make sure setting the directory attribute is
disallowed.
Signed-off-by: Tim Prouty <tprouty@samba.org>
2010-06-21 17:08:41 -07:00
James Peach
f5709975c1
smbtorture: Fix missing includes.
2010-06-21 14:12:58 -07:00
James Peach
6227eac607
smbtorture: Fixx off-by-one command line parsing.
...
If we are not in shell mode we require both the target and test name
arguments. Make sure we process these from the correct index.
2010-06-21 11:09:45 -07:00
James Peach
0fc18ead76
smbtorture: Add "target" command to interactive shell.
...
Add a "target" command to set the target server to test. Refactor
the command line argument processing a little so that you can run
--shell without any additional arguments.
2010-06-21 08:58:10 -07:00
James Peach
7a25e2efe9
smbtorture: Enhance shell "help" command.
...
Sort the command list alphabetically. Let the help command print
usage info for other commands.
2010-06-21 08:58:10 -07:00
James Peach
bf35aa8603
smbtorture: Add "auth" command to the shell.
...
Add a new "auth" command to set the cmdline credentials from withing
the smbtorture shell.
2010-06-21 08:58:10 -07:00
James Peach
3f398ec36d
smbtorture: Refactor interactive shell into independent commands.
...
Refactor the smbtorture interactive shell into a set of independent
command callbacks to make it easier to add more independent commands.
2010-06-21 08:58:10 -07:00
James Peach
9f69790355
smbtorture: Move interactive shell into a separate file.
2010-06-21 08:58:10 -07:00
James Peach
a5e14bded4
smbtorture: Print global options for interactive "list" command.
2010-06-21 08:58:10 -07:00
James Peach
12e15b0ac8
smbtorture: Add history support to shell mode.
2010-06-21 08:58:10 -07:00
James Peach
6f96293406
smbtorture: Add list command to smbtorture shell.
2010-06-21 08:58:10 -07:00
Jelmer Vernooij
c92db7b6dc
python: Use samba.tests.TestCase, make sure base class tearDown and
...
setUp methods are called, fix formatting.
2010-06-19 22:46:45 +02:00
Matthias Dieter Wallnöfer
3055ead4cf
s4:torture/ldap/basic.c - add more error code/messages tests
...
And now we do match at least the LDAP error code (the WERROR one does still
differ from Windows - we will see how to change that).
2010-06-19 17:53:24 +02:00
Matthias Dieter Wallnöfer
01e9d090f1
s4:torture/rpc/netlogon.c - make sure that the address family is set in little endian in the "AddressToSitenames" tests
2010-06-18 10:03:07 +02:00
Matthias Dieter Wallnöfer
917f6015a6
s4:torture/rpc/netlogon.c - activate "AddressToSitenames" tests which do run against s4
2010-06-18 10:03:07 +02:00
Stefan Metzmacher
d823e529b8
s4:torture/rpc/remote_pac: use dcerpc_netr_LogonSamLogon_r() instead of dcerpc_netr_LogonSamLogon()
...
metze
2010-06-17 10:17:33 +02:00
Günther Deschner
a6f1c111ff
s4-smbtorture: Remind myself we need to add a test for SMBsplretq in RAP-PRINTING.
...
Guenther
2010-06-16 17:10:15 +02:00
Stefan Metzmacher
6dbcffb51d
s4:lib: merge LDB_WRAP and LDBSAMBA and make LDBSAMBA a library.
...
This is needed to remove samba specifc symbols from the bundled
ldb, in order to get the ABI right.
metze
Signed-off-by: Andreas Schneider <asn@samba.org>
2010-06-16 14:07:28 +02:00
Günther Deschner
8843eea2e0
s4-smbtorture: only pull info when status code indicates success in smbcli_rap_netprintqgetinfo().
...
Guenther
2010-06-16 12:20:05 +02:00
Günther Deschner
185adc4c81
Revert "s4-smbtorture: only pull info when status code indicates success in smbcli_rap_netprintqgetinfo()."
...
This reverts commit 1f1c04010a
.
2010-06-16 12:18:32 +02:00
Günther Deschner
1a86532fce
s4-smbtorture: test smbcli_rap_netprintqgetinfo() with "" printqname.
...
Guenther
2010-06-16 12:15:24 +02:00