1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-14 19:24:43 +03:00

48 Commits

Author SHA1 Message Date
Günther Deschner
612deb2699 s4-smbtorture: add very basic libwbclient testsuite.
Guenther
2009-10-16 02:04:29 +02:00
Jelmer Vernooij
c023828962 Fix missing symbols issues when building with shared libraries. 2008-12-22 21:03:09 +01:00
Stefan Metzmacher
45cf68ce8f s4:torture: fix the build with auto dependencies
metze
2008-11-16 16:21:25 +01:00
Jelmer Vernooij
c0e14d5021 Repel pstring to nsswitch/. 2008-10-22 05:14:14 +02:00
Andrew Bartlett
0cbfc686c4 Fix failures in the winbind struct-based test.
Don't try to pass the 'privileged' socket directory around for expected value testing - it is just too hard...

A better test (once we unify the winbind protocol with Samba3) would
be a operation to see if you are on the priv pipe, and that will give
acutal end-to-end testing.

Andrew Bartlett
(This used to be commit 2d4103518ab8a7286e65347b8b9b0ccb660e69f6)
2008-09-11 11:49:24 +10:00
Jelmer Vernooij
60ae8f0657 Fix a bunch of dependencies.
(This used to be commit a63f458462d207d215a6e4ef8e480b0c8daedf6a)
2008-05-18 23:40:23 +02:00
Jelmer Vernooij
4c70cda986 Fix a couple (well, little more than that..) of typos.
(This used to be commit a6b52119940a900fb0de3864b8bca94e2965cc24)
2008-05-18 23:02:47 +02:00
Jelmer Vernooij
4c8756f147 Create prototype headers from Makefile directory, without smb_build in the middle.
(This used to be commit f4a77b96f9c17d853348b70794026e5b9e384942)
2008-05-18 22:30:08 +02:00
Jelmer Vernooij
03643aec88 Use variables for source directory in a couple more places.
(This used to be commit c41bd3005f5f0b9cfd3709fc9217b4a401d265b4)
2008-05-18 19:54:27 +02:00
Jelmer Vernooij
670122d724 Fix torture module initializion.
(This used to be commit d5bf4e9065303b54421a6f35b213a22f062d27d4)
2008-05-10 23:46:51 +02:00
Tiago Batista
674d089bea Tiago Batista posted a patch to fix the build:
Trying to compile the latest git tree, I got some errors
"auth/pam_error.h not found" errors, it looks like it moved to
auth/ntlm/pam_errors.h.

Andrew Bartlett
(This used to be commit 95831a015ae076b52256961f771f50dd9b278e33)
2008-05-06 08:12:03 +10:00
Jelmer Vernooij
1e973565b6 Move subunit infrastructure code into lib/torture.
(This used to be commit 5b44d8121de7735d69e6238a1442aff034a8ebd3)
2008-04-27 14:02:46 +01:00
Andrew Bartlett
80ad7025cf Adjust the expectations of the struct based winbind test.
These expectations (such as what happens when we have no trusted
domains) were incorrect, compared with Samba3 (which is the reference
for this protocol).

Andrew Bartlett
(This used to be commit 29d5de9e8fb69346e29a95c6fcaefabd018c9447)
2008-04-16 17:33:58 +02:00
Andrew Bartlett
a58df2f54c Fix struct_based winbind test for 'check machine account'.
The problem here was that we did not fill in the error strings in the
success case, and the testsuite checked against the incorrect
'freindly' error string.

Andrew Bartlett
(This used to be commit df05f118831245bdb19573711545bdb1b01a0c50)
2008-04-16 16:11:17 +02:00
Andrew Bartlett
cb5873f36d Fix some of the winbind tests.
Some of the test expectations were incorrect.

Andrew Bartlett
(This used to be commit bc0e94360edb99e967dac01a3ecff42de0c1c222)
2008-04-15 16:31:08 +02:00
Jelmer Vernooij
e9017ba418 Use _OBJ_FILES variables in a couple more places.
(This used to be commit 92856d5054106894b65cd1a1b5119c0facfc4cff)
2008-04-14 17:22:58 +02:00
Jelmer Vernooij
bbdfbf8d9d r26238: Add a loadparm context parameter to torture_context, remove more uses of global_loadparm.
(This used to be commit a33a5530545086b81a3b205aa109dff11c546926)
2007-12-21 05:47:20 +01:00
Stefan Metzmacher
f3dbce01ef r25721: remove unused var
metze
(This used to be commit d878351e820957451b1130d0e5724faf7a4c0370)
2007-12-21 05:43:27 +01:00
Michael Adam
2cf665b8fd r25509: Extend the WINBIND-STRUCT-LOOKUP_NAME_SID test to also
verify failure of the lookup for an invalid SID and an
invalid name.

