1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-25 23:21:54 +03:00
Commit Graph

5076 Commits

Author SHA1 Message Date
Stefan Metzmacher
7888f0e7f7 s4:torture/rpc/object_uuid: use dcerpc_binding_handle_call() instead of dcerpc_ndr_request()
metze
2011-03-13 10:34:22 +01:00
Matthias Dieter Wallnöfer
a5aecdf361 s4:torture/rap/rap.c - remove unused variable "i"
Autobuild-User: Matthias Dieter Wallnöfer <mdw@samba.org>
Autobuild-Date: Wed Mar  2 18:38:58 CET 2011 on sn-devel-104
2011-03-02 18:38:58 +01:00
Günther Deschner
bd675e0b15 s4-smbtorture: add netsessionenum rap torture test.
Guenther
2011-03-02 12:12:32 +01:00
Günther Deschner
c884e622fa s4-smbtorture: add smbcli_rap_netsessionenum().
Guenther
2011-03-02 12:12:32 +01:00
Jelmer Vernooij
59a077d8f5 Fix some types
Autobuild-User: Jelmer Vernooij <jelmer@samba.org>
Autobuild-Date: Mon Feb 28 23:30:06 CET 2011 on sn-devel-104
2011-02-28 23:30:06 +01:00
Jelmer Vernooij
136c160064 Use <tdb.h> to include tdb, so the system include file gets used when building against
system tdb.
2011-02-28 21:11:21 +01:00
Kamen Mazdrashki
375eddc15e s4/drs-test: Remove unused imports 2011-02-27 00:23:20 +02:00
Kamen Mazdrashki
62a6b75482 s4/drs-test: remove netReplicateCmd test from 'deleted object' test case
DCs synchronization is moved to the test case setUp method
as there is no guarantee for the order of execution of tests
in a test case - thus netReplicateCmd may be executed after
ReplicateDeleteOjbect test
2011-02-27 00:23:20 +02:00
Kamen Mazdrashki
281e306045 s4/drs-tests: Disable replication during 'deleted object' test
This allows us to remove the patch that prevents the test failure.

Also pass 'forced' flag to samba-tool drs replicate command, otherwise
DsReplicaSync will fail with 'replication not permitted' error
2011-02-27 00:23:19 +02:00
Kamen Mazdrashki
90d0d3e5f8 s4/drs-tests: Move enable/disable replication methods to DrsBase class so we can re-use them 2011-02-27 00:23:19 +02:00
Andrew Tridgell
5ec284d152 build: moved librpc/rpc/*.c into a rpccommon library
Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>

Autobuild-User: Andrew Tridgell <tridge@samba.org>
Autobuild-Date: Thu Feb 24 02:42:37 CET 2011 on sn-devel-104
2011-02-24 02:42:37 +01:00
Matthias Dieter Wallnöfer
85f4f73ed4 s4:torture/rpc/netlogon.c - fix two build warnings by casts
Signed-off-by: Stefan Metzmacher <metze@samba.org>

Autobuild-User: Matthias Dieter Wallnöfer <mdw@samba.org>
Autobuild-Date: Tue Feb 22 11:45:49 CET 2011 on sn-devel-104
2011-02-22 11:45:49 +01:00
Andrew Tridgell
a12239b131 s4-waf: rename smbpasswd library to smbpasswdparser
this removes a conflict with the s3 smbpasswd binary
2011-02-22 02:51:10 +01:00
Günther Deschner
fb45c88904 s4-smbtorture: use torture_comment() instead of printf in raw.write test.
Guenther

Autobuild-User: Günther Deschner <gd@samba.org>
Autobuild-Date: Mon Feb 21 15:26:38 CET 2011 on sn-devel-104
2011-02-21 15:26:38 +01:00
Günther Deschner
138533da3c s4-smbtorture: fix some indent in raw.write test.
Guenther
2011-02-21 14:42:22 +01:00
Günther Deschner
e1f4f0b605 s4-smbtorture: fix trailing whitespace in raw.write test.
Guenther
2011-02-21 14:42:22 +01:00
Christian Ambach
2ba57fd183 s4:smbtorture do not leave output directory around
calling smbtorture with no or invalid arguments left the temporary
output directory around
this patches removes the dead-end exit from usage and makes the
logic go on until the final cleanup state is reached

output directory will still be left around when test times out
or testcases itself force an exit

also make sure that the directory itself is deleted, not just
the objects in it

Signed-off-by: Matthias Dieter Wallnöfer <mdw@samba.org>
Signed-off-by: Andrew Bartlett <abartlet@samba.org>

Autobuild-User: Matthias Dieter Wallnöfer <mdw@samba.org>
Autobuild-Date: Mon Feb 21 11:35:30 CET 2011 on sn-devel-104
2011-02-21 11:35:30 +01:00
Kamen Mazdrashki
1273d504f2 s4/drs-tests:Blackbox test to verify DsReplicaSync handling
DsReplicaSync is indirectly called using 'samba-tool drs options' command
to enable/disable replication and 'samba-tool drs replicate' command
to trigger inbound replication cycle

Autobuild-User: Kamen Mazdrashki <kamenim@samba.org>
Autobuild-Date: Sun Feb 20 23:03:03 CET 2011 on sn-devel-104
2011-02-20 23:03:03 +01:00
Kamen Mazdrashki
adfb618ef5 s4/drs-tests: Allow _net_drs_replicate to force replication and return output from command execution 2011-02-20 23:13:11 +02:00
Kamen Mazdrashki
288e20cfb7 s4/drs-tests: Split samba-tool command line generation into separate method
so we can use to exec samba-tool passing different commands
2011-02-20 23:13:10 +02:00
Kamen Mazdrashki
75856d53cb s4/drs-tests: Inherit DrsReplSchemaTestCase from DrsBaseTestCase
and remove duplicated functionality
2011-02-20 23:13:09 +02:00
Kamen Mazdrashki
60bb40cd25 s4/drs-tests: Inherit DrsFsmoTestCase from DrsBaseTestCase
and remove duplicated functionality
2011-02-20 23:13:09 +02:00
Kamen Mazdrashki
fcd4aa84ed s4/drs-tests: Inherit DrsDeleteObjectTestCase from DrsBaseTestCase
and remove duplicated functionality
2011-02-20 23:13:08 +02:00
Kamen Mazdrashki
e21039110c s4/drs-tests: Add a base class to hold common functionality for all DRS python tests 2011-02-20 23:13:08 +02:00
Andrew Tridgell
ed71c1ef1f s4-auth: rename 'auth' subsystem to 'auth4'
this prevents conflicts with the s3 auth modules. The auth modules in
samba3 may appear in production smb.conf files, so it is preferable to
rename the s4 modules for minimal disruption.

Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
2011-02-18 15:09:46 +11:00
Günther Deschner
d4892f3876 s4-smbtorture: add more complex spoolss_EnumPrinterDataEx test.
Guenther

Autobuild-User: Günther Deschner <gd@samba.org>
Autobuild-Date: Thu Feb 17 16:46:28 CET 2011 on sn-devel-104
2011-02-17 16:46:28 +01:00
Sumit Bose
92ea55e84e s4-smbtorture: Fix for RPC-LSA-FOREST-TRUST.
Signed-off-by: Günther Deschner <gd@samba.org>
2011-02-16 11:44:06 +01:00
Sumit Bose
a357ac0222 s4-smbtorture: Two fixes for forest trust test against samba.
Signed-off-by: Günther Deschner <gd@samba.org>
2011-02-16 11:44:05 +01:00
Volker Lendecke
fbcdef8268 s4: Fix a typo 2011-02-15 21:12:22 +01:00
Matthias Dieter Wallnöfer
20197c6687 s4:torture/rpc/samr.c - fix up the "test_GroupList" suite regarding QueryDisplayInfo
This is needed to comply with the previous patch.

Autobuild-User: Matthias Dieter Wallnöfer <mdw@samba.org>
Autobuild-Date: Tue Feb 15 17:40:22 CET 2011 on sn-devel-104
2011-02-15 17:40:22 +01:00
Andrew Tridgell
8dc92c8f71 ldb: use #include <ldb.h> for ldb
thi ensures we are using the header corresponding to the version of
ldb we're linking against. Otherwise we could use the system ldb for
link and the in-tree one for include

Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
2011-02-10 06:51:07 +01:00
Andrew Bartlett
a2ce53c1f5 s4-auth Rework auth subsystem to remove struct auth_serversupplied_info
This changes auth_serversupplied_info into the IDL-defined struct
auth_user_info_dc.  This then in turn contains a struct
auth_user_info, which is the only part of the structure that is
mainted into the struct session_info.

The idea here is to avoid keeping the incomplete results of the
authentication (such as session keys, lists of SID memberships etc) in
a namespace where it may be confused for the finalised results.

Andrew Barltett
2011-02-09 01:11:06 +01:00
Günther Deschner
9e6d61fb85 s4-smbtorture: add torture test to check proper add and delete driver operations.
Thanks to Bjoern Baumbach <bb@sernet.de> for pushing us to test and verify this.

Guenther
2011-02-08 17:23:52 +01:00
Günther Deschner
7d107cda89 s4-smbtorture: also run the driver timestamp spoolss test against samba.
Guenther
2011-02-08 17:23:52 +01:00
Günther Deschner
34722c72f6 pam: share pam errors in a common location.
Guenther
2011-02-08 14:05:36 +01:00
Günther Deschner
be5edba117 libndr: share some uuid helpers.
Guenther

Autobuild-User: Günther Deschner <gd@samba.org>
Autobuild-Date: Tue Feb  8 09:52:56 CET 2011 on sn-devel-104
2011-02-08 09:52:56 +01:00
Matthieu Patou
56b1cff70e s4 torture: add new rpc torture tests for backup key remote protocol
Signed-off-by: Stefan Metzmacher <metze@samba.org>

Autobuild-User: Stefan Metzmacher <metze@samba.org>
Autobuild-Date: Sat Feb  5 13:01:42 CET 2011 on sn-devel-104
2011-02-05 13:01:42 +01:00
Stefan Metzmacher
eca7292aec s4:torture/rpc/netlogon: add invalid level tests for netr_LogonControl2
metze

Autobuild-User: Stefan Metzmacher <metze@samba.org>
Autobuild-Date: Wed Feb  2 12:43:32 CET 2011 on sn-devel-104
2011-02-02 12:43:32 +01:00
Stefan Metzmacher
1f9caef362 s4:torture/rpc/netlogon: improve comments in test_LogonControl2()
metze
2011-02-02 11:58:26 +01:00
Stefan Metzmacher
89dd048bdf s4:torture/rpc/netlogon: test invalid netr_LogonControl() level
metze
2011-02-02 11:58:26 +01:00
Stefan Metzmacher
d3e4d90d41 s4:torture/rpc/netlogon: test invalid LogonSamLogon levels
This proves that the invalid parameter/info class checks
need to be done before the credential chain checks.

metze
2011-02-02 11:58:26 +01:00
Stefan Metzmacher
e9807916af s4:torture/rpc/netlogon: test validation levels 2 and 3
metze
2011-02-02 11:58:26 +01:00
Andrew Bartlett
7faa3be453 s4-python Ensure we add the Samba python path first.
This exact form of the construction is important, and we match on it
in the installation scripts.

Andrew Bartlett
2011-02-02 15:21:12 +11:00
Pavel Shilovsky
f453235ce0 smbtorture4 test for bug #7928 - Samba problems with kernel oplocks option set to "no" 2011-01-31 12:03:17 -08:00
Günther Deschner
1537f5dab1 s4-smbtorture: add samr_changepassworduser3 ndr torture tests.
Guenther

Autobuild-User: Günther Deschner <gd@samba.org>
Autobuild-Date: Mon Jan 31 16:07:14 CET 2011 on sn-devel-104
2011-01-31 16:07:14 +01:00
Günther Deschner
8f4eee9054 s4-smbtorture: make it more obvious this are w2k dumps in netlogon ndr test.
Guenther
2011-01-31 15:16:35 +01:00
Günther Deschner
7182da7f91 s4-smbtorture: add (disabled) ndr torture test to check for a w2k samlogon reply we can't currently parse.
Guenther

Autobuild-User: Günther Deschner <gd@samba.org>
Autobuild-Date: Fri Jan 28 16:23:30 CET 2011 on sn-devel-104
2011-01-28 16:23:30 +01:00
Günther Deschner
6957109e8d s4-smbtorture: add NDR tests for netr_LogonSamLogon.
Guenther
2011-01-28 15:37:10 +01:00
Andreas Schneider
dbb184ab7b s4-torture: Reorder the epmapper tests.
It works like a stack!

Autobuild-User: Günther Deschner <gd@samba.org>
Autobuild-Date: Thu Jan 27 15:28:05 CET 2011 on sn-devel-104
2011-01-27 15:28:05 +01:00
Andreas Schneider
3e29bb0b92 s4-torture: Added a full epm_Map test. 2011-01-27 14:41:41 +01:00
Andreas Schneider
357fd2cecc s4-torture: Added a test_Insert for epmapper. 2011-01-27 14:41:41 +01:00
Andreas Schneider
43f766dd04 s4-torture: Use binding handle in epm_Delete test. 2011-01-27 14:41:41 +01:00
Andreas Schneider
fed2b6167a s4-torture: Comment out the test_InqObject. 2011-01-27 14:41:41 +01:00
Andreas Schneider
dd9feec3df s4-torture: Added a clean test_Map_simple. 2011-01-27 14:41:41 +01:00
Andreas Schneider
c3c650623a s4-torture: Added a clean test_Lookup_terminate_search. 2011-01-27 14:41:41 +01:00
Andreas Schneider
548c712082 s4-torture: Added a clean test_Lookup_simple. 2011-01-27 14:41:41 +01:00
Andreas Schneider
0ccb374c6a s4-torture: Added test_LookupHandleFree. 2011-01-27 14:41:40 +01:00
Andreas Schneider
9a771f17c8 s4-torture: Start with a clean epm_Insert_noreplace test. 2011-01-27 14:41:40 +01:00
Kamen Mazdrashki
6e2263749a s4-test/delete_object: Remove global ldb connections
Make it more xUnit compliant

Autobuild-User: Kamen Mazdrashki <kamenim@samba.org>
Autobuild-Date: Tue Jan 25 21:30:19 CET 2011 on sn-devel-104
2011-01-25 21:30:19 +01:00
Günther Deschner
1f3fb30ed9 s4-smbtorture: make sure there is always driverextra data in spoolss devmode size tests.
Guenther
2011-01-21 10:58:20 +01:00
Günther Deschner
aefbec5270 s4-smbtorture: add tests for the size member of spoolss devicemodes.
Guenther
2011-01-21 10:58:20 +01:00
Günther Deschner
7a7b61ef08 s4-smbtorture: prepare devicemode test for expected result tests.
Guenther
2011-01-21 10:58:20 +01:00
Günther Deschner
bb51c05014 s4-smbtorture: add some paranoia checks for 0 sized devmodes.
Guenther
2011-01-21 10:58:20 +01:00
Andrew Bartlett
fbe6d155bf s4-auth Remove special case for account_sid from auth_serversupplied_info
This makes everything reference a server_info->sids list, which is now
a struct dom_sid *, not a struct dom_sid **.  This is in keeping with
the other sid lists in the security_token etc.

In the process, I also tidy up the talloc tree (move more structures
under their logical parents) and check for some possible overflows in
situations with a pathological number of sids.

Andrew Bartlett
2011-01-20 23:44:05 +01:00
Stefan Metzmacher
c9e6bf047d lib/util: add tests for anonymous_shared_allocate/free()
metze

Autobuild-User: Stefan Metzmacher <metze@samba.org>
Autobuild-Date: Thu Jan 20 06:25:03 CET 2011 on sn-devel-104
2011-01-20 06:25:03 +01:00
Andrew Bartlett
489e3372d6 s4-torture Remove unused temp dirs from the RPC-PAC test.
The code previously required the creation of a messaging context, but
this isn't done any more, so we don't need the tmp dir to put it in.

Andrew Bartlett
2011-01-18 10:55:05 +01:00
Andrew Tridgell
87f3151047 s4-dsdb: pass parent request to dsdb_module_*() functions
this preserves the request hierarchy for dsdb_module_*() calls inside
dsdb ldb modules

Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
2011-01-17 05:23:04 +01:00
Matthias Dieter Wallnöfer
3b78fcff5a s4:torture/nbench/nbench.c - initialise "n"
Autobuild-User: Matthias Dieter Wallnöfer <mdw@samba.org>
Autobuild-Date: Wed Jan 12 20:38:02 CET 2011 on sn-devel-104
2011-01-12 20:38:02 +01:00
Matthias Dieter Wallnöfer
a26a48934d torture:drs/rpc/msds_intid.c - proof for the correct "intId"
"drs_attr" is uninitialised in this loop
2011-01-12 19:52:19 +01:00
Matthieu Patou
1c6077e71e torture: add ndr tests for backup key protocol
Signed-off-by: Stefan Metzmacher <metze@samba.org>

Autobuild-User: Stefan Metzmacher <metze@samba.org>
Autobuild-Date: Wed Jan 12 10:25:00 CET 2011 on sn-devel-104
2011-01-12 10:25:00 +01:00
Günther Deschner
0279422c83 s4-smbtorture: check driver_version equality as well.
Guenther

Autobuild-User: Günther Deschner <gd@samba.org>
Autobuild-Date: Tue Jan  4 11:22:09 CET 2011 on sn-devel-104
2011-01-04 11:22:08 +01:00
Günther Deschner
64576106b1 s4-smbtorture: always setup full driver level 8 in test_add_driver_arg().
Guenther
2011-01-04 10:33:56 +01:00
Günther Deschner
69174fea5b s4-smbtorture: in test_GetDriverInfo_winreg() always test level 6 for samba3 as
well.

Guenther
2011-01-04 10:33:56 +01:00
Günther Deschner
19a295dee8 s4-smbtorture: setup help and dependent files in spoolss driver unc path tests.
Guenther
2011-01-04 10:33:55 +01:00
Günther Deschner
8fc28818b9 s4-smbtorture: fix DriverDate and DriverVersion comparison checks against w2k3.
Guenther
2011-01-04 10:33:55 +01:00
Günther Deschner
9c46370e91 s4-smbtorture: add more tests for driver_dates.
Guenther
2011-01-04 10:33:52 +01:00
Jelmer Vernooij
b5474f2441 remove unnecessary use of pass.
Autobuild-User: Jelmer Vernooij <jelmer@samba.org>
Autobuild-Date: Mon Jan  3 08:21:12 CET 2011 on sn-devel-104
2011-01-03 08:21:12 +01:00
Jelmer Vernooij
9fc2e6c352 Use TestCase.get_credentials() where possible. 2011-01-03 01:48:05 +01:00
Stefan Metzmacher
01a1a71b55 s4:selftest: specify the gentest_seeds.dat location
metze
2010-12-27 15:37:56 +01:00
Matthias Dieter Wallnöfer
78d12e5629 s4:torture/ndr/spoolss.c - add a "ULL" suffix for a 64 bit unsigned integer literal
To quiet a warning on Solaris

Autobuild-User: Matthias Dieter Wallnöfer <mdw@samba.org>
Autobuild-Date: Thu Dec 23 13:43:57 CET 2010 on sn-devel-104
2010-12-23 13:43:57 +01:00
Günther Deschner
a204c45e59 s4-smbtorture: always skip addprinter{ex} level 1 tests for now.
Guenther
2010-12-22 13:33:18 +01:00
Günther Deschner
9626487a14 s4-smbtorture: fix expected driver date REG_SZ string.
This resolves the "WARNING!: ../torture/rpc/spoolss.c:4688: str was 01/01/1601,
expected 01/01/1970: "DriverDate" - driver_date mismatch" warnings.

Guenther
2010-12-22 13:33:17 +01:00
Günther Deschner
3931d4aa65 s4-smbtorture: check the returned driver date is equal to the one we passed in.
Guenther
2010-12-22 13:33:17 +01:00
Günther Deschner
340d2df123 s4-smbtorture: interesting, DriverDate and DriverVersion are different in w2k3 and w2k8r2.
While in w2k8 they are REG_SZ date or numerical strings, they are 8 byte REG_BINARY blobs in w2k3.

Guenther
2010-12-22 13:33:17 +01:00
Matthias Dieter Wallnöfer
912faf1b08 s4:dsdb/schema/schema_* - adaptions needed for removed "const" on OIDs 2010-12-21 15:10:37 +11:00
Günther Deschner
9dce43a809 s4-smbtorture: run the winreg tests also against an added driver.
Guenther

Autobuild-User: Günther Deschner <gd@samba.org>
Autobuild-Date: Mon Dec 20 14:31:43 CET 2010 on sn-devel-104
2010-12-20 14:31:43 +01:00
Günther Deschner
4e9d67b7c0 s4-smbtorture: allow to call test_GetDriverInfo_winreg without printer handle.
Guenther

Autobuild-User: Günther Deschner <gd@samba.org>
Autobuild-Date: Fri Dec 17 17:35:21 CET 2010 on sn-devel-104
2010-12-17 17:35:21 +01:00
Günther Deschner
92f1029e87 s4-smbtorture: check if returned driver paths match requested architecture.
Guenther
2010-12-17 16:50:19 +01:00
Günther Deschner
545d3a013c s4-smbtorture: pass down driverosversion to test_DriverInfo_winreg.
Guenther
2010-12-17 13:10:08 +01:00
Günther Deschner
4f4ac6462a s4-smbtorture: skip level 8 checks in test_GetDriverInfo_winreg for w2k3.
Guenther

Autobuild-User: Günther Deschner <gd@samba.org>
Autobuild-Date: Fri Dec 17 12:20:38 CET 2010 on sn-devel-104
2010-12-17 12:20:38 +01:00
Günther Deschner
5083be506e s4-smbtorture: skipping level 8 driveradds against w2k3.
Guenther
2010-12-17 11:33:05 +01:00
Kamen Mazdrashki
3bc1cf94e3 s4-test/repl_schema: remove unused and commented out code
Autobuild-User: Kamen Mazdrashki <kamenim@samba.org>
Autobuild-Date: Wed Dec 15 01:37:10 CET 2010 on sn-devel-104
2010-12-15 01:37:10 +01:00
Kamen Mazdrashki
9c78bdfd47 s4-test/repl_schema: Make sure every object is with unique name
This way, test writer don't have to be careful to choose
unique objects suffix
2010-12-15 00:51:19 +01:00
Kamen Mazdrashki
efcc3c0d79 s4-test/repl_schema: use 'top' as default base class for our test classSchema objects
Otherwise we will end up passing whole inheritance chain
every time we create some new fancy classSchema object
(as the 'cls-A' and 'cls-B' ones in test_classWithCustomAttribute test)
2010-12-15 00:51:19 +01:00
Kamen Mazdrashki
1379075762 s4-test/repl_schema: New test to test a classSchema with custom attribute
Create new Attribute and a Class,
that has value for newly created attribute.

This should check code path that searches for
AttributeID_id in Schema cacheThis test.

It also tests how we replicate a leaf classSchema that
inherits from a new classSchema with attribute added
- tests both dsdb_attribute_drsuapi_to_ldb() and
_dsdb_syntax_OID_obj_drsuapi_to_ldb() syntax handler
2010-12-15 00:51:19 +01:00
Günther Deschner
0990f6342e s4-smbtorture: paranoia check for architectures in request and reply for enumdrivers test.
Guenther
2010-12-14 22:42:17 +01:00
Jelmer Vernooij
13bb9e7046 smbtorture: Default to listing all tests if no prefix was specified. 2010-12-11 18:48:05 +01:00
Jelmer Vernooij
1f5f4e912d smbtorture: Implement --list argument. 2010-12-11 18:48:05 +01:00
Jelmer Vernooij
35fbc7bbda s4-smbtorture: Make test names lowercase and dot-separated.
This is consistent with the test names used by selftest, should
make the names less confusing and easier to integrate with other tools.

Autobuild-User: Jelmer Vernooij <jelmer@samba.org>
Autobuild-Date: Sat Dec 11 04:16:13 CET 2010 on sn-devel-104
2010-12-11 04:16:13 +01:00
James Peach
7ef1de3973 smbtorture: correct error handling in BASE-OPEN.
There are a number of cases in BASE-OPEN where an initial failure cascades
into multiple failures due to lack of cleanup between test phases. Fix
all these so that they close open file handles correctly. Replace
torture_comment with torture_result where appropriate so that the results
output contains a useful diagnostic.

Autobuild-User: Jeremy Allison <jra@samba.org>
Autobuild-Date: Sat Dec 11 03:19:39 CET 2010 on sn-devel-104
2010-12-11 03:19:39 +01:00
Jelmer Vernooij
365cfb1c32 smbtorture: Rename --list to --list-suites, add stub --list. 2010-12-10 03:04:06 +01:00
Andrew Bartlett
22d67758ef s4-tests Workaround new default of 'client ntlmv2 auth = yes' in tests
The new default breaks some tests that were assuming LM or NTLM auth

Andrew Bartlett
2010-12-09 18:01:56 +11:00
Matthieu Patou
02f3567814 smbtorture: use xxxULL notation instead of INT64_C(xxx)
The first one is portable the second not always

Signed-off-by: Stefan Metzmacher <metze@samba.org>

Autobuild-User: Matthieu Patou <mat@samba.org>
Autobuild-Date: Wed Dec  8 15:48:10 CET 2010 on sn-devel-104
2010-12-08 15:48:10 +01:00
Matthias Dieter Wallnöfer
2664a67c86 s4:torture/locktest.c - fix "pid_t" printf warning on Solaris
According to "http://www.ibm.com/developerworks/linux/library/l-solar/"
it's generally a 32bit "int" - therefore this cast should fit.
2010-12-06 11:28:59 +01:00
Matthias Dieter Wallnöfer
3b7e2ee5e4 s4:torture/locktest.c - fix one indentation 2010-12-06 11:28:59 +01:00
Matthias Dieter Wallnöfer
b604e9425b s4:torture/rpc/samr.c - fix output message 2010-12-04 10:07:25 +01:00
Kamen Mazdrashki
c1fef7efc7 s4-test/repl_schema: Test class inheritance through subClassOf 2010-12-02 19:02:55 +02:00
Kamen Mazdrashki
1b7070039f s4-test/fsmo: Remove unused imports 2010-12-02 19:02:54 +02:00
Kamen Mazdrashki
ad1ea5e142 s4-test/delete_object: Remove unused imports 2010-12-02 19:02:53 +02:00
Kamen Mazdrashki
28f47112d7 s4-test/repl_schema: Make ERR_NO_SUCH_OBJECT visible to us
We've lost this import somehow, now it is back in :)
2010-12-02 19:02:53 +02:00
Kamen Mazdrashki
ebdbf9bd90 s4-test/repl_schema: Test classSchema and attributeSchema replication in separate tests 2010-12-02 19:02:52 +02:00
Kamen Mazdrashki
6803a72d15 s4-test/schema: Extend the test to replicate a Class with Attribute with "mayContain" relation
Autobuild-User: Kamen Mazdrashki <kamenim@samba.org>
Autobuild-Date: Wed Dec  1 13:30:45 CET 2010 on sn-devel-104
2010-12-01 13:30:45 +01:00
Kamen Mazdrashki
4041791d01 s4-repl: Let dsdb_replicated_objects_convert() to accept schema from caller
This allows us to use schema that is different than the one
set to 'ldb' to decode objects.
2010-12-01 13:01:16 +02:00
Matthias Dieter Wallnöfer
10d1cd7af7 s4:torture - partially revert "s4:torture - prefer the termination "return"s at the end of two unittests"
This partially reverts commit 54a5c398aa.
As tridge pointed out I've overseen the nested loop in "run_iometer".
Therefore we end in a infinite loop. Obviously it wasn't run by "make
test" since then I would have detected it.

Autobuild-User: Matthias Dieter Wallnöfer <mdw@samba.org>
Autobuild-Date: Tue Nov 30 09:23:00 CET 2010 on sn-devel-104
2010-11-30 09:23:00 +01:00
Matthias Dieter Wallnöfer
54a5c398aa s4:torture - prefer the termination "return"s at the end of two unittests
Autobuild-User: Matthias Dieter Wallnöfer <mdw@samba.org>
Autobuild-Date: Mon Nov 29 23:29:23 CET 2010 on sn-devel-104
2010-11-29 23:29:23 +01:00
Günther Deschner
53712fbb4f s4-smbtorture: only run the cupsaddsmb adobe driver test against s3.
Guenther

Autobuild-User: Günther Deschner <gd@samba.org>
Autobuild-Date: Mon Nov 29 18:47:17 CET 2010 on sn-devel-104
2010-11-29 18:47:17 +01:00
Günther Deschner
e722c66b98 s4-smbtorture: add torture test for cupsaddsmb win9x driver install behavior.
Guenther
2010-11-29 17:50:05 +01:00
Günther Deschner
7f2afe25e7 s4-smbtorture: make add-printerdriver test more robust against empty configfiles.
Guenther
2010-11-29 17:48:42 +01:00
Günther Deschner
118a79719c s4-smbtorture: make driver upload/removal more robust against empty filenames.
Guenther
2010-11-29 17:07:02 +01:00
Günther Deschner
b9a59ba80d s4-smbtorture: add test for Adobe PostScript driver (Win9x) installation.
Guenther
2010-11-29 15:35:19 +01:00
Günther Deschner
90a0a7e81b s4-smbtorture: handle driverfile overlap during removal in RPC-SPOOLSS-DRIVER.
Guenther
2010-11-29 15:35:19 +01:00
Günther Deschner
93582c3d29 s4-smbtorture: re-arrange RPC-SPOOLSS-DRIVER test a bit.
Guenther
2010-11-29 15:35:19 +01:00
Matthias Dieter Wallnöfer
87b887f48f s4:torture - remove unreachable statements to quiet warnings of Solaris "cc" 2010-11-29 14:48:12 +01:00
Andrew Tridgell
c522cd73ac s4-repl_schema: fixed ldb exception handling 2010-11-29 18:04:42 +11:00
Matthias Dieter Wallnöfer
56969adb3d s4:torture/smb2/acls.c - remove two unused variables
Autobuild-User: Matthias Dieter Wallnöfer <mdw@samba.org>
Autobuild-Date: Sun Nov 28 17:22:54 CET 2010 on sn-devel-104
2010-11-28 17:22:54 +01:00
Matthias Dieter Wallnöfer
96c1cd762d s4:introduce casts before outputs of "time_t" variables
Otherwise we are getting warnings on "NetBSD".
2010-11-28 16:38:16 +01:00
Jelmer Vernooij
a7675bd501 s4-python: Fix formatting of docstrings for the purpose of pydoctor. 2010-11-28 05:00:06 +01:00
Matthias Dieter Wallnöfer
24c5d6b504 s4:torture/rpc/samr.c - fix uninitialised "status" variables
Detected by Tru64. I wonder how this tests even worked.
2010-11-27 21:50:42 +01:00
Matthias Dieter Wallnöfer
5c8f0c5b9d s4:torture/rpc/samsync.c - remove uninitialised "nt_status" check
Found by Tru64 compiler.
2010-11-27 21:50:42 +01:00
Matthias Dieter Wallnöfer
02addbc40d s4:torture/drs/python/fsmo.py - fix comments and an error message 2010-11-27 15:17:18 +01:00
Günther Deschner
64424bb1c3 s4-smbtorture: pick a better printer in RPC-SPOOLSS-ACCESS.
Guenther

Autobuild-User: Günther Deschner <gd@samba.org>
Autobuild-Date: Wed Nov 24 22:07:33 CET 2010 on sn-devel-104
2010-11-24 22:07:33 +01:00
Kamen Mazdrashki
58f6a37f64 s4-test/repl_schema: Refactor the test a little bit to
- Cleanup imports
- make sure we have testtools and subunit imported
- use dictionaries instead of LDIFs for schema modification
  so now callers for _make_class can easily add new attributes
  for created class
- simplify a little bit classSchema creation
- test attributeSchema replication

Autobuild-User: Kamen Mazdrashki <kamenim@samba.org>
Autobuild-Date: Tue Nov 23 18:44:46 CET 2010 on sn-devel-104
2010-11-23 18:44:46 +01:00
Kamen Mazdrashki
b85dfce745 s4-test/repl_schema: Remote global ldb connections
Although unlikely, Jelmer pointed out that using persistent
SamDB connections between test may interfere with tests
behaviour (and is not xUnit compliant anyway)

Autobuild-User: Kamen Mazdrashki <kamenim@samba.org>
Autobuild-Date: Mon Nov 22 15:24:03 CET 2010 on sn-devel-104
2010-11-22 15:24:03 +01:00
Matthias Dieter Wallnöfer
d0993e1278 s4:netlogon/LogonGetDomainInfo - handle a NULL "dns_hostname"
- Performs the short computer name check against the sam account name.
- Enhances the LogonGetDomainInfo testsuite which checks the NULL
  "dns_hostname" behaviour

Autobuild-User: Matthias Dieter Wallnöfer <mdw@samba.org>
Autobuild-Date: Fri Nov 19 12:50:33 CET 2010 on sn-devel-104
2010-11-19 12:50:32 +01:00
Matthias Dieter Wallnöfer
3874331edb s4:torture/ldb/ldb.c - add a small test for a DN with an escaped comma 2010-11-19 12:07:06 +01:00
Andrew Tridgell
896d1bdca2 s4-spoolss: fixed warning in call to torture_warning() 2010-11-16 07:16:04 +00:00
Matthias Dieter Wallnöfer
59e22ba9c0 s4:torture/basic/base.c - fix output warnings regarding "time_t"
"time_t" is generally "long int".
2010-11-15 22:31:04 +00:00
Jelmer Vernooij
f7bccc6628 smb_server: Build as shared module. 2010-11-15 11:43:05 +00:00
Andrew Tridgell
ef7f4a1420 s4-server: make server sockets a child of the task context
We previously allocated sockets as direct children of the event
context. That led to crashes if a service called
task_server_terminate(), as it left the socket open and handling
events for a dead protocol.

Making them a child of the task allows the task to terminate and take
all its sockets with it.

Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
2010-11-15 10:19:34 +11:00
Jelmer Vernooij
5a482a641e torture: Only add in tests for socket_wrapper/nss_wrapper when they have been enabled. 2010-11-12 17:42:13 +00:00
Kamen Mazdrashki
a8495d380e s4-repl: dsdb_extended_replicated_objects_convert -> dsdb_replicated_objects_convert/
It is part of dsdb_replicated_* family of functions
2010-11-11 18:54:20 +00:00
Kamen Mazdrashki
7ada90ec29 s4-test: repl_schema - Make sure LdbError and ERR_NO_SUCH_OBJECT are visible 2010-11-11 18:54:20 +00:00
Andrew Tridgell
e908c26391 s4-test: use IPC$ instead of ADMIN$ for srvsvc NetShareGetInfo test
IPC$ is guaranteed to exist on servers that do RPC, whereas ADMIN$
isn't

Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
2010-11-11 02:57:04 +00:00
Günther Deschner
ec50db61fa s4-smbtorture: use test_GetPrinterData{Ex}_checktype calls in RPC-SPOOLSS tests.
Guenther

Autobuild-User: Günther Deschner <gd@samba.org>
Autobuild-Date: Wed Nov 10 15:07:12 UTC 2010 on sn-devel-104
2010-11-10 15:07:12 +00:00
Günther Deschner
fa0b44ed9c s4-smbtorture: allow to test returned type after specific error code in PrinterData tests.
Guenther
2010-11-10 15:23:21 +01:00
Kamen Mazdrashki
ee34e2c94b s4-test: Initial implementation for Schema replication black box test 2010-11-08 22:25:08 +00:00
Matthias Dieter Wallnöfer
dbf747b6ff s4:torture/dssync.c - remove unused variable 2010-11-07 10:27:24 +01:00
Jelmer Vernooij
4217734a51 credentials: Lowercase library name,
Autobuild-User: Jelmer Vernooij <jelmer@samba.org>
Autobuild-Date: Sun Nov  7 01:48:44 UTC 2010 on sn-devel-104
2010-11-07 01:48:44 +00:00
Jelmer Vernooij
e28cec7817 ldbsamba: Lowercase library name. 2010-11-07 01:57:34 +01:00
Jelmer Vernooij
0878399bd5 samdb: Lowercase library name. 2010-11-07 01:52:13 +01:00
Stefan Metzmacher
0980a3471e s4:DRS-RPC-DSSYNC: don't try to decrypt secret attributes twice
dsdb_extended_replicated_objects_convert() already decrypts the
attributes in place.

This fixes the usage of --option="dssync:print_pwd_blobs=yes".

metze

Autobuild-User: Stefan Metzmacher <metze@samba.org>
Autobuild-Date: Sat Nov  6 13:30:16 UTC 2010 on sn-devel-104
2010-11-06 13:30:15 +00:00
Andrew Bartlett
41999761f1 s4-torture Add tests for DES-only accounts PAC behaviour/validation.
Previously we didn't support DES-only in a Samba4 domain.  This is
important for some legacy systems that have not yet migrated from this
weak crypto.

Andrew Bartlett
2010-11-02 22:00:54 +11:00
Andrew Bartlett
ad7b551edc s4-torture Remove torture/locktest2.c (no longer compiled and unused)
This is a left-over of a speculative approach to lock testing that
didn't go anywhere.

Andrew Bartlett
2010-11-01 23:34:06 +00:00
Matthias Dieter Wallnöfer
2a25f7515a s4:torture - suppress printf "%llu" on uint64_t variables warnings
The signed/unsignedness does match (always unsigned). The bitlength (64 bit) on
all regular platforms does also. Therefore simply add a cast to
"unsigned long long".
2010-11-01 11:31:33 +01:00
Andrew Tridgell
28c1e4d3eb s4-modules: get rid of the remaining static prototypes for modules
the waf build now generates the prototype declarations for us
2010-11-01 18:55:19 +11:00
Kamen Mazdrashki
717b1158a6 idl: Use DRSUAPI_ATTID_ prefix instead of DRSUAPI_ATTRIBUTE_ for ATTID values
Those values are actually ATTID values and such, they are used
for ATTIDs for Attributes, Classes and Syntaxes.
2010-10-31 23:54:04 +00:00
Jelmer Vernooij
3deece5591 s4: Remove the old perl/m4/make/mk-based build system.
The new waf-based build system now has all the same functionality, and
the old build system has been broken for quite some time.

Autobuild-User: Jelmer Vernooij <jelmer@samba.org>
Autobuild-Date: Sun Oct 31 02:01:44 UTC 2010 on sn-devel-104
2010-10-31 02:01:44 +00:00
Andrew Tridgell
b4ba669e48 s4-smbd: initialise process models in smbtorture before use
the spoolss notify test needs to setup the process models before use

Autobuild-User: Andrew Tridgell <tridge@samba.org>
Autobuild-Date: Sat Oct 30 13:32:09 UTC 2010 on sn-devel-104
2010-10-30 13:32:09 +00:00
Andrew Tridgell
045e3445a0 s4-auth: make KERBEROS subsystem into authkrb5 private library
this fixes some double linking. The name 'KERBEROS' was also a bit
confusing, as it sounded like a base kerberos library, when it is in
fact part of auth
2010-10-30 23:49:01 +11:00
Andrew Tridgell
256349d827 s4-torture: simplify the depenencies for TORTURE_DRS
it doesn't need to depend on the kitchen sink

Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
2010-10-30 23:49:01 +11:00
Andrew Tridgell
046d38faa5 s4-smbd: don't initialise process models more than once
this also removes the event_context parameter from process model
initialisation. It isn't needed, and is confusing when a process model
init can be called from more than one place, possibly with different
event contexts.

Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
2010-10-30 23:49:00 +11:00
Andrew Tridgell
d6299d2667 replace: create a private replace-test library
used by replace_testuite and smbtorture
2010-10-30 23:48:59 +11:00
Matthias Dieter Wallnöfer
606a447503 s4:torture/rpc/samr.c - fix NTTIME warnings by casts
And also the format specifier is wrong since NTTIME is "uint64_t" and
therefore unsigned.

Autobuild-User: Matthias Dieter Wallnöfer <mdw@samba.org>
Autobuild-Date: Fri Oct 29 10:36:46 UTC 2010 on sn-devel-104
2010-10-29 10:36:46 +00:00
Matthias Dieter Wallnöfer
25301b7bf9 s4:torture/rpc/samr.c - test the "ReplicaSourceNodeName" only against s3
AD handles this differently (see MS-SAMR 2.2.4.1)
2010-10-29 09:55:18 +00:00
Kamen Mazdrashki
c5c69359d9 s4-drs_tests: drs_util_DsAttributeId_to_string() is not used anymore
Autobuild-User: Kamen Mazdrashki <kamenim@samba.org>
Autobuild-Date: Fri Oct 29 09:54:01 UTC 2010 on sn-devel-104
2010-10-29 09:54:01 +00:00
Kamen Mazdrashki
72189aef8d s4-pfm_test: Use single instance of global testing data to test with 2010-10-29 02:31:16 +03:00
Kamen Mazdrashki
fbc3fc2e5f s4-pfm-test: Enrich and fix comment primary for testing data 2010-10-29 02:31:16 +03:00
Kai Blin
b73a05e4e1 s4 net: rename to samba-tool in order to not clash with s3 net
Autobuild-User: Kai Blin <kai@samba.org>
Autobuild-Date: Thu Oct 28 07:25:16 UTC 2010 on sn-devel-104
2010-10-28 07:25:16 +00:00
Kamen Mazdrashki
6a6c7c9aa2 s4-pfm_test: no need to test created prefixMap contents here - it already tested 2010-10-26 22:17:41 +03:00
Kamen Mazdrashki
45e1c0c151 s4-pfm_test: Tests for dsdb_schema_pfm_attid_from_oid() 2010-10-26 22:17:41 +03:00
Jelmer Vernooij
a74e8be6d1 waf: Stop automaticaly changing dashes to underscores in library names. 2010-10-26 10:17:18 -07:00
Jelmer Vernooij
8cf61377aa waf: Remove lib prefix from libraries manually. 2010-10-26 10:17:17 -07:00
Jelmer Vernooij
b2af2fd3de torture_local: Add missing dependency on socket_wrapper. 2010-10-26 10:17:17 -07:00
Jelmer Vernooij
d9cbcdd410 s4: Drop duplicate 'lib' prefix for private libraries. 2010-10-26 10:17:16 -07:00
Kamen Mazdrashki
8bc2b54c72 s4-test: Extend DRS-msDSIntId test to verify Configuration NC replica also
Autobuild-User: Kamen Mazdrashki <kamenim@samba.org>
Autobuild-Date: Mon Oct 25 13:13:48 UTC 2010 on sn-devel-104
2010-10-25 13:13:48 +00:00
Kamen Mazdrashki
9e7bcaab2d s4-test: Print correct partition DN in msDSIntId test
Autobuild-User: Kamen Mazdrashki <kamenim@samba.org>
Autobuild-Date: Sun Oct 24 20:45:21 UTC 2010 on sn-devel-104
2010-10-24 20:45:21 +00:00
Jelmer Vernooij
a6611c16a8 torture/local: Depend on NSS_WRAPPER, even if it wasn't enabled.
torture_local tests nss_wrapper.

Autobuild-User: Jelmer Vernooij <jelmer@samba.org>
Autobuild-Date: Sun Oct 24 01:02:00 UTC 2010 on sn-devel-104
2010-10-24 01:02:00 +00:00
Jelmer Vernooij
599afb0651 s4: Rename LIBCLI_NBT -> cli_nbt. 2010-10-24 00:20:04 +00:00
Jelmer Vernooij
5224de3f74 s4: Rename LIBCLI_LDAP to libcli_ldap. 2010-10-24 00:20:04 +00:00
Jelmer Vernooij
a57bd4e2d8 s4: Rename WBCLIENT to wbclient. 2010-10-24 00:20:04 +00:00
Jelmer Vernooij
fc6bfe24fd s4: Rename SMBPASSWD to smbpasswd.
Rename DSDB_MODULE to dsdb_module.
2010-10-24 00:20:04 +00:00
Jelmer Vernooij
833480d3ad s4: Rename LIBSAMBA-* to libsamba-* 2010-10-24 00:20:04 +00:00
Jelmer Vernooij
2bcd7f6827 waf: Rename LIBWINBIND-CLIENT to libwinbind-client 2010-10-24 00:20:04 +00:00
Jelmer Vernooij
2933fac7c7 s4: Rename NSS_WRAPPER to nss_wrapper.
Only link to nss_wrapper when it is enabled.

Autobuild-User: Jelmer Vernooij <jelmer@samba.org>
Autobuild-Date: Sat Oct 23 23:05:44 UTC 2010 on sn-devel-104
2010-10-23 23:05:43 +00:00
Jelmer Vernooij
bc44fcc6fb s4: Rename NDR_TABLE to ndr_table. 2010-10-23 22:24:06 +00:00
Kai Blin
caf4196899 dns/nbt: Fix spelling of the "authoritative" flag. 2010-10-23 10:17:05 +00:00
Jelmer Vernooij
c529317fe2 Lowercase socket_wrapper name.
Avoid linking against socket_wrapper outside of developer mode.

Autobuild-User: Jelmer Vernooij <jelmer@samba.org>
Autobuild-Date: Thu Oct 21 20:26:11 UTC 2010 on sn-devel-104
2010-10-21 20:26:11 +00:00
Andrew Tridgell
2c0ff5113c s4-waf: we don't need the smbtorture.static for s3 any more
this breaks the build farm

Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>

Autobuild-User: Andrew Tridgell <tridge@samba.org>
Autobuild-Date: Thu Oct 21 11:04:21 UTC 2010 on sn-devel-104
2010-10-21 11:04:21 +00:00
Andrew Tridgell
47591ea5ec s4-dsdb: moved a bunch of fuctions from schema/schema_info_attr.c to samdb/ldb_modules/schema_util.c
these functions operate on ldb_modules, so they should be in the
ldb_modules directory. They also should return ldb errors codes, not
WERROR codes, as otherwise the error can be hidden from the ldap
caller

This re-arrangement fixes a dependency loop in the schema/samdb code.

Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
Pair-Programmed-With: Kamen Mazdrashki <kamenim@samba.org>
2010-10-21 19:03:25 +11:00
Andrew Tridgell
2dcb596e83 s4-waf: removed dependencies on missing subsystems
these were left over from the old config.mk system
2010-10-21 19:03:24 +11:00
James Peach
c8000c94a5 smbtorture: Fix typo in status message. 2010-10-20 10:07:33 -07:00
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