Michael
(This used to be commit 69043a7b1ca82f5c9976e605cf6bb9df8afbad18)
2007-10-10 15:07:44 -05:00
Michael Adam
f64d696395 r25477: Add user and group retrieval functions (used in LIST_USERS/GROUPS tests).
Add winbind separator and winbind domain name retrieval functions.

Add WINBIND-STRUCT-LOOKUP_NAME_SID test that walks through the list
of groups and names, converts each name with LOOKUPSID and the resulting
sid with LOOKUPNAME and compares the result with the original name.

Michael
(This used to be commit df12ed56c9c2beb4ee36827ddec8b2946c1ac89b)
2007-10-10 15:07:43 -05:00
Michael Adam
8d78021abd r25469: Finish WINBIND-STRUCT-SHOW_SEQUENCE test:
* Extract retrieval of list of sequence numbers into its own function.
* Unclutter comment output.
* Add tests for BUILTIN and local domain not being disconnected.
* Improve use of torture_assert macros.

Michael
(This used to be commit d80421495468db2fd1526c842a6354650afb14af)
2007-10-10 15:07:43 -05:00
Jelmer Vernooij
2f3551ca7c r25446: Merge some changes I made on the way home from SFO:
2007-09-29 More higher-level passing around of lp_ctx.
2007-09-29 Fix warning.
2007-09-29 Pass loadparm contexts on a higher level.
2007-09-29 Avoid using global loadparm context.
(This used to be commit 3468952e771ab31f90b6c374ade01c5550810f42)
2007-10-10 15:07:34 -05:00
Michael Adam
4d7273715f r25444: Add an initial version of a WINBIND-STRUCT-GETPWENT test.
To be extended...

Michael
(This used to be commit 315ffc01914c34d0c4dacd9155d270af0f45f8e5)
2007-10-10 15:07:34 -05:00
Michael Adam
3f466b1aab r25443: Enhance the WINBINDD-STRUCT-SHOW_SEQUENCE test:
Compare the lists of sequence numbers obtained by
(a) calling SHOW_SEQUENCE without domain argument and
(b) walking the list of trusted domains.
output the sequence numbers of the individual domains upon success.

Michael
(This used to be commit 21db6eb43c796da7607260d783221c5ee42f1f41)
2007-10-10 15:07:34 -05:00
Michael Adam
ca61e8668c r25440: Add simple WINBINDD_SETPWENT and WINBINDD_ENDPWENT tests.
WINBINDD_GETPWENT is to follow.

Michael
(This used to be commit a989a7e40b56c988f3710014fcf50aca917d7de5)
2007-10-10 15:07:33 -05:00
Michael Adam
07f20e3f57 r25439: Extend the SHOW_SEQUENCE test somewhat to walk the list of trusted domains.
Michael
(This used to be commit d24eecb80ef55160e9e9c4863c59d9af15e4f5ca)
2007-10-10 15:07:33 -05:00
Michael Adam
6371962e89 r25409: Add SHOW_SEQUENCE winbind test (struct based).
Michael
(This used to be commit 080b602e4ff906580e127e66bfbe0373a69d26a9)
2007-10-10 15:07:27 -05:00
Jelmer Vernooij
37d53832a4 r25398: Parse loadparm context to all lp_*() functions.
(This used to be commit 3fcc960839c6e5ca4de2c3c042f12f369ac5f238)
2007-10-10 15:07:25 -05:00
Michael Adam
555302bbdf r25352: Add a basic WINBINDD_LIST_GROUPS test.
Michael
(This used to be commit 1d051c550c640300e02fa947738e192a4dd4d2ff)
2007-10-10 15:07:15 -05:00
Michael Adam
ff81112efb r25350: Add an initial winbindd list-users test.
Michael
(This used to be commit 01bd81362fe7e26361e27a1e2ea3cfb2b78cfe00)
2007-10-10 15:07:15 -05:00
Stefan Metzmacher
3bcf42774f r25349: add WINBIND-STRUCT-DSGETDCNAME test
metze
(This used to be commit 8746ee4c20c6c0ca04248feae1321f6806d35898)
2007-10-10 15:07:14 -05:00
Stefan Metzmacher
1429bd9b0c r25293: add WINBIND-STRUCT-CHECK_MACHACC test
metze
(This used to be commit 8684167fd804fb04fc36e49f61027e9d44beb3ba)
2007-10-10 15:07:07 -05:00
Stefan Metzmacher
ac8271a57c r25292: minor cleanup
metze
(This used to be commit a98205f26dfbf680ad6ac9f3ba2043b3e2864f99)
2007-10-10 15:07:07 -05:00
Stefan Metzmacher
a95b108959 r25291: add WINBIND-STRUCT-PRIV_PIPE_DIR test
this may needs
--option="torture:winbindd private pipe dir=/var/lib/samba/winbindd_privileged"

metze
(This used to be commit f83062d10955115a55928c51d289a219c1442632)
2007-10-10 15:07:07 -05:00
Stefan Metzmacher
069cc571cd r25290: remove wrong comment
metze
(This used to be commit 9916d40769fa50be7e0bc88c981643f2c38f3336)
2007-10-10 15:07:06 -05:00
Stefan Metzmacher
e62dc0f1ef r25289: add WINBIND-STRUCT-INFO test
this may needs --option="torture:winbindd separator=+"

metze
(This used to be commit 8bf28eecf274c5f53ab735036ffe09e0df751a9c)
2007-10-10 15:07:06 -05:00
Stefan Metzmacher
204ca09d8e r25288: add WINBIND-STRUCT-DOMAIN_INFO test
metze
(This used to be commit f42965b6edfd91e00004a87a806d124be7eaeee0)
2007-10-10 15:07:06 -05:00
Stefan Metzmacher
7d5f3e290c r25284: add WINBIND-STRUCT-DOMAIN_NAME test
this may needs --option="torture:winbindd netbios domain=BAR"

metze
(This used to be commit 3aba871fc35821f4660749db6e449846fc6b8753)
2007-10-10 15:07:05 -05:00
Stefan Metzmacher
7ae4b79e94 r25283: add WINBIND-STRUCT-NETBIOS_NAME test.
this may needs --option="torture:winbindd netbios name=FOO"

metze
(This used to be commit e67df9b8de4f3c9abc5ddfdad91e2682ddd40e45)
2007-10-10 15:07:05 -05:00
Stefan Metzmacher
3e9d7c4db3 r25282: add WINBIND-STRUCT-INTERFACE_VERSION test
metze
(This used to be commit d610281cc11351fdc4ed0e4242341530fe56c5bf)
2007-10-10 15:07:05 -05:00
Stefan Metzmacher
fc9262d57c r25280: call WINBINDD_GETDCNAME for each domain returned from WINBINDD_LIST_TRUSTDOMS
metze
(This used to be commit c06e7aebc5998da0a3b1d1f2021e6f49c31071f5)
2007-10-10 15:07:04 -05:00
Stefan Metzmacher
18d4608e43 r25279: - test in the generic get_trusted_domains() function that we got
at least 2 domains.
- change the ordering of the tests

metze
(This used to be commit 22eb3095d622e4cee559387900e5a7d9cfb51171)
2007-10-10 15:07:04 -05:00
Stefan Metzmacher
a84bdcd1cb r25278: add a more extented macro for doing struct based winbind requests
metze
(This used to be commit ad3ec174088393a9efb265fa7a135fbfd080b6a7)
2007-10-10 15:07:04 -05:00
Stefan Metzmacher
fb75ce48e5 r25262: add WINBIND-STRUCT-LIST_TRUSTDOM torture test
metze
(This used to be commit 52dfec08e7b09c3d80c7e5efc88889144079fc9e)
2007-10-10 15:07:01 -05:00
Stefan Metzmacher
727386327c r25235: add simple WINBIND-STRUCT-GETDCNAME test
metze
(This used to be commit 2abd86f520a74662f8fe0d10b72484459c3d74a9)
2007-10-10 15:06:58 -05:00
Stefan Metzmacher
a75ba7c53d r25234: make WINBIND-STRUCT-PING a benchmark test
which runs WINBIND_PING for 5 seconds

metze
(This used to be commit 86809a965e160d0e6dff2d9bde8c990783388d8d)
2007-10-10 15:06:58 -05:00
Stefan Metzmacher
7c8e4c7cbb r25189: add first winbind test for the struct based protocol (WINBINDD_PING)
metze
(This used to be commit 84b5babae7d24f5e076318f57642c99e40e7bf6b)
2007-10-10 15:06:48 -05:00
Stefan Metzmacher
81539d4966 r25188: add infrastructure for WINBIND-* tests in smbtorture
metze
(This used to be commit 3807699c001ce7a8ee0acba071cc2bb7f4406cd9)
2007-10-10 15:06:48 -05:00